binary-io tests: Avoid test failure on mingw when libtool is used.
[gnulib.git] / ChangeLog
1 2011-11-27  Bruno Haible  <bruno@clisp.org>
2
3         binary-io tests: Avoid test failure on mingw when libtool is used.
4         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5         Don't verify the size of t-bin-out1.tmp here.
6         * tests/test-binary-io.sh: Verify it here.
7         Reported by Simon Josefsson.
8
9 2011-11-26  Bruno Haible  <bruno@clisp.org>
10
11         Fix conflict between two instantiations of module 'unistd'.
12         * gnulib-tool (func_emit_autoconf_snippet): Substitute
13         ${include_guard_prefix} also in the autoconf snippet.
14         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
15         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
16         GNULIB_UNISTD_H_GETOPT.
17         * modules/getopt-posix (configure.ac): Set the
18         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
19         * modules/getopt-gnu (configure.ac): Likewise.
20         * modules/unistd (Makefile.am): Change the substitution value of
21         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
22         Reported by Simon Josefsson.
23
24 2011-11-25  Bruno Haible  <bruno@clisp.org>
25
26         pagealign_alloc: Doc and comments.
27         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
28         module.
29         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
30
31 2011-11-25  Jim Meyering  <meyering@redhat.com>
32
33         test-update-copyright.sh: avoid false-positive failure
34         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
35         around false positive failure on Cygwin/Windows.  The latter was
36         matching erroneously-created files with names like
37         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
38
39 2011-11-25  Simon Josefsson  <simon@josefsson.org>
40
41         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
42         * m4/valgrind-tests.m4: Check that the parameters that will be
43         used works, not just a subset of them.  Reported by Bruno Haible
44         <bruno@clisp.org>.
45
46 2011-11-24  Jim Meyering  <meyering@redhat.com>
47
48         test-stdalign.c: comment out long double tests
49         * tests/test-stdalign.c: Don't try to reduce alignment of long double
50         variables.  That provokes errors like this from gcc-4.7.0 20111124:
51         error: '_Alignas' specifiers cannot reduce alignment of \
52         'static_longdouble_alignas'.
53
54 2011-11-22  Jim Meyering  <meyering@redhat.com>
55
56         init.sh: make "compare /dev/null FILE" output more readable
57         * tests/init.sh (compare_): Document the preferred order of arguments.
58         (emit_diff_u_header_): New function.
59         (compare_dev_null_): Emit a simulated diff, rather than just the
60         contents of the unexpected file.  Suggestion from Bruno Haible.
61
62 2011-11-21  Jim Meyering  <meyering@redhat.com>
63             Eric Blake  <eblake@redhat.com>
64
65         init.sh: work around OSF/1 5.1's mishandling of /dev/null
66         * tests/init.sh: Make our compare function slightly more portable.
67         Reported by Bruno Haible in
68         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
69
70 2011-11-21  Simon Josefsson  <simon@josefsson.org>
71
72         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
73         before using it, in code that ends up in config.h.
74
75 2011-11-20  Bruno Haible  <bruno@clisp.org>
76
77         getcwd: Work around getcwd bug on AIX 5..7.
78         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
79         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
80         Use a different value for gl_cv_func_getcwd_path_max. Move the
81         definition of HAVE_PARTLY_WORKING_GETCWD from here...
82         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
83         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
84         Define HAVE_MINIMALLY_WORKING_GETCWD.
85         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
86         where it is not even minimally working, that is, on AIX.
87         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
88         m4/getcwd-path-max.m4.
89         (main): Update exit code computation.
90         * doc/posix-functions/getcwd.texi: Mention list of platforms where
91         getcwd does not handle long file names.
92
93 2011-11-20  Bruno Haible  <bruno@clisp.org>
94
95         getcwd: Fix bug from 2009-09-10.
96         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
97         like "no".
98
99 2011-11-20  Simon Josefsson  <simon@josefsson.org>
100
101         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
102
103 2011-11-20  Bruno Haible  <bruno@clisp.org>
104
105         fma tests: Avoid shadowing local variables.
106         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
107         expected.
108
109 2011-11-20  Bruno Haible  <bruno@clisp.org>
110
111         copysignf tests: Fix.
112         * tests/test-copysignf.c: Fix signature check.
113
114 2011-11-20  Bruno Haible  <bruno@clisp.org>
115
116         fma: Remove unused code.
117         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
118         unused macros.
119
120 2011-11-20  Bruno Haible  <bruno@clisp.org>
121
122         sethostname: Fix doc about AIX.
123         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
124         sethostname; it has it.
125
126         sethostname: Mention more portability problems.
127         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
128         problem.
129         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
130
131 2011-11-19  Bruno Haible  <bruno@clisp.org>
132
133         Depend on module fcntl-h when AT_FDCWD is used.
134         * modules/utimens (Depends-on): Add fcntl-h.
135         * modules/areadlinkat (Depends-on): Likewise.
136         * modules/areadlinkat-with-size (Depends-on): Likewise.
137         * modules/faccessat (Depends-on): Likewise.
138         * modules/fchmodat (Depends-on): Likewise.
139         * modules/fchownat (Depends-on): Likewise.
140         * modules/getcwd (Depends-on): Likewise.
141         * modules/mkdirat (Depends-on): Likewise.
142         * modules/mkfifoat (Depends-on): Likewise.
143         * modules/readlinkat (Depends-on): Likewise.
144         * modules/symlinkat (Depends-on): Likewise.
145         * modules/dup2-tests (Depends-on): Likewise.
146         * modules/fdutimensat-tests (Depends-on): Likewise.
147         * modules/futimens-tests (Depends-on): Likewise.
148
149 2011-11-19  Bruno Haible  <bruno@clisp.org>
150
151         euidaccess: Update a comment.
152         * lib/euidaccess.c: Update comment about platforms with faccessat.
153
154 2011-11-19  Bruno Haible  <bruno@clisp.org>
155
156         openat: Fix file list.
157         * modules/openat (Files): Remove lib/at-func.c.
158
159 2011-11-19  Bruno Haible  <bruno@clisp.org>
160
161         fstatat: Simplify.
162         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
163         gnulib should define rpl_fstatat, there is a
164         "#define fstatat rpl_fstatat" in <sys/stat.h>.
165
166 2011-11-19  Bruno Haible  <bruno@clisp.org>
167
168         Ensure 'inline' can be used in tests/test-utimens-common.h.
169         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
170         * modules/futimens-tests (configure.ac): Likewise.
171         * modules/utimens-tests (configure.ac): Likewise.
172         * modules/utimensat-tests (configure.ac): Likewise.
173
174 2011-11-19  Simon Josefsson  <simon@josefsson.org>
175
176         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
177         not hash_insert0.
178         (hash_insert_if_absent): Doc fix.
179
180 2011-11-19  Simon Josefsson  <simon@josefsson.org>
181
182         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
183
184 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
185
186         test-getcwd: disambiguate exit status
187         * tests/test-getcwd.c (test_long_name): Return 0..7.
188         (main): Exit with an unambiguous exit status.  The old
189         code yielded a mysterious mixture of two failure codes.
190
191         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
192         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
193         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
194         rpl_fstatat or fstatat.  This should fix the other problem
195         reported by Kai Habel in
196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
197         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
199         and I reproduced it on a Solaris 8 host we still have in production.
200
201 2011-11-18  Jim Meyering  <meyering@redhat.com>
202
203         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
204         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
205         Add a sentence to the comment.
206         (hash_insert0): New function that simply calls hash_insert_if_absent.
207         * lib/hash.h (hash_insert_if_absent): Declare it.
208         (hash_insert0): Add deprecation attribute.
209         (_GL_ATTRIBUTE_DEPRECATED): Define.
210         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
211         not hash_insert0.
212         * NEWS: Mention it, even though it's not really an incompatible change.
213
214 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
215
216         openat: avoid compilation failure due to lack of <errno.h> inclusion
217         * lib/openat.c: Include <errno.h>.
218
219 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
220
221         * modules/getcwd (Depends-on): Add fdopendir.
222         This fixes one of the two problems reported by Kai Habel in
223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
224
225         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
226         stdalign problem reported by Ian Beckwith in
227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
228         * modules/crypto/gc-arcfour (Depends-on):
229         Depend conditionally on crypto/arcfour.
230         * modules/crypto/gc-arctwo (Depends-on):
231         Depend conditionally on crypto/arctwo.
232         * modules/crypto/gc-des (Depends-on):
233         Depend conditionally on crypto/des.
234         * modules/crypto/gc-hmac-md5 (Depends-on):
235         Depend conditionally on crypto/hmac-md5.
236         * modules/crypto/gc-hmac-sha1 (Depends-on):
237         Depend conditionally on crypto/hmac-sha1.
238         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
239         * modules/crypto/gc-md4 (Depends-on):
240         Depend conditionally on crypto/md4.
241         * modules/crypto/gc-md5 (Depends-on):
242         Depend conditionally on crypto/md5.
243         * modules/crypto/gc-rijndael (Depends-on):
244         Depend conditionally on crypto/rijndael.
245         * modules/crypto/gc-sha1 (Depends-on):
246         Depend conditionally on crypto/sha1.
247         * modules/crypto/gc-arcfour:
248         * modules/crypto/gc-arctwo:
249         * modules/crypto/gc-des:
250         * modules/crypto/gc-hmac-md5:
251         * modules/crypto/gc-hmac-sha1:
252         * modules/crypto/gc-md2:
253         * modules/crypto/gc-md4:
254         * modules/crypto/gc-md5:
255         * modules/crypto/gc-rijndael:
256         * modules/crypto/gc-sha1:
257         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
258         now that the conditional dependencies do the work for us.
259
260 2011-11-17  Jim Meyering  <meyering@redhat.com>
261
262         tests: factor st_ctime-comparison out of two headers
263         * tests/test-utimens-common.h (ctime_compare): Define.
264         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
265         * tests/test-lutimens.h (test_lutimens): Likewise.
266         * tests/test-utimens.h (test_utimens): Likewise.
267
268         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
269         Invoke the test program via an init.sh-using wrapper.
270         * tests/test-getcwd.sh: New file.
271         * modules/getcwd-tests (Files): Add it.
272         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
273
274 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
275
276         gitlog-to-changelog: support multi-author commits.
277         The FSF cares about keeping track of all authors of patches to its
278         projects, but Git doesn't provide obvious support for multi-author
279         changesets. Consensus seems to be forming around the use of extra
280         Signed-off-by inspired lines in the log message formatted as
281         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
282         multi-author commits between version control systems.
283         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
284         log message and output in standard ChangeLog multi-author format.
285         Reported by Peter Rosin <peda@lysator.liu.se>
286
287 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
288             Bruno Haible  <bruno@clisp.org>
289
290         Fix some modules' file list.
291         * modules/fstatat (Files): Add m4/lstat.m4.
292         * modules/openat (Files): Likewise.
293         * modules/unlinkat (Files): Likewise.
294
295 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
296
297         maint.mk: fix tight-scope.mk generation in VPATH builds.
298         * top/maint.mk (tight-scope.mk): Make sure to prefix file
299         reference with $(srcdir) so that the file is found correctly even
300         when running `make syntax-check' in a VPATH build.
301
302 2011-11-13  Bruno Haible  <bruno@clisp.org>
303             Jim Meyering  <meyering@redhat.com>
304
305         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
306         * tests/init.sh (compare): Remove "No differences encountered" or
307         synonymous output from the 'diff' program.
308
309 2011-11-13  Bruno Haible  <bruno@clisp.org>
310
311         Makefile: Tweak indentation.
312         * Makefile: Use tab as first character in every line that contains rule
313         commands.
314
315 2011-11-13  Bruno Haible  <bruno@clisp.org>
316
317         Syntax check for copyright statements.
318         * check-copyright: New file.
319         * Makefile (sc_check_copyright): New rule.
320
321 2011-11-13  Simon Josefsson  <simon@josefsson.org>
322
323         * build-aux/git-version-gen: Add --prefix to configure the tag
324         match string.
325
326 2011-11-13  Simon Josefsson  <simon@josefsson.org>
327
328         * build-aux/git-version-gen: Add --help and --version.
329
330 2011-11-12  Jim Meyering  <meyering@redhat.com>
331
332         revamp the other test-exclude?.sh scripts to use init.sh, too
333         * tests/test-exclude1.sh: Use init.sh.
334         * tests/test-exclude2.sh: Likewise.
335         * tests/test-exclude3.sh: Likewise.
336         * tests/test-exclude4.sh: Likewise.
337         * tests/test-exclude5.sh: Likewise.
338         * tests/test-exclude6.sh: Likewise.
339         * tests/test-exclude7.sh: Likewise.
340         * tests/test-exclude8.sh: Likewise.
341         * modules/exclude-tests (Files): List init.sh.
342
343         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
344         These shell scripts ignored failure of the binary test-exclude,
345         so making the latter return 77 didn't cause them to be skipped.
346         * tests/test-exclude5.sh: Exit with test-exclude's error status
347         when that program fails.  Revamp to use init.sh.
348         * tests/test-exclude2.sh: Likewise.
349
350         test-exclude: fix a typo
351         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
352
353 2011-11-11  Bruno Haible  <bruno@clisp.org>
354
355         obstack: Fix compilation error on MSVC 9.
356         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
357
358 2011-11-11  Jim Meyering  <meyering@redhat.com>
359
360         test-exclude: skip tests rather than failing on deficient systems
361         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
362         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
363         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
364         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
365
366 2011-11-10  Bruno Haible  <bruno@clisp.org>
367
368         ptsname_r test: Avoid gcc warning on glibc systems.
369         * tests/test-ptsname_r.c (null_ptr): New function.
370         (test_errors): Use it.
371
372 2011-11-10  Bruno Haible  <bruno@clisp.org>
373
374         ptsname_r: Avoid compilation error on OSF/1 5.1.
375         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
377         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
378         function is not declared or incompatibly declared.
379         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
380         * modules/ptsname_r (Depends-on, configure.ac): Update.
381         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
382
383 2011-11-10  Bruno Haible  <bruno@clisp.org>
384
385         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
386         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
387         When cross-compiling, guess yes on all platforms except AIX.
388         Reported by Ludovic Courtès <ludo@gnu.org>.
389
390 2011-11-09  Bruno Haible  <bruno@clisp.org>
391
392         ptsname_r tests: Fix bugs.
393         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
394         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
395
396 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
397
398         fstatat: work with cross-compilation
399         Problem reported by Ludovic Courtès in
400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
401         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
402         "cross-compiling" and assume the bug is present.  Replace
403         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
404         an inverted sense, to be more conservative about our assumptions.
405         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
406
407 2011-11-09  Bruno Haible  <bruno@clisp.org>
408
409         Improve MODULES.html output.
410         * modules/mkfifoat (Description): Use the word "function".
411         * modules/readlinkat (Description): Likewise.
412         * modules/symlinkat (Description): Likewise.
413
414 2011-11-09  Eric Blake  <eblake@redhat.com>
415
416         ptsname_r-tests: new test module
417         * modules/ptsname_r-tests: New module.
418         * tests/test-ptsname_r.c: New file.
419
420         ptsname_r: new module
421         * modules/ptsname_r: New module.
422         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
423         * lib/ptsname.c (__ptsname_r): Split...
424         * lib/ptsname_r.c: ...into new file.
425         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
426         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
427         * modules/stdlib (Makefile.am): Substitute witnesses.
428         * lib/stdlib.in.h (ptsname_r): Declare it.
429         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
430         * MODULES.html.sh (Misc): Likewise.
431         * modules/ptsname (Depends-on): Alter dependency.
432         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
433
434 2011-11-09  Jim Meyering  <meyering@redhat.com>
435
436         announce-gen: be more concise when there's only one URL+tarball
437         * build-aux/announce-gen (get_tool_versions): When you distribute
438         only one type of tarball, combine the first two "Here are..."
439         sections and make the key-checking grammar independent of
440         how many tarballs there are.
441
442 2011-11-09  Eric Blake  <eblake@redhat.com>
443
444         openpty: provide a stub on mingw
445         * lib/pty.in.h (includes): Provide forward declarations.
446         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
447
448         raise: fix mingw handling of SIGPIPE
449         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
450
451 2011-11-08  Bruno Haible  <bruno@clisp.org>
452
453         More conditional dependencies.
454         * modules/faccessat (Depends-on): Add conditions.
455         * modules/fchmodat (Depends-on): Likewise.
456         * modules/fchownat (Depends-on): Likewise.
457         * modules/fstatat (Depends-on): Likewise.
458         * modules/mkfifoat (Depends-on): Likewise.
459         * modules/readlinkat (Depends-on): Likewise.
460         * modules/symlinkat (Depends-on): Likewise.
461         * modules/unlinkat (Depends-on): Likewise.
462         * modules/utimensat (Depends-on): Likewise.
463         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
464         * modules/linkat (Depends-on): Refine the conditions.
465         * modules/renameat (Depends-on): Likewise.
466
467 2011-11-08  Bruno Haible  <bruno@clisp.org>
468
469         faccessat: Move AC_LIBOBJ invocation to module description.
470         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
471         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
472         invocation from here...
473         * modules/faccessat (configure.ac): ... to here. Invoke
474         gl_PREREQ_FACCESSAT.
475
476 2011-11-08  Bruno Haible  <bruno@clisp.org>
477
478         faccessat: Simplify autoconf macro.
479         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
480         gl_FUNC_EUIDACCESS.
481
482 2011-11-08  Bruno Haible  <bruno@clisp.org>
483
484         renameat: Fix dependencies.
485         * modules/renameat (Depends-on): Add stdbool.
486
487 2011-11-08  Bruno Haible  <bruno@clisp.org>
488
489         mkfifoat: Fix module description.
490         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
491         not gl_UNISTD_MODULE_INDICATOR.
492
493 2011-11-08  Bruno Haible  <bruno@clisp.org>
494
495         fstatat: Remove unused dependency.
496         * modules/fstatat (Depends-on): Remove fstat.
497
498 2011-11-08  Simon Josefsson  <simon@josefsson.org>
499
500         GNUmakefile: behave when Makefile is missing.
501         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
502
503 2011-11-08  Bruno Haible  <bruno@clisp.org>
504
505         openat: Conditionalize dependencies.
506         * lib/openat.c: Reduce the scope of some #includes.
507         * modules/openat (Depends-on): Add conditions.
508
509 2011-11-07  Jim Meyering  <meyering@redhat.com>
510
511         maint.mk: extract GPG key ID without using a temporary file
512         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
513         without using a temporary file.  Based on a suggestion from Werner Koch
514         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
515
516 2011-11-07  Eric Blake  <eblake@redhat.com>
517
518         grantpt: fix typo
519         * lib/stdlib.in.h (grantpt): Check correct function.
520
521         maint.mk: silence new syntax check
522         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
523
524 2011-11-06  Bruno Haible  <bruno@clisp.org>
525
526         Doc about floating-point and math API.
527         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
528         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
529
530 2011-11-06  Bruno Haible  <bruno@clisp.org>
531
532         stdalign tests: Skip the test when compiled by Sun C.
533         * tests/test-stdalign.c (main): Skip the test on Sun C.
534
535 2011-11-06  Bruno Haible  <bruno@clisp.org>
536
537         ansi-c++-opt: Complete the 2011-06-05 change.
538         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
539         does not support namespaces, set the variable to "no", not to ":".
540
541 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
542
543         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
544
545 2011-11-06  Bruno Haible  <bruno@clisp.org>
546
547         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
548         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
549         (minus_zerol) [HP-UX]: New macro.
550         (unary_minus) [HP-UX]: New function.
551         (copysignl) [HP-UX]: Use unary_minus function.
552
553 2011-11-06  Bruno Haible  <bruno@clisp.org>
554
555         ldexp, ldexpf, ldexpl: Enhance tests.
556         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
557         and tests/test-ldexpl.c.
558         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
559         LDEXP, MIN_EXP, MAX_EXP): New macros.
560         Include test-ldexp.h.
561         (main): Just call test_function.
562         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
563         infinity.h, nan.h.
564         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
565         MAX_EXP): New macros.
566         Include test-ldexp.h.
567         (x, y): Remove variables.
568         (main): Just call test_function.
569         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
570         infinity.h, nan.h.
571         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
572         MAX_EXP): New macros.
573         Include test-ldexp.h.
574         (x, y): Remove variables.
575         (main): Just call test_function.
576         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
577         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
578         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
579         (Depends-on): Add isnand-nolibm, signbit, float.
580         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
581         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
582         (Depends-on): Add isnanf-nolibm, signbit, float.
583
584 2011-11-06  Bruno Haible  <bruno@clisp.org>
585
586         math tests: Cosmetics.
587         * tests/test-math-c++.cc: Reorder declarations.
588
589 2011-11-05  Bruno Haible  <bruno@clisp.org>
590
591         fma*: Simplify test.
592         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
593         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
594
595         Tests for module 'fmal'.
596         * modules/fmal-tests: New file.
597         * tests/test-fmal1.c: New file.
598         * tests/test-fmal2.c: New file.
599
600         New module 'fmal'.
601         * lib/math.in.h (fmal): New declaration.
602         * lib/fmal.c: New file.
603         * m4/fmal.m4: New file.
604         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
606         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
607         REPLACE_FMAL.
608         * modules/fmal: New file.
609         * doc/posix-functions/fmal.texi: Mention the new module and the various
610         bugs.
611
612         Tests for module 'fmaf'.
613         * modules/fmaf-tests: New file.
614         * tests/test-fmaf1.c: New file.
615         * tests/test-fmaf2.c: New file.
616
617         New module 'fmaf'.
618         * lib/math.in.h (fmaf): New declaration.
619         * lib/fmaf.c: New file.
620         * m4/fmaf.m4: New file.
621         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
623         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
624         REPLACE_FMAF.
625         * modules/fmaf: New file.
626         * doc/posix-functions/fmaf.texi: Mention the new module and the various
627         bugs.
628
629         Tests for module 'fma'.
630         * modules/fma-tests: New file.
631         * tests/test-fma1.c: New file.
632         * tests/test-fma1.h: New file.
633         * tests/test-fma2.c: New file.
634         * tests/test-fma2.h: New file.
635
636         New module 'fma'.
637         * lib/math.in.h (fma): New declaration.
638         * lib/fma.c: New file.
639         * m4/fma.m4: New file.
640         * m4/fegetround.m4: New file.
641         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
643         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
644         REPLACE_FMA.
645         * modules/fma: New file.
646         * doc/posix-functions/fma.texi: Mention the new module and the various
647         bugs.
648
649         Extend gl_MATHFUNC.
650         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
651         Support 'void' as argument type.
652         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
653
654 2011-11-05  Jim Meyering  <meyering@redhat.com>
655
656         maint.mk: also prohibit inclusion of dirent.h without use
657         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
658
659 2011-11-05  Bruno Haible  <bruno@clisp.org>
660
661         ldexpl tests: Avoid test failure on MSVC 9.
662         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
663         value. Needed in order to enforce the conversion from a value greater
664         than LDBL_MAX to Infinity.
665
666 2011-11-05  Bruno Haible  <bruno@clisp.org>
667
668         New modules 'at-internal', 'openat-h', split off from module 'openat'.
669         * modules/at-internal: New file, extracted from modules/openat.
670         * modules/openat-h: New file.
671         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
672         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
673         * modules/openat (Description): Add reference to POSIX function.
674         (Files): Remove lib/openat.h, lib/openat-proc.c.
675         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
676         intprops, unistd.
677         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
678         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
679         gl_FCNTL_MODULE_INDICATOR.
680         (Include): Remove unistd.h, openat.h.
681         * modules/areadlinkat (Files): Add lib/at-func.c.
682         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
683         openat-die, openat-h, save-cwd.
684         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
685         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
686         openat-die, openat-h, save-cwd, unistd.
687         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
688         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
689         openat-h, save-cwd. Remove fcntl-h, openat.
690         * modules/fchmodat (Files): Remove lib/openat.h.
691         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
692         openat, stdbool, unistd.
693         * modules/fchownat (Files): Remove lib/openat.h.
694         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
695         openat, stdbool, sys_stat.
696         * modules/fdopendir (Files): Remove lib/openat-priv.h,
697         lib/openat-proc.c.
698         (Depends-on): Add at-internal.
699         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
700         * modules/fstatat (Files): Remove lib/openat.h.
701         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
702         stdbool, unistd.
703         * modules/fts (Depends-on): Add openat-h.
704         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
705         openat.
706         * modules/mkdirat (Files): Remove lib/openat.h.
707         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
708         openat, stdbool, sys_stat.
709         * modules/mkfifoat (Files): Add lib/at-func.c.
710         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
711         openat-h, save-cwd. Remove fcntl-h, openat.
712         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
713         * modules/readlinkat (Files): Add lib/at-func.c.
714         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
715         openat-h, save-cwd. Remove fcntl-h, openat.
716         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
717         openat.
718         * modules/selinux-at (Files): Add lib/at-func.c.
719         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
720         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
721         * modules/symlinkat (Files): Add lib/at-func.c.
722         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
723         openat-h, save-cwd. Remove fcntl-h, openat.
724         * modules/unlinkat (Files): Remove lib/openat.h.
725         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
726         stdbool.
727         * modules/utimensat (Files): Add lib/at-func.c.
728         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
729         openat-die, openat-h, save-cwd.
730         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
731         * modules/fdutimensat-tests (Depends-on): Add openat.
732         * modules/fstatat-tests (Depends-on): Add openat-h.
733         * modules/readlinkat-tests (Depends-on): Add openat.
734         * modules/symlinkat-tests (Depends-on): Add openat.
735
736 2011-11-05  Bruno Haible  <bruno@clisp.org>
737
738         openat: Include <stdbool.h>.
739         * lib/openat.c: Include <stdbool.h>.
740
741 2011-11-04  Bruno Haible  <bruno@clisp.org>
742
743         fchownat, renameat, unlinkat: Fix dependencies.
744         * modules/fchownat (Depends-on): Add fstatat.
745         * modules/renameat (Depends-on): Likewise.
746         * modules/unlinkat (Depends-on): Likewise.
747
748 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
749
750         openat: remove direct dependency on dirent
751         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
752         and hasn't been needed ever since fdopendir was split into its own
753         module on 2009-08-31.
754         * modules/openat (Depends-on): Remove dirent.
755
756 2011-11-04  Bruno Haible  <bruno@clisp.org>
757
758         renameat: Optimize code size.
759         * modules/renameat (configure.ac): Don't compile at-func2.c if
760         REPLACE_RENAMEAT is 1.
761
762 2011-11-04  Bruno Haible  <bruno@clisp.org>
763
764         openat tests: Fix file list.
765         * modules/openat-tests (Files): Add tests/test-open.h.
766
767 2011-11-04  Bruno Haible  <bruno@clisp.org>
768
769         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
770         * modules/fchmodat (Depends-on): Add openat-die.
771         * modules/fchownat (Depends-on): Likewise.
772         * modules/linkat (Depends-on): Likewise.
773         * modules/renameat (Depends-on): Likewise.
774         * modules/openat (Depends-on): Add dirent.
775
776 2011-11-04  Jim Meyering  <meyering@redhat.com>
777
778         at-func*.c: fix comments
779         * lib/at-func2.c: Correct/improve first-line comment.
780         * lib/at-func.c: Correct grammar in first-line comment.
781
782 2011-11-04  Bruno Haible  <bruno@clisp.org>
783
784         New module 'mkdirat', split off from module 'openat'.
785         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
786         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
787         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
788         * modules/mkdirat: New file, extracted from modules/openat.
789         * modules/openat (Files): Remove lib/mkdirat.c.
790         (Depends-on): Remove mkdir.
791         (configure.ac): Remove AC_LIBOBJ of mkdirat.
792         (Include): Remove <sys/stat.h>.
793         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
794         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
795         tests/test-mkdir.h.
796         (Depends-on): Remove ignore-value.
797         (Makefile.am): Remove rules for test-mkdirat.
798         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
799         of module 'openat'.
800         * NEWS: Mention the change.
801
802 2011-11-04  Bruno Haible  <bruno@clisp.org>
803
804         closedir: Avoid warning on mingw.
805         * lib/closedir.c: Include <unistd.h>.
806
807 2011-11-04  Bruno Haible  <bruno@clisp.org>
808
809         New module 'fstatat', split off from module 'openat'.
810         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
811         defined.
812         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
813         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
814         gl_FUNC_FSTATAT.
815         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
816         * modules/fstatat: New file, extracted from modules/openat.
817         * modules/openat (Files): Remove lib/fstatat.c.
818         (Depends-on): Remove lstat.
819         (configure.ac): Remove AC_LIBOBJ of fstatat.
820         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
821         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
822         tests/test-lstat.h, tests/test-stat.h.
823         (Depends-on): Remove getcwd-lgpl.
824         (Makefile.am): Remove rules for test-fstatat.
825         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
826         of module 'openat'.
827         * NEWS: Mention the change.
828         * modules/getcwd (Depends-on): Add fstatat.
829         * modules/linkat (Depends-on): Likewise.
830         * modules/mkfifoat-tests (Depends-on): Likewise.
831         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
832
833 2011-11-03  Bruno Haible  <bruno@clisp.org>
834
835         New module 'unlinkat', split off from module 'openat'.
836         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
837         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
838         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
839         * modules/unlinkat: New file, extracted from modules/openat. Correct
840         the dependency conditions.
841         * modules/openat (Files): Remove lib/unlinkat.c.
842         (Depends-on): Remove rmdir, unlink.
843         (configure.ac): Remove AC_LIBOBJ of unlinkat.
844         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
845         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
846         tests/test-rmdir.h, tests/test-unlink.h.
847         (Depends-on): Remove unlinkdir.
848         (Makefile.am): Remove rules for test-unlinkat.
849         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
850         of module 'openat'.
851         * NEWS: Mention the change.
852         * modules/linkat-tests (Depends-on): Add unlinkat.
853         * modules/mkfifoat-tests (Depends-on): Likewise.
854         * modules/readlinkat-tests (Depends-on): Likewise.
855
856 2011-11-02  Bruno Haible  <bruno@clisp.org>
857
858         New module 'fchmodat', split off from module 'openat'.
859         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
860         defined.
861         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
862         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
863         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
864         * modules/fchmodat: New file, extracted from modules/openat.
865         * modules/openat (Files): Remove lib/fchmodat.c.
866         (configure.ac): Remove AC_LIBOBJ of fchmodat.
867         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
868         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
869         (Makefile.am): Remove rules for test-fchmodat.
870         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
871         of module 'openat'.
872         * NEWS: Mention the change.
873
874 2011-11-02  Jim Meyering  <meyering@redhat.com>
875
876         putenv: indent #definition of "environ" to placate cppi
877         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
878
879         gitlog-to-changelog: provide a ChangeLog-repair mechanism
880         Git logs are often treated as immutable, because editing them
881         changes the SHA1 checksums of all descendants.  Thus, errors in
882         git logs tend to stay there forever.  However, when we generate
883         a ChangeLog file -- typically for distribution -- from that git log,
884         we can actually make corrections in the generated file.  The key
885         lies in recording in machine-readable/applicable form the desired
886         corrections.  See --help for description and an example.
887         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
888         (usage): Describe it; alphabetize option descriptions.
889         (main): Honor the new option, carefully.
890
891 2011-11-01  Jim Meyering  <meyering@redhat.com>
892
893         gitlog-to-changelog: avoid an infloop
894         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
895         that ends up being empty.
896
897 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
898
899         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
900         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
901         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
902         contains (possibly-quoted) backslashes.  This should avoid
903         all-too-common shell bugs if COMPLICATED contains backslashes in
904         the "wrong" places.  Reported by David Evans in
905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
906         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
907         because we want ASCII ranges.  Is there some reason we don't use
908         the C locale everywhere in this script?
909         (func_module, top level): Avoid unwanted pathname expansion when
910         $repo_url_prefix or $repo_url_suffix_repl contain shell
911         metacharacters like '?' and '*'.
912
913 2011-11-01  Bruno Haible  <bruno@clisp.org>
914
915         fchownat: Improve description.
916         * modules/fchownat (Description): Add link to function.
917
918 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
919
920         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
921         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
923         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
924
925 2011-11-01  Bruno Haible  <bruno@clisp.org>
926
927         alignof: Avoid collision with stdalign module.
928         * lib/alignof.h (alignof): Remove macro.
929         * NEWS: Mention the change.
930         Reported by Paul Eggert.
931
932 2011-11-01  Bruno Haible  <bruno@clisp.org>
933
934         New module 'fchownat', split off from module 'openat'.
935         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
936         defined.
937         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
938         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
939         invoke gl_FUNC_FCHOWNAT.
940         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
941         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
942         * modules/fchownat: New file, extracted from modules/openat.
943         * modules/openat (Files): Remove lib/fchownat.c.
944         (Depends-on): Remove lchown.
945         (configure.ac): Remove AC_LIBOBJ of fchownat.
946         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
947         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
948         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
949         (Depends-on): Remove mgetgroups, usleep, stat-time.
950         (configure.ac): Remove test for getegid.
951         (Makefile.am): Remove rules for test-fchownat.
952         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
953         of module 'openat'.
954         * NEWS: Mention the change.
955
956 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
957
958         stdalign: port better to MSVC and to Sun C 5.11
959         This fixes some of the problems reported by Bruno Haible in
960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
961         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
962         shortcomings of MSVC and of Sun C 5.11.
963         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
964         around __declspec arg.
965         * modules/stdalign-tests (Files): Add tests/macros.h.
966         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
967         Include macros.h, for ASSERT.
968         (DECLARE_ALIGNED): Remove.
969         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
970         to catch bug), and to 1 if not (simplifies the rest of the code).
971         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
972         (CHECK_AUTO): Remove.
973         (CHECK_ALIGNED): Check only the alignment of the static vars,
974         since auto var alignment isn't supported by Sun C 5.11.
975         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
976         ASSERT failures are easier to diagnose.
977
978 2011-10-31  Bruno Haible  <bruno@clisp.org>
979
980         doc about some IRIX 5.3 problems.
981         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
982         on IRIX 5.3.
983         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
984         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
985         5.3.
986         * doc/posix-functions/grantpt.texi: Likewise.
987         * doc/posix-functions/unlockpt.texi: Likewise.
988         * doc/posix-functions/lgamma.texi: Likewise.
989         * doc/posix-functions/nextafter.texi: Likewise.
990         * doc/posix-functions/remainder.texi: Likewise.
991         * doc/posix-functions/select.texi: Mention misplaced declaration on
992         IRIX 5.3.
993         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
994
995 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
996
997         gitlog-to-changelog: fix git-log invocation.
998         git-log mishandles date strings before 1970-01-01 UTC, and there is
999         no use to specify --since=1970-01-01 by default anyway.
1000         * build-aux/gitlog-to-changelog: By default, when no --since option
1001         was given, do not specify explicit --since option to git-log.
1002
1003 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1004
1005         gitlog-to-changelog: new option --append-dot.
1006         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1007         first non-blank line of each commit message terminated with a dot.
1008
1009 2011-10-30  Bruno Haible  <bruno@clisp.org>
1010
1011         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1012         * lib/ffsl.h: Include <config.h>.
1013         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1014
1015 2011-10-30  Jim Meyering  <meyering@redhat.com>
1016
1017         GNUmakefile: reenable "make syntax-check" for most projects
1018         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1019         build-aux variable", "syntax-check" would do nothing but succeed with
1020         the "No version control files detected..." diagnostic (unless you
1021         happened to override _build-aux via cfg.mk).
1022         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1023         to precede inclusion of maint.mk.  Otherwise, these variables would
1024         be used undefined in any project that does not override the default.
1025
1026 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1027
1028         gitlog-to-changelog: treat a message with only blank lines as empty.
1029         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1030         trailing blank lines before the code that issues a warning about an
1031         empty commit message.
1032
1033 2011-10-30  Jim Meyering  <meyering@redhat.com>
1034
1035         test-parse-datetime.c: avoid new DST-related false positive test failure
1036         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1037         based on the time/date we'll convert, not the current time.
1038         Otherwise, the moment we cross a DST boundary like today's in
1039         Europe, (CEST to CET), that offset ends up being one hour off.
1040
1041 2011-10-27  Bruno Haible  <bruno@clisp.org>
1042
1043         fstat: Tweak documentation.
1044         * modules/fstat (Description): More precise description.
1045
1046 2011-10-27  Bruno Haible  <bruno@clisp.org>
1047
1048         Update documentation regarding 'largefile' module.
1049         * doc/posix-functions/fstat.texi: Tweak wording.
1050         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1051         problems with huge directories and/or small ino_t types.
1052         * doc/posix-functions/readdir.texi: Likewise.
1053         * doc/posix-functions/rewinddir.texi: Likewise.
1054
1055 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1056
1057         maint.mk: don't maintain a second build-aux variable.
1058         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1059         depends on GNUmakefile, which already maintains a cfg.mk
1060         overridable $(_build-aux) for projects with a non-standard
1061         build-aux directory location, although without the $(srcdir)
1062         prefix.  Use that variable consistently instead of introducing a
1063         second one.  Adjust all call sites.
1064
1065 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1066
1067         Add stdalign module and use it in other modules.
1068         This is based on a previous proposal by Bruno Haible
1069         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1070
1071         stdalign: new module
1072         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1073         * modules/stdalign: New files.
1074         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1075         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1076
1077         stdalign-tests: new module
1078         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1079
1080         argp: use stdalign
1081         * lib/argp-parse.c: Include <stdalign.h>.
1082         (alignof): Remove.
1083         * modules/argp (Depends-on): Add stdalign.
1084
1085         crypto libraries: use stdalign
1086         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1087         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1088         Do not include <stdlib.h> twice, in md4.c.
1089         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1090         because we are accessing a pointer's bit-pattern, not a size.
1091         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1092         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1093         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1094         * modules/crypto/sha512: Likewise.
1095
1096         sys_socket: use stdalign, not alignof
1097         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1098         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1099
1100 2011-10-27  Bruno Haible  <bruno@clisp.org>
1101
1102         raise test: Avoid a test failure on Linux/MIPS.
1103         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1104         because 99 is a valid signal on Linux/MIPS.
1105
1106 2011-10-27  Bruno Haible  <bruno@clisp.org>
1107
1108         nonblocking tests: Fix test failure on Linux/MIPS.
1109         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1110         Set to 270000.
1111
1112 2011-10-27  Bruno Haible  <bruno@clisp.org>
1113
1114         utimensat: Work around problem on Linux/hppa.
1115         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1116         values.
1117         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1118
1119 2011-10-25  Jim Meyering  <meyering@redhat.com>
1120
1121         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1122         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1123         after symbols like NULL, size_t, etc.
1124         Reported by Alfred M. Szmidt.
1125
1126         maint.mk: exempt ENODATA from a syntax-check rule
1127         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1128         from the sc_prohibit_always-defined_macros syntax-check rule.
1129         Add a comment.  See this for more details:
1130         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1131
1132 2011-10-23  Jim Meyering  <meyering@redhat.com>
1133
1134         fts: close parent dir FD before returning from post-traversal fts_read
1135         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1136         unlink A, even though an FD open on A remained.  This is suboptimal
1137         (holding a file descriptor open longer than needed), but otherwise not
1138         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1139         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1140         that represents a real problem: it causes the removal of A to fail
1141         with e.g., "rm: cannot remove `A': Device or resource busy"
1142
1143         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1144         directory file descriptors.  After completing the final, FTS_DP,
1145         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1146         cache, but then proceeded to add a new FD to it via the subsequent
1147         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1148         final file descriptor would be closed only via fts_close's call to
1149         fd_ring_clear.  Now, it is usually closed earlier, via the final
1150         FTS_DP-returning fts_read call.
1151         * lib/fts.c (restore_initial_cwd): New function, converted from
1152         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1153         Update callers.
1154         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1155         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1156
1157 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1158             Bruno Haible  <bruno@clisp.org>
1159             Jim Meyering  <jim@meyering.net>
1160
1161         readme-release: improve safety of release prep instructions.
1162         * README-release: Don't git pull all branches when only master
1163         is needed for the release process.
1164         Run make maintainer-clean before changing trees and merging.
1165         Don't try to run ./configure right after git pull in case files
1166         that influence the bootstrap process have changed, move the
1167         ./configure step to after running ./bootstrap.
1168         Don't bootstrap "one last time"... it's the first time!
1169
1170 2011-10-22  Bruno Haible  <bruno@clisp.org>
1171
1172         errno, strerror-override: Support for MSVC 10.
1173         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1174         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1175         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1176         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1177         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1178         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1179         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1180         Assign values compatible with MSVC 10.
1181         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1182         New macros.
1183         (GNULIB_defined_EWINSOCK): New macro.
1184         * lib/strerror-override.c (strerror_override): Update accordingly.
1185         * lib/strerror-override.h: Likewise.
1186         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1187         longer equal to the corresponding errno value.
1188         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1189
1190 2011-10-22  Bruno Haible  <bruno@clisp.org>
1191
1192         perror: Recognize when test program crashes.
1193         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1194         strerror, set gl_cv_func_perror_works to no.
1195         Reported by Daniel Richard G. <skunk@iskunk.org>.
1196
1197         perror: Fix indentation.
1198         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1199
1200 2011-10-22  Bruno Haible  <bruno@clisp.org>
1201
1202         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1203         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1204         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1205         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1206         functions, not as a macro.
1207         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1208         macros.
1209         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1210         absence of macro.
1211         Suggested by Eric Blake.
1212         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1213
1214 2011-10-21  Bruno Haible  <bruno@clisp.org>
1215
1216         relocatable-prog-wrapper: Don't leave object files behind.
1217         * build-aux/install-reloc: Re-synchronize list of .o files to be
1218         removed with list of compilation units.
1219
1220 2011-10-20  Bruno Haible  <bruno@clisp.org>
1221
1222         openpty, posix_openpt: Remove code duplication.
1223         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1224         * lib/openpty.c: Include <stdlib.h>.
1225         (openpty): Use posix_openpt on all platforms except IRIX.
1226         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1227
1228 2011-10-20  Bruno Haible  <bruno@clisp.org>
1229
1230         unlockpt: Detect invalid argument.
1231         * lib/unlockpt.c: Include <fcntl.h>.
1232         (unlockpt): Check whether fd is valid, using fcntl().
1233         * modules/unlockpt (Depends-on): Add fcntl-h.
1234
1235 2011-10-20  Bruno Haible  <bruno@clisp.org>
1236
1237         openpty: Avoid compilation error on AIX 6.1.
1238         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1239
1240 2011-10-20  Bruno Haible  <bruno@clisp.org>
1241
1242         posix_openpt: Support for OpenBSD.
1243         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1244         (posix_openpt) [OpenBSD]: New code.
1245         * lib/grantpt.c: Include <fcntl.h>.
1246         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1247         * modules/grantpt (Depends-on): Add fcntl-h.
1248
1249 2011-10-20  Bruno Haible  <bruno@clisp.org>
1250
1251         posix_openpt test: Coding style.
1252         * tests/test-posix_openpt.c: Use GNU coding style.
1253
1254 2011-10-20  Bruno Haible  <bruno@clisp.org>
1255
1256         grantpt: Support --avoid=pt_chown.
1257         * modules/grantpt (Files): Add lib/pty-private.h.
1258
1259 2011-10-20  Bruno Haible  <bruno@clisp.org>
1260
1261         posix_openpt: Fix autoconf macro.
1262         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1263         unneeded check for _getpty.
1264
1265 2011-10-20  Bruno Haible  <bruno@clisp.org>
1266
1267         openpty: Update comments.
1268         * lib/openpty.c: Add comments about Minix.
1269
1270 2011-10-19  Eric Blake  <eblake@redhat.com>
1271
1272         openpty: relax license
1273         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1274
1275         pt_chown: use configmake to simplify build
1276         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1277
1278         ptsname and others: relax license
1279         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1280         * modules/unlockpt (License): Likewise.
1281         * modules/pt_chown (License): Likewise.
1282         * modules/ptsname (License): Likewise.
1283         * modules/ttyname_r (License): Likewise.
1284
1285 2011-10-19  Jim Meyering  <meyering@redhat.com>
1286
1287         posix_openpt: remove spurious #endif
1288         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1289
1290 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1291
1292         maint.mk: Respect $(build_aux) in web-manual rule.
1293         * top/maint.mk (web-manual): Find gen-announce script in user's
1294         $(build_aux) directory instead of hard-coding 'build-aux'.
1295
1296 2011-10-19  Bruno Haible  <bruno@clisp.org>
1297
1298         posix_openpt: Fix compilation error.
1299         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1300         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1301         Mention the openpty module as an alternative.
1302
1303 2011-10-19  Bruno Haible  <bruno@clisp.org>
1304
1305         Support for old NeXTstep 3.3 frexp().
1306         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1307         execution time of the test to 5 seconds.
1308         Reported by Daniel Richard G. <skunk@iskunk.org>.
1309
1310 2011-10-19  Bruno Haible  <bruno@clisp.org>
1311
1312         Support for old NeXTstep 3.3 sed.
1313         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1314         part, use /.../, not \|...|. Escape periods in the header file name.
1315         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1316         Reported by Daniel Richard G. <skunk@iskunk.org>.
1317
1318 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1319
1320         Support for old NeXTstep 3.3 gcc.
1321         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1322         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1323         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1324         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1325         * lib/regex.h (_Restrict_arr_): Likewise.
1326         * lib/regex_internal.h (re_token_t): Likewise.
1327         * lib/regexec.c (check_node_accept_bytes): Likewise.
1328         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1329
1330 2011-10-18  Eric Blake  <eblake@redhat.com>
1331
1332         posix_openpt: new module
1333         * modules/posix_openpt: New module.
1334         * m4/posix_openpt.m4: New file.
1335         * lib/posix_openpt.c: Likewise.
1336         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1337         (gl_STDLIB_H_DEFAULTS): Set defaults.
1338         * modules/stdlib (Makefile.am): Substitute macros.
1339         * lib/stdlib.in.h (posix_openpt): Declare.
1340         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1341         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1342         * modules/posix_openpt-tests: New test module.
1343         * tests/test-posix_openpt.c: New test.
1344
1345 2011-10-15  Bruno Haible  <bruno@clisp.org>
1346
1347         xstrtoll: Fix compilation failure.
1348         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1349         from lib/strtol.c.
1350         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1351         some platforms.
1352         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1353
1354 2011-10-15  Bruno Haible  <bruno@clisp.org>
1355
1356         vasnprintf: Optimize bit search operation.
1357         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1358         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1359         gl_DOUBLE_EXPONENT_LOCATION.
1360         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1361         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1362         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1363         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1364         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1365         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1366         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1367         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1368         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1369
1370 2011-10-15  Bruno Haible  <bruno@clisp.org>
1371
1372         vasnprintf: Fix comments.
1373         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1374
1375 2011-10-14  Bruno Haible  <bruno@clisp.org>
1376
1377         Tests for module 'integer_length_ll'.
1378         * modules/integer_length_ll-tests: New file.
1379         * tests/test-integer_length_ll.c: New file.
1380
1381         New module 'integer_length_ll'.
1382         * lib/integer_length_ll.c: New file.
1383         * modules/integer_length_ll: New file.
1384
1385 2011-10-14  Bruno Haible  <bruno@clisp.org>
1386
1387         Tests for module 'integer_length_l'.
1388         * modules/integer_length_l-tests: New file.
1389         * tests/test-integer_length_l.c: New file.
1390
1391         New module 'integer_length_l'.
1392         * lib/integer_length_l.c: New file.
1393         * modules/integer_length_l: New file.
1394
1395 2011-10-14  Bruno Haible  <bruno@clisp.org>
1396
1397         Tests for module 'integer_length'.
1398         * modules/integer_length-tests: New file.
1399         * tests/test-integer_length.c: New file.
1400
1401         New module 'integer_length'.
1402         * lib/integer_length.h: New file.
1403         * lib/integer_length.c: New file.
1404         * modules/integer_length: New file.
1405
1406 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1407
1408         popen: Fix dependency conditions.
1409         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1410
1411 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1412
1413         perror: Fix autoconf test.
1414         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1415         <stdlib.h> and <string.h>.
1416
1417 2011-10-14  Bruno Haible  <bruno@clisp.org>
1418
1419         ffsl: Optimize on 64-bit platforms.
1420         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1421         unrolling.
1422
1423 2011-10-13  Bruno Haible  <bruno@clisp.org>
1424
1425         ffsl: Optimize on 32-bit platforms.
1426         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1427         use ffs() without a loop.
1428
1429         ffsl, ffsll: Optimize for GCC.
1430         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1431         * lib/ffsl.c (GCC_BUILTIN): New macro.
1432         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1433
1434 2011-10-13  Bruno Haible  <bruno@clisp.org>
1435
1436         ffs, bcopy, memset: Support symbol renaming via config.h.
1437         * lib/ffs.c: Include <config.h>.
1438         * lib/bcopy.c: Likewise.
1439         * lib/memset.c: Likewise.
1440
1441 2011-10-10  Bruno Haible  <bruno@clisp.org>
1442
1443         atanl: Simplify for platforms where 'long double' == 'double'.
1444         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1445         alternative implementation.
1446         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1447         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1448         * modules/atanl (Depends-on): Add atan. Update conditions.
1449
1450 2011-10-10  Bruno Haible  <bruno@clisp.org>
1451
1452         acosl: Simplify for platforms where 'long double' == 'double'.
1453         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1454         alternative implementation.
1455         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1456         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1457         * modules/acosl (Depends-on): Add acos. Update conditions.
1458
1459 2011-10-10  Bruno Haible  <bruno@clisp.org>
1460
1461         asinl: Simplify for platforms where 'long double' == 'double'.
1462         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1463         alternative implementation.
1464         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1465         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1466         * modules/asinl (Depends-on): Add asin. Update conditions.
1467
1468 2011-10-10  Bruno Haible  <bruno@clisp.org>
1469
1470         tanl: Simplify for platforms where 'long double' == 'double'.
1471         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1472         implementation.
1473         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1474         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1475         * modules/tanl (Depends-on): Add tan. Update conditions.
1476         (configure.ac): Don't compile trigl.c if
1477         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1478
1479 2011-10-10  Bruno Haible  <bruno@clisp.org>
1480
1481         cosl: Simplify for platforms where 'long double' == 'double'.
1482         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1483         implementation.
1484         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1485         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1486         * modules/cosl (Depends-on): Add cos. Update conditions.
1487         (configure.ac): Don't compile sincosl.c and trigl.c if
1488         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1489
1490 2011-10-10  Bruno Haible  <bruno@clisp.org>
1491
1492         sinl: Simplify for platforms where 'long double' == 'double'.
1493         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1494         implementation.
1495         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1496         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1497         * modules/sinl (Depends-on): Add sin. Update conditions.
1498         (configure.ac): Don't compile sincosl.c and trigl.c if
1499         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1500
1501 2011-10-10  Bruno Haible  <bruno@clisp.org>
1502
1503         logl: Simplify for platforms where 'long double' == 'double'.
1504         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1505         implementation.
1506         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1507         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1508         * modules/logl (Depends-on): Add log. Update conditions.
1509
1510 2011-10-10  Bruno Haible  <bruno@clisp.org>
1511
1512         expl: Simplify for platforms where 'long double' == 'double'.
1513         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1514         implementation.
1515         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1516         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1517         * modules/expl (Depends-on): Add exp. Update conditions.
1518
1519 2011-10-10  Bruno Haible  <bruno@clisp.org>
1520
1521         sqrtl: Simplify for platforms where 'long double' == 'double'.
1522         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1523         alternative implementation.
1524         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1525         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1526         * modules/sqrtl (Depends-on): Update conditions.
1527
1528 2011-10-10  Bruno Haible  <bruno@clisp.org>
1529
1530         ldexpl: Simplify for platforms where 'long double' == 'double'.
1531         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1532         alternative implementation.
1533         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1534         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1535         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1536
1537 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1538
1539         ffsll: set correct witness
1540         * modules/ffsll (configure.ac): Fix typo.
1541
1542 2011-10-10  Bruno Haible  <bruno@clisp.org>
1543
1544         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1545         * lib/printf-frexpl.c: Include <config.h>.
1546         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1547         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1548         second time.
1549         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1550         gl_LONG_DOUBLE_VS_DOUBLE.
1551         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1552         conditions.
1553
1554 2011-10-10  Bruno Haible  <bruno@clisp.org>
1555
1556         frexpl: Simplify for platforms where 'long double' == 'double'.
1557         * lib/frexpl.c: Include <config.h>.
1558         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1559         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1560         time.
1561         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1562         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1563         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1564         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1565         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1566         conditions.
1567
1568 2011-10-10  Jim Meyering  <meyering@redhat.com>
1569
1570         test-renameat: don't leave behind a temporary file
1571         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1572           ERROR: files left in build directory after distclean:
1573           ./gltests/test-renameat.too
1574           make[1]: *** [distcleancheck] Error 1
1575         Reported by Tom G. Christensen.
1576
1577 2011-10-09  Bruno Haible  <bruno@clisp.org>
1578
1579         rint: Determine RINT_LIBM correctly on AIX 7.
1580         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1581         directly, not only through a function pointer. Also accept an optional
1582         4th argument with extra code.
1583         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1584         rintf() call by gcc when optimizing.
1585
1586         mathfunc.m4: Refactor.
1587         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1588         m4 variable.
1589
1590 2011-10-09  Bruno Haible  <bruno@clisp.org>
1591
1592         rintl: Simplify for platforms where 'long double' == 'double'.
1593         * lib/rintl.c: Include <config.h>.
1594         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1595         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1596         time.
1597         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1598         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1599         * modules/rintl (Depends-on): Add rint. Update conditions.
1600
1601 2011-10-09  Bruno Haible  <bruno@clisp.org>
1602
1603         roundl: Simplify for platforms where 'long double' == 'double'.
1604         * lib/roundl.c: Include <config.h>.
1605         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1606         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1607         time.
1608         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1609         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1610         * modules/roundl (Depends-on): Add round. Update conditions.
1611
1612 2011-10-09  Bruno Haible  <bruno@clisp.org>
1613
1614         truncl: Simplify for platforms where 'long double' == 'double'.
1615         * lib/truncl.c: Include <config.h>.
1616         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1617         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1618         time.
1619         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1620         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1621         * modules/truncl (Depends-on): Add trunc. Update conditions.
1622
1623 2011-10-09  Bruno Haible  <bruno@clisp.org>
1624
1625         ceill: Simplify for platforms where 'long double' == 'double'.
1626         * lib/ceill.c: Include <config.h>.
1627         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1628         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1629         time.
1630         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1631         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1632         * modules/ceill (Depends-on): Add ceil. Update conditions.
1633
1634 2011-10-09  Bruno Haible  <bruno@clisp.org>
1635
1636         floorl: Simplify for platforms where 'long double' == 'double'.
1637         * lib/floorl.c: Include <config.h>.
1638         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1639         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1640         time.
1641         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1642         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1643         * modules/floorl (Depends-on): Add floor. Update conditions.
1644
1645 2011-10-09  Bruno Haible  <bruno@clisp.org>
1646
1647         rint: Fix ordering constraints.
1648         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1649         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1650         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1651
1652 2011-10-09  Bruno Haible  <bruno@clisp.org>
1653
1654         copysignl: Simplify for platforms where 'long double' == 'double'.
1655         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1656         alternative.
1657         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1658         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1659         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1660
1661 2011-10-09  Bruno Haible  <bruno@clisp.org>
1662
1663         Tests for module 'rintl'.
1664         * modules/rintl-tests: New file.
1665         * tests/test-rintl.c: New file.
1666
1667         New module 'rintl'.
1668         * lib/math.in.h (rintl): New declaration.
1669         * lib/rintl.c: New file.
1670         * m4/rintl.m4: New file.
1671         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1673         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1674         * modules/rintl: New file.
1675         * tests/test-math-c++.cc: Check the declaration of rintl.
1676         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1677         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1678         * doc/posix-functions/rintl.texi: Mention the new module.
1679
1680 2011-10-09  Bruno Haible  <bruno@clisp.org>
1681
1682         Tests for module 'rintf'.
1683         * modules/rintf-tests: New file.
1684         * tests/test-rintf.c: New file.
1685
1686         New module 'rintf'.
1687         * lib/math.in.h (rintf): New declaration.
1688         * lib/rintf.c: New file.
1689         * m4/rintf.m4: New file.
1690         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1692         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1693         * modules/rintf: New file.
1694         * tests/test-math-c++.cc: Check the declaration of rintf.
1695         * doc/posix-functions/rintf.texi: Mention the new module.
1696
1697 2011-10-09  Bruno Haible  <bruno@clisp.org>
1698
1699         rint: Support for MSVC.
1700         * lib/math.in.h (rint): New declaration.
1701         * lib/rint.c: New file.
1702         * m4/rint.m4: New file.
1703         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1705         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1706         * modules/rint (Description): Fix.
1707         (Files): Add lib/rint.c, m4/rint.m4.
1708         (Depends-on): Add math.
1709         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1710         gl_MATH_MODULE_INDICATOR.
1711         * tests/test-math-c++.cc: Check the declaration of rint.
1712         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1713         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1714         * doc/posix-functions/rint.texi: Mention the replacement provided by
1715         the module.
1716
1717         rint tests: More tests.
1718         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1719         minus-zero.h, infinity.h, nan.h.
1720         (main): Skip the test if the current rounding mode is not standard. Add
1721         tests for negative numbers, minus zero, infinity, NaN.
1722         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1723         tests/nan.h.
1724         (Depends-on): Add isnand-nolibm.
1725
1726 2011-10-09  Bruno Haible  <bruno@clisp.org>
1727
1728         Tests for module 'copysignl'.
1729         * modules/copysignl-tests: New file.
1730         * tests/test-copysignl.c: New file.
1731
1732         New module 'copysignl'.
1733         * lib/math.in.h (copysignl): New declaration.
1734         * lib/copysignl.c: New file.
1735         * m4/copysignl.m4: New file.
1736         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1738         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1739         HAVE_COPYSIGNL.
1740         * modules/copysignl: New file.
1741         * tests/test-math-c++.cc: Check the declaration of copysignl.
1742         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1743         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1744         * doc/posix-functions/copysignl.texi: Mention the new module.
1745
1746 2011-10-09  Bruno Haible  <bruno@clisp.org>
1747
1748         Tests for module 'copysignf'.
1749         * modules/copysignf-tests: New file.
1750         * tests/test-copysignf.c: New file.
1751
1752         New module 'copysignf'.
1753         * lib/math.in.h (copysignf): New declaration.
1754         * lib/copysignf.c: New file.
1755         * m4/copysignf.m4: New file.
1756         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1758         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1759         HAVE_COPYSIGNF.
1760         * modules/copysignf: New file.
1761         * tests/test-math-c++.cc: Check the declaration of copysignf.
1762         * doc/posix-functions/copysignf.texi: Mention the new module.
1763
1764 2011-10-09  Bruno Haible  <bruno@clisp.org>
1765
1766         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1767         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1768         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1769         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1770         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1771         gl_SIGNAL_H_DEFAULTS.
1772
1773 2011-10-09  Bruno Haible  <bruno@clisp.org>
1774
1775         poll: Make macro safer.
1776         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1777         ac_cv_header_poll_h is not set.
1778
1779 2011-10-09  Bruno Haible  <bruno@clisp.org>
1780
1781         copysign: Provide replacement.
1782         * lib/math.in.h (copysign): New declaration.
1783         * lib/copysign.c: New file.
1784         * m4/copysign.m4: New file.
1785         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1787         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1788         HAVE_COPYSIGN.
1789         * modules/copysign (Description): Clarify.
1790         (Files): Add lib/copysign.c, m4/copysign.m4.
1791         (Depends-on): Add math, signbit.
1792         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1793         gl_MATH_MODULE_INDICATOR.
1794         * tests/test-math-c++.cc: Check the declaration of copysign.
1795         * doc/posix-functions/copysign.texi: Mention the effects of the module
1796         on Minix and MSVC.
1797
1798 2011-10-09  Bruno Haible  <bruno@clisp.org>
1799
1800         isinf: Ensure macro on AIX 5.1.
1801         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1802         macro.
1803         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1804
1805 2011-10-09  Bruno Haible  <bruno@clisp.org>
1806
1807         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1808         * modules/snprintf-posix-tests (configure.ac): Require
1809         gl_LONG_DOUBLE_VS_DOUBLE.
1810         * modules/sprintf-posix-tests (configure.ac): Likewise.
1811         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1812         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1813         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1814         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1815         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1816         tests on platforms where 'long double' is the same as 'double'.
1817         * tests/test-sprintf-posix.h (test_function): Likewise.
1818         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1819         * tests/test-vasprintf-posix.c (test_function): Likewise.
1820
1821         *printf: Fix for platforms where 'long double' == 'double'.
1822         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1823         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1824         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1825         * modules/fprintf-posix (Files): Likewise.
1826         * modules/obstack-printf-posix (Files): Likewise.
1827         * modules/snprintf-posix (Files): Likewise.
1828         * modules/sprintf-posix (Files): Likewise.
1829         * modules/vasnprintf (Files): Likewise.
1830         * modules/vasnprintf-posix (Files): Likewise.
1831         * modules/vasprintf-posix (Files): Likewise.
1832         * modules/vdprintf-posix (Files): Likewise.
1833         * modules/vfprintf-posix (Files): Likewise.
1834         * modules/vsnprintf-posix (Files): Likewise.
1835         * modules/vsprintf-posix (Files): Likewise.
1836         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1837         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1838         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1839         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1840         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1841         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1842         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1843
1844         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1845         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1846         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1847         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1848         'long double'.
1849         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1850
1851         isinf: Fix for platforms where 'long double' == 'double'.
1852         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1853         Don't blindly assume 80-bit 'long double'.
1854
1855         isfinite: Fix for platforms where 'long double' == 'double'.
1856         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1857         Don't blindly assume 80-bit 'long double'.
1858
1859         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1860         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1861         * modules/isfinite-tests (configure.ac): Require
1862         gl_LONG_DOUBLE_VS_DOUBLE.
1863         * modules/isinf-tests (configure.ac): Likewise.
1864         * modules/isnan-tests (configure.ac): Likewise.
1865         * modules/isnanl-tests (configure.ac): Likewise.
1866         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1867         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1868         tests on platforms where 'long double' is the same as 'double'.
1869         * tests/test-isinf.c (test_isinfl): Likewise.
1870         * tests/test-isnan.c (test_long_double): Likewise.
1871         * tests/test-isnanl.h (main): Likewise.
1872
1873 2011-10-08  Bruno Haible  <bruno@clisp.org>
1874
1875         Tests for module 'tanhf'.
1876         * modules/tanhf-tests: New file.
1877         * tests/test-tanhf.c: New file.
1878
1879         New module 'tanhf'.
1880         * lib/math.in.h (tanhf): New declaration.
1881         * lib/tanhf.c: New file.
1882         * m4/tanhf.m4: New file.
1883         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1885         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1886         * modules/tanhf: New file.
1887         * tests/test-math-c++.cc: Check the declaration of tanhf.
1888         * doc/posix-functions/tanhf.texi: Mention the new module.
1889
1890         tanh: Use a .m4 file.
1891         * m4/tanh.m4: New file.
1892         * modules/tanh (Files): Add it.
1893         (configure.ac): Just invoke gl_FUNC_TANH.
1894
1895 2011-10-08  Bruno Haible  <bruno@clisp.org>
1896
1897         Tests for module 'coshf'.
1898         * modules/coshf-tests: New file.
1899         * tests/test-coshf.c: New file.
1900
1901         New module 'coshf'.
1902         * lib/math.in.h (coshf): New declaration.
1903         * lib/coshf.c: New file.
1904         * m4/coshf.m4: New file.
1905         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1907         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1908         * modules/coshf: New file.
1909         * tests/test-math-c++.cc: Check the declaration of coshf.
1910         * doc/posix-functions/coshf.texi: Mention the new module.
1911
1912         cosh: Use a .m4 file.
1913         * m4/cosh.m4: New file.
1914         * modules/cosh (Files): Add it.
1915         (configure.ac): Just invoke gl_FUNC_COSH.
1916
1917 2011-10-08  Bruno Haible  <bruno@clisp.org>
1918
1919         Tests for module 'sinhf'.
1920         * modules/sinhf-tests: New file.
1921         * tests/test-sinhf.c: New file.
1922
1923         New module 'sinhf'.
1924         * lib/math.in.h (sinhf): New declaration.
1925         * lib/sinhf.c: New file.
1926         * m4/sinhf.m4: New file.
1927         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1929         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1930         * modules/sinhf: New file.
1931         * tests/test-math-c++.cc: Check the declaration of sinhf.
1932         * doc/posix-functions/sinhf.texi: Mention the new module.
1933
1934         sinh: Use a .m4 file.
1935         * m4/sinh.m4: New file.
1936         * modules/sinh (Files): Add it.
1937         (configure.ac): Just invoke gl_FUNC_SINH.
1938
1939 2011-10-08  Bruno Haible  <bruno@clisp.org>
1940
1941         Tests for module 'atan2f'.
1942         * modules/atan2f-tests: New file.
1943         * tests/test-atan2f.c: New file.
1944
1945         New module 'atan2f'.
1946         * lib/math.in.h (atan2f): New declaration.
1947         * lib/atan2f.c: New file.
1948         * m4/atan2f.m4: New file.
1949         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1951         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1952         * modules/atan2f: New file.
1953         * tests/test-math-c++.cc: Check the declaration of atan2f.
1954         * doc/posix-functions/atan2f.texi: Mention the new module.
1955
1956         atan2: Use a .m4 file.
1957         * m4/atan2.m4: New file.
1958         * modules/atan2 (Files): Add it.
1959         (configure.ac): Just invoke gl_FUNC_ATAN2.
1960
1961 2011-10-08  Bruno Haible  <bruno@clisp.org>
1962
1963         Tests for module 'atanf'.
1964         * modules/atanf-tests: New file.
1965         * tests/test-atanf.c: New file.
1966
1967         New module 'atanf'.
1968         * lib/math.in.h (atanf): New declaration.
1969         * lib/atanf.c: New file.
1970         * m4/atanf.m4: New file.
1971         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1973         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1974         * modules/atanf: New file.
1975         * tests/test-math-c++.cc: Check the declaration of atanf.
1976         * doc/posix-functions/atanf.texi: Mention the new module.
1977
1978         atan: Use a .m4 file.
1979         * m4/atan.m4: New file.
1980         * modules/atan (Files): Add it.
1981         (configure.ac): Just invoke gl_FUNC_ATAN.
1982
1983 2011-10-08  Bruno Haible  <bruno@clisp.org>
1984
1985         Tests for module 'acosf'.
1986         * modules/acosf-tests: New file.
1987         * tests/test-acosf.c: New file.
1988
1989         New module 'acosf'.
1990         * lib/math.in.h (acosf): New declaration.
1991         * lib/acosf.c: New file.
1992         * m4/acosf.m4: New file.
1993         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1994         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1995         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1996         * modules/acosf: New file.
1997         * tests/test-math-c++.cc: Check the declaration of acosf.
1998         * doc/posix-functions/acosf.texi: Mention the new module.
1999
2000         acos: Use a .m4 file.
2001         * m4/acos.m4: New file.
2002         * modules/acos (Files): Add it.
2003         (configure.ac): Just invoke gl_FUNC_ACOS.
2004
2005 2011-10-08  Bruno Haible  <bruno@clisp.org>
2006
2007         Tests for module 'asinf'.
2008         * modules/asinf-tests: New file.
2009         * tests/test-asinf.c: New file.
2010
2011         New module 'asinf'.
2012         * lib/math.in.h (asinf): New declaration.
2013         * lib/asinf.c: New file.
2014         * m4/asinf.m4: New file.
2015         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2017         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2018         * modules/asinf: New file.
2019         * tests/test-math-c++.cc: Check the declaration of asinf.
2020         * doc/posix-functions/asinf.texi: Mention the new module.
2021
2022         asin: Use a .m4 file.
2023         * m4/asin.m4: New file.
2024         * modules/asin (Files): Add it.
2025         (configure.ac): Just invoke gl_FUNC_ASIN.
2026
2027 2011-10-08  Bruno Haible  <bruno@clisp.org>
2028
2029         Tests for module 'tanf'.
2030         * modules/tanf-tests: New file.
2031         * tests/test-tanf.c: New file.
2032
2033         New module 'tanf'.
2034         * lib/math.in.h (tanf): New declaration.
2035         * lib/tanf.c: New file.
2036         * m4/tanf.m4: New file.
2037         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2039         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2040         * modules/tanf: New file.
2041         * tests/test-math-c++.cc: Check the declaration of tanf.
2042         * doc/posix-functions/tanf.texi: Mention the new module.
2043
2044         tan: Use a .m4 file.
2045         * m4/tan.m4: New file.
2046         * modules/tan (Files): Add it.
2047         (configure.ac): Just invoke gl_FUNC_TAN.
2048
2049 2011-10-08  Bruno Haible  <bruno@clisp.org>
2050
2051         Tests for module 'cosf'.
2052         * modules/cosf-tests: New file.
2053         * tests/test-cosf.c: New file.
2054
2055         New module 'cosf'.
2056         * lib/math.in.h (cosf): New declaration.
2057         * lib/cosf.c: New file.
2058         * m4/cosf.m4: New file.
2059         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2061         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2062         * modules/cosf: New file.
2063         * tests/test-math-c++.cc: Check the declaration of cosf.
2064         * doc/posix-functions/cosf.texi: Mention the new module.
2065
2066         cos: Use a .m4 file.
2067         * m4/cos.m4: New file.
2068         * modules/cos (Files): Add it.
2069         (configure.ac): Just invoke gl_FUNC_COS.
2070
2071 2011-10-08  Bruno Haible  <bruno@clisp.org>
2072
2073         Tests for module 'sinf'.
2074         * modules/sinf-tests: New file.
2075         * tests/test-sinf.c: New file.
2076
2077         New module 'sinf'.
2078         * lib/math.in.h (sinf): New declaration.
2079         * lib/sinf.c: New file.
2080         * m4/sinf.m4: New file.
2081         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2083         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2084         * modules/sinf: New file.
2085         * tests/test-math-c++.cc: Check the declaration of sinf.
2086         * doc/posix-functions/sinf.texi: Mention the new module.
2087
2088         sin: Use a .m4 file.
2089         * m4/sin.m4: New file.
2090         * modules/sin (Files): Add it.
2091         (configure.ac): Just invoke gl_FUNC_SIN.
2092
2093 2011-10-08  Bruno Haible  <bruno@clisp.org>
2094
2095         Tests for module 'powf'.
2096         * modules/powf-tests: New file.
2097         * tests/test-powf.c: New file.
2098
2099         New module 'powf'.
2100         * lib/math.in.h (powf): New declaration.
2101         * lib/powf.c: New file.
2102         * m4/powf.m4: New file.
2103         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2105         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2106         * modules/powf: New file.
2107         * tests/test-math-c++.cc: Check the declaration of powf.
2108         * doc/posix-functions/powf.texi: Mention the new module.
2109
2110         pow: Use a .m4 file.
2111         * m4/pow.m4: New file.
2112         * modules/pow (Files): Add it.
2113         (configure.ac): Just invoke gl_FUNC_POW.
2114
2115 2011-10-08  Bruno Haible  <bruno@clisp.org>
2116
2117         Tests for module 'log10f'.
2118         * modules/log10f-tests: New file.
2119         * tests/test-log10f.c: New file.
2120
2121         New module 'log10f'.
2122         * lib/math.in.h (log10f): New declaration.
2123         * lib/log10f.c: New file.
2124         * m4/log10f.m4: New file.
2125         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2127         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2128         * modules/log10f: New file.
2129         * tests/test-math-c++.cc: Check the declaration of log10f.
2130         * doc/posix-functions/log10f.texi: Mention the new module.
2131
2132         log10: Use a .m4 file.
2133         * m4/log10.m4: New file.
2134         * modules/log10 (Files): Add it.
2135         (configure.ac): Just invoke gl_FUNC_LOG10.
2136
2137 2011-10-08  Bruno Haible  <bruno@clisp.org>
2138
2139         Tests for module 'logf'.
2140         * modules/logf-tests: New file.
2141         * tests/test-logf.c: New file.
2142
2143         New module 'logf'.
2144         * lib/math.in.h (logf): New declaration.
2145         * lib/logf.c: New file.
2146         * m4/logf.m4: New file.
2147         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2148         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2149         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2150         * modules/logf: New file.
2151         * tests/test-math-c++.cc: Check the declaration of logf.
2152         * doc/posix-functions/logf.texi: Mention the new module.
2153
2154         log: Use a .m4 file.
2155         * m4/log.m4: New file.
2156         * modules/log (Files): Add it.
2157         (configure.ac): Just invoke gl_FUNC_LOG.
2158
2159 2011-10-08  Bruno Haible  <bruno@clisp.org>
2160
2161         Tests for module 'expf'.
2162         * modules/expf-tests: New file.
2163         * tests/test-expf.c: New file.
2164
2165         New module 'expf'.
2166         * lib/math.in.h (expf): New declaration.
2167         * lib/expf.c: New file.
2168         * m4/expf.m4: New file.
2169         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2171         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2172         * modules/expf: New file.
2173         * tests/test-math-c++.cc: Check the declaration of expf.
2174         * doc/posix-functions/expf.texi: Mention the new module.
2175
2176         exp: Use a .m4 file.
2177         * m4/exp.m4: New file.
2178         * modules/exp (Files): Add it.
2179         (configure.ac): Just invoke gl_FUNC_EXP.
2180
2181 2011-10-08  Bruno Haible  <bruno@clisp.org>
2182
2183         Tests for module 'sqrtf'.
2184         * modules/sqrtf-tests: New file.
2185         * tests/test-sqrtf.c: New file.
2186
2187         New module 'sqrtf'.
2188         * lib/math.in.h (sqrtf): New declaration.
2189         * lib/sqrtf.c: New file.
2190         * m4/sqrtf.m4: New file.
2191         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2193         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2194         * modules/sqrtf: New file.
2195         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2196         * doc/posix-functions/sqrtf.texi: Mention the new module.
2197
2198 2011-10-08  Bruno Haible  <bruno@clisp.org>
2199
2200         Tests: Avoid link failures w.r.t. libintl.
2201         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2202         $(LIBINTL).
2203         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2204         $(LIBINTL).
2205         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2206         against $(LIBINTL).
2207         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2208         $(LIBINTL).
2209         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2210         $(LIBINTL).
2211         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2212
2213 2011-10-08  Bruno Haible  <bruno@clisp.org>
2214
2215         pow tests: Defeat compiler optimizations.
2216         * tests/test-pow.c (main): Assign arguments to x and y before use.
2217
2218 2011-10-08  Bruno Haible  <bruno@clisp.org>
2219
2220         gnulib-tool: Improve last commit.
2221         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2222         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2223         ignore dependencies that are not among the modules list.
2224
2225 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2226
2227         gnulib-tool: don't follow dependencies to avoided modules
2228         This fixes a bug that is related to the previous one.
2229         * gnulib-tool (func_modules_transitive_closure)
2230         (func_emit_autoconf_snippets):
2231         Check whether a dependency is acceptable before using it.
2232         (--extract-dependencies): Report an error if --avoid is also used,
2233         since this combination of options is not yet supported.
2234
2235         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2236         Problem reported by Peter Dyballa in
2237         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2238         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2239         when echoing "$condition".
2240
2241 2011-10-07  Bruno Haible  <bruno@clisp.org>
2242
2243         Fix documentation about math functions on MacOS X.
2244         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2245         MacOS X 10.5.
2246         * doc/posix-functions/fdim.texi: Likewise.
2247         * doc/posix-functions/feclearexcept.texi: Likewise.
2248         * doc/posix-functions/fegetenv.texi: Likewise.
2249         * doc/posix-functions/fegetround.texi: Likewise.
2250         * doc/posix-functions/feholdexcept.texi: Likewise.
2251         * doc/posix-functions/feraiseexcept.texi: Likewise.
2252         * doc/posix-functions/fesetenv.texi: Likewise.
2253         * doc/posix-functions/fesetround.texi: Likewise.
2254         * doc/posix-functions/fetestexcept.texi: Likewise.
2255         * doc/posix-functions/feupdateenv.texi: Likewise.
2256         * doc/posix-functions/fmax.texi: Likewise.
2257         * doc/posix-functions/fmin.texi: Likewise.
2258         * doc/posix-functions/log2.texi: Likewise.
2259         * doc/posix-functions/modff.texi: Likewise.
2260         * doc/posix-functions/nan.texi: Likewise.
2261         * doc/posix-functions/nanf.texi: Likewise.
2262         * doc/posix-functions/nextafterf.texi: Likewise.
2263         * doc/posix-functions/remquo.texi: Likewise.
2264
2265 2011-10-07  Bruno Haible  <bruno@clisp.org>
2266
2267         modff: Drop assumption about library that defines modff.
2268         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2269         AC_CHECK_FUNCS.
2270         * modules/modff (Files): Add m4/mathfunc.m4.
2271
2272 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2273
2274         raise tests: Avoid a GCC warning.
2275         * tests/test-raise.c (handler): Use _Noreturn.
2276
2277 2011-10-07  Bruno Haible  <bruno@clisp.org>
2278
2279         Tests for module 'ldexpf'.
2280         * modules/ldexpf-tests: New file.
2281         * tests/test-ldexpf.c: New file.
2282
2283         New module 'ldexpf'.
2284         * lib/math.in.h (ldexpf): New declaration.
2285         * lib/ldexpf.c: New file.
2286         * m4/ldexpf.m4: New file.
2287         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2289         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2290         * modules/ldexpf: New file.
2291         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2292         * doc/posix-functions/ldexpf.texi: Mention the new module.
2293
2294 2011-10-06  Bruno Haible  <bruno@clisp.org>
2295
2296         frexpf: Work around problems on IRIX and mingw.
2297         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2299         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2300         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2301         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2302         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2303         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2304
2305 2011-10-06  Bruno Haible  <bruno@clisp.org>
2306
2307         fabsf: Drop assumption about library that defines fabsf.
2308         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2309         AC_CHECK_FUNCS.
2310         * modules/fabsf (Files): Add m4/mathfunc.m4.
2311
2312 2011-10-06  Bruno Haible  <bruno@clisp.org>
2313
2314         frexpf: Drop assumption about library that defines frexpf.
2315         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2316         'int *', 'float *', 'long double *', 'float', 'long double'.
2317         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2318         AC_CHECK_FUNCS.
2319         * modules/frexpf (Files): Add m4/mathfunc.m4.
2320
2321         Tests for module 'frexpf'.
2322         * modules/frexpf-tests: New file.
2323         * tests/test-frexpf.c: New file.
2324
2325         New module 'frexpf'.
2326         * lib/math.in.h (frexpf): New declaration.
2327         * lib/frexpf.c: New file.
2328         * m4/frexpf.m4: New file.
2329         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2331         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2332         * modules/frexpf: New file.
2333         * tests/test-math-c++.cc: Check the declaration of frexpf.
2334         * doc/posix-functions/frexpf.texi: Mention the new module.
2335
2336 2011-10-06  Bruno Haible  <bruno@clisp.org>
2337
2338         math: Sort function declarations of math.in.h.
2339         * lib/math.in.h (frexp, logb): Move declarations.
2340
2341 2011-10-05  Bruno Haible  <bruno@clisp.org>
2342
2343         Tests for module 'modff'.
2344         * modules/modff-tests: New file.
2345         * tests/test-modff.c: New file.
2346
2347         New module 'modff'.
2348         * lib/math.in.h (modff): New declaration.
2349         * lib/modff.c: New file.
2350         * m4/modff.m4: New file.
2351         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2353         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2354         * modules/modff: New file.
2355         * tests/test-math-c++.cc: Check the declaration of modff.
2356         * doc/posix-functions/modff.texi: Mention the new module.
2357
2358         modf tests: Make test sharper.
2359         * tests/test-modf.c (main): Strengthen upper bound.
2360
2361         modf: Use a .m4 file.
2362         * m4/modf.m4: New file.
2363         * modules/modf (Files): Add it.
2364         (configure.ac): Just invoke gl_FUNC_MODF.
2365
2366 2011-10-05  Bruno Haible  <bruno@clisp.org>
2367
2368         Tests for module 'fmodf'.
2369         * modules/fmodf-tests: New file.
2370         * tests/test-fmodf.c: New file.
2371
2372         New module 'fmodf'.
2373         * lib/math.in.h (fmodf): New declaration.
2374         * lib/fmodf.c: New file.
2375         * m4/fmodf.m4: New file.
2376         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2378         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2379         * modules/fmodf: New file.
2380         * tests/test-math-c++.cc: Check the declaration of fmodf.
2381         * doc/posix-functions/fmodf.texi: Mention the new module.
2382
2383         fmod: Use a .m4 file.
2384         * m4/fmod.m4: New file.
2385         * modules/fmod (Files): Add it.
2386         (configure.ac): Just invoke gl_FUNC_FMOD.
2387
2388 2011-10-05  Bruno Haible  <bruno@clisp.org>
2389
2390         Tests for module 'fabsf'.
2391         * modules/fabsf-tests: New file.
2392         * tests/test-fabsf.c: New file.
2393
2394         New module 'fabsf'.
2395         * lib/math.in.h (fabsf): New declaration.
2396         * lib/fabsf.c: New file.
2397         * m4/fabsf.m4: New file.
2398         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2400         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2401         * modules/fabsf: New file.
2402         * tests/test-math-c++.cc: Check the declaration of fabsf.
2403         * doc/posix-functions/fabsf.texi: Mention the new module.
2404
2405         fabs: Use a .m4 file.
2406         * m4/fabs.m4: New file.
2407         * modules/fabs (Files): Add it.
2408         (configure.ac): Just invoke gl_FUNC_FABS.
2409
2410 2011-10-05  Jim Meyering  <meyering@redhat.com>
2411
2412         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2413         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2414         ls -lL regression introduced in coreutils-8.12, it does so at the
2415         cost of an additional stat call in the common case.  Besides, now
2416         that the kernel change that prompted commit 95f7c57f has been reverted
2417         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2418         we have no use for commit 95f7c57f, "file-has-acl: use
2419         acl_extended_file_nofollow if available".
2420
2421 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2422
2423         file-has-acl: revert unintended change in behavior of ls -L
2424         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2425         derived from...
2426         (file_has_acl): ...code here.  Call it.
2427         This problem was introduced with 2011-07-22 commit 95f7c57f,
2428         "file-has-acl: use acl_extended_file_nofollow if available".
2429         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2430
2431 2011-10-03  Bruno Haible  <bruno@clisp.org>
2432
2433         poll: Avoid link errors on MSVC.
2434         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2435         * modules/poll (Depends-on): Add sockets.
2436         (Link): New section.
2437         * NEWS: Mention the change.
2438         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2439         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2440         $(LIB_POLL) instead of $(LIBSOCKET).
2441
2442 2011-10-03  Bruno Haible  <bruno@clisp.org>
2443
2444         sys_select tests: Fix link error on MSVC 9.
2445         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2446         with $(LIB_SELECT) instead of $(LIBSOCKET).
2447
2448 2011-10-03  Bruno Haible  <bruno@clisp.org>
2449
2450         sys_select: Fix compilation error on mingw.
2451         * lib/sys_select.in.h: On native Windows, include <io.h>.
2452
2453 2011-10-03  Bruno Haible  <bruno@clisp.org>
2454
2455         wmemset: Support for MSVC.
2456         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2457         whether wmemset() exists.
2458
2459 2011-10-03  Bruno Haible  <bruno@clisp.org>
2460
2461         wmemmove: Support for MSVC.
2462         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2463         whether wmemmove() exists.
2464
2465 2011-10-03  Bruno Haible  <bruno@clisp.org>
2466
2467         wmemcpy: Support for MSVC.
2468         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2469         whether wmemcpy() exists.
2470
2471 2011-10-03  Bruno Haible  <bruno@clisp.org>
2472
2473         wmemcmp: Support for MSVC.
2474         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2475         whether wmemcmp() exists.
2476
2477 2011-10-03  Bruno Haible  <bruno@clisp.org>
2478
2479         wmemchr: Support for MSVC.
2480         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2481         whether wmemchr() exists.
2482
2483 2011-10-03  Bruno Haible  <bruno@clisp.org>
2484
2485         glthread/*, strsignal: Support for MSVC.
2486         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2487         including <winsock.h> on MSVC 9.
2488         * lib/glthread/lock.h: Likewise.
2489         * lib/glthread/thread.h: Likewise.
2490         * lib/glthread/tls.h: Likewise.
2491         * lib/glthread/yield.h: Likewise.
2492         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2493         if HAVE_UNISTD_H is false.
2494         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2495
2496 2011-10-03  Bruno Haible  <bruno@clisp.org>
2497
2498         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2499         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2500         Set to 100000.
2501
2502 2011-10-03  Bruno Haible  <bruno@clisp.org>
2503
2504         acl: Fix specification.
2505         * lib/file-has-acl.c (file_has_acl): Fix specification.
2506
2507 2011-10-03  Bruno Haible  <bruno@clisp.org>
2508
2509         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2510         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2511         (compute_curr_prefix, shared_library_fullname,
2512         find_shared_library_fullname, get_shared_library_fullname, relocate):
2513         Use it together with PIC && INSTALLDIR.
2514         Reported by <jojelino@gmail.com>
2515         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2516
2517 2011-10-01  Jim Meyering  <meyering@redhat.com>
2518
2519         maint.mk: adjust a release-related rule not to require use of gzip
2520         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2521         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2522         projects that build only .tar.xz files.  Also fix an erroneous test.
2523
2524         test-linkat: don't leave behind a temporary file
2525         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2526         Otherwise, coreutils' "make distcheck" would fail with this:
2527           Only in /c/cu/tests/torture/coreutils/test/\
2528             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2529           make[2]: *** [my-distcheck] Error 1
2530
2531         float, math: add omitted file
2532         * lib/itold.c: Add file, required for yesterday's float change.
2533
2534 2011-10-01  Bruno Haible  <bruno@clisp.org>
2535
2536         isinf: Fix for OpenBSD/x86.
2537         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2538         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2539         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2540
2541 2011-10-01  Bruno Haible  <bruno@clisp.org>
2542
2543         isfinite: Fix syntax error in configure test.
2544         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2545
2546         isfinite: Fix typo.
2547         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2548         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2549
2550 2011-10-01  Bruno Haible  <bruno@clisp.org>
2551
2552         nonblocking tests: Fix test failure on Linux/IA-64.
2553         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2554         Set to 270000.
2555
2556 2011-10-01  Bruno Haible  <bruno@clisp.org>
2557
2558         mkfifoat tests: Fix a test failure on mingw.
2559         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2560         with error ENOSYS.
2561
2562 2011-09-30  Bruno Haible  <bruno@clisp.org>
2563
2564         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2565         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2566         'long double'. Set REPLACE_ITOLD.
2567         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2568         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2569         * lib/itold.c: New file.
2570         * modules/float (Files): Add lib/itold.c.
2571         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2572         (Makefile.am): Substitute REPLACE_ITOLD.
2573         * modules/math (Depends-on): Add float.
2574         (Makefile.am): Substitute REPLACE_ITOLD.
2575         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2576         * doc/posix-headers/math.texi: Likewise.
2577         * doc/posix-functions/logl.texi: Likewise.
2578
2579 2011-09-30  Bruno Haible  <bruno@clisp.org>
2580
2581         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2582         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2583         Set to 140000.
2584
2585 2011-09-30  Bruno Haible  <bruno@clisp.org>
2586
2587         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2588         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2589         invocation, say "right after AC_PROG_CC_STDC", not "right after
2590         AC_PROG_CC".
2591         Reported by Gary V. Vaughan <gary@gnu.org>.
2592
2593 2011-09-30  Bruno Haible  <bruno@clisp.org>
2594
2595         Centralize C99 requirement.
2596         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2597         * modules/stdarg (configure.ac-early): Invoke it instead of
2598         AC_PROG_CC_STDC.
2599         Reported by Gary V. Vaughan and Paul Eggert.
2600
2601 2011-09-29  Bruno Haible  <bruno@clisp.org>
2602
2603         float: Fix LDBL_MAX value on Linux/PowerPC.
2604         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2605         on Linux/PowerPC.
2606         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2607         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2608         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2609         platform.
2610         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2611
2612 2011-09-29  Bruno Haible  <bruno@clisp.org>
2613
2614         doc: Improve doc about gl_EARLY.
2615         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2616         AC_PROG_CC_STDC invocation.
2617         Reported by Gary V. Vaughan <gary@gnu.org>.
2618
2619 2011-09-28  Bruno Haible  <bruno@clisp.org>
2620
2621         fgetc, fputc, fread, fwrite tests: Fix link error.
2622         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2623         on non-MSVC platforms.
2624         * tests/test-fputc.c (main): Likewise.
2625         * tests/test-fread.c (main): Likewise.
2626         * tests/test-fwrite.c (main): Likewise.
2627         Reported by Jim Meyering.
2628
2629 2011-09-27  Bruno Haible  <bruno@clisp.org>
2630
2631         fputc, fwrite tests: Avoid test failure on MSVC.
2632         * tests/test-fgetc.c: Include msvc-inval.h.
2633         (main): Invoke gl_msvc_inval_ensure_handler.
2634         * tests/test-fputc.c: Include msvc-inval.h.
2635         (main): Invoke gl_msvc_inval_ensure_handler.
2636         * tests/test-fread.c: Include msvc-inval.h.
2637         (main): Invoke gl_msvc_inval_ensure_handler.
2638         * tests/test-fwrite.c: Include msvc-inval.h.
2639         (main): Invoke gl_msvc_inval_ensure_handler.
2640         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2641         * modules/fputc-tests (Depends-on): Likewise.
2642         * modules/fread-tests (Depends-on): Likewise.
2643         * modules/fwrite-tests (Depends-on): Likewise.
2644
2645 2011-09-27  Bruno Haible  <bruno@clisp.org>
2646
2647         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2648         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2649         (raise): Remove older, duplicated declaration.
2650         (_gl_raise_SIGPIPE): New declaration.
2651         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2652         (rpl_raise): Remove function.
2653         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2654         a gnulib-defined SIGPIPE here.
2655         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2656         'sigprocmask' has detected missing signal-blocking and the module
2657         'sigpipe' is enabled.
2658         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2659
2660 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2661
2662         base64-tests: avoid memory leak
2663         * tests/test-base64.c (main): Plug memory leak.
2664
2665         base32: new module
2666         * modules/base32: New module.
2667         * lib/base32.c: New file.
2668         * lib/base32.h: Likewise.
2669         * m4/base32.m4: Likewise.
2670         * modules/base32-tests: New test.
2671         * tests/test-base32.c: Likewise.
2672         * MODULES.html.sh (Misc): Mention it.
2673
2674 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2675
2676         gnulib: use more-standard license notice wording
2677         * gnulib-tool (func_emit_copyright_notice): When emitting a
2678         license notice into a file, use the standard wording as suggested
2679         by the current information for GNU maintainers, except say "file"
2680         rather than "program".  The new wording gives a license version
2681         number, which addresses an issue raised by Glenn Morris in
2682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2683         * m4/onceonly.m4: Use that same wording here, too.
2684
2685         dup2: minor simplification
2686         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2687         as lib/dup2.c no longer uses 'inline'.
2688
2689 2011-09-25  Bruno Haible  <bruno@clisp.org>
2690
2691         strings: Fix compilation error on MSVC.
2692         * lib/strings.in.h: Include <stddef.h> for size_t.
2693
2694 2011-09-25  Bruno Haible  <bruno@clisp.org>
2695
2696         fflush et al.: Document limitation on MSVC.
2697         * doc/posix-functions/fflush.texi: Document possible crash in handling
2698         mode other than DEFAULT_HANDLING.
2699         * doc/posix-functions/fgetc.texi: Likewise.
2700         * doc/posix-functions/fputc.texi: Likewise.
2701         * doc/posix-functions/fread.texi: Likewise.
2702         * doc/posix-functions/fwrite.texi: Likewise.
2703
2704 2011-09-25  Bruno Haible  <bruno@clisp.org>
2705
2706         msvc-inval: Allow three invalid parameter handling modes.
2707         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2708         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2709         macros.
2710         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2711         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2712         SANE_LIBRARY_HANDLING as a no-op.
2713         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2714         <stdlib.h>.
2715         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2716
2717 2011-09-25  Bruno Haible  <bruno@clisp.org>
2718
2719         msvc-inval: Make handler multithread-safe.
2720         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2721         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2722         declarations.
2723         (gl_msvc_inval_current): New declaration.
2724         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2725         Operate on the structure returned by gl_msvc_inval_current().
2726         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2727         Remove varaiables.
2728         (tls_index, tls_initialized): New variables.
2729         (not_per_thread): New variable.
2730         (gl_msvc_inval_current): New function.
2731         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2732         returned by gl_msvc_inval_current().
2733
2734 2011-09-25  Bruno Haible  <bruno@clisp.org>
2735
2736         msvc-inval: Install handler globally.
2737         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2738         !_MSC_VER.
2739         (gl_msvc_invalid_parameter_handler): Remove declaration.
2740         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2741         declarations.
2742         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2743         Install the handler globally, don't uninstall it.
2744         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2745         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2746         currently valid, call RaiseException instead.
2747         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2748         for !_MSC_VER.
2749
2750 2011-09-25  Bruno Haible  <bruno@clisp.org>
2751
2752         strerror_r-posix: Fix for MSVC 9.
2753         * lib/strerror_r.c (local_snprintf): New function.
2754         (snprintf): Define to local_snprintf, not to _snprintf.
2755
2756 2011-09-25  Bruno Haible  <bruno@clisp.org>
2757
2758         ftruncate: Support for MSVC 9.
2759         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2760         (chsize_nothrow): New function.
2761         (chsize): Redefine as a macro.
2762         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2763         * modules/ftruncate (Depends-on): Add msvc-inval.
2764
2765 2011-09-25  Bruno Haible  <bruno@clisp.org>
2766
2767         New module 'fstat'.
2768         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2769         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2770         * lib/fchdir.c (rpl_fstat): Remove function.
2771         * m4/fstat.m4: New file.
2772         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2773         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2774         declared.
2775         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2776         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2777         * modules/fstat: New file.
2778         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2779         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2780         is set.
2781         * doc/posix-functions/fstat.texi: Mention the new module and the
2782         problem on MSVC.
2783         * NEWS: Mention the change.
2784         * modules/acl (Depends-on): Add fstat.
2785         * modules/chdir-safer (Depends-on): Likewise.
2786         * modules/chown (Depends-on): Likewise.
2787         * modules/copy-file (Depends-on): Likewise.
2788         * modules/fchdir (Depends-on): Likewise.
2789         * modules/fdopendir (Depends-on): Likewise.
2790         * modules/fopen (Depends-on): Likewise.
2791         * modules/fts (Depends-on): Likewise.
2792         * modules/getcwd (Depends-on): Likewise.
2793         * modules/isapipe (Depends-on): Likewise.
2794         * modules/linkat (Depends-on): Likewise.
2795         * modules/lseek (Depends-on): Likewise.
2796         * modules/mkdir-p (Depends-on): Likewise.
2797         * modules/open (Depends-on): Likewise.
2798         * modules/openat (Depends-on): Likewise.
2799         * modules/read-file (Depends-on): Likewise.
2800         * modules/renameat (Depends-on): Likewise.
2801         * modules/utimens (Depends-on): Likewise.
2802
2803 2011-09-25  Bruno Haible  <bruno@clisp.org>
2804
2805         linkat: Fix compilation on MSVC 9.
2806         * lib/linkat.c: Don't include <stdint.h>.
2807
2808 2011-09-25  Bruno Haible  <bruno@clisp.org>
2809
2810         fclose: Support for MSVC 9.
2811         * lib/fclose.c: Include msvc-inval.h.
2812         (fclose_nothrow): New function.
2813         (rpl_fclose): Use it.
2814         * modules/fclose (Depends-on): Add msvc-inval.
2815         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2816
2817 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2818
2819         dup2: minor simplifications
2820         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2821         that it's a performance win.
2822         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2823         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2824
2825 2011-09-24  Jim Meyering  <meyering@redhat.com>
2826
2827         test-futimens: avoid a warning from gcc -Wshadow
2828         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2829         to avoid a shadowing warning.
2830
2831 2011-09-24  Bruno Haible  <bruno@clisp.org>
2832
2833         fdopen: Support for MSVC 9.
2834         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2835         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2836         * lib/fdopen.c: Include msvc-inval.h.
2837         (fdopen_nothrow): New function.
2838         (rpl_fdopen): Use it.
2839         * modules/fdopen (Depends-on): Add msvc-inval.
2840         * modules/fclose-tests (Depends-on): Add fdopen.
2841         * modules/fflush-tests (Depends-on): Likewise.
2842         * modules/fgetc-tests (Depends-on): Likewise.
2843         * modules/fputc-tests (Depends-on): Likewise.
2844         * modules/fread-tests (Depends-on): Likewise.
2845         * modules/freopen-tests (Depends-on): Likewise.
2846         * modules/fseeko-tests (Depends-on): Likewise.
2847         * modules/ftello-tests (Depends-on): Likewise.
2848         * modules/fwrite-tests  (Depends-on): Likewise.
2849         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2850
2851 2011-09-24  Bruno Haible  <bruno@clisp.org>
2852
2853         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2854         * modules/fgetc-tests (Depends-on): Add unistd.
2855         * modules/fputc-tests (Depends-on): Likewise.
2856         * modules/fread-tests (Depends-on): Likewise.
2857         * modules/fwrite-tests (Depends-on): Likewise.
2858
2859 2011-09-24  Bruno Haible  <bruno@clisp.org>
2860
2861         dup: Simplify autoconf test.
2862         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2863         on gl_MSVC_INVAL's result.
2864
2865 2011-09-24  Bruno Haible  <bruno@clisp.org>
2866
2867         Tests for function fwrite().
2868         * modules/fwrite-tests: New file.
2869         * tests/test-fwrite.c: New file.
2870         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2871
2872         Tests for function fread().
2873         * modules/fread-tests: New file.
2874         * tests/test-fread.c: New file.
2875         * modules/stdio-tests (Depends-on): Add fread-tests.
2876
2877         Activate fputc tests.
2878         * modules/stdio-tests (Depends-on): Add fputc-tests.
2879
2880         Enhance fgetc, fputc tests.
2881         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2882         * tests/test-fputc.c (main): Likewise.
2883
2884 2011-09-24  Bruno Haible  <bruno@clisp.org>
2885
2886         write: Support for MSVC 9.
2887         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2888         is not 1.
2889         * lib/write.c (write_nothrow): New function.
2890         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2891         not 1. Use write_nothrow.
2892         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2893         invalid parameter handler.
2894         (gl_PREREQ_WRITE): New macro.
2895         * modules/write (Depends-on): Add msvc-inval.
2896         (configure.ac): Invoke gl_PREREQ_WRITE.
2897         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2898
2899 2011-09-24  Bruno Haible  <bruno@clisp.org>
2900
2901         read: Fix last commit.
2902         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2903
2904 2011-09-24  Bruno Haible  <bruno@clisp.org>
2905
2906         dup2: Fix last commit.
2907         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2908         (rpl_dup2): Disable fcntl workaround on native Windows.
2909
2910         sigprocmask: Make code safer.
2911         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2912         section that changes macro definitions for this compilation unit.
2913
2914 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2915
2916         dup2: clarify by coalescing Windows-specific material
2917         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2918         "msvc-nothrow.h"' to the Windows-specific section, so that the
2919         Emacs source need not contain these include files.
2920         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2921         Windows-specific fixes into this function rather than just the
2922         nothrow fix, as this shortens and clarifies the code.  Always
2923         define as a function, as that's a bit cleaner than having it be
2924         sometimes a function and sometimes a macro.
2925         (rpl_dup2): Move the Windows-specific stuff out of here and into
2926         ms_windows_dup2.  Don't protect the Haiku-related fix with
2927         "#if !defined __linux__", as the same code also works around
2928         a Linux kernel bug, and it doesn't add any system calls on any
2929         platform.  Add comment about FreeBSD 6.1.
2930
2931         sigprocmask: move #include directive
2932         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2933         Windows-specific section, so that the Emacs source need not
2934         contain msvc-inval.h.
2935
2936 2011-09-23  Bruno Haible  <bruno@clisp.org>
2937
2938         read: Support for MSVC 9.
2939         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2940         is not 1.
2941         * lib/read.c (read_nothrow): New function.
2942         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2943         read_nothrow.
2944         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2945         invalid parameter handler.
2946         (gl_PREREQ_READ): New macro.
2947         * modules/read (Depends-on): Add msvc-inval.
2948         (configure.ac): Invoke gl_PREREQ_READ.
2949         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2950
2951 2011-09-23  Bruno Haible  <bruno@clisp.org>
2952
2953         close: Support for MSVC 9.
2954         * lib/close.c: Include <errno.h>, msvc-inval.h.
2955         (close_nothrow): New function.
2956         (rpl_close): Use it.
2957         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2958         invalid parameter handler.
2959         * modules/close (Depends-on): Add msvc-inval.
2960         * modules/dup2-tests (Depends-on): Add close.
2961         * modules/dup3-tests (Depends-on): Likewise.
2962         * modules/fcntl-tests (Depends-on): Likewise.
2963         * modules/spawn-pipe-tests (Depends-on): Likewise.
2964         * modules/unistd-safer-tests (Depends-on): Likewise.
2965         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2966
2967 2011-09-23  Bruno Haible  <bruno@clisp.org>
2968
2969         New module 'dup'.
2970         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2971         Allow replacement.
2972         * lib/dup.c: New file.
2973         * lib/fchdir.c (rpl_dup): Remove function.
2974         * m4/dup.m4: New file.
2975         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2976         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2977         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2978         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2979         * modules/dup: New file.
2980         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2981         'dup' module is in use.
2982         * modules/fdopendir (Depends-on): Add dup.
2983         * modules/fdutimensat-tests (Depends-on): Likewise.
2984         * modules/fts (Depends-on): Likewise.
2985         * modules/futimens-tests (Depends-on): Likewise.
2986         * modules/posix_spawnp-tests (Depends-on): Likewise.
2987         * modules/unistd-safer-tests (Depends-on): Likewise.
2988         * modules/utimens-tests (Depends-on): Likewise.
2989         * doc/posix-functions/dup.texi: Mention the new module and the problem
2990         on MSVC.
2991
2992 2011-09-23  Bruno Haible  <bruno@clisp.org>
2993
2994         getdtablesize: Support for MSVC 9.
2995         * lib/getdtablesize.c: Include msvc-inval.h.
2996         (_setmaxstdio_nothrow): New function.
2997         (_setmaxstdio): Redefine it.
2998         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2999         * modules/getdtablesize (Depends-on): Add msvc-inval.
3000         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3001
3002 2011-09-23  Bruno Haible  <bruno@clisp.org>
3003
3004         signal-h: Rename from signal.
3005         * modules/signal-h: Renamed from modules/signal.
3006         * modules/pthread_sigmask (Depends-on): Update.
3007         * modules/raise (Depends-on): Likewise.
3008         * modules/sigaction (Depends-on): Likewise.
3009         * modules/sigpipe (Depends-on): Likewise.
3010         * modules/sigprocmask (Depends-on): Likewise.
3011         * modules/sys_select (Depends-on): Likewise.
3012         * modules/signal-h-tests: Renamed from modules/signal-tests.
3013         (Files, Depends-on, Makefile.am): Update.
3014         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3015         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3016         (Files, Makefile.am): Update.
3017         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3018         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3019         * modules/signal: New placeholder file.
3020         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3021         * doc/posix-headers/signal.texi: Update.
3022         * NEWS: Mention the change.
3023
3024 2011-09-23  Bruno Haible  <bruno@clisp.org>
3025
3026         sigprocmask: Avoid crashes through signal() on MSVC 9.
3027         * lib/sigprocmask.c: Include msvc-inval.h.
3028         (signal_nothrow): New function.
3029         (signal): Redefine it.
3030         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3031         * modules/sigprocmask (Depends-on): Add msvc-inval.
3032         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3033
3034 2011-09-23  Bruno Haible  <bruno@clisp.org>
3035
3036         Tests for module 'raise'.
3037         * modules/raise-tests: New file.
3038         * tests/test-raise.c: New file.
3039
3040         raise: Support for MSVC.
3041         * lib/signal.in.h (raise): New declaration.
3042         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3043         for native Windows platforms.
3044         * m4/raise.m4: New file.
3045         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3046         HAVE_RAISE, REPLACE_RAISE.
3047         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3048         REPLACE_RAISE.
3049         * modules/raise (Status, Notice): Remove fields.
3050         (Files): Add m4/raise.m4.
3051         (Depends-on): Add signal, msvc-inval.
3052         (configure.ac): Use the common idioms.
3053         (Maintainer): Add me.
3054         * tests/test-signal-c++.cc: Check the signature of raise.
3055         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3056
3057 2011-09-23  Bruno Haible  <bruno@clisp.org>
3058
3059         pipe2: Fix compilation on pre-C99 compilers.
3060         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3061
3062 2011-09-23  Bruno Haible  <bruno@clisp.org>
3063
3064         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3065         * lib/msvc-nothrow.h: New file.
3066         * lib/msvc-nothrow.c: New file.
3067         * m4/msvc-nothrow.m4: New file.
3068         * modules/msvc-nothrow: New file.
3069         * lib/dup2.c: Include msvc-nothrow.h.
3070         (rpl_dup2): No need to protect _get_osfhandle call here.
3071         * lib/accept4.c: Include msvc-nothrow.h.
3072         * lib/error.c: Likewise.
3073         * lib/fcntl.c: Likewise.
3074         * lib/lseek.c: Likewise.
3075         * lib/nonblocking.c: Likewise.
3076         * lib/poll.c: Likewise.
3077         * lib/read.c: Likewise.
3078         * lib/select.c: Likewise.
3079         * lib/sockets.h: Likewise.
3080         * lib/sockets.c: Likewise.
3081         * lib/stdio-read.c: Likewise.
3082         * lib/stdio-write.c: Likewise.
3083         * lib/write.c: Likewise.
3084         * lib/w32sock.h: Likewise.
3085         * lib/w32spawn.h: Likewise.
3086         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3087         * lib/fsync.c: Likewise.
3088         * lib/isapipe.c: Likewise.
3089         * modules/dup2 (Depends-on): Add msvc-nothrow.
3090         * modules/accept4 (Depends-on): Likewise.
3091         * modules/error (Depends-on): Likewise.
3092         * modules/fcntl (Depends-on): Likewise.
3093         * modules/lseek (Depends-on): Likewise.
3094         * modules/nonblocking (Depends-on): Likewise.
3095         * modules/poll (Depends-on): Likewise.
3096         * modules/read (Depends-on): Likewise.
3097         * modules/select (Depends-on): Likewise.
3098         * modules/sockets (Depends-on): Likewise.
3099         * modules/sigpipe (Depends-on): Likewise.
3100         * modules/write (Depends-on): Likewise.
3101         * modules/accept (Depends-on): Likewise.
3102         * modules/bind (Depends-on): Likewise.
3103         * modules/connect (Depends-on): Likewise.
3104         * modules/gethostname (Depends-on): Likewise.
3105         * modules/getpeername (Depends-on): Likewise.
3106         * modules/getsockname (Depends-on): Likewise.
3107         * modules/getsockopt (Depends-on): Likewise.
3108         * modules/ioctl (Depends-on): Likewise.
3109         * modules/listen (Depends-on): Likewise.
3110         * modules/recv (Depends-on): Likewise.
3111         * modules/recvfrom (Depends-on): Likewise.
3112         * modules/send (Depends-on): Likewise.
3113         * modules/sendto (Depends-on): Likewise.
3114         * modules/setsockopt (Depends-on): Likewise.
3115         * modules/shutdown (Depends-on): Likewise.
3116         * modules/socket (Depends-on): Likewise.
3117         * modules/execute (Depends-on): Likewise.
3118         * modules/spawn-pipe (Depends-on): Likewise.
3119         * modules/flock (Depends-on): Likewise.
3120         * modules/fsync (Depends-on): Likewise.
3121         * modules/isapipe (Depends-on): Likewise.
3122         * tests/test-cloexec.c: Include msvc-nothrow.h.
3123         * tests/test-dup-safer.c: Likewise.
3124         * tests/test-dup2.c: Likewise.
3125         * tests/test-dup3.c: Likewise.
3126         * tests/test-fcntl.c: Likewise.
3127         * tests/test-pipe.c: Likewise.
3128         * tests/test-pipe2.c: Likewise.
3129         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3130         * modules/unistd-safer-tests (Depends-on): Likewise.
3131         * modules/dup2-tests (Depends-on): Likewise.
3132         * modules/dup3-tests (Depends-on): Likewise.
3133         * modules/fcntl-tests (Depends-on): Likewise.
3134         * modules/pipe-posix-tests (Depends-on): Likewise.
3135         * modules/pipe2-tests (Depends-on): Likewise.
3136
3137 2011-09-23  Bruno Haible  <bruno@clisp.org>
3138
3139         dup2: Make code more maintainable.
3140         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3141         (rpl_dup2): Use it.
3142         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3143         * modules/dup2 (configure.ac): Invoke it.
3144         Reported by Paul Eggert.
3145
3146 2011-09-23  Bruno Haible  <bruno@clisp.org>
3147
3148         msvc-inval: Fix compilation error.
3149         * lib/msvc-inval.h: Include <excpt.h>.
3150
3151 2011-09-23  Bruno Haible  <bruno@clisp.org>
3152
3153         mkdir: Tweak for MSVC 9.
3154         * lib/sys_stat.in.h: Update comments.
3155         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3156
3157         Tests for module 'chdir'.
3158         * modules/chdir-tests: New file.
3159         * tests/test-chdir.c: New file.
3160
3161         New module 'chdir'.
3162         * modules/chdir: New file.
3163         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3164         (chdir): New declaration.
3165         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3166         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3167         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3168         * tests/test-unistd-c++.cc: Check signature of chdir.
3169         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3170         * modules/chdir-long (Depends-on): Add chdir.
3171         * modules/fchdir (Depends-on): Likewise.
3172         * modules/rename (Depends-on): Likewise.
3173         * modules/savewd (Depends-on): Likewise.
3174
3175         rmdir: Support for mingw, MSVC 9.
3176         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3177         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3178
3179         getcwd: Tweak for MSVC 9.
3180         * lib/unistd.in.h: Update comments.
3181         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3182
3183 2011-09-22  Bruno Haible  <bruno@clisp.org>
3184
3185         strerror_r-posix: Avoid a link error on MSVC.
3186         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3187         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3188
3189 2011-09-22  Bruno Haible  <bruno@clisp.org>
3190
3191         select: Avoid link errors on MSVC.
3192         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3193         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3194         * modules/pselect (Link): Likewise.
3195         * NEWS: Mention the change.
3196         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3197         test-select-stdin against $(LIB_SELECT).
3198         * modules/pselect-tests (Makefile.am): Link test-pselect against
3199         $(LIB_SELECT).
3200
3201 2011-09-22  Bruno Haible  <bruno@clisp.org>
3202
3203         select: Avoid compilation error on MSVC.
3204         * lib/select.c: Don't include <stdbool.h>.
3205
3206 2011-09-21  Bruno Haible  <bruno@clisp.org>
3207
3208         Consolidate all uses of PATH_MAX in *.m4 files.
3209         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3210         macros.
3211         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3212         and gl_PATHMAX_SNIPPET.
3213         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3214         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3215         * modules/chdir-long (Files): Add m4/pathmax.m4.
3216         * modules/getcwd (Files): Likewise.
3217
3218 2011-09-21  Bruno Haible  <bruno@clisp.org>
3219
3220         ftruncate: Un-deprecate, concentrate on Win32 support.
3221         * modules/ftruncate (Status, Notice): Remove sections.
3222         (Depends-on): Add largefile.
3223         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3224         non-mingw platforms.
3225         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3226         include <io.h>.
3227         * modules/perror-tests (Depends-on): Add ftruncate.
3228         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3229         'ftruncate' module.
3230
3231 2011-09-21  Bruno Haible  <bruno@clisp.org>
3232
3233         Add dependencies to new dirent related modules.
3234         * modules/opendir (Depends-on): Add closedir.
3235         * modules/getcwd (Depends-on): Add opendir, closedir.
3236         * modules/dirent-safer-tests (Depends-on): Likewise.
3237         * modules/fdopendir-tests (Depends-on): Likewise.
3238         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3239         * modules/renameat-tests (Depends-on): Likewise.
3240
3241 2011-09-21  Bruno Haible  <bruno@clisp.org>
3242
3243         opendir: Avoid compilation error on mingw.
3244         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3245         * modules/opendir (Depends-on): Add unistd.
3246
3247 2011-09-21  Bruno Haible  <bruno@clisp.org>
3248
3249         ftruncate tests: Avoid a test failure on mingw.
3250         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3251
3252 2011-09-21  Bruno Haible  <bruno@clisp.org>
3253
3254         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3255         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3256         native Windows.
3257
3258 2011-09-21  Bruno Haible  <bruno@clisp.org>
3259
3260         New module 'fdopen'.
3261         * lib/stdio.in.h (fdopen): New declaration.
3262         * lib/fdopen.c: New file.
3263         * m4/fdopen.m4: New file.
3264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3265         REPLACE_FDOPEN.
3266         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3267         REPLACE_FDOPEN.
3268         * modules/fdopen: New file.
3269         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3270         * tests/test-stdio-c++.cc: Check signature of fdopen.
3271         * doc/posix-functions/fdopen.texi: Mention the new module.
3272
3273 2011-09-21  Bruno Haible  <bruno@clisp.org>
3274
3275         unlockpt tests: Avoid test failure on NetBSD 5.1.
3276         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3277         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3278
3279 2011-09-21  Bruno Haible  <bruno@clisp.org>
3280
3281         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3282         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3283         * tests/test-getlogin_r.c (main): Likewise.
3284
3285 2011-09-20  Bruno Haible  <bruno@clisp.org>
3286
3287         time tests: Don't require pid_t.
3288         * doc/posix-headers/time.texi: Revert last change.
3289         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3290         * tests/test-time.c: Comment out the check for pid_t.
3291
3292 2011-09-20  Bruno Haible  <bruno@clisp.org>
3293
3294         fsync tests: Avoid a test failure on mingw.
3295         * tests/test-fsync.c (main): Allow a failure with EIO.
3296
3297 2011-09-20  Bruno Haible  <bruno@clisp.org>
3298
3299         euidaccess: Update comments.
3300         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3301
3302 2011-09-20  Bruno Haible  <bruno@clisp.org>
3303
3304         Ensure EBADF returns for socket functions on mingw.
3305         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3306         descriptor is invalid.
3307         * lib/bind.c (rpl_bind): Likewise.
3308         * lib/connect.c (rpl_connect): Likewise.
3309         * lib/getpeername.c (rpl_getpeername): Likewise.
3310         * lib/getsockname.c (rpl_getsockname): Likewise.
3311         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3312         * lib/listen.c (rpl_listen): Likewise.
3313         * lib/recv.c (rpl_recv): Likewise.
3314         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3315         * lib/send.c (rpl_send): Likewise.
3316         * lib/sendto.c (rpl_sendto): Likewise.
3317         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3318         * lib/shutdown.c (rpl_shutdown): Likewise.
3319
3320 2011-09-20  Bruno Haible  <bruno@clisp.org>
3321
3322         select tests: EBADF tests.
3323         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3324         test_bad_fd): New functions.
3325         (test_function): Invoke also test_bad_fd.
3326
3327 2011-09-20  Bruno Haible  <bruno@clisp.org>
3328
3329         Tests for module 'posix_spawn_file_actions_addopen.
3330         * modules/posix_spawn_file_actions_addopen-tests: New file.
3331         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3332
3333         Tests for module 'posix_spawn_file_actions_adddup2'.
3334         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3335         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3336
3337         Tests for module 'posix_spawn_file_actions_addclose'.
3338         * modules/posix_spawn_file_actions_addclose-tests: New file.
3339         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3340
3341 2011-09-20  Bruno Haible  <bruno@clisp.org>
3342
3343         Tests for module 'unlockpt'.
3344         * modules/unlockpt-tests: New file.
3345         * tests/test-unlockpt.c: New file.
3346         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3347
3348         Tests for module 'grantpt'.
3349         * modules/grantpt-tests: New file.
3350         * tests/test-grantpt.c: New file.
3351         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3352
3353 2011-09-20  Bruno Haible  <bruno@clisp.org>
3354
3355         freopen tests: EBADF tests.
3356         * tests/test-freopen.c: Include errno.h, unistd.h.
3357         (main): Add tests for EBADF, commented out for the moment.
3358
3359         fclose tests: EBADF tests.
3360         * tests/test-fclose.c (main): Add tests for EBADF.
3361
3362         fflush tests: EBADF tests.
3363         * tests/test-fflush.c: Include errno.h, macros.h.
3364         (main): Add tests for EBADF.
3365
3366         ftello tests: EBADF tests.
3367         * tests/test-ftello4.sh: New file.
3368         * tests/test-ftello4.c: New file.
3369         * modules/ftello-tests (Files): Add them.
3370         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3371
3372         fseeko tests: EBADF tests.
3373         * tests/test-fseeko4.sh: New file.
3374         * tests/test-fseeko4.c: New file.
3375         * modules/fseeko-tests (Files): Add them.
3376         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3377
3378         Tests for function fputc().
3379         * modules/fputc-tests: New file.
3380         * tests/test-fputc.c: New file.
3381         * modules/stdio-tests (Depends-on): Add fputc-tests.
3382
3383         Tests for function fgetc().
3384         * modules/fgetc-tests: New file.
3385         * tests/test-fgetc.c: New file.
3386         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3387
3388         Tests for function fdopen().
3389         * modules/fdopen-tests: New file.
3390         * tests/test-fdopen.c: New file.
3391         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3392
3393         Tests for module 'vdprintf'.
3394         * modules/vdprintf-tests: New file.
3395         * tests/test-vdprintf.c: New file.
3396
3397         Tests for module 'dprintf'.
3398         * modules/dprintf-tests: New file.
3399         * tests/test-dprintf.c: New file.
3400
3401 2011-09-20  Bruno Haible  <bruno@clisp.org>
3402
3403         Tests for module 'ioctl'.
3404         * modules/ioctl-tests: New file.
3405         * tests/test-ioctl.c: New file.
3406
3407 2011-09-20  Bruno Haible  <bruno@clisp.org>
3408
3409         fcntl tests: EBADF tests.
3410         * tests/test-fcntl.c (main): Add more tests for EBADF.
3411
3412 2011-09-20  Bruno Haible  <bruno@clisp.org>
3413
3414         utimensat tests: EBADF tests.
3415         * tests/test-utimensat.c (main): Add tests for EBADF.
3416
3417         renameat tests: EBADF tests.
3418         * tests/test-renameat.c (main): Add tests for EBADF.
3419
3420         mkfifoat tests: EBADF tests.
3421         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3422
3423         readlinkat tests: EBADF tests.
3424         * tests/test-readlinkat.c (main): Add tests for EBADF.
3425
3426         symlinkat tests: EBADF tests.
3427         * tests/test-symlinkat.c (main): Add tests for EBADF.
3428
3429         linkat tests: EBADF tests.
3430         * tests/test-linkat.c (main): Add tests for EBADF.
3431
3432         Tests for module 'faccessat'.
3433         * modules/faccessat-tests: New file.
3434         * tests/test-faccessat.c: New file.
3435
3436         fdopendir tests: EBADF tests.
3437         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3438
3439         openat tests: EBADF tests.
3440         * tests/test-fchownat.c (main): Add tests for EBADF.
3441         * tests/test-fstatat.c (main): Likewise.
3442         * tests/test-mkdirat.c (main): Likewise.
3443         * tests/test-openat.c (main): Likewise.
3444         * tests/test-unlinkat.c (main): Likewise.
3445         * tests/test-fchmodat.c: New file.
3446         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3447         (Makefile.am): Also run 'test-fchmodat'.
3448
3449 2011-09-20  Bruno Haible  <bruno@clisp.org>
3450
3451         utimens, futimens, fdutimensat tests: EBADF tests.
3452         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3453
3454         Tests for function fstat().
3455         * modules/fstat-tests: New file.
3456         * tests/test-fstat.c: New file.
3457         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3458
3459 2011-09-20  Bruno Haible  <bruno@clisp.org>
3460
3461         test-ttyname_r tests: EBADF tests.
3462         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3463
3464         Tests for module 'isatty'.
3465         * modules/isatty-tests: New file.
3466         * tests/test-isatty.c: New file.
3467
3468         Tests for module 'write'.
3469         * modules/write-tests: New file.
3470         * tests/test-write.c: New file.
3471
3472         Tests for module 'read'.
3473         * modules/read-tests: New file.
3474         * tests/test-read.c: New file.
3475
3476         pwrite tests: EBADF tests.
3477         * tests/test-pwrite.c (main): Add tests for EBADF.
3478
3479         pread tests: EBADF tests.
3480         * tests/test-pread.c (main): Add tests for EBADF.
3481
3482         lseek tests: EBADF tests.
3483         * tests/test-lseek.c (main): Add more tests for EBADF.
3484
3485         Tests for module 'ftruncate'.
3486         * modules/ftruncate-tests: New file.
3487         * tests/test-ftruncate.sh: New file.
3488         * tests/test-ftruncate.c: New file.
3489
3490         fsync tests: EBADF tests.
3491         * tests/test-fsync.c (main): Add more tests for EBADF.
3492
3493         fdatasync tests: EBADF tests.
3494         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3495
3496         Tests for module 'fchown'.
3497         * modules/fchown-tests: New file.
3498         * tests/test-fchown.c: New file.
3499
3500         Tests for module 'fchmod'.
3501         * modules/fchmod-tests: New file.
3502         * tests/test-fchmod.c: New file.
3503
3504         fchdir tests: EBADF tests.
3505         * tests/test-fchdir.c (main): Add more tests for EBADF.
3506
3507         dup2 tests: EBADF tests.
3508         * tests/test-dup2.c (main): Add more tests for EBADF.
3509
3510         Tests for module 'dup'.
3511         * modules/dup-tests: New file.
3512         * tests/test-dup.c: New file.
3513
3514         Tests for module 'close'.
3515         * modules/close-tests: New file.
3516         * tests/test-close.c: New file.
3517
3518 2011-09-20  Bruno Haible  <bruno@clisp.org>
3519
3520         Tests for module 'shutdown'.
3521         * modules/shutdown-tests: New file.
3522         * tests/test-shutdown.c: New file.
3523
3524         Tests for module 'setsockopt'.
3525         * modules/setsockopt-tests: New file.
3526         * tests/test-setsockopt.c: New file.
3527
3528         Tests for module 'sendto'.
3529         * modules/sendto-tests: New file.
3530         * tests/test-sendto.c: New file.
3531
3532         Tests for module 'send'.
3533         * modules/send-tests: New file.
3534         * tests/test-send.c: New file.
3535
3536         Tests for module 'recvfrom'.
3537         * modules/recvfrom-tests: New file.
3538         * tests/test-recvfrom.c: New file.
3539
3540         Tests for module 'recv'.
3541         * modules/recv-tests: New file.
3542         * tests/test-recv.c: New file.
3543
3544         Tests for module 'listen'.
3545         * modules/listen-tests: New file.
3546         * tests/test-listen.c: New file.
3547
3548         Tests for module 'getsockopt'.
3549         * modules/getsockopt-tests: New file.
3550         * tests/test-getsockopt.c: New file.
3551
3552         Tests for module 'getsockname'.
3553         * modules/getsockname-tests: New file.
3554         * tests/test-getsockname.c: New file.
3555
3556         Tests for module 'getpeername'.
3557         * modules/getpeername-tests: New file.
3558         * tests/test-getpeername.c: New file.
3559
3560         Tests for module 'connect'.
3561         * modules/connect-tests: New file.
3562         * tests/test-connect.c: New file.
3563
3564         Tests for module 'bind'.
3565         * modules/bind-tests: New file.
3566         * tests/test-bind.c: New file.
3567
3568         accept4 tests: Fix for native Windows.
3569         * tests/test-accept4.c: Include sockets.h.
3570         (main): Invoke gl_sockets_startup.
3571         * modules/accept4-tests (Depends-on): Add sockets.
3572
3573         accept tests: Fix for native Windows.
3574         * tests/test-accept.c: Include sockets.h.
3575         (main): Invoke gl_sockets_startup.
3576         * modules/accept-tests (Depends-on): Add sockets.
3577
3578 2011-09-19  Bruno Haible  <bruno@clisp.org>
3579
3580         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3581         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3582         do...while(0).
3583         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3584         Suggested by Paul Eggert.
3585
3586 2011-09-19  Bruno Haible  <bruno@clisp.org>
3587
3588         sched: Ensure pid_t is defined.
3589         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3590         not define pid_t.
3591         * lib/sched.in.h: Include <sys/types.h>.
3592         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3593         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3594
3595 2011-09-19  Bruno Haible  <bruno@clisp.org>
3596
3597         msvc-inval: Ensure the entire expansion is a single statement.
3598         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3599         of braces.
3600
3601 2011-09-19  Jim Meyering  <meyering@redhat.com>
3602
3603         tests: use printf, not echo in init.sh's warn_ function
3604         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3605         misbehave when given strings containing a backslash or starting
3606         with e.g., -n.  James Youngman suggested setting IFS.
3607
3608 2011-09-19  Eric Blake  <eblake@redhat.com>
3609
3610         futimens: enhance test
3611         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3612         closed non-negative fd.
3613
3614         date: accept 'hence' as opposite of 'ago'
3615         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3616         * tests/test-parse-datetime.c (main): Enhance test.
3617         Suggested by Jesse Wilson.
3618
3619 2011-09-19  Jim Meyering  <meyering@redhat.com>
3620
3621         getcwd: don't fail in a deep directory on a system without openat
3622         Before this change, getcwd would fail when called from a directory
3623         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3624         the non-openat implementation used "..", "../..", "../../..", etc.
3625         to access ancestor directories.  With too many, that string would
3626         be longer than PATH_MAX.
3627         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3628         using gnulib's openat replacement.
3629         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3630         we're using the replacement function.
3631
3632 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3633
3634         maint.mk: avoid warnings from perl about missing files
3635         * top/maint.mk (def_sym_regex): Ignore files listed in
3636         $(gl_other_headers_) that do not exist, say because a project
3637         does not use a corresponding module.
3638
3639 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3640
3641         stat: use pathmax.h only if needed
3642         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3643         This is better for Emacs, which does not have a mingw port and
3644         therefore can avoid the pathmax module.
3645
3646         utimens: remove dependency on dup2
3647         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3648         to work around the Linux kernel bug.
3649         * modules/utimens (Depends-on): Remove dup2.
3650
3651 2011-09-18  Bruno Haible  <bruno@clisp.org>
3652
3653         inet_ntop, inet_pton: Look for it also in libresolv.
3654         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3655         libnsl, search for it in libresolv.
3656         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3657         Needed on Solaris 7.
3658
3659 2011-09-18  Bruno Haible  <bruno@clisp.org>
3660
3661         accept, accept4 tests: Avoid link error on Solaris.
3662         * modules/accept-tests (Makefile.am): Link test-accept against
3663         $(LIBSOCKET).
3664         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3665         $(LIBSOCKET).
3666
3667         accept4: Avoid link error on Solaris.
3668         * modules/accept4 (Link): New section.
3669
3670         socket functions: Avoid link errors on Solaris.
3671         * modules/accept (Depends-on): Add socketlib.
3672         (Link): New section.
3673         * modules/bind (Depends-on): Add socketlib.
3674         (Link): New section.
3675         * modules/connect (Depends-on): Add socketlib.
3676         (Link): New section.
3677         * modules/getpeername (Depends-on): Add socketlib.
3678         (Link): New section.
3679         * modules/getsockname (Depends-on): Add socketlib.
3680         (Link): New section.
3681         * modules/getsockopt (Depends-on): Add socketlib.
3682         (Link): New section.
3683         * modules/listen (Depends-on): Add socketlib.
3684         (Link): New section.
3685         * modules/recv (Depends-on): Add socketlib.
3686         (Link): New section.
3687         * modules/recvfrom (Depends-on): Add socketlib.
3688         (Link): New section.
3689         * modules/send (Depends-on): Add socketlib.
3690         (Link): New section.
3691         * modules/sendto (Depends-on): Add socketlib.
3692         (Link): New section.
3693         * modules/setsockopt (Depends-on): Add socketlib.
3694         (Link): New section.
3695         * modules/shutdown (Depends-on): Add socketlib.
3696         (Link): New section.
3697         * modules/socket (Depends-on): Add socketlib.
3698         (Link): New section.
3699
3700 2011-09-18  Bruno Haible  <bruno@clisp.org>
3701
3702         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3703         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3704         than 5 seconds.
3705         * modules/ptsname-tests (configure.ac): Test for alarm.
3706
3707 2011-09-18  Bruno Haible  <bruno@clisp.org>
3708
3709         posix_spawn_file_actions_add*: Fix module dependencies.
3710         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3711         posix_spawn_file_actions_init.
3712         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3713         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3714
3715 2011-09-18  Bruno Haible  <bruno@clisp.org>
3716
3717         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3718         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3719         * tests/test-renameat.c (main): Likewise.
3720
3721 2011-09-18  Bruno Haible  <bruno@clisp.org>
3722
3723         Tests for module 'accept4'.
3724         * modules/accept4-tests: New file.
3725         * tests/test-accept4.c: New file.
3726
3727 2011-09-18  Bruno Haible  <bruno@clisp.org>
3728
3729         Tests for module 'accept'.
3730         * modules/accept-tests: New file.
3731         * tests/test-accept.c: New file.
3732
3733 2011-09-18  Bruno Haible  <bruno@clisp.org>
3734
3735         dup2: Support for MSVC.
3736         * lib/dup2.c: Include msvc-inval.h.
3737         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3738         _get_osfhandle calls.
3739         * modules/dup2 (Depends-on): Add msvc-inval.
3740         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3741
3742         New module 'msvc-inval'.
3743         * lib/msvc-inval.h: New file.
3744         * lib/msvc-inval.c: New file.
3745         * m4/msvc-inval.m4: New file.
3746         * modules/msvc-inval: New file.
3747
3748 2011-09-17  Bruno Haible  <bruno@clisp.org>
3749
3750         Tests for module 'pclose'.
3751         * modules/pclose-tests: New file.
3752
3753         New module 'pclose'.
3754         * lib/stdio.in.h (pclose): New declaration.
3755         * lib/pclose.c: New file.
3756         * m4/pclose.m4: New file.
3757         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3758         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3759         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3760         * modules/pclose: New file.
3761         * modules/popen-tests (Depends-on): Add pclose.
3762         * modules/popen-safer-tests (Depends-on): Likewise.
3763         * doc/posix-functions/pclose.texi: Mention the new module.
3764
3765 2011-09-17  Bruno Haible  <bruno@clisp.org>
3766
3767         popen: Support for MSVC.
3768         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3769         * lib/popen.c (popen): Provide alternate definition for native Windows.
3770         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3772         * modules/popen (Depends-on, configure.ac): Update condition.
3773         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3774         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3775         fixed.
3776
3777 2011-09-17  Bruno Haible  <bruno@clisp.org>
3778
3779         isnanl, isnand, isnanf: Work around MSVC bug.
3780         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3781
3782 2011-09-17  Bruno Haible  <bruno@clisp.org>
3783
3784         sys_socket tests: Fix recent mistake.
3785         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3786
3787 2011-09-17  Bruno Haible  <bruno@clisp.org>
3788
3789         putenv: Support for MSVC.
3790         * modules/putenv (Depends-on): Add environ.
3791         * lib/putenv.c (environ): Disable declaration.
3792         * lib/unistd.in.h: Update comment.
3793
3794 2011-09-17  Bruno Haible  <bruno@clisp.org>
3795
3796         math: Avoid macro redefinition warnings on MSVC.
3797         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3798         Undefine before redefining.
3799
3800 2011-09-17  Bruno Haible  <bruno@clisp.org>
3801
3802         doc: Mention functions which are declared as macros.
3803         * doc/posix-functions/*[fl].texi: Mention that some functions are
3804         defined as macros with arguments only.
3805
3806 2011-09-17  Bruno Haible  <bruno@clisp.org>
3807
3808         Add dependencies to new dirent related modules.
3809         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3810         * modules/fts (Depends-on): Likewise.
3811         * modules/glob (Depends-on): Likewise.
3812         * modules/savedir (Depends-on): Likewise.
3813         * modules/scandir (Depends-on): Likewise.
3814         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3815         * modules/fdopendir (Depends-on): Add opendir.
3816
3817 2011-09-17  Bruno Haible  <bruno@clisp.org>
3818
3819         inet_pton: Support for MSVC on Windows Vista or newer.
3820         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3821         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3822         HAVE_DECL_INET_PTON is defined.
3823         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3824         On platforms with <winsock2.h>, test whether inet_pton is declared in
3825         <ws2tcpip.h>. If so, arrange to replace it.
3826         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3827         REPLACE_INET_PTON.
3828         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3829         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3830         (Depends-on, configure.ac): Update condition.
3831         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3832
3833 2011-09-17  Bruno Haible  <bruno@clisp.org>
3834
3835         inet_ntop: Support for MSVC on Windows Vista or newer.
3836         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3837         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3838         HAVE_DECL_INET_NTOP is defined.
3839         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3840         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3841         <ws2tcpip.h>. If so, arrange to replace it.
3842         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3843         REPLACE_INET_NTOP.
3844         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3845         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3846         (Depends-on, configure.ac): Update condition.
3847         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3848
3849 2011-09-16  Eric Blake  <eblake@redhat.com>
3850
3851         test-fsync: yet another enhancement
3852         * tests/test-fsync.c (main): Also test behavior on read-only text
3853         file.
3854
3855 2011-09-16  Bruno Haible  <bruno@clisp.org>
3856
3857         Enhance fsync, fdatasync tests.
3858         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3859         * tests/test-fdatasync.c (main): Likewise.
3860
3861 2011-09-16  Bruno Haible  <bruno@clisp.org>
3862
3863         Support for MSVC compiler: Ensure mode_t gets defined.
3864         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3865         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3866         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3867         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3868         * tests/test-fcntl-h.c: Check that mode_t is defined.
3869         * tests/test-sys_stat.c: Likewise.
3870         * tests/test-sys_types.c: Likewise.
3871         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3872         * doc/posix-headers/sys_stat.texi: Likewise.
3873         * doc/posix-headers/sys_types.texi: Likewise.
3874
3875 2011-09-16  Bruno Haible  <bruno@clisp.org>
3876
3877         sys_stat: Support for MSVC.
3878         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3879         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3880         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3881         MSVC.
3882
3883 2011-09-16  Bruno Haible  <bruno@clisp.org>
3884
3885         Support for MSVC compiler: Ensure off_t gets defined.
3886         * lib/unistd.in.h: Include <sys/types.h>.
3887         * tests/test-fcntl-h.c: Check that off_t is defined.
3888         * tests/test-sys_stat.c: Likewise.
3889         * tests/test-sys_types.c: Likewise.
3890
3891 2011-09-16  Eric Blake  <eblake@redhat.com>
3892
3893         fdatasync: port to Solaris
3894         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3895         * modules/fdatasync (Link): Document it.
3896         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3897
3898         fdatasync: port to MacOS X 10.7
3899         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3900         declared.
3901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3902         * modules/unistd (Makefile.am): Substitute it.
3903         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3904         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3905
3906         fdatasync: minor improvements
3907         * modules/fdatasync (Depends-on): Add condition for fsync.
3908         * lib/fdatasync.c (fdatasync): Add comment.
3909         * tests/test-unistd-c++.cc: Test fdatasync.
3910
3911         unistd: update refs to newer POSIX
3912         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3913         Suggested by Bruno Haible.
3914
3915         fdatasync: new module
3916         * modules/fsync (Description): Document difference to fdatasync.
3917         * modules/fdatasync: New module.
3918         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3919         * lib/fdatasync.c (fdatasync): Likewise.
3920         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3921         defaults.
3922         * modules/unistd (Makefile.am): Set witnesses.
3923         * lib/unistd.in.h (fdatasync): Declare.
3924         * MODULES.html.sh: Document it.
3925         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3926         * modules/fdatasync-tests: New test.
3927         * tests/test-fdatasync.c: Likewise.
3928
3929 2011-09-16  Eric Blake  <eblake@redhat.com>
3930
3931         test-fsync: enhance tests
3932         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3933         * tests/test-fsync.c (main): Enhance test.
3934
3935 2011-09-15  Bruno Haible  <bruno@clisp.org>
3936
3937         Support for MSVC compiler: Ensure ssize_t gets defined.
3938         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3939         * doc/posix-headers/stdio.texi: Likewise.
3940         * modules/stdio (Depends-on): Add ssize_t.
3941         * modules/sys_socket (Depends-on): Likewise.
3942         * modules/sys_types (Depends-on): Likewise.
3943         * modules/sys_uio (Depends-on): Likewise.
3944         * modules/unistd (Depends-on): Likewise.
3945         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3946         * tests/test-sys_types.c: Check that ssize_t is defined.
3947
3948 2011-09-14  Bruno Haible  <bruno@clisp.org>
3949
3950         Avoid using #, the m4 comment starter character, near brackets.
3951         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3952         delimiter character in sed expressions.
3953         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3954         Suggested by Eric Blake.
3955
3956         Properly quote AC_CHECK_DECLS' 4th argument.
3957         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3958         argument.
3959         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3960         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3961         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3962         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3963         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3964         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3965         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3966         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3967         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3968         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3969         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3970         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3971         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3972         * m4/isinf.m4 (gl_ISINF): Likewise.
3973         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3974         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3975         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3976         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3977         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3978         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3979         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3980         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3981         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3982         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3983         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3984         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3986         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3988         Reported by Eric Blake.
3989
3990         Properly quote AC_CHECK_DECL's 4th argument.
3991         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3992         argument.
3993         * m4/argp.m4 (gl_ARGP): Likewise.
3994         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3995         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3996         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3997         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3998         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3999         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4000         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4001         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4002         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4003         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4004         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4005         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4006         Reported by Eric Blake.
4007
4008 2011-09-14  Eric Blake  <eblake@redhat.com>
4009
4010         opendir: avoid compile warning
4011         * lib/opendir.c (includes): Always include errno.h.
4012         Reported by Tatsuro MATSUOKA.
4013
4014 2011-09-14  Jim Meyering  <meyering@redhat.com>
4015
4016         maint.mk: sc_tight_scope: propagate failure from sub-make
4017         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4018         Reported by Martin von Gagern.
4019
4020 2011-09-13  Bruno Haible  <bruno@clisp.org>
4021
4022         tempname: Support for MSVC.
4023         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4024         MSVC.
4025         * modules/tempname (Depends-on): Add fcntl-h.
4026
4027 2011-09-13  Bruno Haible  <bruno@clisp.org>
4028
4029         sys_time: Support for MSVC.
4030         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4031         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4032         include <winsock2.h>.
4033         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4034         function declarations that collide with POSIX.
4035         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4036         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4037
4038 2011-09-13  Bruno Haible  <bruno@clisp.org>
4039
4040         stat: Support for MSVC.
4041         * lib/stat.c: Include pathmax.h.
4042         * modules/stat (Depends-on): Add pathmax.
4043
4044         pathmax: Support for native Windows.
4045         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4046
4047 2011-09-12  Bruno Haible  <bruno@clisp.org>
4048
4049         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4050         * lib/dirent.in.h (struct dirent): New type.
4051         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4052         DT_WHT): New macros.
4053         (DIR): New type.
4054         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4055         (readdir, rewinddir): New declarations.
4056         * lib/dirent-private.h: New file.
4057         * lib/opendir.c: New file.
4058         * lib/readdir.c: New file.
4059         * lib/rewinddir.c: New file.
4060         * lib/closedir.c: New file.
4061         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4062         * m4/opendir.m4: New file.
4063         * m4/readdir.m4: New file.
4064         * m4/rewinddir.m4: New file.
4065         * m4/closedir.m4: New file.
4066         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4067         REPLACE_CLOSEDIR here.
4068         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4069         readdir, rewinddir are declared.
4070         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4071         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4072         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4073         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4074         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4075         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4076         * modules/opendir: New file.
4077         * modules/readdir: New file.
4078         * modules/rewinddir: New file.
4079         * modules/closedir: New file.
4080         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4081         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4082         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4083         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4084         * NEWS: Mention the 'fchdir' change.
4085
4086 2011-09-11  Bruno Haible  <bruno@clisp.org>
4087
4088         asm-underscore.m4: Support for MSVC.
4089         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4090         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4091
4092 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4093
4094         Doc about crypt functions.
4095         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4096         needing for _GNU_SOURCE to get crypt.
4097         * doc/posix-functions/encrypt.texi: Likewise.
4098         * doc/posix-functions/setkey.texi: Likewise.
4099
4100 2011-09-11  Bruno Haible  <bruno@clisp.org>
4101
4102         doc: Update regarding MSVC 9.
4103         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4104         tested".
4105         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4106         * doc/posix-headers/*.texi: Likewise.
4107         * doc/pastposix-functions/*.texi: Likewise.
4108         * doc/glibc-functions/*.texi: Likewise.
4109         * doc/glibc-headers/*.texi: Likewise.
4110
4111 2011-09-11  Bruno Haible  <bruno@clisp.org>
4112
4113         unistd et al.: Don't assume <unistd.h> exists.
4114         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4115         does not exist.
4116         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4117         exist. But include <stdlib.h>.
4118         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4119         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4120         symlink() does not exist.
4121         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4122         include <io.h> instead.
4123         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4124         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4125         include <direct.h> instead.
4126         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4127         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4128         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4129         <io.h> instead.
4130         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4131         correctly if the system does not have hard links.
4132         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4133         <direct.h> instead.
4134         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4135         it when looking for function declarations.
4136         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4137         <direct.h> and <io.h> instead.
4138         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4139
4140 2011-09-11  Bruno Haible  <bruno@clisp.org>
4141
4142         strcase: Support for MSVC.
4143         * modules/strcase (Status, Notice): Remove obsoletion mark.
4144         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4145         * doc/posix-functions/strncasecmp.texi: Likewise.
4146
4147         strings: Don't assume <strings.h> exists.
4148         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4149         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4150         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4151         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4152
4153 2011-09-11  Bruno Haible  <bruno@clisp.org>
4154
4155         dirent: Don't assume <dirent.h> exists.
4156         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4157         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4158         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4159         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4160
4161 2011-09-11  Bruno Haible  <bruno@clisp.org>
4162
4163         Fix wint_t on MSVC.
4164         * lib/wchar.in.h (wint_t): On MSVC, override it.
4165         * lib/wctype.in.h (wint_t): Likewise.
4166         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4167         MSVC.
4168         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4169         * doc/posix-headers/wctype.texi: Likewise.
4170
4171 2011-09-11  Bruno Haible  <bruno@clisp.org>
4172
4173         sys_types: Fix typo.
4174         * lib/sys_types.in.h: Fix typo in comment.
4175         Reported by Paul Eggert.
4176
4177         Support for MSVC compiler: Ensure size_t gets defined.
4178         * modules/strings (Depends-on): Add 'sys_types'.
4179         * modules/sys_uio (Depends-on): Likewise.
4180         * lib/sys_uio.in.h: Update comment.
4181
4182         C++ tests for module 'sys_types'.
4183         * modules/sys_types-c++-tests: New file.
4184         * tests/test-sys_types-c++.cc: New file.
4185
4186         Tests for module 'sys_types'.
4187         * modules/sys_types-tests: New file.
4188         * tests/test-sys_types.c: New file.
4189
4190         New module 'sys_types'.
4191         * lib/sys_types.in.h: New file.
4192         * m4/sys_types_h.m4: New file.
4193         * modules/sys_types: New file.
4194         * doc/posix-headers/sys_types.texi: Mention the new module and the
4195         size_t problem on MSVC 9.
4196
4197 2011-09-11  Bruno Haible  <bruno@clisp.org>
4198
4199         Support for MSVC compiler: Avoid division by a literal 0.
4200         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4201         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4202         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4203         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4204         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4205         * tests/infinity.h: New file.
4206         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4207         on MSVC.
4208         * tests/test-ceilf1.c: Include infinity.h.
4209         (main): Use Infinityf.
4210         * tests/test-ceil1.c: Include infinity.h.
4211         (main): Use Infinityd.
4212         * tests/test-ceill.c: Include infinity.h.
4213         (main): Use Infinityl.
4214         * tests/test-dprintf-posix.c: Include infinity.h.
4215         (test_function): Use Infinityd.
4216         * tests/test-floorf1.c: Include infinity.h.
4217         (main): Use Infinityf.
4218         * tests/test-floor1.c: Include infinity.h.
4219         (main): Use Infinityd.
4220         * tests/test-floorl.c: Include infinity.h.
4221         (main): Use Infinityl.
4222         * tests/test-fprintf-posix.c: Include infinity.h.
4223         (test_function): Use Infinityd.
4224         * tests/test-frexp.c: Include infinity.h.
4225         (main): Use Infinityd.
4226         * tests/test-frexpl.c: Include infinity.h.
4227         (main): Use Infinityl.
4228         * tests/test-isfinite.c: Include infinity.h.
4229         (test_isfinitef): Use Infinityf.
4230         (test_isfinited): Use Infinityd.
4231         (test_isfinitel): Use Infinityl.
4232         * tests/test-isinf.c: Include infinity.h.
4233         (test_isinff): Use Infinityf.
4234         (test_isinfd): Use Infinityd.
4235         (test_isinfl): Use Infinityl.
4236         * tests/test-isnan.c: Include infinity.h.
4237         (test_float): Use Infinityf.
4238         (test_double): Use Infinityd.
4239         (test_long_double): Use Infinityl.
4240         * tests/test-isnanf.h: Include infinity.h.
4241         (main): Use Infinityf.
4242         * tests/test-isnand.h: Include infinity.h.
4243         (main): Use Infinityd.
4244         * tests/test-isnanl.h: Include infinity.h.
4245         (main): Use Infinityl.
4246         * tests/test-ldexpl.c: Include infinity.h.
4247         (main): Use Infinityl.
4248         * tests/test-printf-posix.h: Include infinity.h.
4249         (test_function): Use Infinityd.
4250         * tests/test-roundf1.c: Include infinity.h.
4251         (main): Use Infinityf.
4252         * tests/test-round1.c: Include infinity.h.
4253         (main): Use Infinityd.
4254         * tests/test-roundl.c: Include infinity.h.
4255         (main): Use Infinityl.
4256         * tests/test-signbit.c: Include infinity.h.
4257         (test_signbitf): Use Infinityf.
4258         (test_signbitd): Use Infinityd.
4259         (test_signbitl): Use Infinityl.
4260         * tests/test-snprintf-posix.h: Include infinity.h.
4261         (test_function): Use Infinityd, Infinityl.
4262         * tests/test-sprintf-posix.h: Include infinity.h.
4263         (test_function): Use Infinityd, Infinityl.
4264         * tests/test-truncf1.c: Include infinity.h.
4265         (main): Use Infinityf.
4266         * tests/test-trunc1.c: Include infinity.h.
4267         (main): Use Infinityd.
4268         * tests/test-truncl.c: Include infinity.h.
4269         (main): Use Infinityl.
4270         * tests/test-vasnprintf-posix.c: Include infinity.h.
4271         (test_function): Use Infinityd, Infinityl.
4272         * tests/test-vasprintf-posix.c: Include infinity.h.
4273         (test_function): Use Infinityd, Infinityl.
4274         * modules/ceilf-tests (Files): Add tests/infinity.h.
4275         * modules/ceil-tests (Files): Likewise.
4276         * modules/ceill-tests (Files): Likewise.
4277         * modules/dprintf-posix-tests (Files): Likewise.
4278         * modules/floorf-tests (Files): Likewise.
4279         * modules/floor-tests (Files): Likewise.
4280         * modules/floorl-tests (Files): Likewise.
4281         * modules/fprintf-posix-tests (Files): Likewise.
4282         * modules/frexp-tests (Files): Likewise.
4283         * modules/frexp-nolibm-tests (Files): Likewise.
4284         * modules/frexpl-tests (Files): Likewise.
4285         * modules/frexpl-nolibm-tests (Files): Likewise.
4286         * modules/isfinite-tests (Files): Likewise.
4287         * modules/isinf-tests (Files): Likewise.
4288         * modules/isnan-tests (Files): Likewise.
4289         * modules/isnanf-tests (Files): Likewise.
4290         * modules/isnanf-nolibm-tests (Files): Likewise.
4291         * modules/isnand-tests (Files): Likewise.
4292         * modules/isnand-nolibm-tests (Files): Likewise.
4293         * modules/isnanl-tests (Files): Likewise.
4294         * modules/isnanl-nolibm-tests (Files): Likewise.
4295         * modules/ldexpl-tests (Files): Likewise.
4296         * modules/printf-posix-tests (Files): Likewise.
4297         * modules/roundf-tests (Files): Likewise.
4298         * modules/round-tests (Files): Likewise.
4299         * modules/roundl-tests (Files): Likewise.
4300         * modules/signbit-tests (Files): Likewise.
4301         * modules/snprintf-posix-tests (Files): Likewise.
4302         * modules/sprintf-posix-tests (Files): Likewise.
4303         * modules/truncf-tests (Files): Likewise.
4304         * modules/trunc-tests (Files): Likewise.
4305         * modules/truncl-tests (Files): Likewise.
4306         * modules/vasnprintf-posix-tests (Files): Likewise.
4307         * modules/vasprintf-posix-tests (Files): Likewise.
4308         * modules/vdprintf-posix-tests (Files): Likewise.
4309         * modules/vfprintf-posix-tests (Files): Likewise.
4310         * modules/vprintf-posix-tests (Files): Likewise.
4311         * modules/vsnprintf-posix-tests (Files): Likewise.
4312         * modules/vsprintf-posix-tests (Files): Likewise.
4313         * modules/xprintf-posix-tests (Files): Likewise.
4314
4315 2011-09-11  Bruno Haible  <bruno@clisp.org>
4316
4317         Ensure pid_t gets defined.
4318         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4319         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4320         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4321         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4322         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4323         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4324         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4325         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4326         * tests/test-fcntl-h.c: Check that pid_t is defined.
4327         * tests/test-sched.c: Likewise.
4328         * tests/test-termios.c: Likewise.
4329         * tests/test-time.c: Likewise.
4330         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4331         * doc/posix-headers/signal.texi: Likewise.
4332         * doc/posix-headers/sys_types.texi: Likewise.
4333         * doc/posix-headers/time.texi: Likewise.
4334
4335 2011-09-11  Bruno Haible  <bruno@clisp.org>
4336
4337         acl: Fix compilation on Solaris 10 (older version).
4338         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4339         of ACE_EVERYONE.
4340         * lib/set-mode-acl.c (qset_acl): Likewise.
4341         Reported by Christian Jullien <eligis@orange.fr>.
4342
4343 2011-09-10  Bruno Haible  <bruno@clisp.org>
4344
4345         iconv, unsetenv: Add support for MSVC compiler.
4346         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4347         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4348
4349 2011-09-10  Bruno Haible  <bruno@clisp.org>
4350
4351         *printf: Add support for MSVC compiler.
4352         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4353         handles the exception caused by the %n directive. When cross-compiling,
4354         guess no on native Windows.
4355         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4356         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4357         emulate it through vsnprintf.
4358         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4359         * doc/posix-functions/dprintf.texi: Update documentation regarding
4360         MSVC 9.
4361         * doc/posix-functions/fprintf.texi: Likewise.
4362         * doc/posix-functions/printf.texi: Likewise.
4363         * doc/posix-functions/snprintf.texi: Likewise.
4364         * doc/posix-functions/sprintf.texi: Likewise.
4365         * doc/posix-functions/swprintf.texi: Likewise.
4366         * doc/posix-functions/vdprintf.texi: Likewise.
4367         * doc/posix-functions/vfprintf.texi: Likewise.
4368         * doc/posix-functions/vprintf.texi: Likewise.
4369         * doc/posix-functions/vsnprintf.texi: Likewise.
4370         * doc/posix-functions/vsprintf.texi: Likewise.
4371         * doc/glibc-functions/asprintf.texi: Likewise.
4372         * doc/glibc-functions/obstack_printf.texi: Likewise.
4373         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4374         * doc/glibc-functions/vasprintf.texi: Likewise.
4375
4376 2011-09-10  Bruno Haible  <bruno@clisp.org>
4377
4378         nocrash: Add support for native Windows.
4379         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4380
4381 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4382             Bruno Haible  <bruno@clisp.org>
4383
4384         absolute-header, include-next: Add support for MSVC compiler.
4385         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4386         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4387         directory separator in #line directives.
4388         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4389         recognize also backslash as directory separator in #line directives.
4390
4391 2011-09-08  Jim Meyering  <meyering@redhat.com>
4392
4393         maint.mk: mark the post-release commit log with "maint: " prefix
4394         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4395         one-line commit-log summary.
4396
4397 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4398             Bruno Haible  <bruno@clisp.org>
4399
4400         Doc about crypt functions.
4401         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4402         systems.
4403         * doc/posix-functions/encrypt.texi: Likewise.
4404         * doc/posix-functions/setkey.texi: Likewise.
4405
4406 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4407
4408         * lib/gc.h: Fix copyright header.
4409
4410 2011-09-07  Bruno Haible  <bruno@clisp.org>
4411
4412         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4413         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4414         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4415
4416 2011-09-07  Bruno Haible  <bruno@clisp.org>
4417
4418         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4419         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4420         * lib/freopen.c: Likewise.
4421         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4422         * lib/lstat.c: Likewise.
4423         * lib/stat.c: Likewise.
4424         * lib/open.c: Use different syntax for include of <fcntl.h>.
4425         * lib/openat.c: Include fcntl.h again, explicitly.
4426
4427 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4428
4429         parse-datetime: document the newly accepted format
4430         * doc/parse-datetime.texi (Combined date and time of day items):
4431         New section.
4432
4433 2011-09-06  Bruno Haible  <bruno@clisp.org>
4434
4435         acl: Fix a test failure on newer Solaris 10 with ZFS.
4436         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4437         ENOSYS as no ACL.
4438         Reported by Jim Meyering.
4439
4440 2011-09-06  Bruno Haible  <bruno@clisp.org>
4441
4442         acl: Update for AIX >= 5.3 with NFS.
4443         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4444         ENOSYS as no ACL.
4445
4446         acl: Fix a test failure on AIX >= 5.3 with NFS.
4447         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4448         as no ACL.
4449
4450 2011-09-06  Bruno Haible  <bruno@clisp.org>
4451
4452         acl: Fix a test failure on IRIX 6.5 with NFS.
4453         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4454         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4455         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4456         * lib/copy-acl.c (qcopy_acl): Likewise.
4457
4458 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4459
4460         openat: port to AIX 7.1 with large files
4461         AIX 7.1 does a "#define openat open64at" if large files are in use,
4462         so we can't simply #undef openat.  Use the orig_openat trick (similar
4463         to orig_open in lib/open.c) to work around the problem.  Problem
4464         reported by Kevin Brott for GNU tar, in the thread containing
4465         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4466         * lib/openat.c (__need_system_fcntl_h): Define first.
4467         Include <fcntl.h> and <sys/types.h> before undefining.
4468         (orig_openat) [HAVE_OPENAT]: New inline function.
4469         (openat) [HAVE_OPENAT]: Do not undef.
4470         (rpl_openat): Use orig_openat, not openat.
4471
4472 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4473             Bruno Haible  <bruno@clisp.org>
4474
4475         acl: Avoid errors on NonStop Kernel.
4476         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4477         ENOTSUP errors.
4478
4479 2011-09-05  Bruno Haible  <bruno@clisp.org>
4480
4481         acl: Clean up Solaris code.
4482         * lib/acl-internal.h: Remove no-op #if.
4483         * lib/file-has-acl.c: Likewise.
4484         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4485         * lib/copy-acl.c (qcopy_acl): Likewise.
4486
4487 2011-09-05  Bruno Haible  <bruno@clisp.org>
4488
4489         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4490         binaries built on the original Solaris 10.
4491         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4492         trivial.
4493
4494 2011-09-05  Bruno Haible  <bruno@clisp.org>
4495
4496         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4497         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4498         10.
4499         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4500         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4501         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4502         instead of acl_get, facl_get, acl_set, facl_set.
4503
4504 2011-09-05  Bruno Haible  <bruno@clisp.org>
4505
4506         copy-file: Try unit tests on more file systems.
4507         * tests/test-copy-file-1.sh: New file.
4508         * tests/test-copy-file-2.sh: New file.
4509         * modules/copy-file-tests (Files): Add them.
4510         (Makefile.am): Add them to TESTS.
4511
4512         acl: Try unit tests on more file systems.
4513         * tests/test-file-has-acl-1.sh: New file.
4514         * tests/test-file-has-acl-2.sh: New file.
4515         * tests/test-set-mode-acl-1.sh: New file.
4516         * tests/test-set-mode-acl-2.sh: New file.
4517         * tests/test-copy-acl-1.sh: New file.
4518         * tests/test-copy-acl-2.sh: New file.
4519         * modules/acl-tests (Files): Add them.
4520         (Makefile.am): Add them to TESTS.
4521
4522 2011-09-04  Bruno Haible  <bruno@clisp.org>
4523
4524         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4525         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4526         10.
4527         (OLD_ALLOW, OLD_DENY): New macros.
4528         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4529         ACE_ACCESS_ALLOWED_ACE_TYPE.
4530         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4531         ACE_ACCESS_DENIED_ACE_TYPE.
4532         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4533         (NEW_ACE_EXECUTE): Fix value.
4534         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4535         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4536         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4537         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4538         NEW_ACE_SYNCHRONIZE): New macros.
4539         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4540         instead of acl_fromtext, acl_set, facl_set.
4541         Fixes a coreutils/tests/cp/perm failure.
4542
4543 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4544
4545         openat: test for fstatat (..., 0) bug
4546         Further testing with tar suggests that fstatat (..., 0)
4547         does not work in general, on AIX 7.1; see
4548         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4549         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4550         replacement fstatat (which is what older AIX releases were using
4551         anyway).
4552         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4553         use is now changed to orig_fstatat.  This was probably the right
4554         thing to do anyway.
4555         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4556         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4557         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4558         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4559         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4560         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4561         if the bug is found.
4562
4563         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4564         This tests for another fstatat bug on AIX 7.1:
4565         fstatat (AT_FDCWD, ..., 0) does not work.  See
4566         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4567         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4568         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4569         (rpl_fstatat): Adjust so that it works around either (or both)
4570         bugs if present.
4571         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4572
4573 2011-09-03  Karl Berry  <karl@gnu.org>
4574
4575         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4576         in index entries.
4577
4578 2011-09-02  Bruno Haible  <bruno@clisp.org>
4579
4580         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4581         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4582         values of AR, ARFLAGS, RANLIB.
4583         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4584
4585 2011-09-02  Bruno Haible  <bruno@clisp.org>
4586
4587         Find 'ar' program that fits with --host argument.
4588         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4589
4590 2011-09-02  Bruno Haible  <bruno@clisp.org>
4591
4592         tests: init.sh: Support any non-GNU diff.
4593         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4594         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4595         Solaris 8.
4596
4597 2011-09-02  Bruno Haible  <bruno@clisp.org>
4598
4599         tests: init.sh: work also with any non-GNU diff that supports -u
4600         * tests/init.sh: Relax check for diff -u support.
4601         Rather than checking for GNU diff via --version, simply check
4602         for support for -u itself.  Useful at least on OpenBSD 4.9,
4603         AIX 7.1, IRIX 6.5, and Solaris 10.
4604
4605 2011-09-01  Bruno Haible  <bruno@clisp.org>
4606
4607         strtoimax, strtoumax: Document problem on HP-UX 11.
4608         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4609         * doc/posix-functions/strtoumax.texi: Likewise.
4610
4611 2011-09-01  Bruno Haible  <bruno@clisp.org>
4612
4613         strtoumax: Avoid link error on OSF/1 with DTK cc.
4614         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4615         defined as a function.
4616         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4617         strtoumax is defined, not whether it is declared.
4618
4619 2011-09-01  Bruno Haible  <bruno@clisp.org>
4620
4621         strtoimax: Avoid link error on OSF/1 with DTK cc.
4622         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4623         defined as a function.
4624         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4625         strtoimax is defined, not whether it is declared.
4626
4627 2011-09-01  Bruno Haible  <bruno@clisp.org>
4628
4629         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4630         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4631         as a function.
4632         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4633         whether it is declared.
4634
4635 2011-09-01  Bruno Haible  <bruno@clisp.org>
4636
4637         imaxabs: Avoid link error on OSF/1 with DTK cc.
4638         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4639         as a function.
4640         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4641         whether it is declared.
4642
4643 2011-09-01  Bruno Haible  <bruno@clisp.org>
4644
4645         Tests for module 'strtoumax'.
4646         * modules/strtoumax-tests: New file.
4647         * tests/test-strtoumax.c: New file.
4648
4649         Tests for module 'strtoimax'.
4650         * modules/strtoimax-tests: New file.
4651         * tests/test-strtoimax.c: New file.
4652
4653         Tests for module 'imaxdiv'.
4654         * modules/imaxdiv-tests: New file.
4655         * tests/test-imaxdiv.c: New file.
4656
4657         Tests for module 'imaxabs'.
4658         * modules/imaxabs-tests: New file.
4659         * tests/test-imaxabs.c: New file.
4660
4661 2011-09-01  Bruno Haible  <bruno@clisp.org>
4662
4663         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4664         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4665         pthread_create.
4666
4667 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4668
4669         openat: work around AIX 7.1 fstatat issue
4670         This should fix the problem that was not properly fixed
4671         in the previous change, dated 2011-08-30.
4672         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4673         __need_system_stat_h defined.
4674         (orig_fstatat) [HAVE_FSTATAT]: New function.
4675         (rpl_fstatat): Go back to the old way of doing things,
4676         except call orig_fstatat instead of fstatat.
4677         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4678         Remove unnecessary check whether fstatat fills in st_size etc.
4679
4680 2011-09-01  Bruno Haible  <bruno@clisp.org>
4681
4682         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4683         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4684         just include the system's header.
4685
4686 2011-08-31  Jim Meyering  <meyering@redhat.com>
4687
4688         tests: avoid spurious assertion failure in test-float.c on ppc64
4689         * tests/test-float.c (test_long_double): Comment out an assertion,
4690         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4691         with gcc-4.4.4.
4692
4693         maint: indent with spaces, not TABs
4694         I need to get in the habit of running gnulib's "make check".
4695         Both of these would have been caught.
4696         * m4/largefile.m4: Indent with spaces, not TABs.
4697         * lib/parse-datetime.y (iso_8601_time): Likewise.
4698         Spotted by Pádraig Brady.
4699
4700         test-parse-datetime.c: accommodate a relatively strict gcc warning
4701         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4702         to avoid a warning from gcc's -Werror=missing-declarations.
4703         Insert a few spaces-before-funcall-parenthesis.
4704
4705 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4706
4707         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4708         The parser now accepts ISO 8601 date-time strings with "T" as the
4709         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4710         with a space between the date and time strings.  Now it also parses
4711         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4712         variants like "2004-02-29T16:21:42.333-07:00"
4713         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4714         of day representation using the 'T' separator character.
4715         * doc/parse-datetime.texi (General date syntax): replace use of
4716         deprecated --iso-8601 option with --rfc-3339 in example of date
4717         command output formats that can be parsed.
4718         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4719         lib/parse-datetime.y.
4720         (gmt_offset): New function.
4721         (main): Add additional test cases to validate ISO8601 extended
4722         date and time of day parsing.
4723
4724 2011-08-31  Bruno Haible  <bruno@clisp.org>
4725
4726         freopen: Documentation.
4727         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4728         name.
4729         Reported by Claudio Bley <claudio.bley@gmail.com>.
4730
4731 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4732
4733         freopen: Don't crash if the filename argument is NULL.
4734         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4735         NULL.
4736
4737 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4738
4739         openat: work around AIX 7.1 fstatat bug
4740         Problem reported by Kevin Brott for GNU tar, in the thread containing
4741         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4742         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4743         FSTATAT_ST_SIZE_ETC_BROKEN.
4744         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4745         rpl_fstatat.
4746         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4747         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4748         AC_CHECK_FUNCS_ONCE for fstatat.
4749         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4750         fchmodat, mkdirat, openat and unlinkat.
4751
4752 2011-08-30  Bruno Haible  <bruno@clisp.org>
4753
4754         Avoid endless recursions if config.h includes some header files.
4755         * lib/fopen.c (__need_FILE): Define already before including config.h.
4756         * lib/freopen.c (__need_FILE): Likewise.
4757         * lib/open.c (__need_system_fcntl_h): Likewise.
4758         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4759         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4760         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4761
4762 2011-08-25  Karl Berry  <karl@gnu.org>
4763
4764         * config/srclist.txt (ylwrap): new try.
4765         * build-aux/ylwrap: new file.
4766
4767 2011-08-23  Bruno Haible  <bruno@clisp.org>
4768
4769         tmpdir: Use a good default directory on native Windows.
4770         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4771         (P_tmpdir): Default to _P_tmpdir on native Windows.
4772         (path_search): On native Windows, try the value returned by GetTempPath
4773         before trying P_tmpdir.
4774         * modules/tmpdir (Depends-on): Add pathmax.
4775         Suggested by John Darrington <john@darrington.wattle.id.au>.
4776
4777 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4778
4779         doc: fix typo in README-release
4780         * top/README-release: Capitalize first word of a sentence.
4781
4782 2011-08-19  Jim Meyering  <meyering@redhat.com>
4783
4784         fts: do not exhaust memory when processing million-entry directories
4785         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4786         directory would require about 256*N bytes of memory.  Thus, it was
4787         easy to construct a directory too large to be processed by any of
4788         those tools.  With this change, fts' maximum memory utilization is
4789         now limited to around 30MB.
4790         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4791         (fts_read): When we've processed the final entry (i.e., when
4792         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4793         using the parent entry to read any remaining entries.  Dispatch
4794         depending on what fts_build returns:
4795         - NULL+stop, aka failure: stop
4796         - NULL otherwise: move up in the dir hierarchy
4797         - non-NULL: handle this new entry
4798         (fts_build): Declare and use new local, continue_readdir.
4799         Prepare to be called from fts_read, when the entries
4800         from a partially-read directory have just been exhausted.
4801         In that case, we'll skip the opendir and instead use the parent's
4802         fts_dirp and derive dir_fd from that.
4803         Finally, in the readdir loop, if we read max_entries entries,
4804         exit the loop ensuring *not* to call closedir.  This is required
4805         so that fts_dirp can be reused on a subsequent call.
4806         Prompted by Ben England's report of memory exhaustion in find
4807         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4808
4809         maint: fts: move decl of `dp' down into while loop; split a long line
4810         * lib/fts.c (fts_build): No semantic change.
4811
4812         fts: add/use new struct member, fts_dirp
4813         We are about to use this to manage any directory with
4814         too many entries to read all of them into memory at once.
4815         To do that, we'll need to save the DIR* pointer in each
4816         affected FTSENT struct.
4817         * lib/fts_.h: Include <dirent.h>.
4818         (struct FTSENT) [fts_dirp]: New member.
4819         * lib/fts.c (closedir_and_clear): Define.
4820         Use it in place of closedir so that we are sure to
4821         clear the new fts_dirp member when done with it.
4822         (fts_alloc): Initialize the new member.
4823         (fts_lfree): Free, if needed.
4824
4825         maint: fts: give __opendir2 a new parameter and rename
4826         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4827         than surreptitiously using sole caller's "dir_fd".
4828         (fts_opendir): Rename from __opendir2.
4829
4830         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4831         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4832
4833         maint: fts.c: correct off-by-one indentation
4834         * lib/fts.c (fts_build): Correct indentation, change style
4835         of a couple of block comments, and bracing style.
4836
4837         maint: fts.c: move __opendir2 #define "up" out of function body
4838         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4839
4840         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4841         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4842         out for a long time and besides was useful only on BSD systems.
4843
4844 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4845
4846         regex: port to Stratus OpenVOS
4847         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4848         define to empty, rather than attempting nonportable optimizations.
4849         Problem reported by Paul Green in:
4850         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4851         and fix suggested by Eric Blake in:
4852         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4853
4854 2011-08-17  Eric Blake  <eblake@redhat.com>
4855
4856         getcwd: fix test failures on mingw
4857         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4858         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4859         test if long directory cannot be created, and allow mingw errno.
4860
4861         getcwd-lgpl: fix m4 to match relaxed test for BSD
4862         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4863         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4864         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4865         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4866         signature problem.
4867
4868         getcwd: fix compilation on mingw64
4869         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4870         getcwd.
4871         Reported by Marc-André Lureau.
4872
4873         pipe2: silence compiler warning
4874         * lib/pipe2.c (pipe2): Hide label if it is not used.
4875
4876 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4877
4878         relocatable-prog: fix link error
4879         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4880         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4881         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4882         into modules/relocatable-lib without noticing that
4883         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4884         also needs to build relocatable.c.
4885
4886 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4887
4888         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4889         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4890         shell code: it contained a 'break' that was not in a loop.
4891         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4892         via a shell-language loop; this may have been true in old Autoconf
4893         versions, but it's not true in Autoconf 2.68.  I found this bug
4894         when testing coreutils git on Solaris 8, whose shell complains
4895         about the syntax error.
4896
4897 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4898
4899         * lib/base64.c: Fix comment to reference RFC 4648.
4900         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4901         <gvtulder@gmail.com>.
4902
4903 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4904
4905         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4906
4907         po/Makefile.in.in: fix make -q problem
4908         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4909         rule, since there's no file named 'check-macro-version' and its
4910         use as a file breaks make -q.
4911         (all): Don't depend on check-macro-version.
4912         (CHECK_MACRO_VERSION): New macro.
4913         (stamp-po): Use it.
4914
4915         configmake: fix make -q problem
4916         * modules/configmake (configmake.h): Update configmake.h's time stamp
4917         even if the file does not change.  Otherwise, 'make -q' fails.
4918         Problem reported by Simon Josefsson in
4919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4920
4921 2011-08-11  Jim Meyering  <meyering@redhat.com>
4922
4923         git-version-gen: correct the advice in a comment
4924         * build-aux/git-version-gen: Correct comment.
4925         Don't recommend to list .tarball-version in .gitignore.
4926
4927 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4928
4929         base64: fix off-by-one buffer size bug
4930         Problem and (trivial) fix reported by Gijs van Tulder in
4931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4932         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4933         * tests/test-base64.c (main): Catch the bug.
4934
4935 2011-08-10  Eric Blake  <eblake@redhat.com>
4936
4937         closein: correct comments
4938         * lib/closein.c (close_stdin): Improve comments.
4939
4940 2011-08-09  Bruno Haible  <bruno@clisp.org>
4941
4942         More tests for 'fseeko'.
4943         * tests/test-fseeko3.c: New file, from Eric Blake.
4944         * tests/test-fseeko3.sh: New file.
4945         * modules/fseeko-tests (Files): Add them.
4946         (TESTS): Add test-fseeko3.sh.
4947         (check_PROGRAMS): Add test-fseeko3.
4948
4949 2011-08-09  Eric Blake  <eblake@redhat.com>
4950
4951         fseeko: remove unneeded hack
4952         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4953
4954         fseeko: fix bug on glibc
4955         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4956         Reported by John W. Eaton.
4957
4958 2011-08-08  Bruno Haible  <bruno@clisp.org>
4959
4960         unictype/base: Fix interoperability with preinstalled libunistring.
4961         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4962         Reported by Simon Josefsson.
4963
4964 2011-08-08  Bruno Haible  <bruno@clisp.org>
4965
4966         iswblank: Detect declaration correctly.
4967         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4968         AC_CHECK_DECLS invocation.
4969
4970 2011-08-08  Bruno Haible  <bruno@clisp.org>
4971
4972         tcgetsid: Detect declaration correctly.
4973         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4974         AC_CHECK_DECLS invocation.
4975         Reported by Simon Josefsson.
4976
4977 2011-08-08  Eric Blake  <eblake@redhat.com>
4978
4979         largefile: fix typo that regressed large file support
4980         * modules/largefile (configure.ac-early): Fix section name.
4981
4982 2011-08-06  Karl Berry  <karl@gnu.org>
4983
4984         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4985         a separate module.
4986
4987 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4988
4989         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4990         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4991         get prototype for free.
4992
4993 2011-08-04  Bruno Haible  <bruno@clisp.org>
4994
4995         Tests for module 'pathmax'.
4996         * modules/pathmax-tests: New file.
4997         * tests/test-pathmax.c: New file.
4998
4999         canonicalize-lgpl: Support larger filenames on the Hurd.
5000         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5001         Reported by Paul Eggert.
5002
5003         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5004         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5005         * lib/chdir-long.h: Include pathmax.h.
5006         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5007         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5008         (PATH_MAX): Remove code that is done by pathmax.h.
5009         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5010         * lib/tmpfile.c: Add a comment.
5011         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5012         * modules/chdir-long (Depends-on): Add pathmax.
5013         * modules/getcwd (Depends-on): Add pathmax.
5014         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5015         is not defined.
5016         * doc/posix-headers/limits.texi: Mention the pathmax module.
5017         * NEWS: Mention the change.
5018
5019 2011-08-02  Bruno Haible  <bruno@clisp.org>
5020
5021         pthread_sigmask: Actually use results of gl_THREADLIB.
5022         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5023         gl_THREADLIB, not gl_[]THREADLIB.
5024         Reported by Eric Blake.
5025
5026 2011-08-02  Jim Meyering  <meyering@redhat.com>
5027
5028         maint.mk: relax the default _gl_TS_function_match regexp
5029         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5030         space between function name and "(" in an "extern" declaration.
5031         That would fail to match a decl with no space there: extern void foo();
5032
5033 2011-07-31  Iain Nicol  <iain@thenicols.net>
5034
5035         git-version-gen: document that EXTRA_DIST must include .version
5036         * build-aux/git-version-gen: In the how-to-use comment, document
5037         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5038         will fail when run from an unpacked distribution tarball.
5039
5040 2011-08-01  Bruno Haible  <bruno@clisp.org>
5041
5042         wctype-h: Fix last change.
5043         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5044         REPLACE_TOWLOWER to 0.
5045         Reported by Sam Steingold <sds@gnu.org>.
5046
5047 2011-07-31  Bruno Haible  <bruno@clisp.org>
5048
5049         frexpl: Update autoconf test.
5050         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5051         according to changes of 2011-06-20.
5052
5053 2011-07-31  Bruno Haible  <bruno@clisp.org>
5054
5055         sys_utsname: Add support for Minix.
5056         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5057         <sys/utsname.h>.
5058         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5059         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5060
5061 2011-07-31  Bruno Haible  <bruno@clisp.org>
5062
5063         strings: Add support for Minix.
5064         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5065         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5066         * doc/posix-headers/strings.texi: Document the Minix problem.
5067
5068 2011-07-31  Bruno Haible  <bruno@clisp.org>
5069
5070         wctype-h: Add support for Minix.
5071         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5072         REPLACE_TOWLOWER.
5073         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5074         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5075         REPLACE_ISWCNTRL.
5076
5077 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5078
5079         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5080         This is a performance improvement for 64-bit hosts: it causes the
5081         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5082
5083 2011-07-31  Bruno Haible  <bruno@clisp.org>
5084
5085         stdioext: Add support for Minix.
5086         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5087         * lib/fpurge.c (fpurge): Likewise.
5088         * lib/freadahead.c (freadahead): Likewise.
5089         * lib/freadable.c (freadable): Likewise.
5090         * lib/freading.c (freading): Likewise.
5091         * lib/freadptr.c (freadptr): Likewise.
5092         * lib/freadseek.c (freadptrinc): Likewise.
5093         * lib/fseeko.c (rpl_fseeko): Likewise.
5094         * lib/fseterr.c (fseterr): Likewise.
5095         * lib/fwritable.c (fwritable): Likewise.
5096         * lib/fwriting.c (fwriting): Likewise.
5097         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5098         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5099
5100 2011-07-31  Bruno Haible  <bruno@clisp.org>
5101
5102         errno: Port to Minix.
5103         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5104         ECONNABORTED are defined.
5105         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5106         GNULIB_defined_ECONNABORTED): New macros.
5107         * lib/strerror-override.h (strerror_override): Test also
5108         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5109         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5110         ECONNABORTED.
5111         * doc/posix-headers/errno.texi: Mention the Minix problem.
5112
5113 2011-07-31  Bruno Haible  <bruno@clisp.org>
5114
5115         Work around declaration collisions on Minix.
5116         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5117         defined, set REPLACE_MBSINIT.
5118         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5119         defined, set REPLACE_MBRTOWC.
5120         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5121         set REPLACE_MBRLEN.
5122         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5123         defined, set REPLACE_MBSRTOWCS.
5124         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5125         defined, set REPLACE_WCRTOMB.
5126         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5127         defined, set REPLACE_WCSRTOMBS.
5128
5129 2011-07-31  Bruno Haible  <bruno@clisp.org>
5130
5131         Add support for Minix with ACK compiler.
5132         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5133         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5134         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5135
5136 2011-07-31  Bruno Haible  <bruno@clisp.org>
5137
5138         Documentation about Minix.
5139         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5140         * doc/glibc-headers/*.texi: Likewise.
5141         * doc/posix-functions/*.texi: Likewise.
5142         * doc/glibc-functions/*.texi: Likewise.
5143
5144 2011-07-31  Bruno Haible  <bruno@clisp.org>
5145
5146         snippet/warn-on-use: Fix indentation.
5147         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5148
5149 2011-07-25  Jim Meyering  <meyering@redhat.com>
5150
5151         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5152         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5153         commands.
5154
5155 2011-07-27  Jim Meyering  <meyering@redhat.com>
5156
5157         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5158         * top/maint.mk (gl_extract_significant_defines_): Now that
5159         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5160         gnulib/lib/signal.in.h, and now that we recommend to
5161         define-if-undefined those two symbols in application code,
5162         we must filter them out of the "significant" list.
5163         This avoids a "make syntax-check" failure in coreutils.
5164
5165 2011-07-26  Eric Blake  <eblake@redhat.com>
5166
5167         warnings: add comments about previous patch
5168         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5169         * m4/include_next.m4: Likewise.
5170         * m4/warn-on-use.m4: Likewise.
5171         * m4/warnings.m4: Likewise, and simplify use.
5172         Suggested by Stefano Lattarini.
5173
5174         include-next, warnings: support older autoconf
5175         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5176         AS_VAR_PUSHDEF in a way that works with older autoconf.
5177         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5178         Reported by Daniel P. Berrange.
5179
5180 2011-07-25  Bruno Haible  <bruno@clisp.org>
5181
5182         fseek, ftell: Fix doc.
5183         * doc/posix-functions/fseek.texi: Reword statement about
5184         AC_SYS_LARGEFILE.
5185         * doc/posix-functions/ftell.texi: Likewise.
5186
5187 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5188             Bruno Haible  <bruno@clisp.org>
5189
5190         Add dependencies to the 'largefile' module.
5191         * modules/fopen (Depends-on): Add 'largefile'.
5192         * modules/freopen (Depends-on): Likewise.
5193         * modules/fseeko (Depends-on): Likewise.
5194         * modules/ftello (Depends-on): Likewise.
5195         * modules/glob (Depends-on): Likewise.
5196         * modules/lseek (Depends-on): Likewise.
5197         * modules/lstat (Depends-on): Likewise.
5198         * modules/mkostemp (Depends-on): Likewise.
5199         * modules/mkostemps (Depends-on): Likewise.
5200         * modules/mkstemp (Depends-on): Likewise.
5201         * modules/mkstemps (Depends-on): Likewise.
5202         * modules/open (Depends-on): Likewise.
5203         * modules/openat (Depends-on): Likewise.
5204         * modules/pread (Depends-on): Likewise.
5205         * modules/pwrite (Depends-on): Likewise.
5206         * modules/scandir (Depends-on): Likewise.
5207         * modules/stat (Depends-on): Likewise.
5208         * modules/tmpfile (Depends-on): Likewise.
5209         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5210         since the containing module now depends on the largefile module.
5211         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5212         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5213         off_t is fixed by gnulib.
5214         * doc/posix-functions/freopen.texi: Likewise.
5215         * doc/posix-functions/fseeko.texi: Likewise.
5216         * doc/posix-functions/fstatat.texi: Likewise.
5217         * doc/posix-functions/ftello.texi: Likewise.
5218         * doc/posix-functions/glob.texi: Likewise.
5219         * doc/posix-functions/lseek.texi: Likewise.
5220         * doc/posix-functions/lstat.texi: Likewise.
5221         * doc/posix-functions/mkstemp.texi: Likewise.
5222         * doc/posix-functions/open.texi: Likewise.
5223         * doc/posix-functions/openat.texi: Likewise.
5224         * doc/posix-functions/pread.texi: Likewise.
5225         * doc/posix-functions/pwrite.texi: Likewise.
5226         * doc/posix-functions/scandir.texi: Likewise.
5227         * doc/posix-functions/stat.texi: Likewise.
5228         * doc/posix-functions/tmpfile.texi: Likewise.
5229         * doc/glibc-functions/mkostemp.texi: Likewise.
5230         * doc/glibc-functions/mkostemps.texi: Likewise.
5231         * doc/glibc-functions/mkstemps.texi: Likewise.
5232
5233 2011-07-25  Bruno Haible  <bruno@clisp.org>
5234
5235         fcntl: Move AC_LIBOBJ invocation to module description.
5236         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5237         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5238
5239         fcntl: Remove call-in from fchdir.m4.
5240         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5242
5243         dup3: Remove potential call-in from fchdir.m4.
5244         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5246
5247         dup2: Move AC_LIBOBJ invocation to module description.
5248         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5249         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5250         Don't invoke AC_LIBOBJ.
5251         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5252
5253         dup2: Remove call-in from fchdir.m4.
5254         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5256
5257         fclose: Move AC_LIBOBJ invocation to module description.
5258         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5259         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5260         to 1.
5261         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5262
5263         fclose: Remove call-in from close.m4.
5264         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5265         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5266
5267         close: Move AC_LIBOBJ invocation to module description.
5268         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5269         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5270         1.
5271         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5272
5273         close: Remove call-in from fchdir.m4.
5274         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5276
5277         open: Move AC_LIBOBJ invocation to module description.
5278         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5279         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5280         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5281
5282         open: Remove call-in from fchdir.m4.
5283         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5284         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5285
5286         fchdir: Start to remove gl_REPLACE_* idiom.
5287         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5288         (gl_FUNC_FCHDIR): Invoke it.
5289
5290 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5291
5292         * lib/ftell.c (ftell): Comment out cast.
5293
5294         close: use gl_REPLACE_FCLOSE only if defined
5295         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5296         is defined.  The close module doesn't depend on the fclose module
5297         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5299         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5300
5301 2011-07-24  Jim Meyering  <meyering@redhat.com>
5302
5303         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5304         * tests/test-select.h (test_function): Declare as "static".
5305
5306 2011-07-24  Bruno Haible  <bruno@clisp.org>
5307
5308         doc: Mention the effects of AC_SYS_LARGEFILE.
5309         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5310         on this function.
5311         * doc/posix-functions/aio_error.texi: Likewise.
5312         * doc/posix-functions/aio_fsync.texi: Likewise.
5313         * doc/posix-functions/aio_read.texi: Likewise.
5314         * doc/posix-functions/aio_return.texi: Likewise.
5315         * doc/posix-functions/aio_suspend.texi: Likewise.
5316         * doc/posix-functions/aio_write.texi: Likewise.
5317         * doc/posix-functions/fgetpos.texi: Likewise.
5318         * doc/posix-functions/fopen.texi: Likewise.
5319         * doc/posix-functions/freopen.texi: Likewise.
5320         * doc/posix-functions/fsetpos.texi: Likewise.
5321         * doc/posix-functions/fstatvfs.texi: Likewise.
5322         * doc/posix-functions/ftruncate.texi: Likewise.
5323         * doc/posix-functions/ftw.texi: Likewise.
5324         * doc/posix-functions/getrlimit.texi: Likewise.
5325         * doc/posix-functions/glob.texi: Likewise.
5326         * doc/posix-functions/lio_listio.texi: Likewise.
5327         * doc/posix-functions/lockf.texi: Likewise.
5328         * doc/posix-functions/mkstemp.texi: Likewise.
5329         * doc/posix-functions/mmap.texi: Likewise.
5330         * doc/posix-functions/nftw.texi: Likewise.
5331         * doc/posix-functions/openat.texi: Likewise.
5332         * doc/posix-functions/opendir.texi: Likewise.
5333         * doc/posix-functions/posix_fadvise.texi: Likewise.
5334         * doc/posix-functions/posix_fallocate.texi: Likewise.
5335         * doc/posix-functions/pread.texi: Likewise.
5336         * doc/posix-functions/pwrite.texi: Likewise.
5337         * doc/posix-functions/readdir.texi: Likewise.
5338         * doc/posix-functions/readdir_r.texi: Likewise.
5339         * doc/posix-functions/rewinddir.texi: Likewise.
5340         * doc/posix-functions/scandir.texi: Likewise.
5341         * doc/posix-functions/seekdir.texi: Likewise.
5342         * doc/posix-functions/setrlimit.texi: Likewise.
5343         * doc/posix-functions/statvfs.texi: Likewise.
5344         * doc/posix-functions/telldir.texi: Likewise.
5345         * doc/posix-functions/tmpfile.texi: Likewise.
5346         * doc/posix-functions/truncate.texi: Likewise.
5347         * doc/glibc-functions/fallocate.texi: Likewise.
5348         * doc/glibc-functions/fstatfs.texi: Likewise.
5349         * doc/glibc-functions/fts_children.texi: Likewise.
5350         * doc/glibc-functions/fts_read.texi: Likewise.
5351         * doc/glibc-functions/getdirentries.texi: Likewise.
5352         * doc/glibc-functions/mkostemp.texi: Likewise.
5353         * doc/glibc-functions/mkostemps.texi: Likewise.
5354         * doc/glibc-functions/mkstemps.texi: Likewise.
5355         * doc/glibc-functions/preadv.texi: Likewise.
5356         * doc/glibc-functions/pwritev.texi: Likewise.
5357         * doc/glibc-functions/sendfile.texi: Likewise.
5358         * doc/glibc-functions/statfs.texi: Likewise.
5359
5360 2011-07-24  Bruno Haible  <bruno@clisp.org>
5361
5362         doc: Fix typo.
5363         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5364
5365 2011-07-24  Bruno Haible  <bruno@clisp.org>
5366
5367         doc: Mention fsusage.
5368         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5369
5370 2011-07-24  Bruno Haible  <bruno@clisp.org>
5371
5372         doc: Mention new glibc headers and functions.
5373         * doc/glibc-headers/gshadow.texi: New file.
5374         * doc/glibc-functions/endsgent.texi: New file.
5375         * doc/glibc-functions/fgetsgent.texi: New file.
5376         * doc/glibc-functions/fgetsgent_r.texi: New file.
5377         * doc/glibc-functions/getsgent.texi: New file.
5378         * doc/glibc-functions/getsgent_r.texi: New file.
5379         * doc/glibc-functions/getsgnam.texi: New file.
5380         * doc/glibc-functions/getsgnam_r.texi: New file.
5381         * doc/glibc-functions/putsgent.texi: New file.
5382         * doc/glibc-functions/setsgent.texi: New file.
5383         * doc/glibc-functions/sgetsgent.texi: New file.
5384         * doc/glibc-functions/sgetsgent_r.texi: New file.
5385         * doc/glibc-functions/malloc_info.texi: New file.
5386         * doc/glibc-functions/preadv.texi: New file.
5387         * doc/glibc-functions/pwritev.texi: New file.
5388         * doc/glibc-functions/register_printf_modifier.texi: New file.
5389         * doc/glibc-functions/register_printf_specifier.texi: New file.
5390         * doc/glibc-functions/register_printf_type.texi: New file.
5391         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5392         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5393         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5394         * doc/glibc-functions/pthread_getname_np.texi: New file.
5395         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5396         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5397         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5398         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5399         * doc/glibc-functions/pthread_setname_np.texi: New file.
5400         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5401         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5402         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5403         * doc/glibc-functions/qsort_r.texi: New file.
5404         * doc/glibc-functions/quick_exit.texi: New file.
5405         * doc/glibc-functions/syncfs.texi: New file.
5406         * doc/gnulib.texi: Include them.
5407         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5408         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5409         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5410         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5411         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5412         * doc/glibc-functions/execvpe.texi: Likewise.
5413
5414 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5415
5416         ftell: don't include <unistd.h>
5417         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5418         guaranteed to define off_t, and the ftell module depends on the
5419         stdio module.
5420
5421         ftell: do not assume wraparound signed arithmetic
5422         * lib/ftell.c: Include <limits.h>.
5423         (ftell): Don't assume wraparound signed arithmetic.
5424
5425 2011-07-24  Bruno Haible  <bruno@clisp.org>
5426
5427         close: No longer depend on module 'fclose'.
5428         * modules/close (Depends-on): Remove fclose.
5429         * NEWS: Mention the change.
5430         Suggested by Sam Steingold <sds@gnu.org>.
5431
5432 2011-07-24  Bruno Haible  <bruno@clisp.org>
5433
5434         fsusage: Enable large volume support on AIX >= 5.2.
5435         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5436         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5437         instead of STAT_STATVFS.
5438         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5439
5440         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5441         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5442         f_blocks field only on MacOS X.
5443
5444         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5445         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5446         * modules/fsusage (Depends-on): Add largefile.
5447
5448 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5449
5450         * README: Modernize discussion of signed integers.
5451         Assuming overflow wraparound is no longer safe.
5452         Mention ones' complement and signed magnitude.
5453
5454 2011-07-22  Bruno Haible  <bruno@clisp.org>
5455
5456         select tests, pselect tests: Refactor.
5457         * tests/test-select.h: New file, extracted from tests/test-select.c.
5458         (select_fn): New type.
5459         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5460         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5461         test_pipe): Add my_select argument.
5462         (test_function): Renamed from main. Add my_select argument.
5463         * tests/test-select.c: Move most code to tests/test-select.h. Include
5464         test-select.h.
5465         * modules/select-tests (Files): Add tests/test-select.h.
5466         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5467         (my_select, main): New functions.
5468         * modules/pselect-tests (Files): Add tests/test-select.h,
5469         tests/macros.h, tests/signature.h.
5470         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5471         (configure.ac): Check for <sys/wait.h>.
5472
5473 2011-07-22  Bruno Haible  <bruno@clisp.org>
5474
5475         sys_select tests: Check the signature of FD_*.
5476         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5477         signature tests from here...
5478         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5479         here.
5480         * modules/sys_select-tests (Files): Add tests/signature.h.
5481
5482 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5483
5484         largefile: new module, replacing large-inode
5485         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5486         * MODULES.html.sh: Add largefile, remove large-inode.
5487         * modules/largefile, m4/largefile.m4: New files.
5488         * modules/large-inode, m4/large-inode.m4: Remove.
5489
5490         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5491         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5492         implementations that use only 32 bits to count blocks.
5493         On typical hosts with 1024-byte blocks, this fails with file
5494         systems as small as 4 TiB.  Problem reported by Herb Wartens
5495         <http://debbugs.gnu.org/9140> and this should also fix a similar
5496         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5497
5498         large-inode: New module
5499         * MODULES.html.sh: Add it.
5500         * modules/large-inode, m4/large-inode.m4: New files.
5501
5502         extensions: Enable extensions on MacOS X 10.5 and later.
5503         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5504
5505 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5506
5507         file-has-acl: use acl_extended_file_nofollow if available
5508         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5509         (acl_extended_file): New macro.
5510         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5511         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5512
5513 2011-07-21  Bruno Haible  <bruno@clisp.org>
5514
5515         Declare system functions in a way that works with C++.
5516         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5517         declare fdopendir as extern "C".
5518         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5519         declare frexpl as extern "C".
5520         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5521         declare gai_strerror as extern "C".
5522         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5523         programs, declare gai_strerror as extern "C".
5524         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5525         declare getlogin_r as extern "C".
5526         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5527         as extern "C".
5528         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5529         declare ldexpl as extern "C".
5530         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5531         as extern "C".
5532         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5533         program, declare getmntinfo as extern "C".
5534         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5535         stpncpy as extern "C".
5536         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5537         program, declare __xpg_strerror_r as extern "C".
5538         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5539         strndup as extern "C".
5540         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5541         declare memset and bzero as extern "C".
5542         Reported by Sam Steingold <sds@gnu.org>.
5543
5544 2011-07-12  Jim Meyering  <meyering@redhat.com>
5545
5546         maint.mk: prohibit inclusion of "verify.h" without use
5547         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5548
5549 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5550
5551         timer-time: A new module to check for timer_settime()
5552         * m4/timer_time.m4: Check for the posix function.
5553         * modules/timer-time: Add the new module.
5554         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5555         Mention it.
5556
5557 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5558             Bruno Haible  <bruno@clisp.org>
5559
5560         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5561         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5562         not defined, assume POSIX threads and look for pthread_sigmask in
5563         $LIBS, without changing $CPPFLAGS.
5564
5565 2011-07-19  Bruno Haible  <bruno@clisp.org>
5566
5567         strstr: Update cross-compilation guess.
5568         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5569         CPUs, guess no, in view of glibc
5570         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5571         Suggested by Eric Blake. Reported by Reuben Thomas.
5572
5573 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5574
5575         getopt-gnu: suppress core dumps from detection code
5576         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5577         to suppress core dumps that may well occur on glibc systems.
5578         * modules/getopt-gnu: Depend on nocrash.
5579
5580 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5581
5582         pthread_sigmask: ensure usleep is declared
5583         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5584         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5585
5586 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5587
5588         doc: Document NonStop portability issues.
5589         * doc/posix-functions/sigaction.texi (sigaction):
5590         * doc/posix-headers/signal.texi (signal.h):
5591         Document NonStop.  See Joachim Schmitz in
5592         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5593
5594 2011-07-15  Bruno Haible  <bruno@clisp.org>
5595
5596         ffsl, ffsll: Avoid unportable behaviour.
5597         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5598
5599 2011-07-15  Bruno Haible  <bruno@clisp.org>
5600
5601         ffs: More tests.
5602         * tests/test-ffs.c (NBITS): New macro.
5603         (main): Add more tests.
5604         * tests/test-ffsl.c (NBITS): New macro.
5605         (main): Add more tests.
5606         * tests/test-ffsll.c (NBITS): New macro.
5607         (main): Add more tests.
5608
5609 2011-07-15  Eric Blake  <eblake@redhat.com>
5610
5611         ffsl, ffsll: new modules
5612         * modules/ffsl: New file.
5613         * modules/ffsll: Likewise.
5614         * m4/ffsl.m4: Likewise.
5615         * m4/ffsll.m4: Likewise.
5616         * lib/ffsl.c: Likewise.
5617         * lib/ffsl.h: Likewise.
5618         * lib/ffsll.c: Likewise.
5619         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5620         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5621         * modules/string (Makefile.am): Substitute witnesses.
5622         * lib/strings.in.h (ffsl, ffsll): Declare.
5623         * modules/ffsl-tests: New test file.
5624         * modules/ffsll-tests: Likewise.
5625         * tests/test-ffsl.c: Likewise.
5626         * tests/test-ffsll.c: Likewise.
5627         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5628         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5629         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5630
5631         ffs: fix m4 prerequisite
5632         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5633
5634         ffs: avoid undefined behavior
5635         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5636         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5637         Reported by Bruno Haible.
5638
5639 2011-07-12  Bruno Haible  <bruno@clisp.org>
5640
5641         pthread_sigmask: Rely on module 'threadlib'.
5642         * modules/pthread_sigmask (Depends-on): Add threadlib.
5643         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5644         is defined.
5645
5646 2011-07-12  Bruno Haible  <bruno@clisp.org>
5647
5648         regex: Depend on module 'strcase'.
5649         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5650
5651 2011-07-12  Jim Meyering  <meyering@redhat.com>
5652
5653         warn-on-use: fix typo in file name
5654         * modules/snippet/warn-on-use (Files): Correct file name:
5655         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5656
5657 2011-07-12  Bruno Haible  <bruno@clisp.org>
5658
5659         strings: Document module.
5660         * doc/posix-headers/strings.texi: Mention module 'strings'.
5661
5662 2011-07-12  Bruno Haible  <bruno@clisp.org>
5663
5664         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5665         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5666         (Files, Makefile.am): Update.
5667         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5668         * modules/stdlib (Depends-on): Update.
5669
5670 2011-07-12  Bruno Haible  <bruno@clisp.org>
5671
5672         * NEWS: Mention the changes.
5673
5674         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5675         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5676         (Files, Makefile.am): Update.
5677         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5678         * modules/arpa_inet (Depends-on): Update.
5679         * modules/ctype (Depends-on): Update.
5680         * modules/dirent (Depends-on): Update.
5681         * modules/fcntl-h (Depends-on): Update.
5682         * modules/glob (Depends-on): Update.
5683         * modules/iconv-h (Depends-on): Update.
5684         * modules/inttypes-incomplete (Depends-on): Update.
5685         * modules/langinfo (Depends-on): Update.
5686         * modules/locale (Depends-on): Update.
5687         * modules/math (Depends-on): Update.
5688         * modules/netdb (Depends-on): Update.
5689         * modules/poll-h (Depends-on): Update.
5690         * modules/pty (Depends-on): Update.
5691         * modules/search (Depends-on): Update.
5692         * modules/signal (Depends-on): Update.
5693         * modules/spawn (Depends-on): Update.
5694         * modules/stdio (Depends-on): Update.
5695         * modules/stdlib (Depends-on): Update.
5696         * modules/string (Depends-on): Update.
5697         * modules/strings (Depends-on): Update.
5698         * modules/sys_file (Depends-on): Update.
5699         * modules/sys_ioctl (Depends-on): Update.
5700         * modules/sys_select (Depends-on): Update.
5701         * modules/sys_socket (Depends-on): Update.
5702         * modules/sys_stat (Depends-on): Update.
5703         * modules/sys_time (Depends-on): Update.
5704         * modules/sys_times (Depends-on): Update.
5705         * modules/sys_utsname (Depends-on): Update.
5706         * modules/sys_wait (Depends-on): Update.
5707         * modules/termios (Depends-on): Update.
5708         * modules/time (Depends-on): Update.
5709         * modules/unistd (Depends-on): Update.
5710         * modules/wchar (Depends-on): Update.
5711         * modules/wctype-h (Depends-on): Update.
5712         * MODULES.html.sh (Support for building libraries and executables):
5713         Update.
5714
5715         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5716         * modules/snippet/unused-parameter: Renamed from
5717         modules/unused-parameter.
5718         (Files, Makefile.am): Update.
5719         * build-aux/snippet/unused-parameter.h: Renamed from
5720         build-aux/unused-parameter.h.
5721         * modules/selinux-h (Depends-on): Update.
5722         * modules/unistr/base (Depends-on): Update.
5723         * MODULES.html.sh (Core language properties): Update.
5724
5725         Rename module 'link-warning' to 'snippet/link-warning'.
5726         * modules/snippet/link-warning: Renamed from modules/link-warning.
5727         (Files, Makefile.am): Update.
5728         * build-aux/snippet/link-warning.h: Renamed from
5729         build-aux/link-warning.h.
5730         * MODULES.html.sh (Support for building libraries and executables):
5731         Update.
5732
5733         Rename module 'c++defs' to 'snippet/c++defs'.
5734         * modules/snippet/c++defs: Renamed from modules/c++defs.
5735         (Files, Makefile.am): Update.
5736         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5737         * modules/arpa_inet (Depends-on): Update.
5738         * modules/ctype (Depends-on): Update.
5739         * modules/dirent (Depends-on): Update.
5740         * modules/fcntl-h (Depends-on): Update.
5741         * modules/glob (Depends-on): Update.
5742         * modules/iconv-h (Depends-on): Update.
5743         * modules/langinfo (Depends-on): Update.
5744         * modules/locale (Depends-on): Update.
5745         * modules/math (Depends-on): Update.
5746         * modules/netdb (Depends-on): Update.
5747         * modules/poll-h (Depends-on): Update.
5748         * modules/pty (Depends-on): Update.
5749         * modules/search (Depends-on): Update.
5750         * modules/signal (Depends-on): Update.
5751         * modules/spawn (Depends-on): Update.
5752         * modules/stdio (Depends-on): Update.
5753         * modules/stdlib (Depends-on): Update.
5754         * modules/string (Depends-on): Update.
5755         * modules/strings (Depends-on): Update.
5756         * modules/sys_ioctl (Depends-on): Update.
5757         * modules/sys_select (Depends-on): Update.
5758         * modules/sys_socket (Depends-on): Update.
5759         * modules/sys_stat (Depends-on): Update.
5760         * modules/sys_time (Depends-on): Update.
5761         * modules/sys_wait (Depends-on): Update.
5762         * modules/termios (Depends-on): Update.
5763         * modules/time (Depends-on): Update.
5764         * modules/unistd (Depends-on): Update.
5765         * modules/wchar (Depends-on): Update.
5766         * modules/wctype-h (Depends-on): Update.
5767
5768         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5769         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5770         (Files, Makefile.am): Update.
5771         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5772         * modules/argv-iter (Depends-on): Update.
5773         * modules/arpa_inet (Depends-on): Update.
5774         * modules/dirent (Depends-on): Update.
5775         * modules/fcntl-h (Depends-on): Update.
5776         * modules/fnmatch (Depends-on): Update.
5777         * modules/getopt-posix (Depends-on): Update.
5778         * modules/glob (Depends-on): Update.
5779         * modules/iconv-h (Depends-on): Update.
5780         * modules/inttypes-incomplete (Depends-on): Update.
5781         * modules/locale (Depends-on): Update.
5782         * modules/math (Depends-on): Update.
5783         * modules/netdb (Depends-on): Update.
5784         * modules/search (Depends-on): Update.
5785         * modules/signal (Depends-on): Update.
5786         * modules/spawn (Depends-on): Update.
5787         * modules/stdio (Depends-on): Update.
5788         * modules/stdlib (Depends-on): Update.
5789         * modules/string (Depends-on): Update.
5790         * modules/strings (Depends-on): Update.
5791         * modules/sys_socket (Depends-on): Update.
5792         * modules/sys_stat (Depends-on): Update.
5793         * modules/sys_time (Depends-on): Update.
5794         * modules/sys_times (Depends-on): Update.
5795         * modules/sys_utsname (Depends-on): Update.
5796         * modules/time (Depends-on): Update.
5797         * modules/unistd (Depends-on): Update.
5798         * modules/wchar (Depends-on): Update.
5799         * MODULES.html.sh (Support for building libraries and executables):
5800         Update.
5801
5802 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5803
5804         Improvements on _Noreturn and related modules.
5805
5806         modules/_Exit-tests: test _Noreturn too
5807         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5808         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5809         (main): Use them.
5810
5811         stdnoreturn, stdnoreturn-tests: remove modules
5812         They're not needed here and a bit premature for use elsewhere.  See
5813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5814         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5815         * tests/test-stdnoreturn.c: Remove files.
5816         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5817         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5818         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5819         and using noreturn.
5820         * modules/openat, modules/sigpipe-die, modules/xalloc:
5821         * modules/xmemdup0, modules/xstrtol:
5822         Remove dependency on stdnoreturn.
5823
5824         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5825         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5826         Reparenthesize to avoid GCC warning.
5827         Support Microsoft's syntax.
5828         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5829
5830         _Noreturn-tests: remove module
5831         * modules/_Noreturn-tests: Remove.
5832         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5833         * tests/test-_Noreturn.c: Remove.
5834         * tests/test-stdnoreturn.c: Merge from the old
5835         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5836
5837 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5838
5839         _Noreturn, stdnoreturn, and related modules.
5840
5841         * top/maint.mk: Adjust to new noreturn support.
5842         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5843         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5844
5845         xalloc: use stdnoreturn.h
5846         * lib/xalloc.h: Include <stdnoreturn.h>.
5847         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5848         * modules/xalloc (Depends-on): Add stdnoreturn.
5849
5850         xstrtol: use stdnoreturn.h
5851         * lib/xstrtol.h: Include <stdnoreturn.h>.
5852         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5853         * modules/xstrtol (Depends-on): Add stdnoreturn.
5854
5855         xmemdup0: use stdnoreturn.h
5856         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5857         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5858         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5859
5860         sigpipe-die: use stdnoreturn.h
5861         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5862         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5863         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5864
5865         openat: use stdnoreturn.h
5866         * lib/openat.h: Include <stdnoreturn.h>.
5867         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5868         * modules/openat (Depends-on): Add stdnoreturn.
5869
5870         * lib/openat-die.c (openat_save_fail): Modernize comment.
5871
5872         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5873
5874         * lib/glthread/thread.h: Modernize comment.
5875
5876         obstack: use _Noreturn
5877         * lib/obstack.c (__attribute__): Remove macro.
5878         (print_and_abort): Use _Noreturn.
5879
5880         c-stack: use _Noreturn
5881         * lib/c-stack.c (die, overflow_handler, segv_handler):
5882         Use _Noreturn rather than __attribute__((noreturn)).
5883
5884         argmatch-tests, exclude_tests: use _Noreturn
5885         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5886         Remove.
5887         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5888
5889         stdlib: use _Noreturn
5890         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5891         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5892         * modules/stdlib (Depends-on): Add _Noreturn.
5893         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5894
5895         stdnoreturn-tests: new module
5896         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5897
5898         stdnoreturn: new module
5899         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5900         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5901
5902         _Noreturn-tests: new module
5903         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5904
5905         _Noreturn: new module
5906         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5907         New section, mentioning it.
5908         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5909
5910         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5911
5912 2011-07-11  Eric Blake  <eblake@redhat.com>
5913
5914         ffs: new module
5915         * modules/ffs: New file.
5916         * m4/ffs.m4: Likewise.
5917         * lib/ffs.c: Likewise.
5918         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5919         * modules/strings (Makefile.am): Substitute witness.
5920         (Depends-on): Add c++defs.
5921         * lib/strings.in.h (ffs): Declare.
5922         * modules/ffs-tests: New test file.
5923         * tests/test-ffs.c: Test new module.
5924         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5925         * doc/posix-functions/ffs.texi (ffs): Likewise.
5926
5927         regex: avoid compiler warning
5928         * lib/regex.c (includes): Include <strings.h>, for use of
5929         strcasecmp in regcomp.c.
5930         Reported by Joachim Schmitz.
5931
5932 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5933
5934         stdint: respect system's intmax_t if INTMAX_MAX
5935         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5936         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5937         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5938         long but int64_t is long long, and where we will clash with the
5939         system intmax_t if we override it.  See
5940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5941         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5942         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5943         similarly for UINTMAX_C.
5944
5945 2011-07-08  Bruno Haible  <bruno@clisp.org>
5946
5947         pthread_sigmask tests: Avoid a compiler warning.
5948         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5949         non-zero.
5950
5951         sigprocmask tests: A better way to avoid a compiler warning.
5952         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5953         (main): Complain if system() returns non-zero.
5954         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5955
5956 2011-07-08  Bruno Haible  <bruno@clisp.org>
5957
5958         pthread_sigmask: Work around IRIX bug.
5959         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5960         bug.
5961         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5962         there may be unblocked pending signals.
5963         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5964
5965 2011-07-08  Bruno Haible  <bruno@clisp.org>
5966
5967         pthread_sigmask: Work around Cygwin bug.
5968         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5969         bug.
5970         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5971         the system's pthread_sigmask function.
5972         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5973
5974 2011-07-08  Bruno Haible  <bruno@clisp.org>
5975
5976         pthread_sigmask: Work around bug in single-threaded implementation.
5977         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5978         FreeBSD, HP-UX, Solaris bug.
5979         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5980         * lib/pthread_sigmask.c: Include <stddef.h>.
5981         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5982         the system's pthread_sigmask function.
5983         * modules/pthread_sigmask (configure.ac): Invoke
5984         gl_PREREQ_PTHREAD_SIGMASK.
5985         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5986         HP-UX, Solaris.
5987
5988 2011-07-08  Eric Blake  <eblake@redhat.com>
5989
5990         test-sigprocmask: avoid compiler warning
5991         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5992         * tests/test-sigprocmask.c (main): Use it to silence warning.
5993         Reported by Jim Meyering.
5994
5995         test-snprintf: avoid compiler warning
5996         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5997         * tests/test-vsnprintf.c (main): Likewise.
5998         Reported by Jim Meyering.
5999
6000 2011-07-08  Bruno Haible  <bruno@clisp.org>
6001
6002         Tests for module 'pthread_sigmask'.
6003         * modules/pthread_sigmask-tests: New file.
6004         * tests/test-pthread_sigmask1.c: New file, based on
6005         tests/test-sigprocmask.c.
6006         * tests/test-pthread_sigmask2.c: New file.
6007
6008 2011-07-08  Jim Meyering  <meyering@redhat.com>
6009
6010         test-getopt.h: avoid warning about an unused variable
6011         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6012
6013 2011-07-07  Jim Meyering  <meyering@redhat.com>
6014
6015         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6016         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6017         now that it no longer contains leading TABs.
6018         Remove unused "url=FIXME" statement.
6019
6020 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6021
6022         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6023         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6024         When gl_THREADLIB is not in use, assume that the POSIX sematics
6025         are desired.  This is better for Emacs, which uses POSIX semantics
6026         on GNUish and/or POSIXish platforms, and does not use threads at
6027         all otherwise.
6028
6029         pthread_sigmask: fix typo when testing for libraries
6030         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6031         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6032
6033 2011-07-08  Eric Blake  <eblake@redhat.com>
6034
6035         fts: introduce FTS_NOATIME
6036         * lib/fts_.h (FTS_NOATIME): New bit flag.
6037         (FTS_OPTIONMASK): Adjust.
6038         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6039         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6040
6041 2011-07-08  Bruno Haible  <bruno@clisp.org>
6042
6043         Tests for module 'thread'.
6044         * modules/thread-tests: New file.
6045         * tests/test-thread_self.c: New file.
6046         * tests/test-thread_create.cc: New file.
6047
6048 2011-07-08  Bruno Haible  <bruno@clisp.org>
6049
6050         thread: Avoid gcc warnings when using gl_thread_self().
6051         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6052         'void *'.
6053         (gl_thread_self_pointer): Update.
6054
6055 2011-07-07  Bruno Haible  <bruno@clisp.org>
6056
6057         signal-c++-tests: Check declaration of pthread_sigmask.
6058         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6059         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6060         $(LIB_PTHREAD_SIGMASK).
6061
6062 2011-07-07  Bruno Haible  <bruno@clisp.org>
6063
6064         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6065         * lib/signal.in.h (pthread_sigmask): Override if
6066         REPLACE_PTHREAD_SIGMASK is 1.
6067         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6068         REPLACE_PTHREAD_SIGMASK.
6069         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6070         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6071         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6072         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6073         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6074
6075 2011-07-07  Bruno Haible  <bruno@clisp.org>
6076
6077         pthread_sigmask: Ensure declaration in <signal.h>.
6078         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6079         include <pthread.h>.
6080         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6081         problem.
6082
6083 2011-07-07  Bruno Haible  <bruno@clisp.org>
6084
6085         pthread_sigmask: Document the module.
6086         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6087
6088 2011-07-07  Bruno Haible  <bruno@clisp.org>
6089
6090         pthread_sigmask: Follow gnulib conventions.
6091         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6092         gl_PTHREAD_SIGMASK.
6093         * modules/pthread_sigmask (configure.ac): Update.
6094
6095 2011-07-07  Bruno Haible  <bruno@clisp.org>
6096
6097         pthread_sigmask: Make declaration C++ safe.
6098         * lib/signal.in.h: In two special conditions, just do an #include_next.
6099         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6100         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6101         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6102         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6103         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6104         not REPLACE_PTHREAD_MASK.
6105         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6106         not REPLACE_PTHREAD_MASK.
6107         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6108
6109 2011-07-07  Bruno Haible  <bruno@clisp.org>
6110
6111         pthread_sigmask: Fix return value.
6112         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6113         * lib/pthread_sigmask.c: New file.
6114         * modules/pthread_sigmask (Files): Add it.
6115         (configure.ac): Invoke AC_LIBOBJ.
6116
6117 2011-07-07  Eric Blake  <eblake@redhat.com>
6118
6119         getopt: more portable argv creation
6120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6121         const, use char arrays rather than strings.
6122         Suggested by Paul Eggert.
6123
6124 2011-07-07  Bruno Haible  <bruno@clisp.org>
6125
6126         Tests for module 'sigprocmask'.
6127         * modules/sigprocmask-tests: New file.
6128         * tests/test-sigprocmask.c: New file.
6129
6130 2011-07-07  Bruno Haible  <bruno@clisp.org>
6131
6132         float tests: Tweak.
6133         * tests/test-float.c (main): Tweak skip message.
6134
6135 2011-07-07  Eric Blake  <eblake@redhat.com>
6136
6137         getopt: avoid compiler warning during configure
6138         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6139         assigning string literals to non-const pointer.
6140
6141         getopt-gnu: avoid crash in glibc getopt
6142         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6143         * tests/test-getopt.h (test_getopt): Enhance test.
6144         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6145         * doc/posix-functions/getopt.texi (getopt): Document it.
6146         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6147         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6148         Likewise.
6149
6150 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6151
6152         getopt: handle W; without long options in getopt [BZ #12922]
6153         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6154         but no long options are defined, just return 'W'.
6155
6156 2011-07-07  Bruno Haible  <bruno@clisp.org>
6157
6158         Avoid literal tabs.
6159         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6160         variable containing a tab instead of a literal tab.
6161         Reported by Jim Meyering.
6162
6163 2011-07-07  Bruno Haible  <bruno@clisp.org>
6164
6165         Comments.
6166         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6167
6168 2011-07-06  Bruno Haible  <bruno@clisp.org>
6169
6170         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6171         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6172         <winsock2.h>.
6173         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6174         lib/sys_socket.in.h.
6175         (close, gethostname): Hide declarations from <winsock2.h>.
6176         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6177         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6178         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6179         (select): Don't override if gnulib's <sys/select.h> was already
6180         included.
6181         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6182         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6183         setsockopt, shutdown, select): Tweak indentation.
6184
6185 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6186
6187         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6188         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6189         in an application that does not use the sys_select module.
6190
6191 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6192
6193         poll: do not return 0 on timeout=-1
6194         * lib/poll.c: Loop with yield if no events occured
6195
6196 2011-07-06  Eric Blake  <eblake@redhat.com>
6197
6198         pthread_sigmask: always replace when not using pthread
6199         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6200         replacement when using some threading other than pthread.  Fix
6201         logic bug.
6202
6203 2011-07-06  Bruno Haible  <bruno@clisp.org>
6204
6205         Comments.
6206         * m4/printf.m4: Update comments about mingw.
6207
6208 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6209
6210         sys_select: define sigset_t more portably
6211         * lib/sys_select.in.h: Always include <sys/types.h>, since
6212         we now need sigset_t and mingw defines it there.
6213         Include <signal.h> before split inclusion guard, to avoid
6214         mishaps on Solaris, whose <signal.h> eventually includes us.
6215         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6216         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6217         which come from ...
6218         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6219         gl_CHECK_TYPE_SIGSET_T.
6220         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6221         does the real work.
6222         * modules/sys_select (Depends-on): Add 'signal'.
6223
6224         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6225         Suggested by Bruno Haible.
6226
6227         pselect: Use pthread_sigmask, not sigprocmask.
6228         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6229         multithreaded apps better than sigprocmask does.
6230         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6231         sigprocmask directly.
6232
6233 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6234
6235         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6236         Don't #undef,  since we don't need any underlying pselect.
6237         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6238         (Depends-on): Add select.
6239         (Link): Add $(LIBSOCKET).
6240         These changes suggested by Bruno Haible.
6241
6242         pselect: document better
6243         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6244         * doc/posix-functions/pselect.texi (pselect): Document new module.
6245
6246         pthread_sigmask: new module
6247         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6248         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6249         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6250         This is done only as a macro; I don't know how well that'll
6251         work for C++.  Move <sys/types.h> include before the include_next,
6252         to avoid mishap on Solaris.
6253         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6254         * modules/signal (Makefile.am): Substitute the check's results.
6255         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6256
6257         test-pselect: new module
6258         * modules/pselect-tests, tests/test-pselect.c: New files.
6259         * tests/test-select.c, tests/test-sys_select-c++.cc:
6260         If TEST_PSELECT is defined, test pselect instead of testing select.
6261
6262         * tests/test-sys_select.c (sigset_t): Test for it, too.
6263         Suggested by Bruno Haible.
6264
6265 2011-07-05  Eric Blake  <eblake@redhat.com>
6266
6267         snprintf: guarantee %1$d, for libintl
6268         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6269         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6270         * doc/posix-functions/snprintf.texi (snprintf): Update.
6271         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6272         * tests/test-snprintf.c (main): Enhance test.
6273         * tests/test-vsnprintf.c (main): Likewise.
6274
6275 2011-07-05  Jim Meyering  <meyering@redhat.com>
6276
6277         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6278         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6279         per Bruno's request, to accommodate this idiom (no space after "#")
6280         even when the function is inside an #if block:
6281         char *
6282         gets (char *s)
6283         #undef gets
6284         {
6285           ...
6286         }
6287
6288 2011-07-04  Jim Meyering  <meyering@redhat.com>
6289
6290         maint: indent with spaces, not TABs, and add a rule to check this
6291         * tests/test-userspec.c: Indent with spaces, not TABs.
6292         * tests/test-argp.c: Likewise.
6293         * tests/test-c-stack2.sh: Likewise.
6294         * tests/test-parse-duration.sh: Likewise
6295         * m4/strtod.m4: Likewise.
6296         * m4/alloca.m4: Likewise.
6297         * m4/pselect.m4: Likewise.
6298         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6299
6300 2011-07-03  Jim Meyering  <meyering@redhat.com>
6301
6302         maint.mk: correct omissions in prohibit_argmatch_without_use check
6303         This rule would mistakenly report that argmatch.h is included without
6304         use even when both the argmatch and invalid_arg macro were used.
6305         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6306         of argmatch and invalid_arg.
6307
6308 2011-07-03  Bruno Haible  <bruno@clisp.org>
6309
6310         Comments about EINTR.
6311         * lib/safe-read.h: Explain the purpose of this module.
6312         * lib/safe-write.h: Likewise.
6313         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6314         module.
6315         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6316         module.
6317         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6318
6319 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6320
6321         xnanosleep: Rewrite to use new dtotimespec module.
6322         It has the conversion code that used to be in xnanosleep.
6323         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6324         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6325         (TIME_T_MAX): Remove.
6326         (xnanosleep): Rewrite in terms of dtotimespec.
6327         * modules/xnanosleep (Depends-on): Add dtotimespec.
6328         Remove intprops, stdbool.
6329
6330         timespec-add, timespec-sub: new modules
6331         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6332         * lib/timespec-add.c, lib/timespec-sub.c:
6333         * modules/timespec-add, modules/timespec-sub: New files.
6334
6335         dtotimespec: new module
6336         * lib/timespec.h (dtotimespec): New decl.
6337         * lib/dtotimespec.c, modules/dtotimespec: New files.
6338
6339         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6340
6341         pselect: new module
6342         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6343         (pselect): New decls.
6344         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6345         since the standard pselect decl uses 'restrict'.
6346         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6347         HAVE_PSELECT, REPLACE_PSELECT.
6348         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6349         HAVE_PSELECT, REPLACE_PSELECT.
6350         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6351
6352         sys_select: don't depend on sys_socket
6353         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6355         This fix works on GNU and GNU-like platforms, but has not been tested
6356         on native Windows.
6357         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6358         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6359         gl_HEADER_SYS_SOCKET.
6360         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6361         gl_PREREQ_SYS_H_WINSOCK2.
6362
6363 2011-06-29  Eric Blake  <eblake@redhat.com>
6364
6365         pipe2: fix C89 compile problem
6366         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6367         Reported by Bruno Haible.
6368
6369         pipe, pipe2: don't corrupt fd on error
6370         * lib/pipe.c (pipe): Leave fd unchanged on error.
6371         * lib/pipe2.c (pipe2): Likewise.
6372         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6373         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6374
6375 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6376
6377         mmap-anon: do not use regular expressions inadvertently
6378         * m4/mmap-anon.m4: Remove trailing period from strings sought
6379         in the output.
6380
6381 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6382
6383         nanosleep: fix integer overflow problem
6384         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6385         arithmetic wraps around on overflow.
6386
6387         nanosleep: simplify carrying
6388         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6389         first call to the underyling nanosleep, not for the last one.
6390         This doesn't fix any bugs, but it simplifies the computation of
6391         the remaining delay.  Found while auditing integer overflow issues.
6392
6393         dup2: remove test for existence of fcntl
6394         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6395         "#if HAVE_FCNTL", in the configure-time test program.
6396         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6397         and therefore speeds up "configure" a bit.  Found while
6398         adding the dup2 module to Emacs.
6399
6400 2011-06-24  Eric Blake  <eblake@redhat.com>
6401
6402         maint.mk: enhance useless header checks
6403         * top/maint.mk (_sc_header_without_use): Check both include
6404         styles.
6405         (sc_prohibit_assert_without_use)
6406         (sc_prohibit_close_stream_without_use)
6407         (sc_prohibit_getopt_without_use)
6408         (sc_prohibit_quotearg_without_use)
6409         (sc_prohibit_quote_without_use)
6410         (sc_prohibit_long_options_without_use)
6411         (sc_prohibit_inttostr_without_use)
6412         (sc_prohibit_ignore_value_without_use)
6413         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6414         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6415         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6416         (sc_prohibit_hash_pjw_without_use)
6417         (sc_prohibit_safe_read_without_use)
6418         (sc_prohibit_argmatch_without_use)
6419         (sc_prohibit_canonicalize_without_use)
6420         (sc_prohibit_root_dev_ino_without_use)
6421         (sc_prohibit_openat_without_use)
6422         (sc_prohibit_c_ctype_without_use)
6423         (sc_prohibit_signal_without_use)
6424         (sc_prohibit_stdio--_without_use)
6425         (sc_prohibit_stdio-safer_without_use)
6426         (sc_prohibit_strings_without_use)
6427         (sc_prohibit_intprops_without_use)
6428         (sc_prohibit_stddef_without_use)
6429         (sc_prohibit_xfreopen_without_use): Update clients.
6430
6431 2011-06-24  Jim Meyering  <meyering@redhat.com>
6432
6433         syntax-check: keep one maint.mk rule in sync with its header
6434         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6435         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6436         I prefer to avoid temporary files here, so use <(...), but that
6437         is not supported by /bin/sh, so...
6438         (SHELL): Define to /bin/bash.
6439
6440 2011-06-24  Eric Blake  <eblake@redhat.com>
6441
6442         maint.mk: update sc_prohibit_intprops_without_use
6443         * top/maint.mk (_intprops_names): Match recent changes.
6444
6445 2011-06-24  Bruno Haible  <bruno@clisp.org>
6446
6447         strerror-override: No-op tweak.
6448         * lib/strerror-override.h (strerror_override): Reorder conditions,
6449         for consistency with lib/strerror-override.c.
6450
6451 2011-06-23  Eric Blake  <eblake@redhat.com>
6452
6453         maint.mk: test further PATH_MAX issues
6454         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6455         (sc_prohibit_path_max_allocation): ...and also test alloca.
6456         Suggested by Jim Meyering.
6457
6458 2011-06-22  Eric Blake  <eblake@redhat.com>
6459
6460         maint.mk: add syntax-check to avoid char[PATH_MAX]
6461         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6462
6463         stat: be robust to PATH_MAX definition
6464         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6465         * modules/stat (Depends-on): Add verify.
6466
6467         link: work around IRIX bug
6468         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6469         * lib/link.c (rpl_link): Work around it.
6470         * tests/test-link.h (test_link): Enhance test.
6471         * doc/posix-functions/link.texi (link): Document the bug.
6472
6473         getopt: silence clang warning
6474         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6475         dereference.
6476         Reported by Gustavo Martin Domato.
6477
6478 2011-06-22  Jim Meyering  <meyering@redhat.com>
6479
6480         bootstrap: do not insert a blank line into each .gitignore file
6481         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6482
6483 2011-06-21  Eric Blake  <eblake@redhat.com>
6484
6485         perror: test for output mismatch
6486         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6487         perror on IRIX.
6488
6489         strerror_r: fix OpenBSD behavior on out-of-range
6490         * lib/strerror_r.c (strerror_r): Always use maximal string.
6491         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6492
6493         strerror_r: fix OpenBSD behavior on 0
6494         * lib/strerror-override.c (strerror_override): Also override 0
6495         when needed.
6496         * lib/strerror-override.h (strerror_override): Likewise.
6497         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6498         earlier.
6499         * lib/strerror_r.c (strerror_r): Likewise.
6500         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6501         behavior...
6502         (gl_FUNC_STRERROR_0): ...into new macro.
6503         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6504         is overridden.
6505         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6506         * modules/strerror-override (Files): Add strerror.m4.
6507         (configure.ac): Also provide override for 0 when needed.
6508         * doc/posix-functions/strerror.texi (strerror): Document this.
6509         * doc/posix-functions/perror.texi (perror): Likewise.
6510
6511         perror: adjust array size
6512         * modules/perror (Depends-on): Add strerror-override.
6513         * lib/perror.c (perror): Use it to avoid magic number.
6514
6515         strerror-override: reduce size
6516         * lib/strerror-override.c (strerror_override): Use fewer lines.
6517
6518 2011-06-20  Bruno Haible  <bruno@clisp.org>
6519
6520         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6521         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6522
6523 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6524
6525         alloca: port to compilers that can optimize like GCC 4.6.0
6526         * lib/alloca.c (find_stack_direction): New signature, taken from
6527         Autoconf git.  This works with GCC 4.6.0.  This code should never
6528         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6529         be used with other compilers that optimize as well as GCC 4.6.0 does.
6530         (alloca): Adjust to new signature.
6531         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6532         New macro, which patches Autoconf in a similar way.
6533
6534         c-stack: stop worrying about stack direction
6535         * lib/c-stack.c (find_stack_direction): Remove.
6536         (segv_handler): Don't worry about stack direction growth, as it's
6537         too much of a pain to configure this correctly, given how compilers
6538         are optimizing-away our stack-growth detection code.  Instead, assume
6539         that any access to just before or just after the stack is OK.
6540         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6541         Don't require AC_FUNC_ALLOCA; no longer needed.
6542
6543 2011-06-20  Eric Blake  <eblake@redhat.com>
6544
6545         test-stat: don't allocate PATH_MAX bytes
6546         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6547         PATH_MAX-sized buffer.
6548         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6549         * modules/stat-tests (Depends-on): Likewise.
6550         * tests/test-fstatat.c (includes): Drop pathmax.h.
6551         * tests/test-stat.c (includes): Likewise.
6552         Reported by Bruno Haible.
6553
6554 2011-06-20  Bruno Haible  <bruno@clisp.org>
6555
6556         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6557         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6558         * lib/float.c: New file.
6559         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6560         REPLACE_FLOAT_LDBL.
6561         * modules/float (Files): Add lib/float.c.
6562         (configure.ac): Invoke AC_LIBOBJ.
6563         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6564
6565 2011-06-20  Bruno Haible  <bruno@clisp.org>
6566
6567         Tests for module 'float'.
6568         * modules/float-tests: New file.
6569         * tests/test-float.c: New file.
6570
6571 2011-06-19  Bruno Haible  <bruno@clisp.org>
6572
6573         isinf: Coding style.
6574         * lib/isinf.c: Use GNU coding style.
6575
6576 2011-06-19  Bruno Haible  <bruno@clisp.org>
6577
6578         linkat test: Avoid test failure on AIX 7.1.
6579         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6580         * tests/test-link.h (test_link): Likewise.
6581
6582 2011-06-19  Bruno Haible  <bruno@clisp.org>
6583
6584         pread test: Avoid test failure on OpenBSD 4.9.
6585         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6586
6587 2011-06-19  Bruno Haible  <bruno@clisp.org>
6588
6589         sprintf-posix: Fix test failure on AIX 7.1.
6590         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6591         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6592         on AIX.
6593         * doc/posix-functions/fprintf.texi: Likewise.
6594         * doc/posix-functions/printf.texi: Likewise.
6595         * doc/posix-functions/snprintf.texi: Likewise.
6596         * doc/posix-functions/sprintf.texi: Likewise.
6597         * doc/posix-functions/vdprintf.texi: Likewise.
6598         * doc/posix-functions/vfprintf.texi: Likewise.
6599         * doc/posix-functions/vprintf.texi: Likewise.
6600         * doc/posix-functions/vsnprintf.texi: Likewise.
6601         * doc/posix-functions/vsprintf.texi: Likewise.
6602
6603 2011-06-19  Bruno Haible  <bruno@clisp.org>
6604
6605         roundl-ieee: Fix test failure on AIX 7.1.
6606         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6607         * doc/posix-functions/roundl.texi: Mention problem with negative
6608         arguments.
6609
6610 2011-06-19  Bruno Haible  <bruno@clisp.org>
6611
6612         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6613         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6614         * doc/posix-functions/round.texi: Mention problem with negative
6615         arguments.
6616         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6617
6618 2011-06-19  Bruno Haible  <bruno@clisp.org>
6619
6620         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6621         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6622         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6623         * doc/posix-functions/roundf.texi: Mention problem with negative
6624         arguments.
6625         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6626
6627 2011-06-19  Bruno Haible  <bruno@clisp.org>
6628
6629         ceilf-ieee: Work around bug on MacOS X 10.5.
6630         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6631
6632         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6633         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6634         IEEE compliant, avoid compiler optimizations.
6635         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6636         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6637         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6638         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6639         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6640         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6641         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6642         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6643         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6644         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6645
6646 2011-06-19  Bruno Haible  <bruno@clisp.org>
6647
6648         ceilf-ieee: Work around bug on AIX 7.1.
6649         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6650         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6651
6652 2011-06-19  Bruno Haible  <bruno@clisp.org>
6653
6654         ceil-ieee: Work around bug on AIX 7.1.
6655         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6656         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6657
6658 2011-06-18  Bruno Haible  <bruno@clisp.org>
6659
6660         fsync test: Avoid test failure on MacOS X and AIX.
6661         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6662         EINVAL.
6663
6664 2011-06-18  Bruno Haible  <bruno@clisp.org>
6665
6666         openat, fdopendir tests: Fix link errors.
6667         * modules/openat-tests (Depends-on): Add progname.
6668         * modules/fdopendir-tests (Depends-on): Likewise.
6669         * tests/test-fchownat.c: Include progname.h.
6670         (main): Call set_program_name.
6671         * tests/test-fstatat.c: Include progname.h.
6672         (main): Call set_program_name.
6673         * tests/test-mkdirat.c: Include progname.h.
6674         (main): Call set_program_name.
6675         * tests/test-openat.c: Include progname.h.
6676         (main): Call set_program_name.
6677         * tests/test-unlinkat.c: Include progname.h.
6678         (main): Call set_program_name.
6679         * tests/test-fdopendir.c: Include progname.h.
6680         (main): Call set_program_name.
6681
6682 2011-06-18  Bruno Haible  <bruno@clisp.org>
6683
6684         Doc update.
6685         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6686         HP-UX.
6687         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6688
6689 2011-06-18  Bruno Haible  <bruno@clisp.org>
6690
6691         getcwd tests: Avoid compilation error on HP-UX 11.31.
6692         * modules/getcwd-tests (Depends-on): Add pathmax.
6693         * tests/test-getcwd.c: Include pathmax.h.
6694
6695 2011-06-18  Bruno Haible  <bruno@clisp.org>
6696
6697         isfinite, isinf: Fix link error on AIX 6 and 7.
6698         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6699         needed, also test the macro with a 'float' argument.
6700         * m4/isinf.m4 (gl_ISINF): Likewise.
6701
6702 2011-06-18  Bruno Haible  <bruno@clisp.org>
6703
6704         getloadavg: Don't clobber LIBS. Regression from previous commit.
6705         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6706         AC_CHECK_LIB from here...
6707         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6708         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6709         gl_func_getloadavg_done.
6710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6711
6712 2011-06-18  Bruno Haible  <bruno@clisp.org>
6713
6714         clean-temp: Improve documentation.
6715         * lib/clean-temp.h: Explain better how to use this module.
6716         Reported by John Darrington <john@darrington.wattle.id.au>.
6717
6718 2011-06-17  Bruno Haible  <bruno@clisp.org>
6719
6720         pread, pwrite: Avoid cc warning on AIX.
6721         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6722         (pwrite): Likewise.
6723
6724 2011-06-17  Bruno Haible  <bruno@clisp.org>
6725
6726         spawn-pipe tests: Fix link error.
6727         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6729
6730 2011-06-17  Bruno Haible  <bruno@clisp.org>
6731
6732         Tests: Remove unnecessary dependency.
6733         * modules/canonicalize-tests (Depends-on): Remove progname.
6734         * modules/chown-tests (Depends-on): Likewise.
6735         * modules/dirname-tests (Depends-on): Likewise.
6736         * modules/fdopendir-tests (Depends-on): Likewise.
6737         * modules/fdutimensat-tests (Depends-on): Likewise.
6738         * modules/hash-tests (Depends-on): Likewise.
6739         * modules/lchown-tests (Depends-on): Likewise.
6740         * modules/linkat-tests (Depends-on): Likewise.
6741         * modules/renameat-tests (Depends-on): Likewise.
6742         * modules/spawn-pipe-tests (Depends-on): Likewise.
6743         * modules/utimensat-tests (Depends-on): Likewise.
6744
6745 2011-06-17  Bruno Haible  <bruno@clisp.org>
6746
6747         spawn-pipe tests: Fix link error.
6748         * tests/test-spawn-pipe-child.c: Undefine fflush.
6749
6750 2011-06-17  Bruno Haible  <bruno@clisp.org>
6751
6752         Fix tests link errors.
6753         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6754         * modules/chown-tests (Makefile.am): Don't link test-chown with
6755         LIBINTL.
6756         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6757         LIBINTL.
6758         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6759         LIBINTL.
6760         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6761         LIBINTL.
6762
6763 2011-06-16  Bruno Haible  <bruno@clisp.org>
6764
6765         crypto/gc-sha1: Fix recent regression.
6766         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6767         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6768
6769         crypto/gc-md5: Fix recent regression.
6770         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6771
6772         crypto/gc-md4: Fix recent regression.
6773         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6774         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6775
6776         crypto/gc-arctwo: Fix recent regression.
6777         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6778         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6779
6780         crypto/gc-rijndael: Fix recent regression.
6781         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6782         (configure.ac): Invoke AC_LIBOBJ here.
6783         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6785
6786         crypto/gc-hmac-sha1: Fix recent regression.
6787         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6788         (configure.ac): Invoke AC_LIBOBJ here.
6789         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6791
6792         crypto/gc-hmac-md5: Fix recent regression.
6793         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6794         (configure.ac): Invoke AC_LIBOBJ here.
6795         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6796         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6797
6798         crypto/gc-des: Fix recent regression.
6799         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6800         (configure.ac): Invoke AC_LIBOBJ here.
6801         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6802         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6803
6804         crypto/gc-arcfour: Fix recent regression.
6805         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6806         (configure.ac): Invoke AC_LIBOBJ here.
6807         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6808         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6809
6810 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6811
6812         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6813         After the 2011-05-21 change, this macro requires
6814         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6815         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6816
6817 2011-06-16  Bruno Haible  <bruno@clisp.org>
6818
6819         fprintftime: Move AC_LIBOBJ invocations to module description.
6820         * m4/fprintftime.m4: Remove file.
6821         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6822         (configure.ac): Remove gl_FPRINTFTIME call.
6823         (Makefile.am): Augment lib_SOURCES.
6824         Reported by Jim Meyering.
6825
6826 2011-06-16  Bruno Haible  <bruno@clisp.org>
6827
6828         tmpfile-safer: Finish 2011-05-23 commit.
6829         * m4/stdio-safer.m4: Really remove file.
6830         Reported by Jim Meyering.
6831
6832 2011-06-16  Bruno Haible  <bruno@clisp.org>
6833
6834         syntax-check: Fix typo.
6835         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6836         printf-posix.m4.
6837         Reported by Jim Meyering.
6838
6839 2011-06-13  Jim Meyering  <meyering@redhat.com>
6840
6841         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6842         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6843
6844 2011-05-23  Bruno Haible  <bruno@clisp.org>
6845
6846         yesno: Move AC_LIBOBJ invocations to module description.
6847         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6848         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6849
6850 2011-05-23  Bruno Haible  <bruno@clisp.org>
6851
6852         xstrtol: Move AC_LIBOBJ invocations to module description.
6853         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6854         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6855
6856 2011-05-23  Bruno Haible  <bruno@clisp.org>
6857
6858         xstrtold: Move AC_LIBOBJ invocations to module description.
6859         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6860         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6861
6862 2011-05-23  Bruno Haible  <bruno@clisp.org>
6863
6864         xstrtod: Move AC_LIBOBJ invocations to module description.
6865         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6866         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6867
6868 2011-05-23  Bruno Haible  <bruno@clisp.org>
6869
6870         xnanosleep: Move AC_LIBOBJ invocations to module description.
6871         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6872         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6873
6874 2011-05-23  Bruno Haible  <bruno@clisp.org>
6875
6876         xgetcwd: Move AC_LIBOBJ invocations to module description.
6877         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6878         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6879
6880 2011-05-23  Bruno Haible  <bruno@clisp.org>
6881
6882         xalloc: Move AC_LIBOBJ invocations to module description.
6883         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6884         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6885
6886 2011-05-23  Bruno Haible  <bruno@clisp.org>
6887
6888         write-any-file: Move AC_LIBOBJ invocations to module description.
6889         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6890         invocation.
6891         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6892
6893 2011-05-23  Bruno Haible  <bruno@clisp.org>
6894
6895         utimens: Move AC_LIBOBJ invocations to module description.
6896         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6897         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6898
6899 2011-05-23  Bruno Haible  <bruno@clisp.org>
6900
6901         utimecmp: Move AC_LIBOBJ invocations to module description.
6902         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6903         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6904
6905 2011-05-23  Bruno Haible  <bruno@clisp.org>
6906
6907         userspec: Move AC_LIBOBJ invocations to module description.
6908         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6909         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6910
6911 2011-05-23  Bruno Haible  <bruno@clisp.org>
6912
6913         unlinkdir: Move AC_LIBOBJ invocations to module description.
6914         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6915         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6916
6917 2011-05-23  Bruno Haible  <bruno@clisp.org>
6918
6919         unistd-safer: Move AC_LIBOBJ invocations to module description.
6920         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6921         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6922
6923 2011-05-23  Bruno Haible  <bruno@clisp.org>
6924
6925         tempname: Move AC_LIBOBJ invocations to module description.
6926         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6927         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6928
6929 2011-05-23  Bruno Haible  <bruno@clisp.org>
6930
6931         strftime: Move AC_LIBOBJ invocations to module description.
6932         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6933         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6934
6935 2011-05-23  Bruno Haible  <bruno@clisp.org>
6936
6937         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6938         * m4/stdlib-safer.m4: Remove file.
6939         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6940         (configure.ac): Remove gl_STDLIB_SAFER call.
6941         (Makefile.am): Augment lib_SOURCES.
6942
6943 2011-05-23  Bruno Haible  <bruno@clisp.org>
6944
6945         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6946         * m4/stdio-safer.m4: Remove file.
6947         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6948         (configure.ac): Remove gl_TMPFILE_SAFER call.
6949         (Makefile.am): Augment lib_SOURCES.
6950
6951 2011-05-23  Bruno Haible  <bruno@clisp.org>
6952
6953         popen-safer: Move AC_LIBOBJ invocations to module description.
6954         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6955         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6956         (configure.ac): Remove gl_POPEN_SAFER call.
6957         (Makefile.am): Augment lib_SOURCES.
6958
6959 2011-05-23  Bruno Haible  <bruno@clisp.org>
6960
6961         freopen-safer: Move AC_LIBOBJ invocations to module description.
6962         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6963         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6964         (configure.ac): Remove gl_FREOPEN_SAFER call.
6965         (Makefile.am): Augment lib_SOURCES.
6966
6967 2011-05-23  Bruno Haible  <bruno@clisp.org>
6968
6969         fopen-safer: Move AC_LIBOBJ invocations to module description.
6970         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6971         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6972         (configure.ac): Remove gl_FOPEN_SAFER call.
6973         (Makefile.am): Augment lib_SOURCES.
6974
6975 2011-05-23  Bruno Haible  <bruno@clisp.org>
6976
6977         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6978         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6979         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6980
6981 2011-05-23  Bruno Haible  <bruno@clisp.org>
6982
6983         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6984         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6985         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6986
6987 2011-05-23  Bruno Haible  <bruno@clisp.org>
6988
6989         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6990         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6991         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6992
6993 2011-05-23  Bruno Haible  <bruno@clisp.org>
6994
6995         settime: Move AC_LIBOBJ invocations to module description.
6996         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6997         * modules/settime (Makefile.am): Augment lib_SOURCES.
6998
6999 2011-05-23  Bruno Haible  <bruno@clisp.org>
7000
7001         savedir: Move AC_LIBOBJ invocations to module description.
7002         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7003         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7004
7005 2011-05-23  Bruno Haible  <bruno@clisp.org>
7006
7007         save-cwd: Move AC_LIBOBJ invocations to module description.
7008         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7009         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7010
7011 2011-05-23  Bruno Haible  <bruno@clisp.org>
7012
7013         same: Move AC_LIBOBJ invocations to module description.
7014         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7015         * modules/same (Makefile.am): Augment lib_SOURCES.
7016
7017 2011-05-23  Bruno Haible  <bruno@clisp.org>
7018
7019         safe-write: Move AC_LIBOBJ invocations to module description.
7020         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7021         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7022         instead of gl_SAFE_WRITE.
7023         (Makefile.am): Augment lib_SOURCES.
7024
7025 2011-05-23  Bruno Haible  <bruno@clisp.org>
7026
7027         safe-read: Move AC_LIBOBJ invocations to module description.
7028         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7029         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7030         of gl_SAFE_READ.
7031         (Makefile.am): Augment lib_SOURCES.
7032
7033 2011-05-23  Bruno Haible  <bruno@clisp.org>
7034
7035         safe-alloc: Move AC_LIBOBJ invocations to module description.
7036         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7037         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7038
7039 2011-05-23  Bruno Haible  <bruno@clisp.org>
7040
7041         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7042         * m4/rijndael.m4: Remove file.
7043         * modules/crypto/rijndael (Files): Remove it.
7044         (configure.ac): Remove gl_RIJNDAEL call.
7045         (Makefile.am): Augment lib_SOURCES.
7046
7047 2011-05-23  Bruno Haible  <bruno@clisp.org>
7048
7049         readtokens: Move AC_LIBOBJ invocations to module description.
7050         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7051         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7052
7053 2011-05-23  Bruno Haible  <bruno@clisp.org>
7054
7055         read-file: Move AC_LIBOBJ invocations to module description.
7056         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7057         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7058         of gl_FUNC_READ_FILE.
7059         (Makefile.am): Augment lib_SOURCES.
7060
7061 2011-05-23  Bruno Haible  <bruno@clisp.org>
7062
7063         quotearg: Move AC_LIBOBJ invocations to module description.
7064         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7065         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7066
7067 2011-05-23  Bruno Haible  <bruno@clisp.org>
7068
7069         quote: Move AC_LIBOBJ invocations to module description.
7070         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7071         * modules/quote (Makefile.am): Augment lib_SOURCES.
7072
7073 2011-05-23  Bruno Haible  <bruno@clisp.org>
7074
7075         posixver: Move AC_LIBOBJ invocations to module description.
7076         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7077         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7078
7079 2011-05-23  Bruno Haible  <bruno@clisp.org>
7080
7081         posixtm: Move AC_LIBOBJ invocations to module description.
7082         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7083         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7084
7085 2011-05-23  Bruno Haible  <bruno@clisp.org>
7086
7087         physmem: Move AC_LIBOBJ invocations to module description.
7088         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7089         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7090
7091 2011-05-23  Bruno Haible  <bruno@clisp.org>
7092
7093         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7094         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7095         invocation.
7096         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7097
7098 2011-05-23  Bruno Haible  <bruno@clisp.org>
7099
7100         mpsort: Move AC_LIBOBJ invocations to module description.
7101         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7102         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7103
7104 2011-05-23  Bruno Haible  <bruno@clisp.org>
7105
7106         modechange: Move AC_LIBOBJ invocations to module description.
7107         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7108         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7109
7110 2011-05-23  Bruno Haible  <bruno@clisp.org>
7111
7112         mkdir-p: Move AC_LIBOBJ invocations to module description.
7113         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7114         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7115
7116 2011-05-23  Bruno Haible  <bruno@clisp.org>
7117
7118         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7119         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7120         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7121
7122 2011-05-23  Bruno Haible  <bruno@clisp.org>
7123
7124         mgetgroups: Move AC_LIBOBJ invocations to module description.
7125         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7126         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7127
7128 2011-05-23  Bruno Haible  <bruno@clisp.org>
7129
7130         memxor: Move AC_LIBOBJ invocations to module description.
7131         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7132         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7133
7134 2011-05-23  Bruno Haible  <bruno@clisp.org>
7135
7136         memcoll: Move AC_LIBOBJ invocations to module description.
7137         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7138         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7139
7140 2011-05-23  Bruno Haible  <bruno@clisp.org>
7141
7142         memcasecmp: Move AC_LIBOBJ invocations to module description.
7143         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7144         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7145
7146 2011-05-23  Bruno Haible  <bruno@clisp.org>
7147
7148         crypto/md5: Move AC_LIBOBJ invocations to module description.
7149         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7150         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7151
7152 2011-05-23  Bruno Haible  <bruno@clisp.org>
7153
7154         crypto/md4: Move AC_LIBOBJ invocations to module description.
7155         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7156         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7157
7158 2011-05-23  Bruno Haible  <bruno@clisp.org>
7159
7160         crypto/md2: Move AC_LIBOBJ invocations to module description.
7161         * m4/md2.m4: Remove file.
7162         * modules/crypto/md2 (Files): Remove it.
7163         (configure.ac): Remove gl_MD2 call.
7164         (Makefile.am): Augment lib_SOURCES.
7165
7166 2011-05-23  Bruno Haible  <bruno@clisp.org>
7167
7168         long-options: Move AC_LIBOBJ invocations to module description.
7169         * m4/long-options.m4: Remove file.
7170         * modules/long-options (Files): Remove it.
7171         (configure.ac): Remove gl_LONG_OPTIONS call.
7172         (Makefile.am): Augment lib_SOURCES.
7173
7174 2011-05-23  Bruno Haible  <bruno@clisp.org>
7175
7176         i-ring: Move AC_LIBOBJ invocations to module description.
7177         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7178         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7179
7180 2011-05-23  Bruno Haible  <bruno@clisp.org>
7181
7182         idcache: Move AC_LIBOBJ invocations to module description.
7183         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7184         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7185
7186 2011-05-23  Bruno Haible  <bruno@clisp.org>
7187
7188         human: Move AC_LIBOBJ invocations to module description.
7189         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7190         * modules/human (Makefile.am): Augment lib_SOURCES.
7191
7192 2011-05-23  Bruno Haible  <bruno@clisp.org>
7193
7194         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7195         * m4/hmac-sha1.m4: Remove file.
7196         * modules/crypto/hmac-sha1 (Files): Remove it.
7197         (configure.ac): Remove gl_HMAC_SHA1 call.
7198         (Makefile.am): Augment lib_SOURCES.
7199
7200 2011-05-23  Bruno Haible  <bruno@clisp.org>
7201
7202         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7203         * m4/hmac-md5.m4: Remove file.
7204         * modules/crypto/hmac-md5 (Files): Remove it.
7205         (configure.ac): Remove gl_HMAC_MD5 call.
7206         (Makefile.am): Augment lib_SOURCES.
7207
7208 2011-05-23  Bruno Haible  <bruno@clisp.org>
7209
7210         hash: Move AC_LIBOBJ invocations to module description.
7211         * m4/hash.m4: Remove file.
7212         * modules/hash (Files): Remove it.
7213         (configure.ac): Remove gl_HASH call.
7214         (Makefile.am): Augment lib_SOURCES.
7215
7216 2011-05-23  Bruno Haible  <bruno@clisp.org>
7217
7218         hard-locale: Move AC_LIBOBJ invocations to module description.
7219         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7220         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7221
7222 2011-05-23  Bruno Haible  <bruno@clisp.org>
7223
7224         getugroups: Move AC_LIBOBJ invocations to module description.
7225         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7226         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7227
7228 2011-05-23  Bruno Haible  <bruno@clisp.org>
7229
7230         gettime: Move AC_LIBOBJ invocations to module description.
7231         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7232         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7233
7234 2011-05-23  Bruno Haible  <bruno@clisp.org>
7235
7236         getndelim2: Move AC_LIBOBJ invocations to module description.
7237         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7238         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7239
7240 2011-05-23  Bruno Haible  <bruno@clisp.org>
7241
7242         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7243         * m4/gc-pbkdf2-sha1.m4: Remove file.
7244         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7245         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7246         (Makefile.am): Augment lib_SOURCES.
7247
7248 2011-05-23  Bruno Haible  <bruno@clisp.org>
7249
7250         fts: Move AC_LIBOBJ invocations to module description.
7251         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7252         * modules/fts (configure.ac): ... to here.
7253
7254 2011-05-23  Bruno Haible  <bruno@clisp.org>
7255
7256         file-type: Move AC_LIBOBJ invocations to module description.
7257         * m4/file-type.m4: Remove file.
7258         * modules/file-type (Files): Remove it.
7259         (configure.ac): Remove gl_FILE_TYPE call.
7260         (Makefile.am): Augment lib_SOURCES.
7261
7262 2011-05-23  Bruno Haible  <bruno@clisp.org>
7263
7264         filenamecat*: Respect rules for use of AC_LIBOBJ.
7265         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7266         Remove AC_LIBOBJ invocation.
7267         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7268         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7269
7270 2011-05-23  Bruno Haible  <bruno@clisp.org>
7271
7272         filemode: Move AC_LIBOBJ invocations to module description.
7273         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7274         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7275
7276 2011-05-23  Bruno Haible  <bruno@clisp.org>
7277
7278         openat-safer: Move AC_LIBOBJ invocations to module description.
7279         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7280         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7281
7282 2011-05-23  Bruno Haible  <bruno@clisp.org>
7283
7284         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7285         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7286         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7287
7288 2011-05-23  Bruno Haible  <bruno@clisp.org>
7289
7290         exclude: Move AC_LIBOBJ invocations to module description.
7291         * m4/exclude.m4: Remove file.
7292         * modules/exclude (Files): Remove it.
7293         (configure.ac): Remove gl_EXCLUDE call.
7294         (Makefile.am): Augment lib_SOURCES.
7295
7296 2011-05-23  Bruno Haible  <bruno@clisp.org>
7297
7298         dirname*: Respect rules for use of AC_LIBOBJ.
7299         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7300         invocations.
7301         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7302         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7303
7304 2011-05-23  Bruno Haible  <bruno@clisp.org>
7305
7306         dirent-safer: Move AC_LIBOBJ invocations to module description.
7307         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7308         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7309
7310 2011-05-23  Bruno Haible  <bruno@clisp.org>
7311
7312         crypto/des: Move AC_LIBOBJ invocations to module description.
7313         * m4/des.m4: Remove file.
7314         * modules/crypto/des (Files): Remove it.
7315         (configure.ac): Remove gl_DES call.
7316         (Makefile.am): Augment lib_SOURCES.
7317
7318 2011-05-23  Bruno Haible  <bruno@clisp.org>
7319
7320         cycle-check: Move AC_LIBOBJ invocations to module description.
7321         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7322         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7323
7324 2011-05-23  Bruno Haible  <bruno@clisp.org>
7325
7326         c-strtold: Move AC_LIBOBJ invocations to module description.
7327         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7328         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7329
7330 2011-05-23  Bruno Haible  <bruno@clisp.org>
7331
7332         c-strtod: Move AC_LIBOBJ invocations to module description.
7333         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7334         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7335
7336 2011-05-23  Bruno Haible  <bruno@clisp.org>
7337
7338         crc: Move AC_LIBOBJ invocations to module description.
7339         * m4/crc.m4: Remove file.
7340         * modules/crc (Files): Remove it.
7341         (configure.ac): Remove gl_CRC call.
7342         (Makefile.am): Augment lib_SOURCES.
7343
7344 2011-05-23  Bruno Haible  <bruno@clisp.org>
7345
7346         close-stream: Move AC_LIBOBJ invocations to module description.
7347         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7348         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7349
7350 2011-05-23  Bruno Haible  <bruno@clisp.org>
7351
7352         closeout: Move AC_LIBOBJ invocations to module description.
7353         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7354         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7355
7356 2011-05-23  Bruno Haible  <bruno@clisp.org>
7357
7358         closein: Move AC_LIBOBJ invocations to module description.
7359         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7360         * modules/closein (Makefile.am): Augment lib_SOURCES.
7361
7362 2011-05-23  Bruno Haible  <bruno@clisp.org>
7363
7364         cloexec: Move AC_LIBOBJ invocations to module description.
7365         * m4/cloexec.m4: Remove file.
7366         * modules/cloexec (Files): Remove it.
7367         (configure.ac): Remove gl_CLOEXEC call.
7368         (Makefile.am): Augment lib_SOURCES.
7369
7370 2011-05-23  Bruno Haible  <bruno@clisp.org>
7371
7372         check-version: Move AC_LIBOBJ invocations to module description.
7373         * m4/check-version.m4: Remove file.
7374         * modules/check-version (Files): Remove it.
7375         (configure.ac): Remove gl_CHECK_VERSION call.
7376         (Makefile.am): Augment lib_SOURCES.
7377
7378 2011-05-23  Bruno Haible  <bruno@clisp.org>
7379
7380         chdir-safer: Move AC_LIBOBJ invocations to module description.
7381         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7382         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7383
7384 2011-05-23  Bruno Haible  <bruno@clisp.org>
7385
7386         canonicalize: Move AC_LIBOBJ invocations to module description.
7387         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7388         AC_LIBOBJ invocation.
7389         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7390
7391 2011-05-23  Bruno Haible  <bruno@clisp.org>
7392
7393         canon-host: Move AC_LIBOBJ invocations to module description.
7394         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7395         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7396         instead of gl_CANON_HOST.
7397         (Makefile.am): Augment lib_SOURCES.
7398
7399 2011-05-23  Bruno Haible  <bruno@clisp.org>
7400
7401         backupfile: Move AC_LIBOBJ invocations to module description.
7402         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7403         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7404
7405 2011-05-23  Bruno Haible  <bruno@clisp.org>
7406
7407         argmatch: Move AC_LIBOBJ invocations to module description.
7408         * m4/argmatch.m4: Remove file.
7409         * modules/argmatch (Files): Remove it.
7410         (configure.ac): Remove gl_ARGMATCH call.
7411         (Makefile.am): Augment lib_SOURCES.
7412
7413 2011-05-23  Bruno Haible  <bruno@clisp.org>
7414
7415         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7416         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7417         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7418
7419 2011-05-23  Bruno Haible  <bruno@clisp.org>
7420
7421         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7422         * m4/arcfour.m4: Remove file.
7423         * modules/crypto/arcfour (Files): Remove it.
7424         (configure.ac): Remove gl_ARCFOUR call.
7425         (Makefile.am): Augment lib_SOURCES.
7426
7427 2011-05-22  Bruno Haible  <bruno@clisp.org>
7428
7429         write: Move AC_LIBOBJ invocations to module description.
7430         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7431         * modules/write (configure.ac): ... to here.
7432
7433 2011-05-22  Bruno Haible  <bruno@clisp.org>
7434
7435         wmemset: Move AC_LIBOBJ invocations to module description.
7436         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7437         here...
7438         * modules/wmemset (configure.ac): ... to here.
7439
7440 2011-05-22  Bruno Haible  <bruno@clisp.org>
7441
7442         wmemmove: Move AC_LIBOBJ invocations to module description.
7443         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7444         here...
7445         * modules/wmemmove (configure.ac): ... to here.
7446
7447 2011-05-22  Bruno Haible  <bruno@clisp.org>
7448
7449         wmemcpy: Move AC_LIBOBJ invocations to module description.
7450         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7451         here...
7452         * modules/wmemcpy (configure.ac): ... to here.
7453
7454 2011-05-22  Bruno Haible  <bruno@clisp.org>
7455
7456         wmemcmp: Move AC_LIBOBJ invocations to module description.
7457         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7458         here...
7459         * modules/wmemcmp (configure.ac): ... to here.
7460
7461 2011-05-22  Bruno Haible  <bruno@clisp.org>
7462
7463         wmemchr: Move AC_LIBOBJ invocations to module description.
7464         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7465         here...
7466         * modules/wmemchr (configure.ac): ... to here.
7467
7468 2011-05-22  Bruno Haible  <bruno@clisp.org>
7469
7470         wcswidth: Move AC_LIBOBJ invocations to module description.
7471         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7472         here...
7473         * modules/wcswidth (configure.ac): ... to here.
7474
7475 2011-05-22  Bruno Haible  <bruno@clisp.org>
7476
7477         wcwidth: Respect rules for use of AC_LIBOBJ.
7478         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7479         invocation from here...
7480         * modules/wcwidth (configure.ac): ... to here.
7481         (Depends-on): Update conditions.
7482
7483 2011-05-22  Bruno Haible  <bruno@clisp.org>
7484
7485         wctype: Move AC_LIBOBJ invocations to module description.
7486         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7487         invocation from here...
7488         * modules/wctype (configure.ac): ... to here.
7489         (Depends-on): Update conditions.
7490
7491 2011-05-22  Bruno Haible  <bruno@clisp.org>
7492
7493         wctrans: Move AC_LIBOBJ invocations to module description.
7494         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7495         invocation from here...
7496         * modules/wctrans (configure.ac): ... to here.
7497
7498 2011-05-22  Bruno Haible  <bruno@clisp.org>
7499
7500         wctomb: Move AC_LIBOBJ invocations to module description.
7501         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7502         invocations from here...
7503         * modules/wctomb (configure.ac): ... to here.
7504
7505 2011-05-22  Bruno Haible  <bruno@clisp.org>
7506
7507         wctob: Move AC_LIBOBJ invocations to module description.
7508         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7509         gl_PREREQ_WCTOB invocations from here...
7510         * modules/wctob (configure.ac): ... to here.
7511         (Depends-on): Update conditions.
7512
7513 2011-05-22  Bruno Haible  <bruno@clisp.org>
7514
7515         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7516         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7517         here...
7518         * modules/wcsxfrm (configure.ac): ... to here.
7519
7520 2011-05-22  Bruno Haible  <bruno@clisp.org>
7521
7522         wcstok: Move AC_LIBOBJ invocations to module description.
7523         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7524         * modules/wcstok (configure.ac): ... to here.
7525
7526 2011-05-22  Bruno Haible  <bruno@clisp.org>
7527
7528         wcsstr: Move AC_LIBOBJ invocations to module description.
7529         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7530         * modules/wcsstr (configure.ac): ... to here.
7531
7532 2011-05-22  Bruno Haible  <bruno@clisp.org>
7533
7534         wcsspn: Move AC_LIBOBJ invocations to module description.
7535         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7536         * modules/wcsspn (configure.ac): ... to here.
7537
7538 2011-05-22  Bruno Haible  <bruno@clisp.org>
7539
7540         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7541         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7542         gl_PREREQ_WCSRTOMBS invocations from here...
7543         * modules/wcsrtombs (configure.ac): ... to here.
7544
7545 2011-05-22  Bruno Haible  <bruno@clisp.org>
7546
7547         wcsrchr: Move AC_LIBOBJ invocations to module description.
7548         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7549         here...
7550         * modules/wcsrchr (configure.ac): ... to here.
7551
7552 2011-05-22  Bruno Haible  <bruno@clisp.org>
7553
7554         wcspbrk: Move AC_LIBOBJ invocations to module description.
7555         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7556         here...
7557         * modules/wcspbrk (configure.ac): ... to here.
7558
7559 2011-05-22  Bruno Haible  <bruno@clisp.org>
7560
7561         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7562         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7563         gl_PREREQ_WCSNRTOMBS invocations from here...
7564         * modules/wcsnrtombs (configure.ac): ... to here.
7565
7566 2011-05-22  Bruno Haible  <bruno@clisp.org>
7567
7568         wcsnlen: Move AC_LIBOBJ invocations to module description.
7569         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7570         here...
7571         * modules/wcsnlen (configure.ac): ... to here.
7572
7573 2011-05-22  Bruno Haible  <bruno@clisp.org>
7574
7575         wcsncpy: Move AC_LIBOBJ invocations to module description.
7576         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7577         here...
7578         * modules/wcsncpy (configure.ac): ... to here.
7579
7580 2011-05-22  Bruno Haible  <bruno@clisp.org>
7581
7582         wcsncmp: Move AC_LIBOBJ invocations to module description.
7583         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7584         here...
7585         * modules/wcsncmp (configure.ac): ... to here.
7586
7587 2011-05-22  Bruno Haible  <bruno@clisp.org>
7588
7589         wcsncat: Move AC_LIBOBJ invocations to module description.
7590         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7591         here...
7592         * modules/wcsncat (configure.ac): ... to here.
7593
7594 2011-05-22  Bruno Haible  <bruno@clisp.org>
7595
7596         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7597         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7598         from here...
7599         * modules/wcsncasecmp (configure.ac): ... to here.
7600
7601 2011-05-22  Bruno Haible  <bruno@clisp.org>
7602
7603         wcslen: Move AC_LIBOBJ invocations to module description.
7604         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7605         * modules/wcslen (configure.ac): ... to here.
7606
7607 2011-05-22  Bruno Haible  <bruno@clisp.org>
7608
7609         wcsdup: Move AC_LIBOBJ invocations to module description.
7610         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7611         * modules/wcsdup (configure.ac): ... to here.
7612
7613 2011-05-22  Bruno Haible  <bruno@clisp.org>
7614
7615         wcscspn: Move AC_LIBOBJ invocations to module description.
7616         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7617         here...
7618         * modules/wcscspn (configure.ac): ... to here.
7619
7620 2011-05-22  Bruno Haible  <bruno@clisp.org>
7621
7622         wcscpy: Move AC_LIBOBJ invocations to module description.
7623         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7624         * modules/wcscpy (configure.ac): ... to here.
7625
7626 2011-05-22  Bruno Haible  <bruno@clisp.org>
7627
7628         wcscoll: Move AC_LIBOBJ invocations to module description.
7629         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7630         here...
7631         * modules/wcscoll (configure.ac): ... to here.
7632
7633 2011-05-22  Bruno Haible  <bruno@clisp.org>
7634
7635         wcscmp: Move AC_LIBOBJ invocations to module description.
7636         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7637         * modules/wcscmp (configure.ac): ... to here.
7638
7639 2011-05-22  Bruno Haible  <bruno@clisp.org>
7640
7641         wcschr: Move AC_LIBOBJ invocations to module description.
7642         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7643         * modules/wcschr (configure.ac): ... to here.
7644
7645 2011-05-22  Bruno Haible  <bruno@clisp.org>
7646
7647         wcscat: Move AC_LIBOBJ invocations to module description.
7648         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7649         * modules/wcscat (configure.ac): ... to here.
7650
7651 2011-05-22  Bruno Haible  <bruno@clisp.org>
7652
7653         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7654         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7655         here...
7656         * modules/wcscasecmp (configure.ac): ... to here.
7657
7658 2011-05-22  Bruno Haible  <bruno@clisp.org>
7659
7660         wcrtomb: Move AC_LIBOBJ invocations to module description.
7661         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7662         invocations from here...
7663         * modules/wcrtomb (configure.ac): ... to here.
7664
7665 2011-05-22  Bruno Haible  <bruno@clisp.org>
7666
7667         wcpncpy: Move AC_LIBOBJ invocations to module description.
7668         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7669         here...
7670         * modules/wcpncpy (configure.ac): ... to here.
7671
7672 2011-05-22  Bruno Haible  <bruno@clisp.org>
7673
7674         wcpcpy: Move AC_LIBOBJ invocations to module description.
7675         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7676         * modules/wcpcpy (configure.ac): ... to here.
7677
7678 2011-05-22  Bruno Haible  <bruno@clisp.org>
7679
7680         waitpid: Move AC_LIBOBJ invocations to module description.
7681         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7682         invocation from here...
7683         * modules/waitpid (configure.ac): ... to here.
7684
7685 2011-05-22  Bruno Haible  <bruno@clisp.org>
7686
7687         utimensat: Move AC_LIBOBJ invocations to module description.
7688         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7689         here...
7690         * modules/utimensat (configure.ac): ... to here.
7691
7692 2011-05-22  Bruno Haible  <bruno@clisp.org>
7693
7694         usleep: Move AC_LIBOBJ invocations to module description.
7695         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7696         here...
7697         * modules/usleep (configure.ac): ... to here.
7698
7699 2011-05-22  Bruno Haible  <bruno@clisp.org>
7700
7701         unlockpt: Move AC_LIBOBJ invocations to module description.
7702         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7703         gl_PREREQ_UNLOCKPT invocations from here...
7704         * modules/unlockpt (configure.ac): ... to here.
7705
7706 2011-05-22  Bruno Haible  <bruno@clisp.org>
7707
7708         unlink: Respect rules for use of AC_LIBOBJ.
7709         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7710         * modules/unlink (configure.ac): ... to here.
7711
7712 2011-05-22  Bruno Haible  <bruno@clisp.org>
7713
7714         uname: Move AC_LIBOBJ invocations to module description.
7715         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7716         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7717         here...
7718         * modules/uname (configure.ac): ... to here.
7719
7720 2011-05-22  Bruno Haible  <bruno@clisp.org>
7721
7722         ttyname_r: Move AC_LIBOBJ invocations to module description.
7723         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7724         gl_PREREQ_TTYNAME_R invocations from here...
7725         * modules/ttyname_r (configure.ac): ... to here.
7726
7727 2011-05-22  Bruno Haible  <bruno@clisp.org>
7728
7729         tsearch: Move AC_LIBOBJ invocations to module description.
7730         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7731         invocations from here...
7732         * modules/tsearch (configure.ac): ... to here.
7733
7734 2011-05-22  Bruno Haible  <bruno@clisp.org>
7735
7736         towctrans: Move AC_LIBOBJ invocations to module description.
7737         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7738         AC_LIBOBJ invocation from here...
7739         * modules/towctrans (configure.ac): ... to here.
7740
7741 2011-05-22  Bruno Haible  <bruno@clisp.org>
7742
7743         tmpfile: Move AC_LIBOBJ invocations to module description.
7744         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7745         invocations from here...
7746         * modules/tmpfile (configure.ac): ... to here.
7747
7748 2011-05-22  Bruno Haible  <bruno@clisp.org>
7749
7750         times: Move AC_LIBOBJ invocations to module description.
7751         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7752         * modules/times (configure.ac): ... to here.
7753
7754 2011-05-22  Bruno Haible  <bruno@clisp.org>
7755
7756         time_r: Move AC_LIBOBJ invocations to module description.
7757         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7758         invocations from here...
7759         * modules/time_r (configure.ac): ... to here.
7760
7761 2011-05-22  Bruno Haible  <bruno@clisp.org>
7762
7763         timegm: Move AC_LIBOBJ invocations to module description.
7764         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7765         invocations from here...
7766         * modules/timegm (configure.ac): ... to here.
7767
7768 2011-05-22  Bruno Haible  <bruno@clisp.org>
7769
7770         tcgetsid: Move AC_LIBOBJ invocations to module description.
7771         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7772         and gl_PREREQ_TCGETSID invocations from here...
7773         * modules/tcgetsid (configure.ac): ... to here.
7774         (Depends-on): Update conditions.
7775
7776 2011-05-22  Bruno Haible  <bruno@clisp.org>
7777
7778         symlinkat: Move AC_LIBOBJ invocations to module description.
7779         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7780         here...
7781         * modules/symlinkat (configure.ac): ... to here.
7782
7783 2011-05-22  Bruno Haible  <bruno@clisp.org>
7784
7785         symlink: Move AC_LIBOBJ invocations to module description.
7786         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7787         here...
7788         * modules/symlink (configure.ac): ... to here.
7789
7790 2011-05-22  Bruno Haible  <bruno@clisp.org>
7791
7792         strverscmp: Move AC_LIBOBJ invocations to module description.
7793         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7794         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7795         from here...
7796         * modules/strverscmp (configure.ac): ... to here.
7797
7798 2011-05-22  Bruno Haible  <bruno@clisp.org>
7799
7800         strtok_r: Move AC_LIBOBJ invocations to module description.
7801         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7802         and gl_PREREQ_STRTOK_R invocations from here...
7803         * modules/strtok_r (configure.ac): ... to here.
7804         (Depends-on): Update conditions.
7805
7806 2011-05-22  Bruno Haible  <bruno@clisp.org>
7807
7808         strtoumax: Move AC_LIBOBJ invocations to module description.
7809         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7810         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7811         from here...
7812         * modules/strtoumax (configure.ac): ... to here.
7813
7814 2011-05-22  Bruno Haible  <bruno@clisp.org>
7815
7816         strtoimax: Move AC_LIBOBJ invocations to module description.
7817         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7818         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7819         from here...
7820         * modules/strtoimax (configure.ac): ... to here.
7821
7822 2011-05-22  Bruno Haible  <bruno@clisp.org>
7823
7824         strtoull: Move AC_LIBOBJ invocations to module description.
7825         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7826         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7827         from here...
7828         * modules/strtoull (configure.ac): ... to here.
7829
7830 2011-05-22  Bruno Haible  <bruno@clisp.org>
7831
7832         strtoll: Move AC_LIBOBJ invocations to module description.
7833         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7834         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7835         here...
7836         * modules/strtoll (configure.ac): ... to here.
7837
7838 2011-05-22  Bruno Haible  <bruno@clisp.org>
7839
7840         strtoul: Move AC_LIBOBJ invocations to module description.
7841         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7842         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7843         * modules/strtoul (configure.ac): ... to here.
7844
7845 2011-05-22  Bruno Haible  <bruno@clisp.org>
7846
7847         strtol: Move AC_LIBOBJ invocations to module description.
7848         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7849         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7850         * modules/strtol (configure.ac): ... to here.
7851
7852 2011-05-22  Bruno Haible  <bruno@clisp.org>
7853
7854         strtod: Move AC_LIBOBJ invocations to module description.
7855         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7856         invocations from here...
7857         * modules/strtod (configure.ac): ... to here.
7858
7859 2011-05-22  Bruno Haible  <bruno@clisp.org>
7860
7861         strstr*: Move AC_LIBOBJ invocations to module description.
7862         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7863         invocations from here...
7864         * modules/strstr-simple (configure.ac): ... to here.
7865         * modules/strstr (configure.ac): ... and here.
7866
7867 2011-05-22  Bruno Haible  <bruno@clisp.org>
7868
7869         strsignal: Move AC_LIBOBJ invocations to module description.
7870         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7871         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7872         * modules/strsignal (configure.ac): ... to here.
7873         (Depends-on): Update conditions.
7874
7875 2011-05-22  Bruno Haible  <bruno@clisp.org>
7876
7877         strsep: Move AC_LIBOBJ invocations to module description.
7878         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7879         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7880         here...
7881         * modules/strsep (configure.ac): ... to here.
7882
7883 2011-05-22  Bruno Haible  <bruno@clisp.org>
7884
7885         strptime: Move AC_LIBOBJ invocations to module description.
7886         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7887         gl_PREREQ_STRPTIME invocations from here...
7888         * modules/strptime (configure.ac): ... to here.
7889
7890 2011-05-22  Bruno Haible  <bruno@clisp.org>
7891
7892         strpbrk: Move AC_LIBOBJ invocations to module description.
7893         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7894         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7895         here...
7896         * modules/strpbrk (configure.ac): ... to here.
7897
7898 2011-05-22  Bruno Haible  <bruno@clisp.org>
7899
7900         strnlen: Move AC_LIBOBJ invocations to module description.
7901         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7902         invocations from here...
7903         * modules/strnlen (configure.ac): ... to here.
7904
7905 2011-05-22  Bruno Haible  <bruno@clisp.org>
7906
7907         strndup: Move AC_LIBOBJ invocations to module description.
7908         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7909         invocations from here...
7910         * modules/strndup (configure.ac): ... to here.
7911         (Depends-on): Update conditions.
7912
7913 2011-05-22  Bruno Haible  <bruno@clisp.org>
7914
7915         strncat: Move AC_LIBOBJ invocations to module description.
7916         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7917         invocations from here...
7918         * modules/strncat (configure.ac): ... to here.
7919
7920 2011-05-22  Bruno Haible  <bruno@clisp.org>
7921
7922         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7923         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7924         invocations from here...
7925         * modules/strdup (configure.ac): ... to here.
7926         * modules/strdup-posix (configure.ac): ... and here.
7927
7928 2011-05-22  Bruno Haible  <bruno@clisp.org>
7929
7930         strcspn: Move AC_LIBOBJ invocations to module description.
7931         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7932         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7933         here...
7934         * modules/strcspn (configure.ac): ... to here.
7935
7936 2011-05-22  Bruno Haible  <bruno@clisp.org>
7937
7938         strchrnul: Move AC_LIBOBJ invocations to module description.
7939         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7940         gl_PREREQ_STRCHRNUL invocations from here...
7941         * modules/strchrnul (configure.ac): ... to here.
7942
7943 2011-05-22  Bruno Haible  <bruno@clisp.org>
7944
7945         strcasestr*: Move AC_LIBOBJ invocations to module description.
7946         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7947         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7948         * modules/strcasestr-simple (configure.ac): ... to here.
7949         * modules/strcasestr (configure.ac): ... and here.
7950
7951 2011-05-22  Bruno Haible  <bruno@clisp.org>
7952
7953         strcase: Move AC_LIBOBJ invocations to module description.
7954         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7955         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7956         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7957         gl_PREREQ_STRNCASECMP invocations from here...
7958         * modules/strcase (configure.ac): ... to here.
7959
7960 2011-05-22  Bruno Haible  <bruno@clisp.org>
7961
7962         stpncpy: Move AC_LIBOBJ invocations to module description.
7963         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7964         here...
7965         * modules/stpncpy (configure.ac): ... to here.
7966
7967 2011-05-22  Bruno Haible  <bruno@clisp.org>
7968
7969         stpcpy: Move AC_LIBOBJ invocations to module description.
7970         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7971         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7972         here...
7973         * modules/stpcpy (configure.ac): ... to here.
7974
7975 2011-05-21  Bruno Haible  <bruno@clisp.org>
7976
7977         stat: Move AC_LIBOBJ invocations to module description.
7978         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7979         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7980         here...
7981         * modules/stat (configure.ac): ... to here.
7982
7983 2011-05-21  Bruno Haible  <bruno@clisp.org>
7984
7985         sleep: Move AC_LIBOBJ invocations to module description.
7986         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7987         * modules/sleep (configure.ac): ... to here.
7988
7989 2011-05-21  Bruno Haible  <bruno@clisp.org>
7990
7991         signbit: Move AC_LIBOBJ invocations to module description.
7992         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7993         * modules/signbit (configure.ac): ... to here.
7994
7995 2011-05-21  Bruno Haible  <bruno@clisp.org>
7996
7997         sigprocmask: Move AC_LIBOBJ invocations to module description.
7998         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7999         gl_PREREQ_SIGPROMASK invocations from here...
8000         * modules/sigprocmask (configure.ac): ... to here.
8001
8002 2011-05-21  Bruno Haible  <bruno@clisp.org>
8003
8004         sigaction: Move AC_LIBOBJ invocations to module description.
8005         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8006         gl_PREREQ_SIGACTION invocations from here...
8007         * modules/sigaction (configure.ac): ... to here.
8008
8009 2011-05-21  Bruno Haible  <bruno@clisp.org>
8010
8011         sig2str: Move AC_LIBOBJ invocations to module description.
8012         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8013         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8014         here...
8015         * modules/sig2str (configure.ac): ... to here.
8016
8017 2011-05-21  Bruno Haible  <bruno@clisp.org>
8018
8019         setlocale: Move AC_LIBOBJ invocations to module description.
8020         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8021         gl_PREREQ_SETLOCALE invocations from here...
8022         * modules/setlocale (configure.ac): ... to here.
8023
8024 2011-05-21  Bruno Haible  <bruno@clisp.org>
8025
8026         unsetenv: Move AC_LIBOBJ invocations to module description.
8027         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8028         and gl_PREREQ_UNSETENV invocations from here...
8029         * modules/unsetenv (configure.ac): ... to here.
8030         (Depends-on): Update.
8031
8032 2011-05-21  Bruno Haible  <bruno@clisp.org>
8033
8034         setenv: Move AC_LIBOBJ invocations to module description.
8035         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8036         here...
8037         * modules/setenv (configure.ac): ... to here.
8038
8039 2011-05-21  Bruno Haible  <bruno@clisp.org>
8040
8041         selinux-h: Move AC_LIBOBJ invocations to module description.
8042         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8043         AC_LIBOBJ invocation from here...
8044         * modules/selinux-h (configure.ac): ... to here.
8045
8046 2011-05-21  Bruno Haible  <bruno@clisp.org>
8047
8048         select: Respect rules for use of AC_LIBOBJ.
8049         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8050         here...
8051         * modules/select (configure.ac): ... to here.
8052
8053 2011-05-21  Bruno Haible  <bruno@clisp.org>
8054
8055         scandir: Move AC_LIBOBJ invocations to module description.
8056         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8057         invocations from here...
8058         * modules/scandir (configure.ac): ... to here.
8059
8060 2011-05-21  Bruno Haible  <bruno@clisp.org>
8061
8062         rpmatch: Move AC_LIBOBJ invocations to module description.
8063         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8064         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8065         here...
8066         * modules/rpmatch (configure.ac): ... to here.
8067
8068 2011-05-21  Bruno Haible  <bruno@clisp.org>
8069
8070         rmdir: Respect rules for use of AC_LIBOBJ.
8071         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8072         * modules/rmdir (configure.ac): ... to here.
8073
8074 2011-05-21  Bruno Haible  <bruno@clisp.org>
8075
8076         renameat: Move AC_LIBOBJ invocations to module description.
8077         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8078         here...
8079         * modules/renameat (configure.ac): ... to here.
8080
8081 2011-05-21  Bruno Haible  <bruno@clisp.org>
8082
8083         rename: Respect rules for use of AC_LIBOBJ.
8084         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8085         here...
8086         * modules/rename (configure.ac): ... to here.
8087
8088 2011-05-21  Bruno Haible  <bruno@clisp.org>
8089
8090         remove: Move AC_LIBOBJ invocations to module description.
8091         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8092         here...
8093         * modules/remove (configure.ac): ... to here.
8094
8095 2011-05-21  Bruno Haible  <bruno@clisp.org>
8096
8097         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8098         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8099         macro.
8100         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8101         * modules/relocatable-lib (configure.ac): ... to here.
8102         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8103         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8104
8105 2011-05-21  Bruno Haible  <bruno@clisp.org>
8106
8107         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8108         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8109         here...
8110         * modules/relocatable-prog (configure.ac): ... to here.
8111
8112 2011-05-21  Bruno Haible  <bruno@clisp.org>
8113
8114         regex: Move AC_LIBOBJ invocations to module description.
8115         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8116         invocations from here...
8117         * modules/regex (configure.ac): ... to here.
8118
8119 2011-05-21  Bruno Haible  <bruno@clisp.org>
8120
8121         realloc-*: Move AC_LIBOBJ invocations to module description.
8122         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8123         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8124         AC_LIBOBJ invocations from here...
8125         * modules/realloc-gnu (configure.ac): ... to here.
8126         * modules/realloc-posix (configure.ac): ... and here.
8127
8128 2011-05-21  Bruno Haible  <bruno@clisp.org>
8129
8130         readutmp: Move AC_LIBOBJ invocations to module description.
8131         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8132         * modules/readutmp (configure.ac): ... to here.
8133
8134 2011-05-21  Bruno Haible  <bruno@clisp.org>
8135
8136         readlinkat: Move AC_LIBOBJ invocations to module description.
8137         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8138         here...
8139         * modules/readlinkat (configure.ac): ... to here.
8140
8141 2011-05-21  Bruno Haible  <bruno@clisp.org>
8142
8143         readlink: Move AC_LIBOBJ invocations to module description.
8144         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8145         gl_PREREQ_READLINK invocations from here...
8146         * modules/readlink (configure.ac): ... to here.
8147
8148 2011-05-21  Bruno Haible  <bruno@clisp.org>
8149
8150         readline: Move AC_LIBOBJ invocations to module description.
8151         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8152         gl_PREREQ_READLINE invocations from here...
8153         * modules/readline (configure.ac): ... to here.
8154
8155 2011-05-21  Bruno Haible  <bruno@clisp.org>
8156
8157         read: Move AC_LIBOBJ invocations to module description.
8158         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8159         * modules/read (configure.ac): ... to here.
8160
8161 2011-05-21  Bruno Haible  <bruno@clisp.org>
8162
8163         rawmemchr: Move AC_LIBOBJ invocations to module description.
8164         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8166         from here...
8167         * modules/rawmemchr (configure.ac): ... to here.
8168
8169 2011-05-21  Bruno Haible  <bruno@clisp.org>
8170
8171         random_r: Move AC_LIBOBJ invocations to module description.
8172         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8173         gl_PREREQ_RANDOM_R invocations from here...
8174         * modules/random_r (configure.ac): ... to here.
8175
8176 2011-05-21  Bruno Haible  <bruno@clisp.org>
8177
8178         pwrite: Move AC_LIBOBJ invocations to module description.
8179         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8180         * modules/pwrite (configure.ac): ... to here.
8181
8182 2011-05-21  Bruno Haible  <bruno@clisp.org>
8183
8184         putenv: Move AC_LIBOBJ invocations to module description.
8185         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8186         * modules/putenv (configure.ac): ... to here.
8187
8188 2011-05-21  Bruno Haible  <bruno@clisp.org>
8189
8190         login_tty: Move AC_LIBOBJ invocations to module description.
8191         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8192         * modules/login_tty (configure.ac): ... to here.
8193
8194 2011-05-21  Bruno Haible  <bruno@clisp.org>
8195
8196         openpty: Move AC_LIBOBJ invocations to module description.
8197         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8198         * modules/openpty (configure.ac): ... to here.
8199
8200 2011-05-21  Bruno Haible  <bruno@clisp.org>
8201
8202         forkpty: Move AC_LIBOBJ invocations to module description.
8203         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8204         * modules/forkpty (configure.ac): ... to here.
8205
8206 2011-05-21  Bruno Haible  <bruno@clisp.org>
8207
8208         ptsname: Move AC_LIBOBJ invocations to module description.
8209         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8210         invocations from here...
8211         * modules/ptsname (configure.ac): ... to here.
8212
8213 2011-05-21  Bruno Haible  <bruno@clisp.org>
8214
8215         pread: Move AC_LIBOBJ invocations to module description.
8216         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8217         * modules/pread (configure.ac): ... to here.
8218
8219 2011-05-21  Bruno Haible  <bruno@clisp.org>
8220
8221         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8222         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8223         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8224         * modules/posix_spawn (configure.ac): ... to here.
8225         * modules/posix_spawnp (configure.ac): ... and here.
8226
8227 2011-05-21  Bruno Haible  <bruno@clisp.org>
8228
8229         popen: Move AC_LIBOBJ invocations to module description.
8230         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8231         invocations from here...
8232         * modules/popen (configure.ac): ... to here.
8233
8234 2011-05-21  Bruno Haible  <bruno@clisp.org>
8235
8236         poll: Move AC_LIBOBJ invocations to module description.
8237         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8238         invocations from here...
8239         * modules/poll (configure.ac): ... to here.
8240
8241 2011-05-21  Bruno Haible  <bruno@clisp.org>
8242
8243         pipe-posix: Move AC_LIBOBJ invocations to module description.
8244         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8245         * modules/pipe-posix (configure.ac): ... to here.
8246
8247 2011-05-21  Bruno Haible  <bruno@clisp.org>
8248
8249         openat: Respect rules for use of AC_LIBOBJ.
8250         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8251         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8252         * modules/openat (configure.ac): ... to here.
8253
8254 2011-05-21  Bruno Haible  <bruno@clisp.org>
8255
8256         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8257         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8258         invocation from here...
8259         * modules/obstack-printf (configure.ac): ... to here.
8260         * modules/obstack-printf-posix (configure.ac): ... and here.
8261
8262 2011-05-21  Bruno Haible  <bruno@clisp.org>
8263
8264         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8265         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8266         from here...
8267         * modules/nl_langinfo (configure.ac): ... to here.
8268
8269 2011-05-21  Bruno Haible  <bruno@clisp.org>
8270
8271         nanosleep: Move AC_LIBOBJ invocations to module description.
8272         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8273         gl_PREREQ_NANOSLEEP invocations from here...
8274         * modules/nanosleep (configure.ac): ... to here.
8275
8276 2011-05-21  Bruno Haible  <bruno@clisp.org>
8277
8278         mountlist: Move AC_LIBOBJ invocations to module description.
8279         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8280         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8281         * modules/mountlist (configure.ac): ... to here.
8282
8283 2011-05-21  Bruno Haible  <bruno@clisp.org>
8284
8285         mktime: Respect rules for use of AC_LIBOBJ.
8286         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8287         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8288         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8289         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8290         * modules/mktime (configure.ac): ... to here.
8291         * modules/mktime-internal (configure.ac): ... and here.
8292         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8293
8294 2011-05-21  Bruno Haible  <bruno@clisp.org>
8295
8296         mkstemps: Move AC_LIBOBJ invocations to module description.
8297         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8298         here...
8299         * modules/mkstemps (configure.ac): ... to here.
8300
8301 2011-05-21  Bruno Haible  <bruno@clisp.org>
8302
8303         mkstemp: Move AC_LIBOBJ invocations to module description.
8304         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8305         gl_PREREQ_MKSTEMP invocations from here...
8306         * modules/mkstemp (configure.ac): ... to here.
8307
8308 2011-05-21  Bruno Haible  <bruno@clisp.org>
8309
8310         mkostemps: Move AC_LIBOBJ invocations to module description.
8311         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8312         here...
8313         * modules/mkostemps (configure.ac): ... to here.
8314
8315 2011-05-21  Bruno Haible  <bruno@clisp.org>
8316
8317         mkostemp: Move AC_LIBOBJ invocations to module description.
8318         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8319         gl_PREREQ_MKOSTEMP invocations from here...
8320         * modules/mkostemp (configure.ac): ... to here.
8321
8322 2011-05-21  Bruno Haible  <bruno@clisp.org>
8323
8324         mknod: Move AC_LIBOBJ invocations to module description.
8325         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8326         * modules/mknod (configure.ac): ... to here.
8327
8328 2011-05-21  Bruno Haible  <bruno@clisp.org>
8329
8330         mkfifoat: Move AC_LIBOBJ invocations to module description.
8331         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8332         here...
8333         * modules/mkfifoat (configure.ac): ... to here.
8334
8335 2011-05-21  Bruno Haible  <bruno@clisp.org>
8336
8337         mkfifo: Respect rules for use of AC_LIBOBJ.
8338         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8339         here...
8340         * modules/mkfifo (configure.ac): ... to here.
8341
8342 2011-05-21  Bruno Haible  <bruno@clisp.org>
8343
8344         mkdtemp: Move AC_LIBOBJ invocations to module description.
8345         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8346         invocations from here...
8347         * modules/mkdtemp (configure.ac): ... to here.
8348
8349 2011-05-21  Bruno Haible  <bruno@clisp.org>
8350
8351         mkdir: Move AC_LIBOBJ invocations to module description.
8352         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8353         * modules/mkdir (configure.ac): ... to here.
8354
8355 2011-05-21  Bruno Haible  <bruno@clisp.org>
8356
8357         memset: Move AC_LIBOBJ invocations to module description.
8358         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8359         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8360         here...
8361         * modules/memset (configure.ac): ... to here.
8362
8363 2011-05-21  Bruno Haible  <bruno@clisp.org>
8364
8365         memrchr: Move AC_LIBOBJ invocations to module description.
8366         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8367         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8368         here...
8369         * modules/memrchr (configure.ac): ... to here.
8370
8371 2011-05-21  Bruno Haible  <bruno@clisp.org>
8372
8373         mempcpy: Move AC_LIBOBJ invocations to module description.
8374         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8375         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8376         here...
8377         * modules/mempcpy (configure.ac): ... to here.
8378
8379 2011-05-21  Bruno Haible  <bruno@clisp.org>
8380
8381         memmove: Move AC_LIBOBJ invocations to module description.
8382         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8383         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8384         here...
8385         * modules/memmove (configure.ac): ... to here.
8386
8387 2011-05-21  Bruno Haible  <bruno@clisp.org>
8388
8389         memmem*: Move AC_LIBOBJ invocations to module description.
8390         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8391         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8392         here...
8393         (gl_FUNC_MEMMEM): ... and here...
8394         * modules/memmem-simple (configure.ac): ... to here.
8395         * modules/memmem (configure.ac): ... and here.
8396
8397 2011-05-21  Bruno Haible  <bruno@clisp.org>
8398
8399         memcpy: Move AC_LIBOBJ invocations to module description.
8400         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8401         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8402         here...
8403         * modules/memcpy (configure.ac): ... to here.
8404
8405 2011-05-21  Bruno Haible  <bruno@clisp.org>
8406
8407         memcmp: Simplify autoconf macro.
8408         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8409         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8410         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8411
8412 2011-05-21  Bruno Haible  <bruno@clisp.org>
8413
8414         memcmp: Move AC_LIBOBJ invocations to module description.
8415         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8416         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8417         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8418         * modules/memcmp (configure.ac): ... to here.
8419         (Depends-on): Update conditions.
8420
8421 2011-05-21  Bruno Haible  <bruno@clisp.org>
8422
8423         memchr: Respect rules for use of AC_LIBOBJ.
8424         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8425         invocations from here...
8426         * modules/memchr (configure.ac): ... to here.
8427
8428 2011-05-21  Bruno Haible  <bruno@clisp.org>
8429
8430         mbtowc: Move AC_LIBOBJ invocations to module description.
8431         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8432         invocations from here...
8433         * modules/mbtowc (configure.ac): ... to here.
8434
8435 2011-05-21  Bruno Haible  <bruno@clisp.org>
8436
8437         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8438         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8439         gl_PREREQ_MBSRTOWCS invocations from here...
8440         * modules/mbsrtowcs (configure.ac): ... to here.
8441
8442 2011-05-21  Bruno Haible  <bruno@clisp.org>
8443
8444         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8445         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8446         gl_PREREQ_MBSNRTOWCS invocations from here...
8447         * modules/mbsnrtowcs (configure.ac): ... to here.
8448
8449 2011-05-21  Bruno Haible  <bruno@clisp.org>
8450
8451         mbsinit: Move AC_LIBOBJ invocations to module description.
8452         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8453         invocations from here...
8454         * modules/mbsinit (configure.ac): ... to here.
8455
8456 2011-05-21  Bruno Haible  <bruno@clisp.org>
8457
8458         mbrlen: Move AC_LIBOBJ invocations to module description.
8459         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8460         invocations from here...
8461         * modules/mbrlen (configure.ac): ... to here.
8462
8463 2011-05-21  Bruno Haible  <bruno@clisp.org>
8464
8465         mbrtowc: Respect rules for use of AC_LIBOBJ.
8466         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8467         invocations from here...
8468         * modules/mbrtowc (configure.ac): ... to here.
8469
8470 2011-05-21  Bruno Haible  <bruno@clisp.org>
8471
8472         malloc-*: Move AC_LIBOBJ invocations to module description.
8473         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8474         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8475         AC_LIBOBJ invocations from here...
8476         * modules/malloc-gnu (configure.ac): ... to here.
8477         * modules/malloc-posix (configure.ac): ... and here.
8478
8479 2011-05-21  Bruno Haible  <bruno@clisp.org>
8480
8481         lstat, openat: Respect rules for use of AC_LIBOBJ.
8482         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8483         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8484         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8485         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8486         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8487         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8488         here.
8489         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8490
8491 2011-05-21  Bruno Haible  <bruno@clisp.org>
8492
8493         lseek: Move AC_LIBOBJ invocations to module description.
8494         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8495         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8496         * modules/lseek (configure.ac): ... to here.
8497
8498 2011-05-21  Bruno Haible  <bruno@clisp.org>
8499
8500         linkat: Move AC_LIBOBJ invocations to module description.
8501         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8502         here...
8503         * modules/linkat (configure.ac): ... to here.
8504
8505 2011-05-21  Bruno Haible  <bruno@clisp.org>
8506
8507         link: Respect rules for use of AC_LIBOBJ.
8508         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8509         * modules/link (configure.ac): ... to here.
8510
8511 2011-05-21  Bruno Haible  <bruno@clisp.org>
8512
8513         lchown: Move AC_LIBOBJ invocations to module description.
8514         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8515         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8516         * modules/lchown (configure.ac): ... to here.
8517
8518 2011-05-21  Bruno Haible  <bruno@clisp.org>
8519
8520         iswctype: Move AC_LIBOBJ invocations to module description.
8521         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8522         here...
8523         * modules/iswctype (configure.ac): ... to here.
8524
8525 2011-05-21  Bruno Haible  <bruno@clisp.org>
8526
8527         iswblank: Move AC_LIBOBJ invocations to module description.
8528         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8529         here...
8530         * modules/iswblank (configure.ac): ... to here.
8531
8532 2011-05-21  Bruno Haible  <bruno@clisp.org>
8533
8534         atanl: Move AC_LIBOBJ invocations to module description.
8535         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8536         * modules/atanl (configure.ac): ... to here.
8537
8538 2011-05-21  Bruno Haible  <bruno@clisp.org>
8539
8540         acosl: Move AC_LIBOBJ invocations to module description.
8541         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8542         * modules/acosl (configure.ac): ... to here.
8543
8544 2011-05-21  Bruno Haible  <bruno@clisp.org>
8545
8546         asinl: Respect rules for use of AC_LIBOBJ.
8547         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8548         * modules/asinl (configure.ac): ... to here.
8549
8550 2011-05-21  Bruno Haible  <bruno@clisp.org>
8551
8552         tanl: Move AC_LIBOBJ invocations to module description.
8553         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8554         * modules/tanl (configure.ac): ... to here.
8555
8556 2011-05-21  Bruno Haible  <bruno@clisp.org>
8557
8558         cosl: Move AC_LIBOBJ invocations to module description.
8559         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8560         * modules/cosl (configure.ac): ... to here.
8561
8562 2011-05-21  Bruno Haible  <bruno@clisp.org>
8563
8564         sinl: Move AC_LIBOBJ invocations to module description.
8565         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8566         * modules/sinl (configure.ac): ... to here.
8567
8568 2011-05-21  Bruno Haible  <bruno@clisp.org>
8569
8570         logl: Move AC_LIBOBJ invocations to module description.
8571         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8572         * modules/logl (configure.ac): ... to here.
8573
8574 2011-05-21  Bruno Haible  <bruno@clisp.org>
8575
8576         expl: Move AC_LIBOBJ invocations to module description.
8577         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8578         * modules/expl (configure.ac): ... to here.
8579
8580 2011-05-21  Bruno Haible  <bruno@clisp.org>
8581
8582         roundl: Move AC_LIBOBJ invocations to module description.
8583         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8584         * modules/roundl (configure.ac): ... to here.
8585
8586 2011-05-21  Bruno Haible  <bruno@clisp.org>
8587
8588         round: Move AC_LIBOBJ invocations to module description.
8589         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8590         * modules/round (configure.ac): ... to here.
8591
8592 2011-05-21  Bruno Haible  <bruno@clisp.org>
8593
8594         roundf: Move AC_LIBOBJ invocations to module description.
8595         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8596         * modules/roundf (configure.ac): ... to here.
8597
8598 2011-05-21  Bruno Haible  <bruno@clisp.org>
8599
8600         truncl: Move AC_LIBOBJ invocations to module description.
8601         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8602         * modules/truncl (configure.ac): ... to here.
8603
8604 2011-05-21  Bruno Haible  <bruno@clisp.org>
8605
8606         trunc: Move AC_LIBOBJ invocations to module description.
8607         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8608         * modules/trunc (configure.ac): ... to here.
8609
8610 2011-05-21  Bruno Haible  <bruno@clisp.org>
8611
8612         truncf: Move AC_LIBOBJ invocations to module description.
8613         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8614         * modules/truncf (configure.ac): ... to here.
8615
8616 2011-05-21  Bruno Haible  <bruno@clisp.org>
8617
8618         ceill: Move AC_LIBOBJ invocations to module description.
8619         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8620         * modules/ceill (configure.ac): ... to here.
8621
8622 2011-05-21  Bruno Haible  <bruno@clisp.org>
8623
8624         ceil: Move AC_LIBOBJ invocations to module description.
8625         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8626         * modules/ceil (configure.ac): ... to here.
8627
8628 2011-05-21  Bruno Haible  <bruno@clisp.org>
8629
8630         ceilf: Move AC_LIBOBJ invocations to module description.
8631         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8632         * modules/ceilf (configure.ac): ... to here.
8633
8634 2011-05-21  Bruno Haible  <bruno@clisp.org>
8635
8636         floorl: Respect rules for use of AC_LIBOBJ.
8637         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8638         * modules/floorl (configure.ac): ... to here.
8639
8640 2011-05-21  Bruno Haible  <bruno@clisp.org>
8641
8642         floor: Respect rules for use of AC_LIBOBJ.
8643         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8644         * modules/floor (configure.ac): ... to here.
8645
8646 2011-05-21  Bruno Haible  <bruno@clisp.org>
8647
8648         floorf: Move AC_LIBOBJ invocations to module description.
8649         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8650         * modules/floorf (configure.ac): ... to here.
8651
8652 2011-05-20  Bruno Haible  <bruno@clisp.org>
8653
8654         sqrtl: Respect rules for use of AC_LIBOBJ.
8655         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8656         * modules/sqrtl (configure.ac): ... to here.
8657
8658 2011-05-20  Bruno Haible  <bruno@clisp.org>
8659
8660         ldexpl: Respect rules for use of AC_LIBOBJ.
8661         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8662         * modules/ldexpl (configure.ac): ... to here.
8663
8664 2011-05-20  Bruno Haible  <bruno@clisp.org>
8665
8666         frexpl*: Respect rules for use of AC_LIBOBJ.
8667         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8668         invocation from here...
8669         * modules/frexpl (configure.ac): ... to here.
8670         * modules/frexpl-nolibm (configure.ac): ... and here.
8671
8672 2011-05-20  Bruno Haible  <bruno@clisp.org>
8673
8674         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8675         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8676         invocation from here...
8677         * modules/frexp (configure.ac): ... to here.
8678         * modules/frexp-nolibm (configure.ac): ... and here.
8679
8680 2011-05-20  Bruno Haible  <bruno@clisp.org>
8681
8682         isnan: Respect rules for use of AC_LIBOBJ.
8683         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8684         invocations here.
8685         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8686         REPLACE_ISNAN.
8687         * modules/isnand (configure.ac): Likewise.
8688         * modules/isnanl (configure.ac): Likewise.
8689
8690 2011-05-20  Bruno Haible  <bruno@clisp.org>
8691
8692         isnanl*: Respect rules for use of AC_LIBOBJ.
8693         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8694         invocation from here...
8695         * modules/isnanl (configure.ac): ... to here.
8696         * modules/isnanl-nolibm (configure.ac): ... and here.
8697
8698 2011-05-20  Bruno Haible  <bruno@clisp.org>
8699
8700         isnand*: Move AC_LIBOBJ invocations to module description.
8701         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8702         invocation from here...
8703         * modules/isnand (configure.ac): ... to here.
8704         * modules/isnand-nolibm (configure.ac): ... and here.
8705
8706 2011-05-20  Bruno Haible  <bruno@clisp.org>
8707
8708         isnanf*: Move AC_LIBOBJ invocations to module description.
8709         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8710         invocation from here...
8711         * modules/isnanf (configure.ac): ... to here.
8712         * modules/isnanf-nolibm (configure.ac): ... and here.
8713
8714 2011-05-20  Bruno Haible  <bruno@clisp.org>
8715
8716         isnan*: Separate the AC_LIBOBJ invocations.
8717         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8718         AC_LIBOBJ invocation.
8719         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8720         here.
8721         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8722         AC_LIBOBJ invocation.
8723         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8724         here.
8725         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8726         AC_LIBOBJ invocation.
8727         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8728         here.
8729         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8730
8731 2011-05-08  Bruno Haible  <bruno@clisp.org>
8732
8733         isinf: Move AC_LIBOBJ invocations to module description.
8734         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8735         * modules/isinf (configure.ac): ... to here.
8736
8737 2011-05-08  Bruno Haible  <bruno@clisp.org>
8738
8739         isfinite: Move AC_LIBOBJ invocations to module description.
8740         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8741         * modules/isfinite (configure.ac): ... to here.
8742
8743 2011-05-08  Bruno Haible  <bruno@clisp.org>
8744
8745         isblank: Move AC_LIBOBJ invocations to module description.
8746         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8747         here...
8748         * modules/isblank (configure.ac): ... to here.
8749
8750 2011-05-08  Bruno Haible  <bruno@clisp.org>
8751
8752         isapipe: Move AC_LIBOBJ invocations to module description.
8753         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8754         gl_PREREQ_ISAPIPE invocations from here...
8755         * modules/isapipe (configure.ac): ... to here.
8756         (Depends-on): Update condition.
8757
8758 2011-05-08  Bruno Haible  <bruno@clisp.org>
8759
8760         ioctl: Move AC_LIBOBJ invocations to module description.
8761         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8762         invocations from here...
8763         * modules/ioctl (configure.ac): ... to here.
8764         (Depends-on): Update condition.
8765
8766 2011-05-08  Bruno Haible  <bruno@clisp.org>
8767
8768         imaxdiv: Move AC_LIBOBJ invocations to module description.
8769         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8770         invocations from here...
8771         * modules/imaxdiv (configure.ac): ... to here.
8772
8773 2011-05-08  Bruno Haible  <bruno@clisp.org>
8774
8775         imaxabs: Move AC_LIBOBJ invocations to module description.
8776         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8777         invocations from here...
8778         * modules/imaxabs (configure.ac): ... to here.
8779
8780 2011-05-08  Bruno Haible  <bruno@clisp.org>
8781
8782         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8783         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8784         AC_LIBOBJ invocations from here...
8785         * modules/getaddrinfo (configure.ac): ... to here.
8786         (Depends-on): Add conditions.
8787
8788 2011-05-08  Bruno Haible  <bruno@clisp.org>
8789
8790         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8791         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8792         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8793         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8794         (gl_PREREQ_INET_PTON): ... from here.
8795         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8796         gl_PREREQ_INET_PTON here.
8797         (Depends-on): Update condition.
8798
8799 2011-05-08  Bruno Haible  <bruno@clisp.org>
8800
8801         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8802         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8803         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8804         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8805         (gl_PREREQ_INET_NTOP): ... from here.
8806         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8807         gl_PREREQ_INET_NTOP here.
8808         (Depends-on): Update condition.
8809
8810 2011-05-08  Bruno Haible  <bruno@clisp.org>
8811
8812         iconv_open: Move AC_LIBOBJ invocations to module description.
8813         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8814         AC_LIBOBJ invocations from here...
8815         * modules/iconv_open (configure.ac): ... to here.
8816
8817 2011-05-08  Bruno Haible  <bruno@clisp.org>
8818
8819         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8820         If module 'iconv_open' is among the main modules and module
8821         'iconv_open-utf' is among the tests dependencies, then
8822         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8823         return the special iconv_t values. Therefore iconv() and iconv_close()
8824         must support these special iconv_t values, already in lib, not only in
8825         tests.
8826         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8827         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8828         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8829         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8830         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8831         (Depends-on): Add the dependencies of iconv_open-utf.
8832         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8833         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8834         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8835
8836 2011-05-08  Bruno Haible  <bruno@clisp.org>
8837
8838         group-member: Move AC_LIBOBJ invocations to module description.
8839         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8840         gl_PREREQ_GROUP_MEMBER invocations from here...
8841         * modules/group-member (configure.ac): ... to here.
8842
8843 2011-05-08  Bruno Haible  <bruno@clisp.org>
8844
8845         grantpt: Move AC_LIBOBJ invocations to module description.
8846         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8847         invocations from here...
8848         * modules/grantpt (configure.ac): ... to here.
8849
8850 2011-05-08  Bruno Haible  <bruno@clisp.org>
8851
8852         glob: Move AC_LIBOBJ invocations to module description.
8853         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8854         from here...
8855         * modules/glob (configure.ac): ... to here.
8856
8857 2011-05-08  Bruno Haible  <bruno@clisp.org>
8858
8859         getusershell: Move AC_LIBOBJ invocations to module description.
8860         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8861         Move AC_LIBOBJ invocation from here...
8862         * modules/getusershell (configure.ac): ... to here.
8863         (Depends-on): Update condition.
8864
8865 2011-05-08  Bruno Haible  <bruno@clisp.org>
8866
8867         gettimeofday: Move AC_LIBOBJ invocations to module description.
8868         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8869         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8870         gl_PREREQ_GETTIMEOFDAY invocations from here...
8871         * modules/gettimeofday (configure.ac): ... to here.
8872
8873 2011-05-08  Bruno Haible  <bruno@clisp.org>
8874
8875         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8876         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8877         just gl_FUNC_TZSET.
8878         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8879         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8880         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8881         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8882
8883 2011-05-08  Bruno Haible  <bruno@clisp.org>
8884
8885         getsubopt: Move AC_LIBOBJ invocations to module description.
8886         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8887         gl_PREREQ_GETSUBOPT invocations from here...
8888         * modules/getsubopt (configure.ac): ... to here.
8889
8890 2011-05-08  Bruno Haible  <bruno@clisp.org>
8891
8892         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8893         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8894         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8895         * modules/getpass-gnu (configure.ac): ... to here.
8896
8897 2011-05-08  Bruno Haible  <bruno@clisp.org>
8898
8899         getpass: Move AC_LIBOBJ invocations to module description.
8900         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8901         gl_PREREQ_GETPASS invocations from here...
8902         * modules/getpass (configure.ac): ... to here.
8903
8904 2011-05-08  Bruno Haible  <bruno@clisp.org>
8905
8906         getpagesize: Move AC_LIBOBJ invocations to module description.
8907         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8908         from here...
8909         * modules/getpagesize (configure.ac): ... to here.
8910
8911 2011-05-08  Bruno Haible  <bruno@clisp.org>
8912
8913         getopt: Move AC_LIBOBJ invocations to module description.
8914         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8915         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8916         invocations from here...
8917         * modules/getopt-gnu (configure.ac): ... to here.
8918         * modules/getopt-posix (configure.ac): ... and here.
8919         (Depends-on): Update condition.
8920
8921 2011-05-08  Bruno Haible  <bruno@clisp.org>
8922
8923         getopt, argp: Respect rules for use of AC_LIBOBJ.
8924         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8925         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8926         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8927         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8928
8929 2011-05-08  Bruno Haible  <bruno@clisp.org>
8930
8931         getlogin_r: Move AC_LIBOBJ invocations to module description.
8932         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8933         gl_PREREQ_GETLOGIN_R invocations from here...
8934         * modules/getlogin_r (configure.ac): ... to here.
8935
8936 2011-05-08  Bruno Haible  <bruno@clisp.org>
8937
8938         getlogin: Move AC_LIBOBJ invocations to module description.
8939         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8940         here...
8941         * modules/getlogin (configure.ac): ... to here.
8942
8943 2011-05-08  Bruno Haible  <bruno@clisp.org>
8944
8945         getloadavg: Move AC_LIBOBJ invocations to module description.
8946         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8947         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8948         * modules/getloadavg (configure.ac): ... to here.
8949
8950 2011-05-08  Bruno Haible  <bruno@clisp.org>
8951
8952         gethrxtime: Move AC_LIBOBJ invocations to module description.
8953         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8954         LIB_GETHRXTIME from here...
8955         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8956         invocations from here...
8957         * modules/gethrxtime (configure.ac): ... to here.
8958
8959 2011-05-08  Bruno Haible  <bruno@clisp.org>
8960
8961         gethostname: Move AC_LIBOBJ invocations to module description.
8962         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8963         gl_PREREQ_GETHOSTNAME invocations from here...
8964         * modules/gethostname (configure.ac): ... to here.
8965
8966 2011-05-08  Bruno Haible  <bruno@clisp.org>
8967
8968         getgroups: Move AC_LIBOBJ invocations to module description.
8969         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8970         here...
8971         * modules/getgroups (configure.ac): ... to here.
8972
8973 2011-05-08  Bruno Haible  <bruno@clisp.org>
8974
8975         getdtablesize: Move AC_LIBOBJ invocations to module description.
8976         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8977         invocation from here...
8978         * modules/getdtablesize (configure.ac): ... to here.
8979
8980 2011-05-08  Bruno Haible  <bruno@clisp.org>
8981
8982         getdomainname: Move AC_LIBOBJ invocations to module description.
8983         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8984         gl_PREREQ_GETDOMAINNAME invocations from here...
8985         * modules/getdomainname (configure.ac): ... to here.
8986
8987 2011-05-08  Bruno Haible  <bruno@clisp.org>
8988
8989         getline: Move AC_LIBOBJ invocations to module description.
8990         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8991         invocations from here...
8992         * modules/getline (configure.ac): ... to here.
8993
8994 2011-05-08  Bruno Haible  <bruno@clisp.org>
8995
8996         getline: Simplify.
8997         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8998         It's already handled through the module dependency.
8999
9000 2011-05-08  Bruno Haible  <bruno@clisp.org>
9001
9002         getdelim: Move AC_LIBOBJ invocations to module description.
9003         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9004         and gl_PREREQ_GETDELIM invocations from here...
9005         * modules/getdelim (configure.ac): ... to here.
9006         (Depends-on): Fix condition.
9007
9008 2011-05-08  Bruno Haible  <bruno@clisp.org>
9009
9010         getcwd: Move AC_LIBOBJ invocations to module description.
9011         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9012         invocations from here...
9013         * modules/getcwd (configure.ac): ... to here.
9014
9015 2011-05-08  Bruno Haible  <bruno@clisp.org>
9016
9017         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9018         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9019         here...
9020         * modules/getcwd-lgpl (configure.ac): ... to here.
9021
9022 2011-05-07  Bruno Haible  <bruno@clisp.org>
9023
9024         crypto/gc: Move AC_LIBOBJ invocations to module description.
9025         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9026         * modules/crypto/gc (configure.ac): ... to here.
9027
9028 2011-05-07  Bruno Haible  <bruno@clisp.org>
9029
9030         fwriting: Move AC_LIBOBJ invocations to module description.
9031         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9032         here...
9033         * modules/fwriting (configure.ac): ... to here.
9034
9035 2011-05-07  Bruno Haible  <bruno@clisp.org>
9036
9037         fwritable: Move AC_LIBOBJ invocations to module description.
9038         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9039         here...
9040         * modules/fwritable (configure.ac): ... to here.
9041
9042 2011-05-07  Bruno Haible  <bruno@clisp.org>
9043
9044         futimens: Move AC_LIBOBJ invocations to module description.
9045         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9046         here...
9047         * modules/futimens (configure.ac): ... to here.
9048
9049 2011-05-07  Bruno Haible  <bruno@clisp.org>
9050
9051         ftruncate: Move AC_LIBOBJ invocations to module description.
9052         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9053         gl_PREREQ_FTRUNCATE invocations from here...
9054         * modules/ftruncate (configure.ac): ... to here.
9055
9056 2011-05-07  Bruno Haible  <bruno@clisp.org>
9057
9058         fsync: Move AC_LIBOBJ invocations to module description.
9059         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9060         invocations from here...
9061         * modules/fsync (configure.ac): ... to here.
9062
9063 2011-05-07  Bruno Haible  <bruno@clisp.org>
9064
9065         fsusage: Move AC_LIBOBJ invocations to module description.
9066         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9067         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9068         * modules/fsusage (configure.ac): ... to here.
9069
9070 2011-05-07  Bruno Haible  <bruno@clisp.org>
9071
9072         freopen: Move AC_LIBOBJ invocations to module description.
9073         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9074         invocations from here...
9075         * modules/freopen (configure.ac): ... to here.
9076
9077 2011-05-07  Bruno Haible  <bruno@clisp.org>
9078
9079         free: Move AC_LIBOBJ invocations to module description.
9080         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9081         invocations from here...
9082         * modules/free (configure.ac): ... to here.
9083
9084 2011-05-07  Bruno Haible  <bruno@clisp.org>
9085
9086         freadable: Move AC_LIBOBJ invocations to module description.
9087         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9088         here...
9089         * modules/freadable (configure.ac): ... to here.
9090
9091 2011-05-07  Bruno Haible  <bruno@clisp.org>
9092
9093         fpurge: Move AC_LIBOBJ invocations to module description.
9094         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9095         invocations from here...
9096         * modules/fpurge (configure.ac): ... to here.
9097
9098 2011-05-07  Bruno Haible  <bruno@clisp.org>
9099
9100         fpending: Move AC_LIBOBJ invocations to module description.
9101         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9102         gl_FUNC_FPENDING.
9103         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9104         invocations from here...
9105         * modules/fpending (configure.ac): ... to here.
9106
9107 2011-05-07  Bruno Haible  <bruno@clisp.org>
9108
9109         fopen: Move AC_LIBOBJ invocations to module description.
9110         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9111         invocations from here...
9112         * modules/fopen (configure.ac): ... to here.
9113
9114 2011-05-07  Bruno Haible  <bruno@clisp.org>
9115
9116         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9117         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9118         gl_FUNC_FNMATCH_POSIX.
9119         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9120         invocations from here...
9121         * modules/fnmatch (configure.ac): ... to here.
9122         * modules/fnmatch-gnu (configure.ac): ... and here.
9123
9124 2011-05-07  Bruno Haible  <bruno@clisp.org>
9125
9126         flock: Move AC_LIBOBJ invocations to module description.
9127         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9128         invocations from here...
9129         * modules/flock (configure.ac): ... to here.
9130
9131 2011-05-07  Bruno Haible  <bruno@clisp.org>
9132
9133         fileblocks: Move AC_LIBOBJ invocations to module description.
9134         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9135         gl_PREREQ_FILEBLOCKS invocations from here...
9136         * modules/fileblocks (configure.ac): ... to here.
9137
9138 2011-05-06  Bruno Haible  <bruno@clisp.org>
9139
9140         fflush: Move AC_LIBOBJ invocations to module description.
9141         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9142         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9143         invocations from here...
9144         * modules/fflush (configure.ac): ... to here.
9145
9146 2011-05-06  Bruno Haible  <bruno@clisp.org>
9147
9148         fdopendir: Move AC_LIBOBJ invocations to module description.
9149         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9150         here...
9151         * modules/fdopendir (configure.ac): ... to here.
9152         (Depends-on): Improve conditions.
9153
9154 2011-05-06  Bruno Haible  <bruno@clisp.org>
9155
9156         _Exit: Move AC_LIBOBJ invocations to module description.
9157         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9158         invocations from here...
9159         * modules/_Exit (configure.ac): ... to here.
9160
9161 2011-05-21  Bruno Haible  <bruno@clisp.org>
9162
9163         euidaccess: Respect rules for use of AC_LIBOBJ.
9164         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9166         from here...
9167         * modules/euidaccess (configure.ac): ... to here.
9168
9169 2011-05-06  Bruno Haible  <bruno@clisp.org>
9170
9171         error: Move AC_LIBOBJ invocations to module description.
9172         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9173         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9174         invocations from here...
9175         * modules/error (configure.ac): ... to here.
9176
9177 2011-05-06  Bruno Haible  <bruno@clisp.org>
9178
9179         duplocale: Move AC_LIBOBJ invocations to module description.
9180         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9181         gl_PREREQ_DUPLOCALE invocations from here...
9182         * modules/duplocale (configure.ac): ... to here.
9183
9184 2011-05-05  Bruno Haible  <bruno@clisp.org>
9185
9186         dirfd: Move AC_LIBOBJ invocations to module description.
9187         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9188         gl_FUNC_DIRFD.
9189         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9190         here...
9191         * modules/dirfd (configure.ac): ... to here.
9192         (Depends-on): Fix condition.
9193
9194 2011-05-05  Bruno Haible  <bruno@clisp.org>
9195
9196         chown: Respect rules for use of AC_LIBOBJ.
9197         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9198         * modules/chown (configure.ac): ... to here.
9199
9200 2011-05-05  Bruno Haible  <bruno@clisp.org>
9201
9202         chdir-long: Move AC_LIBOBJ invocations to module description.
9203         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9204         gl_PREREQ_CHDIR_LONG invocations from here...
9205         * modules/chdir-long (configure.ac): ... to here.
9206
9207 2011-05-05  Bruno Haible  <bruno@clisp.org>
9208
9209         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9210         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9211         from here...
9212         * modules/canonicalize-lgpl (configure.ac): ... to here.
9213
9214 2011-05-05  Bruno Haible  <bruno@clisp.org>
9215
9216         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9217         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9218         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9219         REPLACE_CALLOC.
9220         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9221         * modules/calloc-gnu (configure.ac): Likewise.
9222
9223 2011-05-05  Bruno Haible  <bruno@clisp.org>
9224
9225         btowc: Move AC_LIBOBJ invocations to module description.
9226         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9227         invocations from here...
9228         * modules/btowc (configure.ac): ... to here.
9229
9230 2011-05-21  Bruno Haible  <bruno@clisp.org>
9231
9232         atexit: Move AC_LIBOBJ invocations to module description.
9233         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9234         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9235         here...
9236         * modules/atexit (configure.ac): ... to here.
9237
9238 2011-05-05  Bruno Haible  <bruno@clisp.org>
9239
9240         atoll: Move AC_LIBOBJ invocations to module description.
9241         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9242         invocations from here...
9243         * modules/atoll (configure.ac): ... to here.
9244
9245 2011-05-05  Bruno Haible  <bruno@clisp.org>
9246
9247         argz: Move AC_LIBOBJ invocations to module description.
9248         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9249         * modules/argz (configure.ac): ... to here.
9250
9251 2011-05-05  Bruno Haible  <bruno@clisp.org>
9252
9253         alphasort: Move AC_LIBOBJ invocations to module description.
9254         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9255         gl_PREREQ_ALPHASORT invocations from here...
9256         * modules/alphasort (configure.ac): ... to here.
9257
9258 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9259
9260         verify: new macro verify_expr; verify_true deprecated
9261         * NEWS: Mention this.
9262         * doc/verify.texi (Compile-time Assertions): Document this.
9263         * lib/verify.h (verify_true): Deprecate.
9264         (verify_expr): New macro.
9265         * tests/test-verify.c (function): Test verify_expr.
9266
9267 2011-06-14  Jim Meyering  <meyering@redhat.com>
9268
9269         init.sh: give more portable redirection-related advice in a comment
9270         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9271         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9272         for lots of discussion.  Stefano Lattarini suggested the solution
9273         of putting "9>&2" after the command.  Reported by Bruno Haible.
9274
9275 2011-06-13  Bruno Haible  <bruno@clisp.org>
9276
9277         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9278         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9279         'none'.
9280
9281 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9282
9283         ftoastr: use strtof only if HAVE_STRTOF
9284         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9286         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9287         * modules/ftoastr (configure.ac): Check for strtof.
9288
9289 2011-06-13  Bruno Haible  <bruno@clisp.org>
9290
9291         gnulib-tool: Addendum to 2011-06-08 commit.
9292         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9293         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9294
9295 2011-06-13  Bruno Haible  <bruno@clisp.org>
9296
9297         fseeko: Provide a non-inline replacement of fseek().
9298         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9299         * modules/fseeko (Depends-on): Add fseek.
9300         * modules/fseek (License): Change to LGPLv2+.
9301
9302 2011-06-13  Bruno Haible  <bruno@clisp.org>
9303
9304         ftello: Provide a non-inline replacement of ftell().
9305         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9306         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9307         not have ftello() (such as on mingw).
9308         * modules/ftello (Depends-on): Add ftell.
9309         * modules/ftell (License): Change to LGPLv2+.
9310
9311 2011-05-07  Bruno Haible  <bruno@clisp.org>
9312
9313         ftell: Move AC_LIBOBJ invocations to module description.
9314         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9315         * modules/ftell (configure.ac): ... to here.
9316
9317 2011-05-07  Bruno Haible  <bruno@clisp.org>
9318
9319         ftello: Respect rules for use of AC_LIBOBJ.
9320         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9321         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9322         here...
9323         * modules/ftello (configure.ac): ... to here.
9324
9325 2011-05-07  Bruno Haible  <bruno@clisp.org>
9326
9327         fseeko: Simplify.
9328         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9329         (gl_FUNC_FSEEKO): Inline it here.
9330
9331 2011-05-07  Bruno Haible  <bruno@clisp.org>
9332
9333         fseek: Move AC_LIBOBJ invocations to module description.
9334         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9335         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9336         * modules/fseek (configure.ac): ... to here.
9337
9338 2011-05-07  Bruno Haible  <bruno@clisp.org>
9339
9340         fseek: Respect rules for use of AC_LIBOBJ.
9341         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9342         here...
9343         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9344
9345 2011-05-07  Bruno Haible  <bruno@clisp.org>
9346
9347         fseeko: Respect rules for use of AC_LIBOBJ.
9348         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9349         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9350         here...
9351         * modules/fseeko (configure.ac): ... to here.
9352
9353 2011-06-13  Bruno Haible  <bruno@clisp.org>
9354
9355         gnulib-tool: Allow comments in the 'Depends-on' section.
9356         * doc/gnulib.texi (Module description): Mention comment syntax in the
9357         Depends-on section.
9358         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9359
9360 2011-06-13  Bruno Haible  <bruno@clisp.org>
9361
9362         file-set.h: guard __attibute__ use, now that it's not always defined
9363         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9364         versions that support it.  This fixes a coreutils build failure with
9365         the vendor cc on HP-UX 11.31.
9366
9367 2011-06-12  Bruno Haible  <bruno@clisp.org>
9368
9369         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9370         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9371         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9372         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9373         (acl, aclsort): New declarations.
9374         (aclv_nontrivial): New declaration.
9375         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9376         (file_has_acl): Read also the second kind of HP-UX ACLs.
9377         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9378         kind of HP-UX ACLs if the first kind fails.
9379         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9380         second kind of HP-UX ACLs.
9381         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9382         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9383         agree.
9384         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9385         hpuxjfs.
9386         Handle hpuxjfs.
9387         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9388         hpuxjfs.
9389         Handle hpuxjfs.
9390         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9391         (func_test_same_acls): Use both lsacl and getacl.
9392         Handle hpuxjfs.
9393         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9394         (func_test_same_acls): Use both lsacl and getacl.
9395         Handle hpuxjfs.
9396
9397 2011-06-12  Bruno Haible  <bruno@clisp.org>
9398
9399         acl: Complete the 2010-08-10 fix.
9400         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9401         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9402         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9403         explicitly.
9404         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9405         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9406
9407 2011-06-12  Bruno Haible  <bruno@clisp.org>
9408
9409         spawn-pipe tests: Comments.
9410         * tests/test-spawn-pipe-child.c (main): Update comment.
9411         Reported by James Youngman <jay@gnu.org>.
9412
9413 2011-06-11  James Youngman  <jay@gnu.org>
9414
9415         New module 'stat-size'.
9416         * modules/stat-size: New module.  Provides macros for accessing
9417         file size information in instances of struct stat.  Depends on the
9418         fileblocks module because it calls st_blocks.
9419         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9420         * doc/gnulib.texi: Include stat-size.texi.
9421         * doc/stat-size.texi: Documentation for this module.
9422         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9423         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9424         AC_STRUCT_ST_BLOCKS.
9425
9426 2011-06-09  Bruno Haible  <bruno@clisp.org>
9427
9428         thread: Support pthreads-win32.
9429         * lib/glthread/thread.h (gl_thread_self): Define differently on
9430         pthreads-win32.
9431         (gl_null_thread): New declaration.
9432         (gl_thread_self_pointer): New macro.
9433         * lib/glthread/thread.c (gl_null_thread): New constant.
9434         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9435         gl_thread_self.
9436         * tests/test-tls.c: Likewise.
9437         Suggested by Paul Eggert. Reported by Eric Blake.
9438
9439 2011-06-09  Bruno Haible  <bruno@clisp.org>
9440
9441         thread: Fix confusion between NULL and 0.
9442         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9443         Reported by Paul Eggert.
9444
9445 2011-06-09  Bruno Haible  <bruno@clisp.org>
9446
9447         spawn-pipe tests: Avoid test failure on HP-UX 11.
9448         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9449         is closed.
9450
9451 2011-06-09  Bruno Haible  <bruno@clisp.org>
9452
9453         acl tests: Fix compilation error on HP-UX 11.
9454         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9455
9456 2011-06-09  Bruno Haible  <bruno@clisp.org>
9457
9458         rmdir: Avoid test failure on HP-UX 10.20.
9459         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9460         EEXIST.
9461
9462 2011-06-08  Eric Blake  <eblake@redhat.com>
9463
9464         perror: fix test on mingw
9465         * modules/perror-tests (Depends-on): Add dup2.
9466
9467         strerror_r-posix: fix on MacOS
9468         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9469         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9470         logic bug.
9471         * lib/strerror_r.c (strerror_r): Fix the bug.
9472         * lib/strerror.c (strerror): Likewise.
9473         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9474         problem.
9475         * doc/posix-functions/strerror.texi (strerror): Likewise.
9476         * doc/posix-functions/perror.texi (perror): Likewise.
9477         * tests/test-strerror.c (main): Enhance test.
9478         * tests/test-strerror_r.c (main): Likewise.
9479
9480 2011-06-08  Bruno Haible  <bruno@clisp.org>
9481
9482         gnulib-tool: Better isolation between different gnulib-tool invocations.
9483         * gnulib-tool: New option --witness-c-macro.
9484         (witness_c_macro): New variable.
9485         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9486         AM_CPPFLAGS define it as a C macro.
9487         (func_emit_tests_Makefile_am): Likewise.
9488         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9489         read it from there.
9490         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9491         m4_define, not AC_DEFUN.
9492         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9493         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9494         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9495         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9496         s|...|...|, to substitute the values of the GNULIB_* module indicator
9497         variables.
9498         * modules/dirent (Makefile.am): Likewise.
9499         * modules/fcntl-h (Makefile.am): Likewise.
9500         * modules/iconv-h (Makefile.am): Likewise.
9501         * modules/langinfo (Makefile.am): Likewise.
9502         * modules/locale (Makefile.am): Likewise.
9503         * modules/math (Makefile.am): Likewise.
9504         * modules/netdb (Makefile.am): Likewise.
9505         * modules/poll-h (Makefile.am): Likewise.
9506         * modules/pty (Makefile.am): Likewise.
9507         * modules/search (Makefile.am): Likewise.
9508         * modules/signal (Makefile.am): Likewise.
9509         * modules/spawn (Makefile.am): Likewise.
9510         * modules/stdio (Makefile.am): Likewise.
9511         * modules/stdlib (Makefile.am): Likewise.
9512         * modules/string (Makefile.am): Likewise.
9513         * modules/sys_ioctl (Makefile.am): Likewise.
9514         * modules/sys_select (Makefile.am): Likewise.
9515         * modules/sys_socket (Makefile.am): Likewise.
9516         * modules/sys_stat (Makefile.am): Likewise.
9517         * modules/sys_times (Makefile.am): Likewise.
9518         * modules/sys_utsname (Makefile.am): Likewise.
9519         * modules/sys_wait (Makefile.am): Likewise.
9520         * modules/termios (Makefile.am): Likewise.
9521         * modules/time (Makefile.am): Likewise.
9522         * modules/unistd (Makefile.am): Likewise.
9523         * modules/wchar (Makefile.am): Likewise.
9524
9525 2011-06-08  Eric Blake  <eblake@redhat.com>
9526
9527         strerror: simplify replacement
9528         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9529         * modules/strerror (configure.ac): No prereqs needed here...
9530         * modules/strerror-override (configure.ac): ...but this needs it.
9531         (Files): Add file for needed prereq macro.
9532
9533 2011-06-08  Bruno Haible  <bruno@clisp.org>
9534
9535         strerror_r-posix: Tweaks.
9536         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9537         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9538         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9539         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9540         (gl_FUNC_STRERROR_R): ... to here.
9541         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9542
9543 2011-06-07  Eric Blake  <eblake@redhat.com>
9544
9545         perror: document fixed bugs
9546         * doc/posix-functions/perror.texi (perror): Document recent
9547         patches.
9548
9549 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9550
9551         stat-time: get_stat_birthtime failure is better-defined
9552         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9553         return a timestamp whose tv_sec and tv_nsec values are both -1.
9554         Previously, the spec said only that the tv_nsec value was negative.
9555         This upward-compatible change simplifies GNU tar a bit.
9556
9557 2011-06-07  Eric Blake  <eblake@redhat.com>
9558
9559         strerror_r-posix: work around cygwin 1.7.9
9560         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9561         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9562         bug without replacing strerror_r.
9563         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9564         strerror_r is buggy, but without requiring strerror_r compilation.
9565         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9566
9567         test-perror: relax test to ignore cygwin bug
9568         * tests/test-perror2.c (main): Relax test on requiring detection
9569         of stream errors, and use unbuffered stream.
9570         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9571         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9572         * doc/posix-functions/fputc.texi (fputc): Likewise.
9573         * doc/posix-functions/fputs.texi (fputs): Likewise.
9574         * doc/posix-functions/fputws.texi (fputws): Likewise.
9575         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9576         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9577         * doc/posix-functions/getopt.texi (getopt): Likewise.
9578         * doc/posix-functions/perror.texi (perror): Likewise.
9579         * doc/posix-functions/printf.texi (printf): Likewise.
9580         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9581         * doc/posix-functions/psignal.texi (psignal): Likewise.
9582         * doc/posix-functions/putc.texi (putc): Likewise.
9583         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9584         Likewise.
9585         * doc/posix-functions/putchar.texi (putchar): Likewise.
9586         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9587         Likewise.
9588         * doc/posix-functions/puts.texi (puts): Likewise.
9589         * doc/posix-functions/putwc.texi (putwc): Likewise.
9590         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9591         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9592         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9593         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9594         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9595         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9596         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9597         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9598
9599 2011-05-22  Bruno Haible  <bruno@clisp.org>
9600
9601         strerror: Move AC_LIBOBJ invocations to module description.
9602         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9603         gl_PREREQ_STRERROR invocations from here...
9604         * modules/strerror (configure.ac): ... to here.
9605
9606 2011-05-21  Bruno Haible  <bruno@clisp.org>
9607
9608         perror: Use common idiom.
9609         * modules/perror (configure.ac): Reorder statements.
9610
9611 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9612
9613         tests: fix usage message in 'mktempd_'
9614         * tests/init.sh (mktempd_): In the usage message, use literal
9615         'mktempd_', not '$ME' (which is even undefined), as the name of
9616         the subroutine.
9617
9618 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9619
9620         tests init: new function 'fatal_', for hard errors
9621         Before this patch, the only way offered by tests/init.sh to
9622         properly signal a hard error was the `framework_failure_'
9623         function.  But the error message issued by that function,
9624         as its name would suggest, refers to a set-up failure in the
9625         testsuite, while hard errors can obviously also be due to
9626         other reasons.  The best way to fix this inconsistency is to
9627         introduce a new function with a more general error message.
9628         * tests/init.sh (fatal_): New function.
9629
9630 2011-06-06  Eric Blake  <eblake@redhat.com>
9631
9632         canonicalize-lgpl: use common idiom
9633         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9634         over newer POSIX -Rf.
9635         Reported by Bruno Haible.
9636
9637         canonicalize-lgpl: work around AIX realpath bug
9638         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9639         * doc/posix-functions/realpath.texi (realpath): Document it.
9640         Reported by Bruno Haible.
9641
9642         strerror: work around FreeBSD bug
9643         * lib/strerror.c (strerror): Special case 0.
9644         Reported by Bruno Haible.
9645
9646         strerror-override: avoid bloating errno module
9647         * modules/errno (Files, configure.ac): Move replacement strings...
9648         * modules/strerror-override: ...to new module.
9649         * modules/strerror (Depends-on): Add strerror-override.
9650         * modules/strerror_r-posix (Depends-on): Likewise.
9651         * MODULES.html.sh: Document new module.
9652         Reported by Bruno Haible.
9653
9654 2011-06-06  Bruno Haible  <bruno@clisp.org>
9655
9656         spawn-pipe tests: Rename program.
9657         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9658         * tests/test-spawn-pipe-child.c: Update comment.
9659         * tests/test-spawn-pipe.sh: Update.
9660         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9661
9662         spawn-pipe tests: Link the child program only against libc.
9663         * tests/test-spawn-pipe-child.c: New file, extracted from
9664         tests/test-spawn-pipe.c.
9665         (main): Expect only one argument.
9666         (is_open): New function, copied from tests/test-pipe.c.
9667         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9668         (child_main): Remove function.
9669         (test_pipe): Pass only one argument to the child program.
9670         (main): Remove child process code. Expect the child program's name as
9671         first argument.
9672         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9673         argument.
9674         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9675         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9676         test-spawn-pipe-child against no libraries.
9677
9678 2011-06-06  Bruno Haible  <bruno@clisp.org>
9679
9680         careadlinkat: Avoid mismatch between ssize_t and int.
9681         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9682         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9683
9684 2011-06-06  Jim Meyering  <meyering@redhat.com>
9685
9686         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9687         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9688         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9689
9690 2011-06-05  Bruno Haible  <bruno@clisp.org>
9691
9692         ansi-c++-opt: Interoperability with libtool.
9693         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9694         set the variable to "no", not to ":".
9695         * NEWS: Mention the change.
9696
9697 2011-06-05  Bruno Haible  <bruno@clisp.org>
9698
9699         acl: Fix test failure on AIX 7.
9700         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9701         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9702
9703 2011-06-05  Bruno Haible  <bruno@clisp.org>
9704
9705         pipe-filter-ii: Fix test failure on AIX and IRIX.
9706         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9707         with EAGAIN, retry with a smaller buffer size.
9708
9709 2011-06-05  Bruno Haible  <bruno@clisp.org>
9710
9711         localename: Fix link dependencies.
9712         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9713         * modules/localename-tests (Makefile.am): Link test-localename with
9714         $(LIBTHREAD).
9715
9716 2011-06-05  Bruno Haible  <bruno@clisp.org>
9717
9718         error: Avoid gcc warning.
9719         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9720
9721 2011-06-05  Bruno Haible  <bruno@clisp.org>
9722
9723         unsetenv: Avoid gcc warning.
9724         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9725
9726 2011-06-05  Bruno Haible  <bruno@clisp.org>
9727
9728         setenv: Avoid gcc warning.
9729         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9730
9731 2011-06-05  Bruno Haible  <bruno@clisp.org>
9732
9733         sys_select: Ensure memset is declared also on AIX 7.
9734         * lib/sys_select.in.h: Include <string.h> also on AIX.
9735         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9736         self-contained also on AIX 7.1.
9737
9738 2011-06-04  Jim Meyering  <meyering@redhat.com>
9739
9740         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9741         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9742         function name, "error".
9743         (_gl_translatable_diag_func_re): New configurable variable.
9744
9745 2011-06-04  Bruno Haible  <bruno@clisp.org>
9746
9747         getopt: Avoid gcc warning.
9748         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9749
9750 2011-06-04  Bruno Haible  <bruno@clisp.org>
9751
9752         strerror_r: Fix comments.
9753         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9754         commit.
9755
9756 2011-06-04  Bruno Haible  <bruno@clisp.org>
9757
9758         perror: Fix compilation error.
9759         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9760         Undefine fprintf, not sprintf.
9761         * modules/perror (Depends-on): Remove intprops, verify.
9762
9763 2011-06-04  Bruno Haible  <bruno@clisp.org>
9764
9765         setlocale: Enable replacement on Cygwin 1.5.
9766         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9767         Cygwin 1.5.x.
9768         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9769         LC_CTYPE category also exists on Cygwin 1.5.x.
9770
9771 2011-06-04  Bruno Haible  <bruno@clisp.org>
9772
9773         strerror-override: Don't disable symbol renamings.
9774         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9775         * lib/strerror-override.c: Include config.h.
9776         (strerror_override): Don't undefine.
9777
9778 2011-06-03  Bruno Haible  <bruno@clisp.org>
9779
9780         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9781         * lib/localename.h: Update copyright header.
9782         * lib/localename.c: Likewise.
9783         * lib/relocatable.h: Likewise.
9784         * lib/relocatable.c: Likewise.
9785
9786 2011-06-02  Bruno Haible  <bruno@clisp.org>
9787
9788         doc: Fix a module name.
9789         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9790
9791 2011-06-02  Bruno Haible  <bruno@clisp.org>
9792
9793         pipe2: Remove dependency on 'nonblocking' module.
9794         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9795         O_NONBLOCK is defined by gnulib.
9796         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9797         is zero.
9798         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9799         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9800         defined by gnulib.
9801         (get_nonblocking_flag): New function.
9802         (main): Test O_NONBLOCK flag only if it is nonzero.
9803         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9804
9805 2011-06-03  Jim Meyering  <meyering@redhat.com>
9806
9807         maint: three new prohibit-header-without-use rules
9808         Prohibit use of cloexec.h, posixver.h, same.h without use.
9809         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9810         (sc_prohibit_posixver_without_use): Likewise.
9811         (sc_prohibit_same_without_use): Likewise.
9812
9813 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9814
9815         allocator: 'die' routine is now given requested size
9816         * lib/allocator.h (struct allocator.die): New size arg.
9817         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9818         If the actual problem is an ssize_t limitation, not a size_t or
9819         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9820
9821 2011-06-01  Eric Blake  <eblake@redhat.com>
9822
9823         strerror: drop strerror_r dependency
9824         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9825         * lib/strerror-override.c (strerror_override): ...to new file.
9826         * lib/strerror-override.h: Add prototype.
9827         * lib/strerror-impl.h: Delete.
9828         * lib/strerror.c (strerror): New implementation.
9829         * modules/errno (Files): Add new files.
9830         (configure.ac): Compile new file as appropriate.
9831         * modules/strerror (Files): Drop unused file.
9832         (Depends-on): Drop strerror_r-posix.
9833         * MODULES.html.sh: Document strerror_r-posix.
9834         Requested by Sam Steingold.
9835
9836         perror: call strerror_r directly
9837         * modules/perror (Files): Drop strerror-impl.h.
9838         * lib/perror.c (perror): Use our own stack buffer, rather than
9839         calling a wrapper that uses static storage.
9840         * doc/posix-functions/perror.texi (perror): Document a limitation
9841         of our replacement.
9842
9843         strerror_r: fix includes for FreeBSD
9844         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9845         since we use abort on some platforms.
9846         Reported by Matthias Bolte.
9847
9848 2011-05-31  Bruno Haible  <bruno@clisp.org>
9849
9850         Fix link errors in tests: openat-die uses gettext-h.
9851         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9852         against $(LIBINTL).
9853         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9854         against $(LIBINTL).
9855         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9856         $(LIBINTL).
9857         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9858         against $(LIBINTL).
9859         * modules/linkat-tests (Makefile.am): Link test-linkat against
9860         $(LIBINTL).
9861         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9862         $(LIBINTL).
9863         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9864         against $(LIBINTL).
9865         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9866         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9867         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9868         $(LIBINTL).
9869         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9870         $(LIBINTL).
9871         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9872         $(LIBINTL).
9873         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9874
9875 2011-05-31  Bruno Haible  <bruno@clisp.org>
9876
9877         Fix link errors in tests: wait-process uses gettext-h.
9878         * modules/nonblocking-pipe-tests (Makefile.am): Set
9879         test_nonblocking_pipe_main_LDADD.
9880         * modules/nonblocking-socket-tests (Makefile.am): Link
9881         test-nonblocking-socket-main against $(LIBINTL).
9882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9883
9884 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9885
9886         assert-h: work around 'verify' incompatibility
9887         * lib/verify.h: Use @...@ directives, not ifdef.
9888         * modules/assert-h (assert.h): Implement the directives.
9889         (assert.h): Substitute the symbol-prefix more consistently.
9890
9891 2011-05-29  Jim Meyering  <meyering@redhat.com>
9892
9893         trim: remove three superfluous assignments
9894         * lib/trim.c (trim2): Remove three superfluous assignments
9895         and correct brace positioning.
9896
9897 2011-05-29  Bruno Haible  <bruno@clisp.org>
9898
9899         wctype-h: Avoid namespace pollution on Solaris 2.6.
9900         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9901         identifiers.
9902         * doc/posix-headers/wctype.texi: Mention the problem.
9903         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9904
9905 2011-05-28  Jim Meyering  <meyering@redhat.com>
9906
9907         parse-datetime.y: accommodate -Wstrict-overflow
9908         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9909         placate -Wstrict-overflow.
9910
9911         trim: avoid a warning from -O2 -Wstrict-overflow
9912         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9913
9914 2011-05-29  Bruno Haible  <bruno@clisp.org>
9915
9916         gnulib-tool: Fix bug in yesterday's commit.
9917         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9918         twice.
9919
9920 2011-05-29  Bruno Haible  <bruno@clisp.org>
9921
9922         Allow multiple gnulib generated include files to be combined.
9923         * gnulib-tool (func_compute_include_guard_prefix): New function.
9924         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9925         ${gl_include_guard_prefix} references.
9926         (func_import, func_create_testdir): Invoke
9927         func_compute_include_guard_prefix.
9928         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9929         * lib/ctype.in.h: Likewise.
9930         * lib/dirent.in.h: Likewise.
9931         * lib/errno.in.h: Likewise.
9932         * lib/fcntl.in.h: Likewise.
9933         * lib/float.in.h: Likewise.
9934         * lib/getopt.in.h: Likewise.
9935         * lib/iconv.in.h: Likewise.
9936         * lib/langinfo.in.h: Likewise.
9937         * lib/locale.in.h: Likewise.
9938         * lib/math.in.h: Likewise.
9939         * lib/netdb.in.h: Likewise.
9940         * lib/netinet_in.in.h: Likewise.
9941         * lib/poll.in.h: Likewise.
9942         * lib/pthread.in.h: Likewise.
9943         * lib/pty.in.h: Likewise.
9944         * lib/sched.in.h: Likewise.
9945         * lib/se-selinux.in.h: Likewise.
9946         * lib/search.in.h: Likewise.
9947         * lib/signal.in.h: Likewise.
9948         * lib/spawn.in.h: Likewise.
9949         * lib/stdarg.in.h: Likewise.
9950         * lib/stddef.in.h: Likewise.
9951         * lib/stdint.in.h: Likewise.
9952         * lib/stdio.in.h: Likewise.
9953         * lib/stdlib.in.h: Likewise.
9954         * lib/string.in.h: Likewise.
9955         * lib/strings.in.h: Likewise.
9956         * lib/sys_file.in.h: Likewise.
9957         * lib/sys_ioctl.in.h: Likewise.
9958         * lib/sys_select.in.h: Likewise.
9959         * lib/sys_socket.in.h: Likewise.
9960         * lib/sys_stat.in.h: Likewise.
9961         * lib/sys_time.in.h: Likewise.
9962         * lib/sys_times.in.h: Likewise.
9963         * lib/sys_uio.in.h: Likewise.
9964         * lib/sys_utsname.in.h: Likewise.
9965         * lib/sys_wait.in.h: Likewise.
9966         * lib/sysexits.in.h: Likewise.
9967         * lib/termios.in.h: Likewise.
9968         * lib/time.in.h: Likewise.
9969         * lib/unistd.in.h: Likewise.
9970         * lib/wchar.in.h: Likewise.
9971         * lib/wctype.in.h: Likewise.
9972         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9973         * modules/ctype (Makefile.am): Likewise.
9974         * modules/dirent (Makefile.am): Likewise.
9975         * modules/errno (Makefile.am): Likewise.
9976         * modules/fcntl-h (Makefile.am): Likewise.
9977         * modules/float (Makefile.am): Likewise.
9978         * modules/getopt-posix (Makefile.am): Likewise.
9979         * modules/iconv-h (Makefile.am): Likewise.
9980         * modules/langinfo (Makefile.am): Likewise.
9981         * modules/locale (Makefile.am): Likewise.
9982         * modules/math (Makefile.am): Likewise.
9983         * modules/netdb (Makefile.am): Likewise.
9984         * modules/netinet_in (Makefile.am): Likewise.
9985         * modules/poll-h (Makefile.am): Likewise.
9986         * modules/pthread (Makefile.am): Likewise.
9987         * modules/pty (Makefile.am): Likewise.
9988         * modules/sched (Makefile.am): Likewise.
9989         * modules/search (Makefile.am): Likewise.
9990         * modules/selinux-h (Makefile.am): Likewise.
9991         * modules/signal (Makefile.am): Likewise.
9992         * modules/spawn (Makefile.am): Likewise.
9993         * modules/stdarg (Makefile.am): Likewise.
9994         * modules/stddef (Makefile.am): Likewise.
9995         * modules/stdint (Makefile.am): Likewise.
9996         * modules/stdio (Makefile.am): Likewise.
9997         * modules/stdlib (Makefile.am): Likewise.
9998         * modules/string (Makefile.am): Likewise.
9999         * modules/strings (Makefile.am): Likewise.
10000         * modules/sys_file (Makefile.am): Likewise.
10001         * modules/sys_ioctl (Makefile.am): Likewise.
10002         * modules/sys_select (Makefile.am): Likewise.
10003         * modules/sys_socket (Makefile.am): Likewise.
10004         * modules/sys_stat (Makefile.am): Likewise.
10005         * modules/sys_time (Makefile.am): Likewise.
10006         * modules/sys_times (Makefile.am): Likewise.
10007         * modules/sys_uio (Makefile.am): Likewise.
10008         * modules/sys_utsname (Makefile.am): Likewise.
10009         * modules/sys_wait (Makefile.am): Likewise.
10010         * modules/sysexits (Makefile.am): Likewise.
10011         * modules/termios (Makefile.am): Likewise.
10012         * modules/time (Makefile.am): Likewise.
10013         * modules/unistd (Makefile.am): Likewise.
10014         * modules/wchar (Makefile.am): Likewise.
10015         * modules/wctype-h (Makefile.am): Likewise.
10016         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10017
10018 2011-05-29  Bruno Haible  <bruno@clisp.org>
10019
10020         assert-h: Allow multiple gnulib generated replacements to coexist.
10021         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10022
10023 2011-05-29  Bruno Haible  <bruno@clisp.org>
10024
10025         argp: Allow coexistence with strerror_r-posix module.
10026         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10027         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10028         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10029         not the glibc signature.
10030
10031 2011-05-28  Bruno Haible  <bruno@clisp.org>
10032
10033         gnulib-tool: Alternative structure of testdirs, similar to --import.
10034         * gnulib-tool: New option --single-configure.
10035         (func_usage): Document it.
10036         (single_configure): New variable.
10037         (func_modules_transitive_closure_separately,
10038         func_modules_transitive_closure_separately,
10039         func_determine_use_libtests, func_modules_add_dummy_separately,
10040         func_modules_to_filelist_separately): New functions, extracted from
10041         func_import.
10042         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10043         (func_import): Use the new functions.
10044         (func_create_testdir): Set final_modules. Handle $single_configure =
10045         true case.
10046
10047 2011-05-28  Bruno Haible  <bruno@clisp.org>
10048
10049         getloadavg: Remove an unreliable safety check.
10050         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10051         getloadavg.c is in place.
10052         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10053         Reported by Sam Steingold <sds@gnu.org>.
10054
10055 2011-05-28  Bruno Haible  <bruno@clisp.org>
10056
10057         doc: Cleanup yet another file produced by texinfo.tex.
10058         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10059
10060 2011-05-28  Bruno Haible  <bruno@clisp.org>
10061
10062         Finish the conditional dependencies mechanism.
10063         * gnulib-tool: New option --no-conditional-dependencies.
10064         (func_usage): Document it. Don't mark --conditional-dependencies as
10065         experimental.
10066         (cond_dependencies): The possible values can now be true, false, empty.
10067         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10068         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10069         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10070
10071 2011-05-28  Bruno Haible  <bruno@clisp.org>
10072
10073         doc: Use a recent texinfo.tex.
10074         * doc/Makefile (tex_opts): New variable.
10075         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10076
10077 2011-05-28  Jim Meyering  <meyering@redhat.com>
10078
10079         intprops.h: adjust comment to match code change
10080         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10081         only once, it *may* have side effects.  Also fix an unrelated typo.
10082         (_GL_INT_SIGNED): Likewise.
10083
10084 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10085
10086         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10087
10088 2011-05-26  Bruno Haible  <bruno@clisp.org>
10089
10090         mbsrchr: Avoid collision with system function on Interix.
10091         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10092         Reported by Markus Duft <mduft@gentoo.org>.
10093
10094 2011-05-15  James Youngman  <jay@gnu.org>
10095
10096         getopt: for ambiguous options, enumerate the possibilities.
10097         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10098         the ambiguous options when an ambiguous prefix is given. This was
10099         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10100         glibc change was
10101         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10102
10103 2011-05-25  Eric Blake  <eblake@redhat.com>
10104
10105         getcwd: work around mingw bug
10106         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10107         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10108         Reported by Matthias Bolte.
10109
10110 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10111
10112         test-intprops: disable -Wtype-limits diagnostics
10113         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10114         diagnostics.  Otherwise, the integer overflow macros generate many
10115         diagnostics.  Reported by Jim Meyering in
10116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10117
10118         intprops: shorten, to pacify gcc -Woverlength-strings
10119         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10120         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10121         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10122         likely to run afoul of C compiler limits for string constant lengths.
10123         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10124
10125 2011-05-24  Eric Blake  <eblake@redhat.com>
10126
10127         docs: document recently fixed glibc printf bug
10128         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10129         * doc/posix-functions/printf.texi (printf): Likewise.
10130         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10131         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10132
10133         closein-tests: convert to init.sh
10134         * modules/closein-tests (Files): Add init.sh
10135         * tests/test-closein.sh Use it.
10136
10137         yesno-tests: convert to init.sh
10138         * modules/yesno-tests (Files): Add init.sh.
10139         * tests/test-yesno.sh: Use it.
10140
10141         atexit-tests: ensure reliable exit status
10142         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10143         Reported by Bruno Haible.
10144
10145 2011-05-24  Bruno Haible  <bruno@clisp.org>
10146
10147         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10148         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10149         gl_PREREQ_STRERROR_R invocations from here...
10150         * modules/strerror_r-posix (configure.ac): ... to here.
10151
10152 2011-05-24  Eric Blake  <eblake@redhat.com>
10153
10154         strerror_r: fix missing header
10155         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10156
10157         strerror_r: fix AIX test failures
10158         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10159         ERANGE failure.
10160
10161         strerror_r: fix Solaris test failures
10162         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10163         failures.
10164         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10165
10166         strerror_r: enforce POSIX recommendations
10167         * lib/strerror_r.c (safe_copy): New helper method.
10168         (strerror_r): Guarantee a non-empty string.
10169         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10170         recent POSIX rulings and to match our strerror guarantees.
10171         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10172
10173 2011-05-24  Jim Meyering  <meyering@redhat.com>
10174
10175         test-perror2.c: avoid warning about unused variable
10176         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10177
10178 2011-05-24  Eric Blake  <eblake@redhat.com>
10179
10180         perror: avoid spurious test failure on HP-UX
10181         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10182
10183         tests: fix logic bug in init.sh
10184         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10185         shell.
10186
10187 2011-05-24  Jim Meyering  <meyering@redhat.com>
10188
10189         utimensat: do not reference an out-of-scope buffer
10190         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10191         declared in an inner scope, yet "times" would be dereferenced outside
10192         the scope in which "ts" was valid.
10193         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10194         of ts[2] "out/up", so that the use of aliased "times" (via
10195         "times = ts;") does not end up referencing an out-of-scope "ts"
10196
10197         opendir-safer.c: don't clobber errno; don't close negative FD
10198         * lib/opendir-safer.c (opendir_safer):
10199         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10200         file descriptor, and more importantly, don't clobber the
10201         offending errno value with EINVAL.  Before, upon failure
10202         of dup_safer, we would pass the negative file descriptor to
10203         fdopendir, which would clobber errno.
10204
10205 2011-05-23  Bruno Haible  <bruno@clisp.org>
10206
10207         idcache: Fix module description.
10208         * modules/idcache (Include): Set to "idcache.h".
10209
10210 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10211
10212         gnulib-tool: fix portability problem with MacOS sed
10213         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10214         before the "}".  Problem reported by Leo in
10215         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10216         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10217         sed_extract_condition1, sed_extract_condition2.
10218
10219 2011-05-23  Bruno Haible  <bruno@clisp.org>
10220
10221         hash: Simplify autoconf macro.
10222         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10223
10224 2011-05-23  Bruno Haible  <bruno@clisp.org>
10225
10226         getugroups: Fix module description.
10227         * modules/getugroups (Include): Set to "getugroups.h".
10228
10229 2011-05-23  Bruno Haible  <bruno@clisp.org>
10230
10231         linkat: Simplify autoconf macro.
10232         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10233
10234 2011-05-23  Bruno Haible  <bruno@clisp.org>
10235             Eric Blake  <eblake@redhat.com>
10236
10237         linkat, renameat: Update dependencies.
10238         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10239         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10240         symlinkat.
10241
10242 2011-05-23  Jim Meyering  <meyering@redhat.com>
10243
10244         maint.mk: more tight_scope improvements
10245         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10246         (_gl_TS_headers): Define only in if-0'd block.
10247         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10248         sometimes we must *not* use it.  Adjust uses accordingly.
10249         (sc_tight_scope): Use much simpler grep-based test to determine
10250         whether we skip this rule.
10251
10252         maint.mk: generalize/improve the tight-scope rule
10253         * top/maint.mk: Emit a warning when the test is skipped.
10254         (_gl_TS_dir): Add $(srcdir)/ prefix.
10255         (_gl_TS_function_match): Simplify, rather than trying
10256         to enumerate common types.  Otherwise, it would fail to match an
10257         "extern unsigned char const *" declaration in idutils.
10258         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10259         a way to support use of that type of macro.
10260         (_gl_TS_var_match): Simplify regexp.
10261         (_gl_TS_obj_files): New configurable variable.
10262         (_gl_TS_headers): Likewise.
10263
10264 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10265
10266         verify: fix bug when gnulib <assert.h> is also included
10267         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10268         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10269         Perhaps there's a better way, but this fixes the immediate problem.
10270         Problem reported by Bruno Haible in
10271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10272
10273 2011-05-22  Bruno Haible  <bruno@clisp.org>
10274
10275         xgetcwd: Simplify autoconf macro.
10276         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10277
10278 2011-05-22  Bruno Haible  <bruno@clisp.org>
10279
10280         New module 'mktime-internal'.
10281         * modules/mktime-internal: New file.
10282         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10283         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10284         mktime_internal as a C macro if libc has __mktime_internal.
10285         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10286         conditions.
10287         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10288
10289 2011-05-22  Bruno Haible  <bruno@clisp.org>
10290
10291         timegm: Correct mktime replacement statements.
10292         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10293         defining mktime as a C macro. This completes a 2009-07-28 commit.
10294
10295 2011-05-22  Bruno Haible  <bruno@clisp.org>
10296
10297         timegm: Simplify autoconf macro.
10298         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10299
10300 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10301
10302         clock-time: change to LGPLv2+.
10303         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10304         BSD-like but we have no mark for that; this is good enough for now.
10305
10306 2011-05-21  Bruno Haible  <bruno@clisp.org>
10307
10308         strerror_r: Fix comments.
10309         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10310
10311 2011-05-21  Bruno Haible  <bruno@clisp.org>
10312
10313         relocatable-prog-wrapper: Fix possible link error.
10314         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10315         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10316         (gl_FUNC_SETENV): ... to here.
10317         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10318         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10319
10320 2011-05-21  Bruno Haible  <bruno@clisp.org>
10321
10322         relocatable-prog-wrapper: Assume strerror() exists.
10323         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10324         m4/strerror.m4.
10325         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10326         * lib/relocwrapper.c: Remove mention of strerror module.
10327         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10328         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10329         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10330         C macro.
10331
10332 2011-05-21  Bruno Haible  <bruno@clisp.org>
10333
10334         select: Simplify replacement idiom.
10335         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10336         Win32 platforms.
10337         * lib/sys_select.in.h (select): Simplify accordingly.
10338         * modules/select (Depends-on): Likewise.
10339
10340 2011-05-21  Bruno Haible  <bruno@clisp.org>
10341
10342         mkdir-p: Simplify autoconf macro.
10343         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10344         gl_FUNC_LCHOWN.
10345
10346 2011-05-21  Eric Blake  <eblake@redhat.com>
10347
10348         strerror_r: avoid clobbering strerror on cygwin
10349         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10350         fall back instead to sys_errlist.
10351         * modules/strerror (configure.ac): Add witness.
10352         * tests/test-strerror_r.c (main): Enhance test.
10353         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10354         * tests/test-perror2.c (main): Free memory before exit.
10355
10356 2011-05-21  Bruno Haible  <bruno@clisp.org>
10357
10358         mkdtemp: Use gnulib naming conventions.
10359         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10360         * modules/mkdtemp (configure.ac): Update.
10361
10362 2011-05-20  Eric Blake  <eblake@redhat.com>
10363
10364         strerror_r: avoid corrupting errno on Solaris
10365         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10366         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10367
10368         strerror_r: avoid compiler warning
10369         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10370
10371         strerror_r: simplify AIX code
10372         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10373
10374         test-perror: avoid spurious failure on FreeBSD
10375         * modules/perror-tests (Depends-on): Add strerror, now that
10376         strerror_r no longer pulls it in.
10377
10378 2011-05-20  Bruno Haible  <bruno@clisp.org>
10379
10380         strerror_r-posix: Remove unused dependencies.
10381         * modules/strerror_r-posix (Depends-on): Remove strerror.
10382         Reported by Eric Blake.
10383
10384 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10385
10386         intprops: remove assumption about A|B representation
10387         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10388         is a valid integer if both A and B are.  Although this is true for
10389         all known practical hosts, the C standard doesn't guarantee it,
10390         and the code need not assume it.  Also, this change may work around
10391         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10393
10394 2011-05-20  Eric Blake  <eblake@redhat.com>
10395
10396         perror: work around FreeBSD bug
10397         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10398         is broken.  Move AC_LIBOBJ...
10399         * modules/perror (configure.ac): Here.
10400         * doc/posix-functions/perror.texi (perror): Document this.
10401         * tests/test-perror2.c (main): Enhance test.
10402
10403         test-perror: check for strerror interactions
10404         * tests/macros.h (STREQ): Add macro.
10405         * modules/perror-tests (Files): Add second test.
10406         * tests/test-perror2.c (main): New file.
10407         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10408
10409         test-perror: rewrite to use init script
10410         * modules/perror-tests (Files): Add init.sh.
10411         * tests/test-perror.sh: Use temporary directory.
10412
10413 2011-05-20  Jim Meyering  <meyering@redhat.com>
10414
10415         maint: replace misused "a" with "an"
10416         * doc/intprops.texi: "a integer"
10417         * doc/regex.texi: "a explanation"
10418         * lib/alignof.h: "a object"
10419         * lib/argmatch.h: "a explanation"
10420         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10421         * lib/stdint.in.h: "a integer"
10422         * lib/userspec.c: "a owner"
10423         * doc/gnulib.texi: Fix "a idea", and reword.
10424
10425 2011-05-19  Jim Meyering  <meyering@redhat.com>
10426
10427         maint: correct misuse of "a" and "an"
10428         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10429         * lib/argp-help.c: "an docum...": s/an/a/
10430         * lib/argp-parse.c: "An vector": s/An/A/
10431         * lib/execute.c: "an native": s/an/a/
10432         * lib/spawn-pipe.c: Likewise.
10433         * lib/gc.h: "an Gc_rc": s/an/a/
10434         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10435         * lib/fts.c: "an stat.st_dev": s/an/a/
10436
10437 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10438
10439         intprops-tests: work around HP-UX 11.23 cc bug with constants
10440         * tests/test-intprops.c (VERIFY): New macro.
10441         (main): Use it, instead of verify, to work around the compiler bug; see
10442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10443
10444         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10445         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10446         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10447         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10448         (_GL_REMAINDER_OVERFLOW): Use it.
10449
10450         intprops-tests: revert unsigned part of previous change
10451         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10452         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10453         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10455
10456 2011-05-19  Bruno Haible  <bruno@clisp.org>
10457
10458         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10459         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10460         strerror_r() returned without filling the buffer.
10461         Reported by Eric Blake.
10462
10463 2011-05-19  Eric Blake  <eblake@redhat.com>
10464
10465         strerror_r: guarantee unchanged errno
10466         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10467         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10468         failure.
10469         * tests/test-strerror_r.c (main): Enhance test.
10470
10471 2011-05-19  Bruno Haible  <bruno@clisp.org>
10472
10473         strerror_r: Reorder #if blocks.
10474         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10475         for consistency with the previous commit.
10476
10477 2011-05-19  Bruno Haible  <bruno@clisp.org>
10478
10479         perror: Avoid clobbering the strerror buffer when possible.
10480         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10481         * lib/strerror.c: Include it.
10482         * modules/strerror (Files): Add lib/strerror-impl.h.
10483         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10484         (my_strerror): New function, defined through lib/strerror-impl.h.
10485         (perror): Use it instead of strerror.
10486         * modules/perror (Files): Add lib/strerror-impl.h.
10487         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10488
10489 2011-05-19  Eric Blake  <eblake@redhat.com>
10490
10491         strerror_r: fix on newer cygwin
10492         * lib/strerror_r.c (strerror_r): Cygwin now has
10493         __xpg_strerror_r, use it.
10494
10495 2011-05-19  Bruno Haible  <bruno@clisp.org>
10496
10497         strerror_r: Avoid clobbering the strerror buffer when possible.
10498         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10499         (sys_nerr, sys_errlist): New declarations.
10500         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10501         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10502         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10503
10504 2011-05-19  Bruno Haible  <bruno@clisp.org>
10505
10506         strerror_r: Fix test failure on mingw.
10507         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10508         EXTEND_STRERROR_R.
10509         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10510         macros from errno.in.h instead.
10511
10512 2011-05-19  Eric Blake  <eblake@redhat.com>
10513
10514         strerror: relax test for Solaris
10515         * tests/test-strerror.c (main): Permit Solaris behavior.
10516         * tests/test-strerror_r.c (main): Likewise.
10517
10518         strerror: enforce POSIX ruling on strerror(0)
10519         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10520         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10521         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10522         * doc/posix-functions/strerror.texi (strerror): Document it.
10523         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10524         * tests/test-strerror.c (main): Strengthen test.
10525         * tests/test-strerror_r.c (main): Likewise.
10526
10527 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10528
10529         intprop-tests: port to older and more-pedantic compilers
10530         * modules/intprops-tests (Files): Add tests/macros.h.
10531         * tests/test-intprops.c: Include macros.h.
10532         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10533         it's no longer documented to expand to an integer constant expression.
10534         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10535         argument is floating point, as it's no longer documented to expand
10536         to an integer constant expression in that case.
10537         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10538         compiler bugs reported by Bruno Haible.  See
10539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10540         (U0, U1): New constants, to work around the same bugs.  Also,
10541         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10542
10543         intprops: work around C compiler bugs
10544         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10545         bug in Sun C 5.11 2010/08/13 and other compilers; see
10546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10547
10548         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10549         * doc/intprops.texi (Integer Type Determination): Fix
10550         documentation for TYPE_IS_INTEGER: it returns an constant
10551         expression, not an integer constant expression.  Fix doc for
10552         TYPE_SIGNED: it returns an integer constant expression only if its
10553         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10554         hardly worth documented that way....)
10555
10556 2011-05-18  Bruno Haible  <bruno@clisp.org>
10557
10558         strerror_r: Avoid clobbering the strerror buffer when possible.
10559         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10560         Handle gnulib defined errno values here. When strerror() returns NULL
10561         or an empty string, return EINVAL.
10562         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10563         gnulib defined errno values here.
10564         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10565
10566 2011-05-18  Eric Blake  <eblake@redhat.com>
10567
10568         fnmatch: avoid compiler warning
10569         * lib/fnmatch_loop.c (FCT): Use correct type.
10570         Reported by Matthias Bolte.
10571
10572 2011-05-13  Jim Meyering  <meyering@redhat.com>
10573
10574         maint.mk: three new prohibit_<HDR>_without_use rules
10575         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10576         (sc_prohibit_stdio-safer_without_use): Likewise.
10577         (sc_prohibit_xfreopen_without_use): Likewise.
10578
10579 2011-05-17  Jim Meyering  <meyering@redhat.com>
10580
10581         announce-gen: fail if the NEWS delta is empty
10582         If there's nothing noteworthy in NEWS, then either you forgot
10583         or you shouldn't be releasing.
10584         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10585
10586 2011-05-17  Pádraig Brady <P@draigBrady.com>
10587
10588         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10589         reserved symbols starting with double underscore from the check.
10590
10591 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10592
10593         intprops: add doc
10594         * doc/intprops.texi: New file, documenting intprops.
10595         * doc/gnulib.texi (Particular Modules): Include it.
10596
10597         verify: add doc to gnulib manual and fix example
10598         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10599         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10600         (Compile-time Assertions): Fix example so it can't overflow.
10601
10602 2011-05-17  Jim Meyering  <meyering@redhat.com>
10603
10604         warnings.m4: don't usurp save_CPPFLAGS variable name
10605         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10606
10607         doc: fix typo
10608         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10609
10610 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10611             Bruno Haible  <bruno@clisp.org>
10612
10613         doc: Tweak recent change.
10614         * README (Portability guidelines): Tweak new text.
10615         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10616         Interix 6.1.
10617
10618 2011-05-16  Eric Blake  <eblake@redhat.com>
10619
10620         inttypes: avoid autoconf warning
10621         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10622         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10623
10624 2011-05-16  Sam Steingold <sds@gnu.org>
10625         and Eric Blake  <eblake@redhat.com>
10626
10627         vc-list-files: accept multiple directory operands
10628         * build-aux/vc-list-files: Iterate over all remaining operands.
10629
10630 2011-05-16  Bruno Haible  <bruno@clisp.org>
10631
10632         Fix confusion regarding deprecated modules.
10633         * modules/calloc (Status, Notice): Mark module as deprecated, not
10634         obsolete.
10635         * modules/fnmatch-posix (Status, Notice): Likewise.
10636         * modules/getdate (Status, Notice): Likewise.
10637         * modules/getopt (Status, Notice): Likewise.
10638         * modules/malloc (Status, Notice): Likewise.
10639         * modules/pipe (Status, Notice): Likewise.
10640         * modules/realloc (Status, Notice): Likewise.
10641         * modules/rename-dest-slash (Status, Notice): Likewise.
10642         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10643         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10644         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10645         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10646         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10647
10648 2011-05-16  Bruno Haible  <bruno@clisp.org>
10649
10650         doc: List the target platforms.
10651         * doc/gnulib-intro.texi (Target Platforms): New section.
10652         * doc/gnulib.texi (Introduction): Update menu.
10653         * README (Portability guidelines): Refer to the new section. Update
10654         statement about oldest supported environment. Remove rationale why
10655         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10656         unportable C89 function.
10657         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10658         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10659
10660 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10661
10662         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10663
10664 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10665
10666         intprops-tests: new module
10667         * modules/intprops-tests, tests/test-intprops.c: New files.
10668
10669         intprops: add safe, portable integer overflow checking
10670         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10671         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10672         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10673         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10674         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10675         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10676         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10677         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10678         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10679         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10680         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10681
10682 2011-05-12  James Youngman  <jay@gnu.org>
10683
10684         Add a test for glibc's Bugzilla bug #12378.
10685         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10686         doesn't allow the literal matching of a lone "[" (which is
10687         required by POSIX).
10688         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10689
10690 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10691
10692         Sync glibc change fixing Bugzilla bug #12378.
10693         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10694         beginning and fall back to matching as normal character if the
10695         string ends before the matching ']' is found.  This is what POSIX
10696         requires.
10697
10698 2011-05-13  Eric Blake  <eblake@redhat.com>
10699
10700         getcwd-lgpl: relax test for FreeBSD
10701         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10702         issue.
10703         * tests/test-getcwd-lgpl.c (main): Relax test.
10704         Reported by Matthias Bolte.
10705
10706 2011-05-11  Eric Blake  <eblake@redhat.com>
10707
10708         test-fflush: silence compiler warning
10709         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10710
10711 2011-05-11  Bruno Haible  <bruno@clisp.org>
10712
10713         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10714         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10715         * modules/canonicalize (Depends-on): Add 'nocrash'.
10716         * modules/canonicalize-lgpl (Depends-on): Likewise.
10717         * doc/posix-functions/realpath.texi: Update platforms list.
10718         Reported by Ryan Schmidt <ryandesign@macports.org>.
10719
10720 2011-05-11  Bruno Haible  <bruno@clisp.org>
10721
10722         group-member: Declare function in <unistd.h>.
10723         * lib/unistd.in.h (group_member): New declaration.
10724         * lib/group-member.h: Remove file.
10725         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10726         * tests/test-unistd-c++.cc: Check signature of group_member.
10727         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10728         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10729         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10730         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10731         HAVE_GROUP_MEMBER.
10732         * modules/group-member (Files): Remove lib/group-member.h.
10733         (Depends-on): Add unistd. Specify conditions.
10734         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10735         (Include): Change to <unistd.h>.
10736         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10737         HAVE_GROUP_MEMBER.
10738         * NEWS: Mention the change.
10739         * lib/euidaccess.c: Don't include group-member.h.
10740
10741 2011-05-11  Bruno Haible  <bruno@clisp.org>
10742
10743         group-member: Document module.
10744         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10745         module.
10746
10747 2011-05-11  Bruno Haible  <bruno@clisp.org>
10748
10749         fclose: Fix mistake earlier today.
10750         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10751
10752 2011-05-11  Eric Blake  <eblake@redhat.com>
10753
10754         fclose: preserve fflush errors
10755         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10756         Reported by Jim Meyering.
10757
10758         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10759         * build-aux/bootstrap (check_versions): When no specific version
10760         is required, merely check that the app produces an exit status
10761         that indicates its existence.
10762
10763         maint.mk: drop redundant check
10764         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10765         the same but better.
10766
10767 2011-05-11  Bruno Haible  <bruno@clisp.org>
10768
10769         fclose: Fix possible link error.
10770         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10771         unregister_shadow_fd. Improve comments.
10772         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10773         Eric Blake.
10774
10775 2011-05-11  Jim Meyering  <meyering@redhat.com>
10776
10777         maint.mk: improve "can not" detection and generalize rule name
10778         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10779         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10780         Use the same technique as in sc_prohibit_doubled_word, so that
10781         we recognize "can not" also when the words are separated by a newline.
10782         Suggested by Eric Blake.
10783         (perl_filename_lineno_text_): Define.  Factored out of...
10784         (prohibit_doubled_word_): ...here.  Use the new definition.
10785         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10786         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10787         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10788
10789 2011-05-10  Eric Blake  <eblake@redhat.com>
10790
10791         fclose: avoid double close race when possible
10792         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10793         all but WINDOWS_SOCKETS.
10794
10795 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10796
10797         openat: correct new comment
10798         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10799
10800 2011-05-10  Jim Meyering  <meyering@redhat.com>
10801
10802         openat: add comments
10803         * lib/openat-proc.c (openat_proc_name): Add comments,
10804         mostly from Eric Blake.
10805
10806 2011-05-09  Eric Blake  <eblake@redhat.com>
10807
10808         openat: reduce syscalls in first probe of /proc
10809         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10810         be a directory.  Simplify the probe for .. bugs.
10811         * modules/openat (Depends-on): Drop same-inode.
10812         Reported by Bastien ROUCARIES.
10813
10814 2011-05-09  Jim Meyering  <meyering@redhat.com>
10815
10816         maint.mk: change semantics/name of tight_scope variables
10817         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10818         Rename variables to align with semantics that make them more useful.
10819
10820         maint.mk: tweak new rule's name not to impinge
10821         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10822         (sc_tight_scope): Use new rule name rather than $@-0.
10823
10824         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10825         * top/maint.mk (sc_tight_scope): New rule.
10826         (sc_tight_scope-0): New rule, ifdef'd out.
10827         (_gl_TS_dir): Default.
10828         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10829         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10830
10831 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10832
10833         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10834         Haible <bruno@clisp.org>.
10835
10836 2011-05-08  Bruno Haible  <bruno@clisp.org>
10837
10838         Comments.
10839         * m4/isnanf.m4: Add comment.
10840         * m4/isnanl.m4: Likewise.
10841
10842 2011-05-08  Bruno Haible  <bruno@clisp.org>
10843
10844         glob: Remove obsolete macro.
10845         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10846
10847 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10848
10849         intprops: Sun C 5.11 supports __typeof__
10850         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10851         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10852         which is new.
10853         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10854
10855         intprops: switch to usual gnulib indenting and naming
10856         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10857         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10858
10859         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10860
10861 2011-05-08  Jim Meyering  <meyering@redhat.com>
10862
10863         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10864         * top/maint.mk (release-prep): Use make's --no-print-directory
10865         option when generating the announcement.  This eliminates the
10866         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10867         generated announcement template.
10868
10869 2011-05-08  Bruno Haible  <bruno@clisp.org>
10870
10871         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10872         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10873         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10874
10875 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10876
10877         ignore-value, verify: Omit include files from lib_SOURCES.
10878         * modules/ignore-value, modules/verify (Makefile.am):
10879         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10880         that leads Automake to duplicate use of am__objects_... variables
10881         in Makefile.in.  See
10882         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10883
10884 2011-05-07  Bruno Haible  <bruno@clisp.org>
10885
10886         fclose: Simplify autoconf macro.
10887         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10888         defined.
10889
10890 2011-05-07  Bruno Haible  <bruno@clisp.org>
10891
10892         canonicalize-lgpl: Fix autoconf macro ordering bug.
10893         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10894         gl_STDLIB_H_DEFAULTS.
10895
10896 2011-05-06  Eric Blake  <eblake@redhat.com>
10897
10898         maintainer-makefile: make sc_po_check easier to tune
10899         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10900         to probe for strings, such as an alternate location for gnulib.
10901
10902         fclose: guarantee behavior on seekable stdin
10903         * modules/fclose (Depends-on): Add fflush.
10904         * doc/posix-functions/fclose.texi (fclose): Document this.
10905         * tests/test-fclose.c (main): Make test for this unconditional.
10906
10907 2011-05-06  Bruno Haible  <bruno@clisp.org>
10908
10909         fflush, fpurge: Relicense under LGPLv2+.
10910         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10911         * modules/fpurge (License): Likewise.
10912         With permission from Eric Blake and Jim Meyering.
10913         Suggested by Eric Blake.
10914
10915 2011-05-06  Karl Berry  <karl@gnu.org>
10916
10917         * MODULES.html.sh (func_all_modules): remove exit.
10918
10919 2011-05-06  Jim Meyering  <meyering@redhat.com>
10920
10921         maint.mk: use info-gnu@ as the default only for a stable release
10922         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10923         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10924         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10925         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10926
10927 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10928
10929         assert-h: new module, which supports C1X-style static_assert
10930         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10931         * lib/verify.h: Revamp so that this can be copied into assert.h,
10932         while retaining the ability to use it standalone as before.
10933         Rename private identifiers so as not to encroach on the
10934         standard C namespace, since this is now used by assert.h.
10935         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10936         the old verify_true.
10937         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10938         the old verify_true.  Use _GL_VERIFY_TYPE.
10939         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10940         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10941         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10942         defined when this file is copied into the replacement assert.h.
10943         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10944         and _Static_assert is not built in.
10945         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10946         defined, and use the new macros mentioned above.
10947         * doc/posix-headers/assert.texi: Document this.
10948
10949 2011-05-05  Bruno Haible  <bruno@clisp.org>
10950
10951         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10952         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10953         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10954         gl_REPLACE_FCLOSE here.
10955         * modules/fflush (Depends-on): Remove fclose.
10956         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10957         combination with module 'fclose'.
10958
10959 2011-05-05  Bruno Haible  <bruno@clisp.org>
10960
10961         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10962         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10963         gl_FUNC_FFLUSH.
10964         (gl_FUNC_FFLUSH): Use it.
10965         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10966         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10967         gl_REPLACE_FSEEKO here.
10968
10969 2011-05-05  Bruno Haible  <bruno@clisp.org>
10970
10971         tzset: Relicense under LGPL.
10972         * modules/tzset (License): Change to LGPL.
10973         No agreement needed; it's a no-op.
10974
10975         strtoimax, strtoumax: Relicense under LGPL.
10976         * modules/strtoimax (License): Change to LGPL.
10977         * modules/strtoumax (License): Likewise.
10978         With permission from Jim Meyering, Paul Eggert:
10979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10981
10982         getgroups: Relicense under LGPL.
10983         * modules/getgroups (License): Change to LGPL.
10984         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10988
10989         nanosleep: Relicense under LGPL.
10990         * modules/nanosleep (License): Change to LGPL.
10991         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10992         Haible:
10993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10997
10998         futimens: Relicense under LGPL.
10999         * modules/futimens (License): Change to LGPL.
11000         With permission from Eric Blake:
11001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11002
11003         fflush: Relicense under LGPL.
11004         * modules/fflush (License): Change to LGPL.
11005         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11009
11010         tmpfile: Relicense under LGPL.
11011         * modules/tmpfile (License): Change to LGPL.
11012         With permission from Ben Pfaff:
11013         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11014
11015         isfinite: Relicense under LGPL.
11016         * modules/isfinite (License): Change to LGPL.
11017         With permission from Ben Pfaff, Bruno Haible:
11018         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11020
11021         acosl..tanl: Relicense under LGPL.
11022         * modules/acosl (License): Change to LGPL.
11023         * modules/asinl (License): Likewise.
11024         * modules/atanl (License): Likewise.
11025         * modules/cosl (License): Likewise.
11026         * modules/expl (License): Likewise.
11027         * modules/logl (License): Likewise.
11028         * modules/sinl (License): Likewise.
11029         * modules/sqrtl (License): Likewise.
11030         * modules/tanl (License): Likewise.
11031         Source code originally from glibc and Paolo Bonzini. Agreements:
11032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11034
11035 2011-05-05  Bruno Haible  <bruno@clisp.org>
11036
11037         signal: Define sighandler_t.
11038         * lib/signal.in.h (sighandler_t): New type.
11039         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11040         whether sighandler_t is defined.
11041         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11042         * modules/signal (Depends-on): Add extensions.
11043         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11044         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11045         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11046
11047 2011-05-05  Eric Blake  <eblake@redhat.com>
11048
11049         maint: remove useless REPLACE_*_H macros
11050         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11051         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11052         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11053         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11054         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11055         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11056         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11057         * m4/btowc.m4: Update callers.
11058         * m4/dirfd.m4: Likewise.
11059         * m4/duplocale.m4: Likewise.
11060         * m4/fchdir.m4: Likewise.
11061         * m4/fdopendir.m4: Likewise.
11062         * m4/inet_ntop.m4: Likewise.
11063         * m4/inet_pton.m4: Likewise.
11064         * m4/ioctl.m4: Likewise.
11065         * m4/mbrlen.m4: Likewise.
11066         * m4/mbrtowc.m4: Likewise.
11067         * m4/mbsinit.m4: Likewise.
11068         * m4/mbsnrtowcs.m4: Likewise.
11069         * m4/mbsrtowcs.m4: Likewise.
11070         * m4/poll.m4: Likewise.
11071         * m4/setlocale.m4: Likewise.
11072         * m4/wcrtomb.m4: Likewise.
11073         * m4/wcsnrtombs.m4: Likewise.
11074         * m4/wcsrtombs.m4: Likewise.
11075         * m4/wctob.m4: Likewise.
11076         * m4/wcwidth.m4: Likewise.
11077         * modules/posix_spawn: Likewise.
11078         * modules/posix_spawn_file_actions_addclose: Likewise.
11079         * modules/posix_spawn_file_actions_adddup2: Likewise.
11080         * modules/posix_spawn_file_actions_addopen: Likewise.
11081         * modules/posix_spawn_file_actions_destroy: Likewise.
11082         * modules/posix_spawn_file_actions_init: Likewise.
11083         * modules/posix_spawnattr_destroy: Likewise.
11084         * modules/posix_spawnattr_getflags: Likewise.
11085         * modules/posix_spawnattr_getpgroup: Likewise.
11086         * modules/posix_spawnattr_getschedparam: Likewise.
11087         * modules/posix_spawnattr_getschedpolicy: Likewise.
11088         * modules/posix_spawnattr_getsigdefault: Likewise.
11089         * modules/posix_spawnattr_getsigmask: Likewise.
11090         * modules/posix_spawnattr_init: Likewise.
11091         * modules/posix_spawnattr_setflags: Likewise.
11092         * modules/posix_spawnattr_setpgroup: Likewise.
11093         * modules/posix_spawnattr_setschedparam: Likewise.
11094         * modules/posix_spawnattr_setschedpolicy: Likewise.
11095         * modules/posix_spawnattr_setsigdefault: Likewise.
11096         * modules/posix_spawnattr_setsigmask: Likewise.
11097         * modules/posix_spawnp: Likewise.
11098
11099 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11100
11101         Add option to do-release-commit-and-tag to specify branch.
11102         * build-aux/do-release-commit-and-tag: Add --branch.
11103
11104 2011-05-03  Bruno Haible  <bruno@clisp.org>
11105
11106         Avoid unnecessary compilation units, through conditional dependencies.
11107         * modules/accept (Depends-on): Add conditions to the dependencies.
11108         * modules/acosl (Depends-on): Likewise.
11109         * modules/argz (Depends-on): Likewise.
11110         * modules/asinl (Depends-on): Likewise.
11111         * modules/atanl (Depends-on): Likewise.
11112         * modules/atoll (Depends-on): Likewise.
11113         * modules/bind (Depends-on): Likewise.
11114         * modules/btowc (Depends-on): Likewise.
11115         * modules/canonicalize-lgpl (Depends-on): Likewise.
11116         * modules/ceil (Depends-on): Likewise.
11117         * modules/ceilf (Depends-on): Likewise.
11118         * modules/ceill (Depends-on): Likewise.
11119         * modules/chdir-long (Depends-on): Likewise.
11120         * modules/chown (Depends-on): Likewise.
11121         * modules/close (Depends-on): Likewise.
11122         * modules/connect (Depends-on): Likewise.
11123         * modules/cosl (Depends-on): Likewise.
11124         * modules/dirfd (Depends-on): Likewise.
11125         * modules/dprintf (Depends-on): Likewise.
11126         * modules/dprintf-posix (Depends-on): Likewise.
11127         * modules/error (Depends-on): Likewise.
11128         * modules/euidaccess (Depends-on): Likewise.
11129         * modules/expl (Depends-on): Likewise.
11130         * modules/faccessat (Depends-on): Likewise.
11131         * modules/fchdir (Depends-on): Likewise.
11132         * modules/fclose (Depends-on): Likewise.
11133         * modules/fcntl (Depends-on): Likewise.
11134         * modules/fdopendir (Depends-on): Likewise.
11135         * modules/fflush (Depends-on): Likewise.
11136         * modules/floor (Depends-on): Likewise.
11137         * modules/floorf (Depends-on): Likewise.
11138         * modules/floorl (Depends-on): Likewise.
11139         * modules/fnmatch (Depends-on): Likewise.
11140         * modules/fopen (Depends-on): Likewise.
11141         * modules/fprintf-posix (Depends-on): Likewise.
11142         * modules/frexp (Depends-on): Likewise.
11143         * modules/frexp-nolibm (Depends-on): Likewise.
11144         * modules/frexpl (Depends-on): Likewise.
11145         * modules/frexpl-nolibm (Depends-on): Likewise.
11146         * modules/fseek (Depends-on): Likewise.
11147         * modules/fsusage (Depends-on): Likewise.
11148         * modules/ftell (Depends-on): Likewise.
11149         * modules/ftello (Depends-on): Likewise.
11150         * modules/futimens (Depends-on): Likewise.
11151         * modules/getcwd (Depends-on): Likewise.
11152         * modules/getcwd-lgpl (Depends-on): Likewise.
11153         * modules/getdelim (Depends-on): Likewise.
11154         * modules/getdomainname (Depends-on): Likewise.
11155         * modules/getgroups (Depends-on): Likewise.
11156         * modules/gethostname (Depends-on): Likewise.
11157         * modules/getline (Depends-on): Likewise.
11158         * modules/getlogin_r (Depends-on): Likewise.
11159         * modules/getopt-posix (Depends-on): Likewise.
11160         * modules/getpeername (Depends-on): Likewise.
11161         * modules/getsockname (Depends-on): Likewise.
11162         * modules/getsockopt (Depends-on): Likewise.
11163         * modules/getsubopt (Depends-on): Likewise.
11164         * modules/getusershell (Depends-on): Likewise.
11165         * modules/glob (Depends-on): Likewise.
11166         * modules/grantpt (Depends-on): Likewise.
11167         * modules/iconv_open (Depends-on): Likewise.
11168         * modules/iconv_open-utf (Depends-on): Likewise.
11169         * modules/inet_ntop (Depends-on): Likewise.
11170         * modules/inet_pton (Depends-on): Likewise.
11171         * modules/ioctl (Depends-on): Likewise.
11172         * modules/isapipe (Depends-on): Likewise.
11173         * modules/isfinite (Depends-on): Likewise.
11174         * modules/isinf (Depends-on): Likewise.
11175         * modules/lchown (Depends-on): Likewise.
11176         * modules/ldexpl (Depends-on): Likewise.
11177         * modules/link (Depends-on): Likewise.
11178         * modules/linkat (Depends-on): Likewise.
11179         * modules/listen (Depends-on): Likewise.
11180         * modules/logl (Depends-on): Likewise.
11181         * modules/lstat (Depends-on): Likewise.
11182         * modules/mbrlen (Depends-on): Likewise.
11183         * modules/mbrtowc (Depends-on): Likewise.
11184         * modules/mbsinit (Depends-on): Likewise.
11185         * modules/mbsnrtowcs (Depends-on): Likewise.
11186         * modules/mbsrtowcs (Depends-on): Likewise.
11187         * modules/mbtowc (Depends-on): Likewise.
11188         * modules/memcmp (Depends-on): Likewise.
11189         * modules/mkdir (Depends-on): Likewise.
11190         * modules/mkdtemp (Depends-on): Likewise.
11191         * modules/mkfifo (Depends-on): Likewise.
11192         * modules/mkfifoat (Depends-on): Likewise.
11193         * modules/mknod (Depends-on): Likewise.
11194         * modules/mkostemp (Depends-on): Likewise.
11195         * modules/mkostemps (Depends-on): Likewise.
11196         * modules/mkstemp (Depends-on): Likewise.
11197         * modules/mkstemps (Depends-on): Likewise.
11198         * modules/mktime (Depends-on): Likewise.
11199         * modules/nanosleep (Depends-on): Likewise.
11200         * modules/open (Depends-on): Likewise.
11201         * modules/openat (Depends-on): Likewise.
11202         * modules/perror (Depends-on): Likewise.
11203         * modules/poll (Depends-on): Likewise.
11204         * modules/popen (Depends-on): Likewise.
11205         * modules/posix_spawn (Depends-on): Likewise.
11206         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11207         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11208         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11209         * modules/posix_spawnp (Depends-on): Likewise.
11210         * modules/pread (Depends-on): Likewise.
11211         * modules/printf-posix (Depends-on): Likewise.
11212         * modules/ptsname (Depends-on): Likewise.
11213         * modules/putenv (Depends-on): Likewise.
11214         * modules/pwrite (Depends-on): Likewise.
11215         * modules/readline (Depends-on): Likewise.
11216         * modules/readlink (Depends-on): Likewise.
11217         * modules/readlinkat (Depends-on): Likewise.
11218         * modules/recv (Depends-on): Likewise.
11219         * modules/recvfrom (Depends-on): Likewise.
11220         * modules/regex (Depends-on): Likewise.
11221         * modules/remove (Depends-on): Likewise.
11222         * modules/rename (Depends-on): Likewise.
11223         * modules/renameat (Depends-on): Likewise.
11224         * modules/rmdir (Depends-on): Likewise.
11225         * modules/round (Depends-on): Likewise.
11226         * modules/roundf (Depends-on): Likewise.
11227         * modules/roundl (Depends-on): Likewise.
11228         * modules/rpmatch (Depends-on): Likewise.
11229         * modules/select (Depends-on): Likewise.
11230         * modules/send (Depends-on): Likewise.
11231         * modules/sendto (Depends-on): Likewise.
11232         * modules/setenv (Depends-on): Likewise.
11233         * modules/setlocale (Depends-on): Likewise.
11234         * modules/setsockopt (Depends-on): Likewise.
11235         * modules/shutdown (Depends-on): Likewise.
11236         * modules/sigaction (Depends-on): Likewise.
11237         * modules/signbit (Depends-on): Likewise.
11238         * modules/sigprocmask (Depends-on): Likewise.
11239         * modules/sinl (Depends-on): Likewise.
11240         * modules/sleep (Depends-on): Likewise.
11241         * modules/snprintf (Depends-on): Likewise.
11242         * modules/snprintf-posix (Depends-on): Likewise.
11243         * modules/socket (Depends-on): Likewise.
11244         * modules/sprintf-posix (Depends-on): Likewise.
11245         * modules/sqrtl (Depends-on): Likewise.
11246         * modules/stat (Depends-on): Likewise.
11247         * modules/strchrnul (Depends-on): Likewise.
11248         * modules/strdup-posix (Depends-on): Likewise.
11249         * modules/strerror (Depends-on): Likewise.
11250         * modules/strerror_r-posix (Depends-on): Likewise.
11251         * modules/strndup (Depends-on): Likewise.
11252         * modules/strnlen (Depends-on): Likewise.
11253         * modules/strptime (Depends-on): Likewise.
11254         * modules/strsep (Depends-on): Likewise.
11255         * modules/strsignal (Depends-on): Likewise.
11256         * modules/strstr-simple (Depends-on): Likewise.
11257         * modules/strtod (Depends-on): Likewise.
11258         * modules/strtoimax (Depends-on): Likewise.
11259         * modules/strtok_r (Depends-on): Likewise.
11260         * modules/strtoumax (Depends-on): Likewise.
11261         * modules/symlink (Depends-on): Likewise.
11262         * modules/symlinkat (Depends-on): Likewise.
11263         * modules/tanl (Depends-on): Likewise.
11264         * modules/tcgetsid (Depends-on): Likewise.
11265         * modules/tmpfile (Depends-on): Likewise.
11266         * modules/trunc (Depends-on): Likewise.
11267         * modules/truncf (Depends-on): Likewise.
11268         * modules/truncl (Depends-on): Likewise.
11269         * modules/uname (Depends-on): Likewise.
11270         * modules/unlink (Depends-on): Likewise.
11271         * modules/unlockpt (Depends-on): Likewise.
11272         * modules/unsetenv (Depends-on): Likewise.
11273         * modules/usleep (Depends-on): Likewise.
11274         * modules/utimensat (Depends-on): Likewise.
11275         * modules/vasprintf (Depends-on): Likewise.
11276         * modules/vdprintf (Depends-on): Likewise.
11277         * modules/vdprintf-posix (Depends-on): Likewise.
11278         * modules/vfprintf-posix (Depends-on): Likewise.
11279         * modules/vprintf-posix (Depends-on): Likewise.
11280         * modules/vsnprintf (Depends-on): Likewise.
11281         * modules/vsnprintf-posix (Depends-on): Likewise.
11282         * modules/vsprintf-posix (Depends-on): Likewise.
11283         * modules/wcrtomb (Depends-on): Likewise.
11284         * modules/wcscasecmp (Depends-on): Likewise.
11285         * modules/wcscspn (Depends-on): Likewise.
11286         * modules/wcsdup (Depends-on): Likewise.
11287         * modules/wcsncasecmp (Depends-on): Likewise.
11288         * modules/wcsnrtombs (Depends-on): Likewise.
11289         * modules/wcspbrk (Depends-on): Likewise.
11290         * modules/wcsrtombs (Depends-on): Likewise.
11291         * modules/wcsspn (Depends-on): Likewise.
11292         * modules/wcsstr (Depends-on): Likewise.
11293         * modules/wcstok (Depends-on): Likewise.
11294         * modules/wcswidth (Depends-on): Likewise.
11295         * modules/wctob (Depends-on): Likewise.
11296         * modules/wctomb (Depends-on): Likewise.
11297         * modules/wctype (Depends-on): Likewise.
11298         * modules/wcwidth (Depends-on): Likewise.
11299         * modules/write (Depends-on): Likewise.
11300
11301 2011-05-03  Bruno Haible  <bruno@clisp.org>
11302
11303         Support for conditional dependencies.
11304         * doc/gnulib.texi (Module description): Document the syntax of
11305         conditional dependencies.
11306         * gnulib-tool: New option --conditional-dependencies.
11307         (func_usage): Document it.
11308         (cond_dependencies): New variable.
11309         (func_get_automake_snippet_conditional,
11310         func_get_automake_snippet_unconditional): New functions, extracted from
11311         func_get_automake_snippet.
11312         (func_get_automake_snippet): Use them.
11313         (sed_first_32_chars): New variable.
11314         (func_module_shellfunc_name): New function.
11315         (func_module_shellvar_name): New function.
11316         (func_module_conditional_name): New function.
11317         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11318         func_cond_module_condition): New functions.
11319         (func_modules_transitive_closure): Add support for conditional
11320         dependencies.
11321         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11322         conditional automake snippet in an automake conditional.
11323         (func_emit_autoconf_snippets): Emit shell functions that contain the
11324         code for conditional modules.
11325         (func_import, func_create_testdir): Update specification.
11326
11327 2011-05-03  Eric Blake  <eblake@redhat.com>
11328
11329         test-getaddrinfo: report error information
11330         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11331
11332 2011-05-03  Jim Meyering  <meyering@redhat.com>
11333
11334         bootstrap: avoid build failure when $GZIP is set
11335         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11336         program name.  If defined at all, it is supposed to list gzip options.
11337         Reported by Alan Curry in http://debbugs.gnu.org/8609
11338
11339 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11340
11341         readme-release: new module with release instructions
11342         * modules/readme-release: New module.
11343         * top/README-release: New file, from coreutils, grep, diffutils.
11344         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11345
11346 2011-05-02  Eric Blake  <eblake@redhat.com>
11347
11348         fflush: also replace fclose when fixing fflush
11349         * modules/fflush (Depends-on): Add fclose.
11350         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11351         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11352         memstreams with no backing fd.
11353         * doc/posix-functions/fclose.texi (fclose): Document the use of
11354         fflush module to fix the bug.
11355         * tests/test-fclose.c (main): Relax test when fclose is used in
11356         isolation.
11357
11358         fclose: add some tests
11359         * modules/fclose-tests: New test module.
11360         * tests/test-fclose.c: New file.
11361         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11362
11363         fclose: reduced dependencies
11364         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11365         simpler lseek.
11366         * lib/fclose.c (rpl_fclose): Likewise.
11367         Reported by Simon Josefsson.
11368
11369         exit: drop remaining clients
11370         * modules/argmatch (Depends-on): Replace exit with stdlib.
11371         * modules/copy-file (Depends-on): Likewise.
11372         * modules/execute (Depends-on): Likewise.
11373         * modules/exitfail (Depends-on): Likewise.
11374         * modules/obstack (Depends-on): Likewise.
11375         * modules/pagealign_alloc (Depends-on): Likewise.
11376         * modules/pipe-filter-gi (Depends-on): Likewise.
11377         * modules/pipe-filter-ii (Depends-on): Likewise.
11378         * modules/savewd (Depends-on): Likewise.
11379         * modules/spawn-pipe (Depends-on): Likewise.
11380         * modules/wait-process (Depends-on): Likewise.
11381         * modules/xsetenv (Depends-on): Likewise.
11382         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11383         * modules/git-merge-changelog (Depends-on): Likewise.
11384         * modules/long-options (Depends-on): Likewise.
11385         * modules/pt_chown (Depends-on): Likewise.
11386         * modules/sysexits (Depends-on): Likewise.
11387
11388         freading: relax license from LGPLv3+ to LGPLv2+
11389         * modules/freading (License): Relax LGPL version.
11390
11391 2011-05-02  Bruno Haible  <bruno@clisp.org>
11392
11393         fchdir: Remove unused dependencies.
11394         * modules/fchdir (Depends-on): Remove include_next.
11395
11396 2011-05-02  Bruno Haible  <bruno@clisp.org>
11397
11398         gnulib-tool: Refactor.
11399         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11400         from func_emit_autoconf_snippets.
11401         (func_emit_autoconf_snippets): Use it.
11402
11403 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11404
11405         * NEWS: Document removal of 'exit'.
11406         * modules/exit: Remove file.
11407
11408 2011-05-01  Bruno Haible  <bruno@clisp.org>
11409
11410         Update DEPENDENCIES.
11411         * DEPENDENCIES (gettext): Recommend the newest release.
11412         Reported by Simon Josefsson.
11413
11414 2011-05-01  Bruno Haible  <bruno@clisp.org>
11415
11416         gnulib-tool: Reduce code duplication.
11417         * gnulib-tool (func_emit_autoconf_snippets): New function.
11418         (func_import, func_create_testdir): Use it.
11419
11420 2011-04-30  Eric Blake  <eblake@redhat.com>
11421
11422         fclose: don't fail on non-seekable input stream
11423         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11424         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11425         since fflush is allowed to fail in that case.
11426
11427 2011-04-30  Bruno Haible  <bruno@clisp.org>
11428
11429         dup3: cleanup
11430         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11431
11432 2011-04-30  Bruno Haible  <bruno@clisp.org>
11433
11434         netdb: Make it work in C++ mode.
11435         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11436         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11437         module.
11438         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11439         gl_MODULE_INDICATOR_FOR_TESTS.
11440         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11441         * modules/netdb-c++-tests: New file.
11442         * tests/test-netdb-c++.cc: New file.
11443
11444 2011-04-30  Bruno Haible  <bruno@clisp.org>
11445
11446         New modules 'vfscanf', 'vscanf'.
11447         * modules/vfscanf: New file.
11448         * modules/vscanf: New file.
11449         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11450         here.
11451         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11452         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11453
11454 2011-04-30  Bruno Haible  <bruno@clisp.org>
11455
11456         passfd: Add comments.
11457         * lib/passfd.c: Add comments about platforms.
11458
11459 2011-04-30  Bruno Haible  <bruno@clisp.org>
11460
11461         sys_uio: Make <sys/uio.h> self-contained.
11462         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11463         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11464
11465 2011-04-30  Bruno Haible  <bruno@clisp.org>
11466
11467         sys_socket: Ensure 'struct iovec' definition.
11468         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11469         <sys/socket.h>.
11470         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11471
11472 2011-04-30  Bruno Haible  <bruno@clisp.org>
11473
11474         sys_uio: Protect definition of 'struct iovec'.
11475         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11476         it as a C struct.
11477
11478 2011-04-30  Bruno Haible  <bruno@clisp.org>
11479
11480         manywarnings: fix indentation
11481         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11482
11483 2011-04-30  Pádraig Brady <P@draigBrady.com>
11484
11485         manywarnings: add -Wno-missing-field-initializers if needed.
11486         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11487         option if it's needed to allow initialization with { 0, }
11488
11489 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11490
11491         announce-gen: cosmetic improvement
11492         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11493
11494 2011-04-29  Jim Meyering  <meyering@redhat.com>
11495
11496         vc-list-files: indent with spaces, not TABs
11497         * build-aux/vc-list-files: Convert leading TABs to spaces,
11498         to match the style of most other files in gnulib.
11499
11500         announce-gen: indent with spaces, not TABs
11501         * build-aux/announce-gen: Convert all TABs to spaces, to match
11502         the style of most other files in gnulib.
11503
11504 2011-04-29  Eric Blake  <eblake@redhat.com>
11505
11506         quotearg: avoid uninitialized variable use
11507         * lib/quotearg.c (quoting_options_from_style): Initialize
11508         remaining fields, and ensure that custom styles are only used via
11509         quoting_options rather than quoting_style.
11510
11511 2011-04-29  Jim Meyering  <meyering@redhat.com>
11512
11513         maint.mk: remove unused VC-tag variable
11514         * top/maint.mk (VC-tag): Remove unused variable.
11515
11516 2011-04-29  Bruno Haible  <bruno@clisp.org>
11517
11518         netdb: fix gai_strerror replacements
11519         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11520         * modules/netdb: Substitute it.
11521
11522 2011-04-29  Jim Meyering  <meyering@redhat.com>
11523
11524         test-getcwd.c: avoid new set-but-not-used warning
11525         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11526         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11527         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11528         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11529
11530         test-hash.c: avoid a new shadowing warning
11531         * tests/test-hash.c (main): Don't shadow "dup".
11532
11533 2011-04-28  Eric Blake  <eblake@redhat.com>
11534
11535         getaddrinfo: fix gai_strerror signature
11536         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11537         and work around mingw with UNICODE defined.
11538         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11539         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11540         * modules/netdb (Makefile.am): Substitute it.
11541         * lib/netdb.in.h (gai_strerror): Declare replacement.
11542         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11543         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11544         the fix.
11545
11546         getsockopt: avoid compiler warning
11547         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11548         Reported by Matthias Bolte.
11549
11550         tests: drop unused link dependency
11551         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11552         * modules/dirent-safer-tests (Makefile.am): Likewise.
11553         * modules/fdopendir-tests (Makefile.am): Likewise.
11554         * modules/mkfifoat-tests (Makefile.am): Likewise.
11555         * modules/openat-safer-tests (Makefile.am): Likewise.
11556         * modules/openat-tests (Makefile.am): Likewise.
11557         * modules/readlinkat-tests (Makefile.am): Likewise.
11558         * modules/symlinkat-tests (Makefile.am): Likewise.
11559         * modules/linkat-tests (Makefile.am): Likewise.
11560         (Depends-on): Switch to filenamecat-lgpl.
11561         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11562         LIBINTL.
11563         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11564         * tests/test-linkat.c (main): Don't require xalloc.
11565
11566         hash, mgetgroups: drop xalloc dependency
11567         * lib/hash.c (includes): Adjust includes.
11568         * lib/mgetgroups.c (includes): Likewise.
11569         (xgetgroups): Move...
11570         * lib/xgetgroups.c: ...to new file.
11571         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11572         * modules/xgetgroups: New file, split from...
11573         * modules/mgetgroups: ...here.
11574         (Depends-on): Add xalloc-oversized.
11575         * modules/hash (Depends-on): Likewise.
11576         * modules/hash-tests (Depends-on): Drop xalloc.
11577         (test_hash_LDADD): Drop unused library.
11578         * tests/test-hash.c (main): Break xalloc dependency.
11579         (includes): Drop unused include.
11580
11581         xalloc-oversized: new module
11582         * modules/xalloc-oversized: New module.
11583         * modules/xalloc (Depends-on): Add it.
11584         * lib/xalloc.h (xalloc_oversized): Move...
11585         * lib/xalloc-oversized.h: ...into new file.
11586
11587         utimecmp: drop dependency on xmalloc
11588         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11589         due to memory pressure.
11590         * modules/utimecmp (Depends-on): Drop xalloc.
11591
11592 2011-04-27  Eric Blake  <eblake@redhat.com>
11593
11594         getcwd: fix mingw bugs
11595         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11596         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11597         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11598
11599 2011-04-27  Bruno Haible  <bruno@clisp.org>
11600
11601         mkstemps: Ensure declaration on MacOS X 10.5.
11602         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11603         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11604         MacOS X.
11605
11606 2011-04-27  Bruno Haible  <bruno@clisp.org>
11607
11608         mkstemp: More documentation.
11609         * doc/posix-functions/mkstemp.texi: Document header file problem on
11610         MacOS X.
11611
11612 2011-04-27  Bruno Haible  <bruno@clisp.org>
11613
11614         mkstemp: Tweak configure message when cross-compiling.
11615         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11616         result as a guess.
11617
11618 2011-04-27  Bruno Haible  <bruno@clisp.org>
11619
11620         clean-temp: Clarify what it does.
11621         * lib/clean-temp.h: Add more comments.
11622         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11623         module.
11624         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11625         * doc/glibc-functions/mkstemps.texi: Likewise.
11626         * doc/glibc-functions/mkostemps.texi: Likewise.
11627
11628 2011-04-27  Eric Blake  <eblake@redhat.com>
11629
11630         fchdir: avoid extra chdir and fix test
11631         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11632         getcwd-lgpl.
11633         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11634         have to be canonical.
11635         (canonicalize_file_name): Drop unused macro.
11636         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11637
11638         filenamecat-lgpl: fix licence
11639         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11640         when it was first created.
11641
11642         linkat, renameat: add missing dependency
11643         * modules/linkat (Depends-on): Require getcwd-lgpl.
11644         * modules/renameat (Depends-on): Likewise.
11645
11646         tests: reduce dependencies
11647         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11648         * tests/test-renameat.c (main): Likewise.
11649         * modules/linkat-tests (Depends-on): Relax dependency.
11650         * modules/renameat-tests (Depends-on): Likewise.
11651         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11652         dependency explicit.
11653
11654         save-cwd: reduce default dependency
11655         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11656         * lib/save-cwd.c: Update comments.
11657         * NEWS: Document the semantic change.
11658
11659         getcwd: enhance tests
11660         * tests/test-getcwd-lgpl.c: New file, taken from...
11661         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11662         repeat long path stress tests from m4 probe.
11663         * modules/getcwd-lgpl-tests: New module.
11664         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11665         * m4/getcwd-abort-bug.m4: Update comment.
11666         * m4/getcwd-path-max.m4: Likewise.
11667
11668         getcwd-lgpl: new module
11669         * modules/getcwd-lgpl: New module.
11670         * lib/getcwd-lgpl.c: New file.
11671         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11672         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11673         * modules/getcwd (configure.ac): Set C witness.
11674         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11675
11676         getcwd: tweak comments
11677         * m4/getcwd-abort-bug.m4: Fix comments.
11678         * m4/getcwd-path-max.m4: Likewise.
11679         * m4/getcwd.m4: Likewise.
11680
11681 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11682         and Eric Blake  <eblake@redhat.com>
11683
11684         mkstemp: replace if system version uses wrong permissions
11685         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11686         read/write mode bits set in file created by mkstemp.
11687         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11688
11689 2011-04-27  Eric Blake  <eblake@redhat.com>
11690
11691         passfd: avoid compiler warning
11692         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11693         Reported by Laine Stump.
11694
11695 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11696
11697         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11698         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11699
11700 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11701         and Eric Blake  <eblake@redhat.com>
11702
11703         mkstemp: mention clean-temp module
11704         * lib/mkstemp.c: Add comment.
11705         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11706
11707 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11708
11709         inttypes: also provide default values for 32-bit tests
11710         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11711         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11712
11713 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11714
11715         strtoumax: remove dependency on strtoimax
11716         This is like the strtoull change of yesterday.
11717         * modules/strtoumax (Files): Add lib/strtoimax.c.
11718         (Depends-on): Remove strtoimax and add verify.
11719
11720         inttypes-incomplete: new module
11721         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11722         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11723         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11724         of gl_INTTYPES_H.
11725         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11726         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11727         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11728         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11729         * modules/strtoumax, modules/xstrtol (Depends-on):
11730         Depend on inttypes-incomplete, not inttypes.
11731         * modules/inttypes-incomplete: New module, containing the contents
11732         of the old modules/inttypes module, except that the Files: section
11733         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11734         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11735         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11736         (Depends-on): Depend only on inttypes-incomplete.
11737         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11738
11739         inttypes: omit now-redundant strtoimax and strtoumax work
11740         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11741         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11742
11743         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11744         This supports apps that need pointers to strtoimax and strtoumax,
11745         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11746         nonexistent functions.  See
11747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11748         et seq.
11749         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11750         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11751         a macro.
11752         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11753
11754 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11755
11756         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11757
11758 2011-04-25  Bruno Haible  <bruno@clisp.org>
11759
11760         strtol, strtoul: Mark modules as obsolete.
11761         * modules/strtol (Status, Notice): New sections.
11762         * modules/strtoul (Status, Notice): New sections.
11763
11764 2011-04-25  Bruno Haible  <bruno@clisp.org>
11765
11766         strtod: Remove check for strtod, unless supporting old platforms.
11767         * modules/strtod-obsolete: New file.
11768         * m4/strtod-obsolete.m4: New file.
11769         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11770         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11771         * modules/strtod (Depends-on): Add strtod-obsolete.
11772         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11773
11774 2011-04-25  Bruno Haible  <bruno@clisp.org>
11775
11776         strcase: Make module obsolete.
11777         * modules/strcase (Status, Notice): New sections.
11778
11779 2011-04-25  Bruno Haible  <bruno@clisp.org>
11780
11781         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11782         * modules/dup2-obsolete: New file.
11783         * m4/dup2-obsolete.m4: New file.
11784         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11785         gl_FUNC_DUP2_OBSOLETE is not also defined.
11786         * modules/dup2 (Depends-on): Add dup2-obsolete.
11787         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11788
11789 2011-04-25  Bruno Haible  <bruno@clisp.org>
11790
11791         strnlen: Avoid memchr related link error on old obsolete platforms.
11792         * modules/memchr-obsolete: New file.
11793         * m4/memchr-obsolete.m4: New file.
11794         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11795         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11796         * modules/memchr (Depends-on): Add memchr-obsolete.
11797         * modules/strnlen (Depends-on): Likewise.
11798         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11799
11800 2011-04-25  Jim Meyering  <meyering@redhat.com>
11801
11802         maint.mk: makefile_at_at_check extend and clean up
11803         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11804         in addition to */Makefile.am.
11805         Exempt legitimate uses of @VAR@ notation, e.g.,
11806         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11807         Remove obsolete coreutils-specific comment.
11808         Prompted by discussion here:
11809         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11810
11811 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11812
11813         strtoul: remove dependency on strtol
11814         This is so that 'configure' need not check for strtol merely because
11815         the application needs strtoul.
11816         * modules/strtoul (Files): Add lib/strtol.c.
11817         (Depends-on): Remove strtol.
11818
11819         strtoull: remove dependency on strtoul
11820         This is like the strtoll change.
11821         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11822         (Depends-on): Remove strtoul.
11823
11824         strtoll: remove dependency on strtol
11825         This is so that 'configure' need not check for strtol merely because
11826         the application needs strtoll.
11827         * modules/strtoll (Files): Add lib/strtol.c.
11828         (Depends-on): Remove strtol.
11829
11830 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11831
11832         inttypes: Move some configure check to module 'imaxdiv'.
11833         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11834         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11835         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11836
11837 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11838
11839         inttypes: Move some configure check to module 'imaxabs'.
11840         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11841         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11842         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11843
11844 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11845
11846         inttypes: Remove configure tests that are not needed since 2009-12-31.
11847         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11848         gl_cv_header_working_inttypes_h.
11849
11850 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11851
11852         * modules/strnlen (Depends-on): Remove memchr.
11853         The strnlen implementation doesn't need the memchr module's fixes; see
11854         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11855
11856         strtol: remove dependency on wchar
11857         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11858         * modules/strtol (Depends-on): Remove wchar.
11859
11860 2011-04-21  Eric Blake  <eblake@redhat.com>
11861
11862         passfd: fix test regression on Linux
11863         * modules/passfd-tests (configure.ac): Correct socketpair check.
11864
11865         passfd: speed up configure and drop unused code
11866         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11867         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11868         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11869         Instead of probing at configure for unix_scm_rights_bsd44_way,
11870         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11871         check to a struct member probe.
11872         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11873         (sendfd, recvfd): Update preprocessor checks.
11874         * modules/passfd (Files): Reflect rename, and drop unused file.
11875         (Depends-on): Drop unused dependency.
11876
11877         passfd: allow compilation on mingw
11878         * modules/sys_socket (Depends-on): Add sys_uio.
11879         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11880         iovec and a minimal struct msghdr.
11881         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11882         * tests/test-sys_socket.c (main): Enhance test.
11883         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11884         guaranteed to provide what we need.
11885         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11886         * modules/passfd-tests (Depends-on): Add sys_wait.
11887         * tests/test-passfd.c (main): Skip test on mingw, for now.
11888         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11889         partial 'struct msghdr' implementation.
11890
11891         sys_uio: new module
11892         * modules/sys_uio: New module.
11893         * modules/sys_uio-tests: Likewise.
11894         * lib/sys_uio.in.h: New file.
11895         * m4/sys_uio_h.m4: Likewise.
11896         * tests/test-sys_uio.c: Likewise.
11897         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11898         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11899
11900 2011-04-20  Jim Meyering  <meyering@redhat.com>
11901
11902         useless-if-before-free: avoid false-positive
11903         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11904         disjunct so that it too requires a terminating ";".  Without that,
11905         this script would identify as useless one statement from gcc that
11906         was not:
11907           if (aligned_ptr)
11908             free (((void **) aligned_ptr) [-1]);
11909
11910 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11911
11912         doc: update users.txt.
11913         * users.txt: Add barcode.
11914
11915 2011-04-19  Bruno Haible  <bruno@clisp.org>
11916
11917         ioctl: Remove link dependency on native Windows.
11918         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11919         (gl_close_fn, gl_ioctl_fn): New types.
11920         (struct fd_hook): Renamed from struct close_hook. Change type of
11921         private_close_fn field. Add private_ioctl_fn field.
11922         (close_hook_fn): Add parameter for primary close method.
11923         (execute_close_hooks, execute_all_close_hooks): Likewise.
11924         (ioctl_hook_fn): New type.
11925         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11926         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11927         argument.
11928         (unregister_fd_hook): Renamed from unregister_close_hook.
11929         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11930         Don't include <unistd.h>.
11931         (close): Remove undef.
11932         (anchor): Update.
11933         (execute_close_hooks): Add argument for primary close method.
11934         (execute_all_close_hooks): Likewise.
11935         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11936         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11937         argument. Allow each argument to be NULL.
11938         (unregister_fd_hook): Renamed from unregister_close_hook.
11939         * lib/close.c (rpl_close): Pass 'close' function pointer to
11940         execute_all_close_hooks.
11941         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11942         (primary_ioctl): New function.
11943         (ioctl): Don't call ioctlsocket here. Instead, call
11944         execute_all_ioctl_hooks.
11945         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11946         close method.
11947         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11948         (fd_sockets_hook): Renamed from close_sockets_hook.
11949         (gl_sockets_startup, gl_sockets_cleanup): Update.
11950         * modules/fd-hook: Renamed from modules/close-hook. Update.
11951         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11952         * modules/sockets (Depends-on): Likewise.
11953         * modules/ioctl (Depends-on): Add fd-hook.
11954         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11955         GNULIB_SOCKET.
11956
11957 2011-04-19  Bruno Haible  <bruno@clisp.org>
11958
11959         Move the support of O_NONBLOCK in open() to the 'open' module.
11960         * modules/nonblocking (Depends-on): Remove 'open'.
11961         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11962         gl_cv_have_open_O_NONBLOCK.
11963         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11964         O_NONBLOCK support.
11965         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11966
11967 2011-04-17  Bruno Haible  <bruno@clisp.org>
11968
11969         pipe2: Simplify code.
11970         * lib/pipe2.c (pipe2): Reduce code duplication.
11971
11972 2011-04-17  Bruno Haible  <bruno@clisp.org>
11973
11974         nonblocking: Add comment.
11975         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11976
11977 2011-04-17  Bruno Haible  <bruno@clisp.org>
11978
11979         nonblocking: Add tests for sockets.
11980         * tests/test-nonblocking-socket.sh: New file.
11981         * tests/test-nonblocking-socket-main.c: New file.
11982         * tests/test-nonblocking-socket-child.c: New file.
11983         * tests/test-nonblocking-socket.h: New file.
11984         * tests/socket-server.h: New file.
11985         * tests/socket-client.h: New file.
11986         * modules/nonblocking-socket-tests: New file.
11987         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11988
11989 2011-04-17  Bruno Haible  <bruno@clisp.org>
11990
11991         nonblocking: Add tests for pipes.
11992         * tests/test-nonblocking-pipe.sh: New file.
11993         * tests/test-nonblocking-pipe-main.c: New file.
11994         * tests/test-nonblocking-pipe-child.c: New file.
11995         * tests/test-nonblocking-pipe.h: New file.
11996         * tests/test-nonblocking-writer.h: New file.
11997         * tests/test-nonblocking-reader.h: New file.
11998         * tests/test-nonblocking-misc.h: New file.
11999         * modules/nonblocking-pipe-tests: New file.
12000         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12001
12002 2011-04-16  Bruno Haible  <bruno@clisp.org>
12003
12004         gettext: Clarify the needed programmer actions.
12005         * modules/gettext (Notice): New field.
12006         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12007
12008 2011-04-16  Bruno Haible  <bruno@clisp.org>
12009
12010         strchrnul: Tweak last commit.
12011         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12012         bug.
12013         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12014         as in _GL_FUNCDECL_SYS.
12015         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12016         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12017
12018 2011-04-15  Eric Blake  <eblake@redhat.com>
12019
12020         strchrnul: work around cygwin bug
12021         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12022         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12023         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12024         * modules/string (Makefile.am): Substitute it.
12025         * lib/string.in.h (strchrnul): Use it.
12026
12027 2011-04-15  Bruno Haible  <bruno@clisp.org>
12028
12029         Don't require lib/stdio-write.c when only module 'stdio' is used.
12030         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12031         invocation.
12032         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12033
12034 2011-04-14  Bruno Haible  <bruno@clisp.org>
12035
12036         Support non-blocking pipe I/O in read() on native Windows.
12037         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12038         (read): New declaration.
12039         * lib/read.c: New file.
12040         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12041         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12042         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12043         vscanf): New declarations.
12044         * lib/stdio-read.c: New file.
12045         * m4/read.m4: New file.
12046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12047         REPLACE_READ.
12048         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12049         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12050         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12051         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12052         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12053         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12054         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12055         * modules/read: New file.
12056         * modules/nonblocking (Files): Add lib/stdio-read.c.
12057         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12058         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12059         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12060         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12061         * modules/pread (Depends-on): Add read.
12062         * modules/safe-read (Depends-on): Likewise.
12063         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12064         gets, scanf, vfscanf, vscanf): Verify signatures.
12065         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12066         problem with non-blocking pipes.
12067         * doc/posix-functions/fgetc.texi: Likewise.
12068         * doc/posix-functions/fgets.texi: Likewise.
12069         * doc/posix-functions/fread.texi: Likewise.
12070         * doc/posix-functions/fscanf.texi: Likewise.
12071         * doc/posix-functions/getc.texi: Likewise.
12072         * doc/posix-functions/getchar.texi: Likewise.
12073         * doc/posix-functions/gets.texi: Likewise.
12074         * doc/posix-functions/scanf.texi: Likewise.
12075         * doc/posix-functions/vfscanf.texi: Likewise.
12076         * doc/posix-functions/vscanf.texi: Likewise.
12077
12078 2011-04-14  Bruno Haible  <bruno@clisp.org>
12079
12080         Support non-blocking pipe I/O in write() on native Windows.
12081         * lib/write.c (rpl_write): Split a write request that failed merely
12082         because the byte count was larger than the pipe buffer's size.
12083         * doc/posix-functions/write.texi: Mention the problem with large byte
12084         counts.
12085
12086 2011-04-14  Bruno Haible  <bruno@clisp.org>
12087
12088         wchar: Ensure that wchar_t gets defined on uClibc.
12089         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12090         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12091
12092 2011-04-13  Bruno Haible  <bruno@clisp.org>
12093
12094         safe-write, full-read: Avoid unnecessary compilation units.
12095         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12096         (Depends-on): Remove safe-read. Add ssize_t.
12097         * modules/full-read (Files): Add lib/full-write.c.
12098         (Depends-on): Add full-write.
12099
12100 2011-04-13  Bruno Haible  <bruno@clisp.org>
12101
12102         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12103         * modules/pwrite (Depends-on): Add 'write'.
12104
12105 2011-04-13  Bruno Haible  <bruno@clisp.org>
12106
12107         Support non-blocking pipe I/O in write() on native Windows.
12108         * lib/unistd.in.h (write): Enable replacement also if
12109         GNULIB_UNISTD_H_NONBLOCKING is 1.
12110         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12111         (rpl_write): When failing to write on a non-blocking pipe, change
12112         errno from ENOSPC to EAGAIN.
12113         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12114         putchar, puts, vfprintf, vprintf): Enable replacement also if
12115         GNULIB_STDIO_H_NONBLOCKING is 1.
12116         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12117         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12118         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12119         CALL_WITH_SIGPIPE_EMULATION.
12120         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12121         * m4/nonblocking.m4: New file.
12122         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12123         for non-blocking I/O support.
12124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12125         GNULIB_UNISTD_H_NONBLOCKING.
12126         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12127         required for non-blocking I/O support.
12128         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12129         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12130         lib/stdio-write.c, m4/asm-underscore.m4.
12131         (Depends-on): Add stdio, unistd.
12132         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12133         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12134         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12135         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12136         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12137         problem with non-blocking pipes.
12138         * doc/posix-functions/fputc.texi: Likewise.
12139         * doc/posix-functions/fputs.texi: Likewise.
12140         * doc/posix-functions/fwrite.texi: Likewise.
12141         * doc/posix-functions/printf.texi: Likewise.
12142         * doc/posix-functions/putc.texi: Likewise.
12143         * doc/posix-functions/putchar.texi: Likewise.
12144         * doc/posix-functions/puts.texi: Likewise.
12145         * doc/posix-functions/vfprintf.texi: Likewise.
12146         * doc/posix-functions/vprintf.texi: Likewise.
12147         * doc/posix-functions/write.texi: Likewise.
12148
12149 2011-04-10  Jim Meyering  <meyering@redhat.com>
12150
12151         maint.mk: prohibit doubled words
12152         Detect them also when they're separated by a newline.
12153         There are 3 ways to customize it:
12154           - disable the test on a per file basis, as usual with rules using
12155             $(VC_LIST_EXCEPT)
12156           - replace the default doubled-word-selecting regexp (affects all files)
12157           - ignore a particular file-vs-doubled-word match
12158         I nearly used that last one to ignore the "is is" match in
12159         coreutils' NEWS file, since the text was "ls -is is ..."
12160         To do that, I would have added this line to cfg.mk:
12161           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12162         but it would have ignored any "is is" match in NEWS.
12163         Low probability, but still...
12164         Instead, I changed the text, slightly:
12165           -  ls -is is now consistent with ls -lis in ignoring values returned
12166           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12167         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12168         (prohibit_doubled_word_): Define.
12169         (sc_prohibit_doubled_word): New rule.
12170         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12171
12172 2011-04-10  Jim Meyering  <meyering@redhat.com>
12173
12174         maint: fix doubled-word typo in comment
12175         * m4/gethostname.m4: s/is is/it is/
12176         * m4/getdomainname.m4: Likewise.
12177
12178 2011-04-10  Jim Meyering  <meyering@redhat.com>
12179
12180         maint: remove doubled word: s/it it/it/
12181         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12182
12183 2011-04-10  Jim Meyering  <meyering@redhat.com>
12184
12185         maint.mk: remove useless semicolon and backslash
12186         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12187         semicolon and backslash.
12188
12189 2011-04-10  Bruno Haible  <bruno@clisp.org>
12190
12191         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12192         * modules/stdint-tests (Depends-on): Add wchar.
12193
12194 2011-04-10  Jim Meyering  <meyering@redhat.com>
12195
12196         maint: remove doubled words in comments, e.g., s/a a/a/
12197         * lib/strptime.c (day_of_the_week): s/the the/the/
12198         * tests/test-chown.h (test_chown): s/a a/a/
12199
12200         test-chown.h: correct a cast
12201         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12202         when the destination is a stat.st_gid.
12203
12204 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12205
12206         getaddrinfo: Fix test for sa_len member.
12207         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12208         include <sys/types.h> before <sys/socket.h>.
12209
12210 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12211
12212         maint: change "can not" to "cannot"
12213         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12214         boundaries.
12215
12216 2011-04-09  Jim Meyering  <meyering@redhat.com>
12217
12218         maint: change "a a" to "a"
12219         * tests/test-lchown.h (test_lchown): s/a a/a/
12220
12221         maint.mk: prohibit \<the the\>
12222         * top/maint.mk (sc_prohibit_the_the): New rule.
12223
12224         maint: fix "the the" in comment
12225         * lib/count-one-bits.h: s/the the/the/
12226
12227         maint: change "can not" to "cannot"
12228         But do not change the occurrences in maintain.texi or in
12229         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12230         * doc/gnulib-tool.texi: s/can not/cannot/
12231         * doc/posix-functions/accept.texi (accept): Likewise.
12232         * doc/posix-functions/socket.texi (socket): Likewise.
12233         * lib/mbrtowc.c: Likewise.
12234
12235         maint.mk: prohibit use of "can not"
12236         * top/maint.mk (sc_prohibit_can_not): New rule.
12237         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12238
12239 2011-04-09  Bruno Haible  <bruno@clisp.org>
12240
12241         careadlinkat: Guard against misuse of careadlinkatcwd.
12242         * lib/careadlinkat.c: Include <stdlib.h>.
12243         (careadlinkatcwd): Check that the fd argument is as expected.
12244
12245 2011-04-09  Bruno Haible  <bruno@clisp.org>
12246
12247         careadlinkat: Use common coding style.
12248         * lib/careadlinkat.c: Move gnulib includes after system includes.
12249
12250 2011-04-09  Bruno Haible  <bruno@clisp.org>
12251
12252         careadlinkat: Clarify specification.
12253         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12254         (careadlinkatcwd): Add comment.
12255         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12256
12257 2011-04-09  Bruno Haible  <bruno@clisp.org>
12258
12259         areadlinkat: Avoid link error on many platforms.
12260         * modules/areadlinkat (Depends-on): Add areadlink.
12261
12262 2011-04-09  Bruno Haible  <bruno@clisp.org>
12263
12264         allocator, careadlinkat: Fix double-inclusion guard.
12265         * lib/allocator.h: Fix double-inclusion guard.
12266         * lib/careadlinkat.h: Likewise.
12267
12268 2011-04-09  Bruno Haible  <bruno@clisp.org>
12269
12270         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12271         * lib/relocwrapper.c: Update dependencies hierarchy.
12272         * build-aux/install-reloc: Update list of files to be compiled.
12273         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12274         lib/allocator.[hc].
12275
12276 2011-04-08  Eric Blake  <eblake@redhat.com>
12277
12278         strftime: silence gnulib-tool warning
12279         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12280
12281 2011-04-08  Bruno Haible  <bruno@clisp.org>
12282
12283         verify: Fix syntax error with GCC 4.6 in C++ mode.
12284         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12285         (HAVE_STATIC_ASSERT): New macro.
12286         (verify_true, verify): Use 'static_assert' if it is supported and
12287         '_Static_assert' is not supported.
12288
12289 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12290
12291         allocator: New module.
12292         * modules/allocator, lib/allocator.c: New files.
12293         * lib/allocator.h (stdlib_allocator): New decl.
12294         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12295         Remove.  Do not include <stdlib.h>.
12296         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12297         * modules/careadlinkat (Files): Remove lib/allocator.h.
12298         (Depends-on): Add allocator.
12299
12300         stdlib: let modules use system malloc, realloc
12301         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12302         if !_GL_USE_STDLIB_ALLOC.
12303         (malloc, realloc): Limit this change to a smaller scope.
12304
12305         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12306         (malloc, realloc): Don't #undef; no longer needed.
12307         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12308         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12309         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12310         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12311         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12312         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12313         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12314         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12315
12316         careadlinkat: rename members to avoid problem
12317         * lib/allocator.h (struct allocator): Rename members from
12318         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12319         and realloc are #define'd.  Reported by Eric Blake in
12320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12321         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12322
12323 2011-04-08  Eric Blake  <eblake@redhat.com>
12324
12325         nonblocking: reduce dependency
12326         * tests/test-nonblocking.c: Only test sockets when in use.
12327         * modules/nonblocking-tests (Depends-on): Drop socket.
12328         (Makefile.am): Link even if sockets are not present.
12329         * modules/pipe2-tests (Makefile.am): Likewise.
12330         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12331
12332         pipe2: fix O_NONBLOCK support on mingw
12333         * modules/pipe2 (Depends-on): Add nonblocking.
12334         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12335         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12336         * tests/test-nonblocking.c (main): Likewise.
12337         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12338
12339         fcntl-h: fix O_ACCMODE on cygwin
12340         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12341         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12342
12343         pipe-filter: drop O_NONBLOCK workarounds
12344         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12345         * modules/pipe-filter-ii (Depends-on): Likewise.
12346         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12347
12348         nonblocking: provide O_NONBLOCK for mingw
12349         * modules/nonblocking (Depends-on): Add open.
12350         (configure.ac): Set new witness macro.
12351         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12352         * modules/fcntl-h (Makefile.am): Substitute it.
12353         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12354         nonblocking module is in use.
12355         * lib/nonblocking.c: Adjust portability test.
12356         * lib/open.c (open): Don't let native open see gnulib flag.
12357         * tests/test-fcntl-h.c (main): Enhance test.
12358         * tests/test-open.h (test_open): Likewise.
12359         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12360
12361         careadlinkat: fix compilation error on mingw
12362         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12363         within struct allocator.
12364
12365 2011-04-06  Eric Blake  <eblake@redhat.com>
12366
12367         binary-io: relicense under LGPLv2+
12368         * modules/binary-io (License): Relax to LGPLv2+.
12369         Requested for libvirt, and required by pipe2.
12370
12371 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12372
12373         verify: use _Static_assert if available
12374         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12375         (verify_true, verify): Use it if available.  This generates better
12376         diagnostics with GCC 4.6.0 and later.
12377
12378 2011-04-05  Bruno Haible  <bruno@clisp.org>
12379
12380         Remove leftover generated .h files after config.status changed.
12381
12382         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12383         GL_GENERATE_ALLOCA_H.
12384         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12385         GL_GENERATE_ALLOCA_H evaluates to false.
12386
12387         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12388         GL_GENERATE_ARGZ_H.
12389         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12390         evaluates to false.
12391
12392         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12393         GL_GENERATE_BYTESWAP_H.
12394         * modules/byteswap (Makefile.am): Remove byteswap.h if
12395         GL_GENERATE_BYTESWAP_H evaluates to false.
12396
12397         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12398         GL_GENERATE_ERRNO_H.
12399         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12400         evaluates to false.
12401
12402         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12403         GL_GENERATE_FLOAT_H.
12404         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12405         evaluates to false.
12406
12407         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12408         GL_GENERATE_FNMATCH_H.
12409         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12410         GL_GENERATE_FNMATCH_H evaluates to false.
12411
12412         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12413         GL_GENERATE_GLOB_H.
12414         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12415         evaluates to false.
12416
12417         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12418         automake conditional GL_GENERATE_ICONV_H.
12419         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12420         evaluates to false.
12421
12422         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12423         GL_GENERATE_NETINET_IN_H.
12424         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12425         GL_GENERATE_NETINET_IN_H evaluates to false.
12426
12427         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12428         conditional GL_GENERATE_PTHREAD_H.
12429         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12430         * modules/pthread (Makefile.am): Remove pthread.h if
12431         GL_GENERATE_PTHREAD_H evaluates to false.
12432
12433         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12434         GL_GENERATE_SCHED_H.
12435         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12436         evaluates to false.
12437
12438         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12439         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12440         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12441         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12442
12443         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12444         GL_GENERATE_STDARG_H.
12445         * modules/stdarg (Makefile.am): Remove stdarg.h if
12446         GL_GENERATE_STDARG_H evaluates to false.
12447
12448         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12449         GL_GENERATE_STDBOOL_H.
12450         * modules/stdbool (Makefile.am): Remove stdbool.h if
12451         GL_GENERATE_STDBOOL_H evaluates to false.
12452
12453         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12454         conditional GL_GENERATE_STDDEF_H.
12455         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12456         * modules/stddef (Makefile.am): Remove stddef.h if
12457         GL_GENERATE_STDDEF_H evaluates to false.
12458
12459         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12460         GL_GENERATE_STDINT_H.
12461         * modules/stdint (Makefile.am): Remove stdint.h if
12462         GL_GENERATE_STDINT_H evaluates to false.
12463
12464         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12465         GL_GENERATE_SYSEXITS_H.
12466         * modules/sysexits (Makefile.am): Remove sysexits.h if
12467         GL_GENERATE_SYSEXITS_H evaluates to false.
12468
12469         Reported by Karl Berry and Ralf Wildenhues.
12470
12471 2011-04-05  Bruno Haible  <bruno@clisp.org>
12472
12473         Ensure to rebuild generated .h files when config.status has changed.
12474         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12475         config.status.
12476         * modules/ctype (Makefile.am): Likewise.
12477         * modules/dirent (Makefile.am): Likewise.
12478         * modules/errno (Makefile.am): Likewise.
12479         * modules/fcntl-h (Makefile.am): Likewise.
12480         * modules/float (Makefile.am): Likewise.
12481         * modules/getopt-posix (Makefile.am): Likewise.
12482         * modules/glob (Makefile.am): Likewise.
12483         * modules/iconv-h (Makefile.am): Likewise.
12484         * modules/inttypes (Makefile.am): Likewise.
12485         * modules/langinfo (Makefile.am): Likewise.
12486         * modules/locale (Makefile.am): Likewise.
12487         * modules/math (Makefile.am): Likewise.
12488         * modules/netdb (Makefile.am): Likewise.
12489         * modules/netinet_in (Makefile.am): Likewise.
12490         * modules/poll-h (Makefile.am): Likewise.
12491         * modules/pthread (Makefile.am): Likewise.
12492         * modules/pty (Makefile.am): Likewise.
12493         * modules/sched (Makefile.am): Likewise.
12494         * modules/search (Makefile.am): Likewise.
12495         * modules/selinux-h (Makefile.am): Likewise.
12496         * modules/signal (Makefile.am): Likewise.
12497         * modules/spawn (Makefile.am): Likewise.
12498         * modules/stdarg (Makefile.am): Likewise.
12499         * modules/stdbool (Makefile.am): Likewise.
12500         * modules/stddef (Makefile.am): Likewise.
12501         * modules/stdint (Makefile.am): Likewise.
12502         * modules/stdio (Makefile.am): Likewise.
12503         * modules/stdlib (Makefile.am): Likewise.
12504         * modules/string (Makefile.am): Likewise.
12505         * modules/strings (Makefile.am): Likewise.
12506         * modules/sys_file (Makefile.am): Likewise.
12507         * modules/sys_ioctl (Makefile.am): Likewise.
12508         * modules/sys_select (Makefile.am): Likewise.
12509         * modules/sys_socket (Makefile.am): Likewise.
12510         * modules/sys_stat (Makefile.am): Likewise.
12511         * modules/sys_time (Makefile.am): Likewise.
12512         * modules/sys_times (Makefile.am): Likewise.
12513         * modules/sys_utsname (Makefile.am): Likewise.
12514         * modules/sys_wait (Makefile.am): Likewise.
12515         * modules/sysexits (Makefile.am): Likewise.
12516         * modules/termios (Makefile.am): Likewise.
12517         * modules/time (Makefile.am): Likewise.
12518         * modules/unistd (Makefile.am): Likewise.
12519         * modules/wchar (Makefile.am): Likewise.
12520         * modules/wctype-h (Makefile.am): Likewise.
12521         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12522
12523 2011-04-05  Bruno Haible  <bruno@clisp.org>
12524
12525         pipe2: Relicense under LGPLv2+.
12526         * modules/pipe2 (License): Change to LGPLv2+.
12527         Requested by Eric Blake, for libvirt.
12528
12529 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12530
12531         bootstrap: compute gnulib_extra_files after updating build_aux
12532         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12533         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12534
12535 2011-04-05  Eric Blake  <eblake@redhat.com>
12536
12537         bootstrap: preserve git whitelist item sorting
12538         * build-aux/bootstrap (sort_patterns): New function.
12539         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12540
12541 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12542
12543         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12544         sc_space_tab check.
12545
12546 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12547
12548         areadlink, areadlinkat: rewrite in terms of careadlinkat
12549         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12550         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12551         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12552         (malloc, realloc): Remove #undefs.
12553         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12554         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12555         readlink, ssize_t, stdint, unistd.
12556         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12557         areadlink, stdint.
12558
12559         careadlinkat: new module
12560         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12561         * modules/careadlinkat: New files, written by me with
12562         a review and feedback from Ben Pfaff in
12563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12564
12565 2011-04-01  Bruno Haible  <bruno@clisp.org>
12566
12567         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12568         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12569         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12570         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12571         Reported by Bruce Korb <bruce.korb@gmail.com>.
12572
12573 2011-04-01  Bruno Haible  <bruno@clisp.org>
12574
12575         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12576         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12577         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12578         * modules/wcpcpy (Depends-on): Add extensions.
12579         * modules/wcpncpy (Depends-on): Likewise.
12580         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12581         systems.
12582         * doc/posix-functions/wcpncpy.texi: Likewise.
12583         * doc/posix-functions/wcwidth.texi: Likewise.
12584
12585 2011-03-31  Eric Blake  <eblake@redhat.com>
12586
12587         nonblocking: fix mingw test failures
12588         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12589         non-blocking flag on regular file.
12590         (get_nonblocking_flag): Set errno on invalid fd.
12591         * tests/test-nonblocking.c (main): Avoid test failure on
12592         directories if fchdir is not active.
12593         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12594
12595 2011-03-31  Bruno Haible  <bruno@clisp.org>
12596
12597         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12598         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12599         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12600         Reported by Simon Josefsson <simon@josefsson.org>.
12601
12602 2011-03-31  Bruno Haible  <bruno@clisp.org>
12603         and Eric Blake  <eblake@redhat.com>
12604
12605         nonblocking: new module
12606         * modules/nonblocking: New module.
12607         * modules/nonblocking-tests: Likewise.
12608         * lib/nonblocking.h: New file.
12609         * lib/nonblocking.c: Likewise.
12610         * tests/test-nonblocking.c: New test.
12611         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12612
12613 2011-03-30  Bruno Haible  <bruno@clisp.org>
12614
12615         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12616         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12617         instead of 'printf' format for GCC >= 4.4.
12618         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12619         (fprintf, printf, vfprintf, vprintf): Declare with
12620         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12621         the system's vfprintf() function.
12622         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12623
12624 2011-03-30  Eric Blake  <eblake@redhat.com>
12625
12626         passfd: fix scoping bug
12627         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12628         before sendmsg/recvmsg.
12629
12630         passfd: standardize coding conventions
12631         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12632         can be learned at compile time.
12633         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12634         ifdefs.
12635         (sendfd, recvfd): Follow gnulib code conventions.
12636
12637         passfd: fix incorrect sendmsg arguments
12638         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12639         incorrect msg_controllen value.
12640         * modules/passfd-tests (Depends-on): Check for alarm.
12641         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12642         Reported by Bastien ROUCARIES.
12643
12644 2011-03-30  Bruno Haible  <bruno@clisp.org>
12645
12646         c-strcasestr: Relicense under LGPLv2+.
12647         * modules/c-strcasestr (License): Change to LGPLv2+.
12648         Requested by Eric Blake, for libvirt.
12649
12650 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12651
12652         * users.txt: Add libidn2.  Fix libtasn1 link.
12653
12654 2011-03-30  Jim Meyering  <meyering@redhat.com>
12655
12656         tests: readlink* ("",... fails with EINVAL on newer kernels
12657         readlink and readlinkat have typically failed with ENOENT for
12658         the invalid, empty file name,  "".  However, with the advent
12659         of linux-2.6.39, they fail with EINVAL.
12660         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12661         when operating on the empty file name.
12662         * tests/test-readlink.h (test_readlink): Likewise.
12663
12664 2011-03-29  Bruno Haible  <bruno@clisp.org>
12665
12666         Relicense some modules under LGPLv2+, for libidn2.
12667         * modules/array-mergesort (License): Change to LGPLv2+.
12668         * modules/c-strcaseeq (License): Likewise.
12669         * modules/striconveh (License): Likewise.
12670         * modules/striconveha (License): Likewise.
12671         * modules/uniconv/base (License): Likewise.
12672         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12673         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12674         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12675         * modules/unictype/base (License): Likewise.
12676         * modules/unictype/bidiclass-of (License): Likewise.
12677         * modules/unictype/category-M (License): Likewise.
12678         * modules/unictype/category-none (License): Likewise.
12679         * modules/unictype/category-of (License): Likewise.
12680         * modules/unictype/category-test (License): Likewise.
12681         * modules/unictype/category-test-withtable (License): Likewise.
12682         * modules/unictype/combining-class (License): Likewise.
12683         * modules/unictype/joiningtype-of (License): Likewise.
12684         * modules/unictype/scripts (License): Likewise.
12685         * modules/uninorm/base (License): Likewise.
12686         * modules/uninorm/canonical-decomposition (License): Likewise.
12687         * modules/uninorm/composition (License): Likewise.
12688         * modules/uninorm/decompose-internal (License): Likewise.
12689         * modules/uninorm/decomposition-table (License): Likewise.
12690         * modules/uninorm/nfc (License): Likewise.
12691         * modules/uninorm/nfd (License): Likewise.
12692         * modules/uninorm/u32-normalize (License): Likewise.
12693         * modules/unistr/base (License): Likewise.
12694         * modules/unistr/u32-cpy (License): Likewise.
12695         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12696         * modules/unistr/u32-to-u8 (License): Likewise.
12697         * modules/unistr/u32-uctomb (License): Likewise.
12698         * modules/unistr/u8-check (License): Likewise.
12699         * modules/unistr/u8-mblen (License): Likewise.
12700         * modules/unistr/u8-mbtouc (License): Likewise.
12701         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12702         * modules/unistr/u8-mbtoucr (License): Likewise.
12703         * modules/unistr/u8-prev (License): Likewise.
12704         * modules/unistr/u8-strlen (License): Likewise.
12705         * modules/unistr/u8-to-u32 (License): Likewise.
12706         * modules/unistr/u8-uctomb (License): Likewise.
12707         * modules/unitypes (License): Likewise.
12708         Requested by Simon Josefsson.
12709
12710 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12711
12712         lib-symbol-visibility: Add a notice.
12713         * modules/lib-symbol-visibility (Notice): New field.
12714
12715 2011-03-29  Bruno Haible  <bruno@clisp.org>
12716
12717         getaddrinfo: Doc fix.
12718         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12719         section "fixed in Gnulib".
12720
12721 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12722
12723         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12724         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12725
12726 2011-03-26  Bruno Haible  <bruno@clisp.org>
12727
12728         unictype/property-byname: Reduce the number of load-time relocations.
12729         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12730         (UC_PROPERTY_INDEX_*): New enumeration values.
12731         (uc_property_byname): Convert an index from the lookup table to an
12732         uc_property_t.
12733         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12734         values.
12735
12736 2011-03-26  Bruno Haible  <bruno@clisp.org>
12737
12738         unictype/property-byname: Allow omitted word separators and aliases.
12739         * lib/unictype/pr_byname.gperf: Add property names without word
12740         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12741         for 'space'.
12742
12743 2011-03-26  Bruno Haible  <bruno@clisp.org>
12744
12745         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12746         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12747         also hyphens to space.
12748         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12749         without spaces.
12750         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12751
12752 2011-03-26  Bruno Haible  <bruno@clisp.org>
12753
12754         unictype/joiningtype-byname: Recognize long names as well.
12755         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12756         a long name.
12757         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12758         unictype/joiningtype_byname.h.
12759         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12760         * lib/unictype/joiningtype_byname.gperf: New file.
12761         * modules/unictype/joiningtype-byname (Files): Add
12762         lib/unictype/joiningtype_byname.gperf.
12763         (Depends-on): Add gperf.
12764         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12765         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12766         long names.
12767
12768         Tests for module 'unictype/joiningtype-longname'.
12769         * modules/unictype/joiningtype-longname-tests: New file.
12770         * tests/unictype/test-joiningtype_longname.c: New file.
12771
12772         New module 'unictype/joiningtype-longname'.
12773         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12774         * lib/unictype/joiningtype_longname.c: New file.
12775         * modules/unictype/joiningtype-longname: New file.
12776         * modules/unictype/joiningtype-all (Depends-on): Add
12777         unictype/joiningtype-longname.
12778
12779 2011-03-26  Bruno Haible  <bruno@clisp.org>
12780
12781         unictype/bidiclass-byname: Recognize long names as well.
12782         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12783         name.
12784         * lib/unictype/bidi_byname.c: Include <string.h>,
12785         unictype/bidi_byname.h.
12786         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12787         * lib/unictype/bidi_byname.gperf: New file.
12788         * modules/unictype/bidiclass-byname (Files): Add
12789         lib/unictype/bidi_byname.gperf.
12790         (Depends-on): Add gperf.
12791         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12792         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12793         long names.
12794
12795         Tests for module 'unictype/bidiclass-longname'.
12796         * modules/unictype/bidiclass-longname-tests: New file.
12797         * tests/unictype/test-bidi_longname.c: New file.
12798
12799         New module 'unictype/bidiclass-longname'.
12800         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12801         * lib/unictype/bidi_longname.c: New file.
12802         * modules/unictype/bidiclass-longname: New file.
12803         * modules/unictype/bidiclass-all (Depends-on): Add
12804         unictype/bidiclass-longname.
12805
12806 2011-03-26  Bruno Haible  <bruno@clisp.org>
12807
12808         unictype/bidi*: Rename modules.
12809         * modules/unictype/bidiclass-all: Renamed from
12810         modules/unictype/bidicategory-all.
12811         * modules/unictype/bidiclass-name: Renamed from
12812         modules/unictype/bidiclass-name.
12813         (Description): Update.
12814         * modules/unictype/bidiclass-name-tests: Renamed from
12815         modules/unictype/bidicategory-name-tests.
12816         * modules/unictype/bidiclass-byname: Renamed from
12817         modules/unictype/bidicategory-byname.
12818         (Description): Update.
12819         * modules/unictype/bidiclass-byname-tests: Renamed from
12820         modules/unictype/bidicategory-byname-tests.
12821         * modules/unictype/bidiclass-of: Renamed from
12822         modules/unictype/bidicategory-of.
12823         (Description): Update.
12824         * modules/unictype/bidiclass-of-tests: Renamed from
12825         modules/unictype/bidicategory-of-tests.
12826         * modules/unictype/bidiclass-test: Renamed from
12827         modules/unictype/bidicategory-test.
12828         (Description): Update.
12829         * modules/unictype/bidiclass-test-tests: Renamed from
12830         modules/unictype/bidicategory-test-tests.
12831         * modules/unictype/bidicategory-all: New file, a simple redirection.
12832         * modules/unictype/bidicategory-name: Likewise.
12833         * modules/unictype/bidicategory-byname: Likewise.
12834         * modules/unictype/bidicategory-of: Likewise.
12835         * modules/unictype/bidicategory-test: Likewise.
12836         * modules/unictype/property-bidi-* (Dependencies): Update.
12837         * lib/unictype/bidi_*.c: Update comment.
12838
12839 2011-03-26  Bruno Haible  <bruno@clisp.org>
12840
12841         unictype/bidi*: Rename functions, part 2.
12842         * modules/unictype/bidicategory-name (configure.ac): Update required
12843         libunistring version.
12844         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12845
12846 2011-03-25  Bruno Haible  <bruno@clisp.org>
12847
12848         New module 'unictype/combining-class-all'.
12849         * modules/unictype/combining-class-all: New file.
12850
12851         Tests for module 'unictype/combining-class-byname'.
12852         * modules/unictype/combining-class-byname-tests: New file.
12853         * tests/unictype/test-combiningclass_byname.c: New file.
12854
12855         New module 'unictype/combining-class-byname'.
12856         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12857         * lib/unictype/combiningclass_byname.c: New file.
12858         * lib/unictype/combiningclass_byname.gperf: New file.
12859         * modules/unictype/combining-class-byname: New file.
12860
12861         Tests for module 'unictype/combining-class-longname'.
12862         * modules/unictype/combining-class-longname-tests: New file.
12863         * tests/unictype/test-combiningclass_longname.c: New file.
12864
12865         New module 'unictype/combining-class-longname'.
12866         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12867         * lib/unictype/combiningclass_longname.c: New file.
12868         * modules/unictype/combining-class-longname: New file.
12869
12870         Tests for module 'unictype/combining-class-name'.
12871         * modules/unictype/combining-class-name-tests: New file.
12872         * tests/unictype/test-combiningclass_name.c: New file.
12873
12874         New module 'unictype/combining-class-name'.
12875         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12876         * lib/unictype/combiningclass_name.c: New file.
12877         * modules/unictype/combining-class-name: New file.
12878
12879 2011-03-25  Bruno Haible  <bruno@clisp.org>
12880
12881         unictype/combining-class: Rename source files.
12882         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12883         of unictype/combining.h.
12884         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12885         Update.
12886         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12887         * modules/unictype/combining-class (Description): Fix.
12888         (Files, Makefile.am): Update.
12889         * tests/unictype/test-combiningclass.c: Renamed from
12890         tests/unictype/test-combining.c.
12891         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12892
12893 2011-03-25  Bruno Haible  <bruno@clisp.org>
12894
12895         unictype: Update list of canonical combining classes.
12896         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12897
12898 2011-03-25  Bruno Haible  <bruno@clisp.org>
12899
12900         unictype/category-byname: Recognize long names as well.
12901         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12902         a long name.
12903         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12904         unictype/categ_byname.h.
12905         (UC_CATEGORY_INDEX_*): New enumeration values.
12906         (uc_general_category_byname): Use uc_general_category_lookup and
12907         convert from index to value.
12908         * lib/unictype/categ_byname.gperf: New file.
12909         * modules/unictype/category-byname (Files): Add
12910         lib/unictype/categ_byname.gperf.
12911         (Depends-on): Add gperf.
12912         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12913         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12914         long names.
12915
12916         Tests for module 'unictype/category-longname'.
12917         * modules/unictype/category-longname-tests: New file.
12918         * tests/unictype/test-categ_longname.c: New file.
12919
12920         New module 'unictype/category-longname'.
12921         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12922         * lib/unictype/categ_longname.c: New file.
12923         * modules/unictype/category-longname: New file.
12924         * modules/unictype/category-all (Depends-on): Add it.
12925
12926 2011-03-25  Bruno Haible  <bruno@clisp.org>
12927
12928         Tests for module 'unictype/category-LC'.
12929         * modules/unictype/category-LC-tests: New file.
12930         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12931
12932         New module 'unictype/category-LC'.
12933         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12934         (UC_CATEGORY_LC): New declaration.
12935         (UC_CASED_LETTER): New macro.
12936         * lib/gen-uni-tables.c (is_category_LC): New function.
12937         (output_categories): Also handle category LC.
12938         (UC_CATEGORY_MASK_LC): New enumeration value.
12939         (general_category_byname): Also handle category LC.
12940         * lib/unictype/categ_LC.c: New file.
12941         * lib/unictype/categ_LC.h: New file, automatically generated.
12942         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12943         category LC.
12944         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12945         * modules/unictype/category-LC: New file.
12946         * modules/unictype/category-byname (Depends-on): Add
12947         unictype/category-LC.
12948         * modules/unictype/category-all (Depends-on): Likewise.
12949
12950 2011-03-25  Eric Blake  <eblake@redhat.com>
12951
12952         xmalloc: revert yesterday's regression
12953         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12954         realloc's underlying behavior (allowing allocation of zero-size
12955         objects, especially if malloc-gnu is also in use).
12956
12957 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12958
12959         maint.mk: add missing version to VC-tag
12960         * top/maint.mk: git tag was missing actual tag name; add it.
12961
12962         valgrind: do leak checking, and exit with code 1 on error (not 0)
12963         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12964         to VALGRIND.
12965
12966 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12967
12968         posix-modules: say what it does.
12969         * posix-modules: Add a line to the --help output saying what it does.
12970
12971 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12972
12973         xmalloc: Do not leak if underlying realloc is C99 compatible.
12974         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12975         This avoids a leak on C99-based systems.  See
12976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12977
12978 2011-03-24  Eric Blake  <eblake@redhat.com>
12979
12980         realloc: document portability problem
12981         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12982         passing 0 size to realloc.
12983
12984 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12985
12986         doc: update users.txt
12987         * users.txt: Add cvsps, tmpwatch
12988
12989 2011-03-23  Matt Rice  <ratmice@gmail.com>
12990
12991         doc: update users.txt
12992         * users.txt: Add gdb.
12993
12994 2011-03-23  Jim Meyering  <meyering@redhat.com>
12995
12996         doc: update users.txt
12997         Looking through matches up to the following URL (there are still
12998         several more pages), I found several projects that use gnulib:
12999         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13000         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13001         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13002
13003 2011-03-22  Bruno Haible  <bruno@clisp.org>
13004
13005         unictype/bidi*: Rename functions.
13006         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13007         uc_bidi_class, uc_is_bidi_class): New declarations.
13008         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13009         uc_bidi_category_byname.
13010         (uc_bidi_category_byname): New function.
13011         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13012         u_bidi_category_name.
13013         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13014         (uc_bidi_category_name): New function.
13015         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13016         uc_bidi_category.
13017         (uc_bidi_category): New function.
13018         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13019         uc_is_bidi_category. Invoke uc_bidi_class.
13020         (uc_is_bidi_category): New function.
13021         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13022         instead of uc_bidi_category_byname.
13023         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13024         instead of uc_bidi_category_name.
13025         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13026         uc_bidi_category.
13027         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13028         instead of uc_is_bidi_category.
13029
13030 2011-03-21  Bruno Haible  <bruno@clisp.org>
13031
13032         New module 'unictype/joininggroup-all'.
13033         * modules/unictype/joininggroup-all: New file.
13034
13035         Tests for module 'unictype/joininggroup-of'.
13036         * modules/unictype/joininggroup-of-tests: New file.
13037         * tests/unictype/test-joininggroup_of.c: New file.
13038         * tests/unictype/test-joininggroup_of.h: New file, automatically
13039         generated by gen-uni-tables.
13040
13041         New module 'unictype/joininggroup-of'.
13042         * modules/unictype/joininggroup-of: New file.
13043         * lib/unictype/joininggroup_of.c: New file.
13044         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13045         gen-uni-tables.
13046
13047         Tests for module 'unictype/joininggroup-byname'.
13048         * modules/unictype/joininggroup-byname-tests: New file.
13049         * tests/unictype/test-joininggroup_byname.c: New file.
13050
13051         New module 'unictype/joininggroup-byname'.
13052         * modules/unictype/joininggroup-byname: New file.
13053         * lib/unictype/joininggroup_byname.c: New file.
13054         * lib/unictype/joininggroup_byname.gperf: New file.
13055
13056         Tests for module 'unictype/joininggroup-name'.
13057         * modules/unictype/joininggroup-name-tests: New file.
13058         * tests/unictype/test-joininggroup_name.c: New file.
13059
13060         New module 'unictype/joininggroup-name'.
13061         * modules/unictype/joininggroup-name: New file.
13062         * lib/unictype/joininggroup_name.c: New file.
13063         * lib/unictype/joininggroup_name.h: New file.
13064
13065         New module 'unictype/joiningtype-all'.
13066         * modules/unictype/joiningtype-all: New file.
13067
13068         Tests for module 'unictype/joiningtype-of'.
13069         * modules/unictype/joiningtype-of-tests: New file.
13070         * tests/unictype/test-joiningtype_of.c: New file.
13071         * tests/unictype/test-joiningtype_of.h: New file, automatically
13072         generated by gen-uni-tables.
13073
13074         New module 'unictype/joiningtype-of'.
13075         * modules/unictype/joiningtype-of: New file.
13076         * lib/unictype/joiningtype_of.c: New file.
13077         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13078         gen-uni-tables.
13079
13080         Tests for module 'unictype/joiningtype-byname'.
13081         * modules/unictype/joiningtype-byname-tests: New file.
13082         * tests/unictype/test-joiningtype_byname.c: New file.
13083
13084         New module 'unictype/joiningtype-byname'.
13085         * modules/unictype/joiningtype-byname: New file.
13086         * lib/unictype/joiningtype_byname.c: New file.
13087
13088         Tests for module 'unictype/joiningtype-name'.
13089         * modules/unictype/joiningtype-name-tests: New file.
13090         * tests/unictype/test-joiningtype_name.c: New file.
13091
13092         New module 'unictype/joiningtype-name'.
13093         * modules/unictype/joiningtype-name: New file.
13094         * lib/unictype/joiningtype_name.c: New file.
13095
13096         unictype: Add support for Arabic shaping properties.
13097         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13098         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13099         declarations.
13100         (UC_JOINING_GROUP_*): New enumeration values.
13101         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13102         declarations.
13103         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13104         (unicode_joining_type): New variable.
13105         (UC_JOINING_GROUP_*): New enumeration values.
13106         (unicode_joining_group): New variable.
13107         (fill_arabicshaping, joining_type_as_c_identifier,
13108         output_joining_type_test, output_joining_type,
13109         joining_group_as_c_identifier, output_joining_group_test,
13110         output_joining_group): New functions.
13111         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13112         fill_arabicshaping and output_joining_type_test, output_joining_type,
13113         output_joining_group_test, output_joining_group.
13114         Reported by Simon Josefsson.
13115
13116 2011-03-21  Jim Meyering  <meyering@redhat.com>
13117
13118         strftime: fix a bug in yesterday's change
13119         * lib/strftime.c (add): Accommodate width's initial value of -1.
13120         Otherwise, nstrftime would copy uninitialized data into
13121         the result buffer.
13122
13123 2011-03-21  Jim Meyering  <meyering@redhat.com>
13124
13125         tests: add strftime-tests module
13126         * tests/test-strftime.c: New file.
13127         * modules/strftime-tests: New module.
13128
13129 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13130
13131         strftime: don't assume a byte count fits in 'int'
13132         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13133         found this problem by static analysis, using gcc -Wstrict-overflow
13134         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13135         on an integer overflow having undefined behavior, but it turns out
13136         that the argument is a size, which might not fit in 'int' anyway,
13137
13138 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13139
13140         stdio: don't require ignore_value around fwrite
13141
13142         This patch works around libc bug 11959
13143         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13144         Without this patch, applications must often write
13145         ignore_value (fwrite (...)) even though the ignore_value is
13146         not helpful here.  It's common to write many objects, using
13147         fwrite/printf/etc., and then use ferror to detect output error.
13148
13149         I considered making this patch optional, but decided against it,
13150         because libc is obviously being inconsistent here: there is no
13151         reason libc should insist that user code must inspect fwrite
13152         return's value without also insisting that it inspect printf's,
13153         putchar's, etc.  If user code wants to have a strict style where
13154         all these functions' values are checked (so that ferror need not
13155         be checked), we could add support for that style in a new gnulib
13156         module, but in the meantime it's better to be consistent and to
13157         support common usage.
13158
13159         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13160         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13161         that we are compiling in checking mode, and if not C++, and
13162         if not already wrapping fwrite for some other reason.
13163         (fwrite): #define to rpl_fwrite if the latter is defined.
13164
13165 2011-03-20  Bruno Haible  <bruno@clisp.org>
13166
13167         verror: Fix compilation error introduced on 2011-02-13.
13168         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13169         instead of __attribute__.
13170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13171
13172 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13173             Bruno Haible  <bruno@clisp.org>
13174
13175         socklen: do not depend on sys_socket
13176         While trying to modify Emacs to use gnulib's socklen module,
13177         I discovered a circular dependency: socklen depends on sys_socket
13178         and vice versa.  Emacs can use socklen, but it does not need
13179         sys_socket because it has its own substitute for sys/socket.h.
13180         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13181         gl_TYPE_SOCKLEN_T.
13182         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13183         gl_PREREQ_SYS_H_SOCKET.
13184         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13185         gl_PREREQ_SYS_H_SOCKET.
13186         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13187         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13188         * modules/socklen (Depends-on): Do not depend on sys_socket.
13189         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13190
13191 2011-03-20  Jim Meyering  <meyering@redhat.com>
13192
13193         maint.mk: sort file names *after* new transformation
13194         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13195         prefix would have led to an unwarranted failure in GNU parted.
13196         Sort after that transformation.
13197
13198 2011-03-19  Jim Meyering  <meyering@redhat.com>
13199
13200         maint.mk: fix po-file syntax-check rule
13201         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13202         Patch by Bruno Haible.
13203
13204 2011-03-19  Bruno Haible  <bruno@clisp.org>
13205
13206         socklen: Update comment.
13207         * m4/socklen.m4: Update comment about platforms.
13208
13209 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13210             Bruno Haible  <bruno@clisp.org>
13211
13212         inet_ntop, inet_pton: Simplify.
13213         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13214         documented to provide socklen_t and we already depend on sys_socket.
13215         * modules/inet_pton (Depends-on): Likewise.
13216         * lib/arpa_inet.in.h: Adjust comment.
13217
13218 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13219             Bruno Haible  <bruno@clisp.org>
13220
13221         netdb: Simplify.
13222         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13223         documented to provide socklen_t and we already depend on sys_socket.
13224         * lib/netdb.in.h: Adjust comment.
13225
13226 2011-03-19  Bruno Haible  <bruno@clisp.org>
13227
13228         sys_socket, netdb: Document problem with socklen_t.
13229         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13230         platforms.
13231         * doc/posix-headers/netdb.texi: Likewise.
13232
13233 2011-03-18  Eric Blake  <eblake@redhat.com>
13234
13235         maint.mk: let po check work in VPATH build
13236         * top/maint.mk (po_file): Allow cfg.mk override.
13237         (sc_po_check): Allow VPATH use.
13238         Reported by Jiri Denemark.
13239
13240 2011-03-16  Jim Meyering  <meyering@redhat.com>
13241
13242         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13243         Before, you would have had to create one .x-sc_ file per rule in order
13244         to exempt offending files.  Now, you may instead use a Make variable --
13245         usually defined in cfg.mk -- whose name identifies the affected rule.
13246         * top/maint.mk (_sc_excl): Define.
13247         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13248         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13249
13250 2011-03-13  Bruno Haible  <bruno@clisp.org>
13251
13252         ignore-value tests: Avoid warnings.
13253         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13254         empty for gcc < 3.4.
13255
13256 2011-03-13  Bruno Haible  <bruno@clisp.org>
13257
13258         passfd: Fix link error on Solaris.
13259         * modules/passfd (Description): Correct.
13260         (Depends-on): Add socketlib.
13261         (Link): New section.
13262         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13263
13264 2011-03-13  Bruno Haible  <bruno@clisp.org>
13265
13266         passfd: Fix link error on AIX 5.2.
13267         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13268
13269 2011-03-13  Bruno Haible  <bruno@clisp.org>
13270
13271         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13272         * lib/sys_socket.in.h: Include <stddef.h>.
13273         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13274         CMSG_FIRSTHDR. Remove unused variable.
13275
13276 2011-03-13  Bruno Haible  <bruno@clisp.org>
13277
13278         passfd: Fix compilation error on OpenBSD.
13279         * lib/passfd.c: Include <sys/uio.h>.
13280
13281 2011-03-13  Bruno Haible  <bruno@clisp.org>
13282
13283         passfd test: Fix warnings.
13284         * tests/test-passfd.c: Include <sys/wait.h>.
13285         (main): Fix typo.
13286
13287 2011-03-13  Bruno Haible  <bruno@clisp.org>
13288
13289         passfd module, part 4, tweaks.
13290         * tests/test-passfd.c: Reorder includes.
13291         (main): Fix perror and printf calls.
13292
13293 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13294
13295         passfd module, part 4.
13296         * modules/passfd-tests: New file.
13297         * tests/test-passfd.c: New file.
13298
13299 2011-03-13  Jim Meyering  <meyering@redhat.com>
13300
13301         Makefile: rely on GNU make; derive syntax-check rule names
13302         Rather than requiring that each sc_ rule be listed as a dependent
13303         of "check", use features of GNU make to derive the list.
13304         * Makefile (syntax-check-rules): Define.
13305         (check): Depend on the new variable, not the hard-coded list.
13306
13307 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13308             Bruno Haible  <bruno@clisp.org>
13309
13310         passfd module, part 3.
13311         * lib/passfd.h (recvfd): Add a flags argument.
13312         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13313         (recvfd): Add a flags argument.
13314         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13315         exists.
13316         * modules/passfd (Depends-on): Add cloexec.
13317         Suggested by Eric Blake.
13318
13319 2011-03-13  Bruno Haible  <bruno@clisp.org>
13320
13321         passfd module, part 2, tweaks.
13322         * modules/passfd (Files): Reorder.
13323         (Depends-on): Remove errno.
13324         (Include): Remove <sys/socket.h>, <sys/un.h>.
13325         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13326         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13327         specification header. Include <sys/socket.h> always. Don't include
13328         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13329         (sendfd): Clarify that it sets errno when it fails.
13330         (recvfd): Fix specification.
13331
13332 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13333
13334         passfd module, part 2.
13335         * modules/passfd: New file.
13336         * lib/passfd.h: New file.
13337         * lib/passfd.c: New file.
13338
13339 2011-03-12  Bruno Haible  <bruno@clisp.org>
13340
13341         wcswidth, mbswidth: Avoid integer overflow.
13342         * lib/wcswidth.c: Include <limits.h>.
13343         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13344         * lib/mbswidth.c: Include <limits.h>.
13345         (mbsnwidth): Avoid 'int' overflow.
13346         Reported by Jim Meyering.
13347
13348 2011-03-12  Bruno Haible  <bruno@clisp.org>
13349
13350         futimens, utimensat: Avoid endless recursion on Solaris 10.
13351         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13352         Solaris.
13353         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13354         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13355
13356 2011-03-11  Jim Meyering  <meyering@redhat.com>
13357
13358         maint.mk: relax a regexp to accommodate other formatting styles
13359         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13360         between "ngettext" and the following "(".
13361
13362 2011-03-11  Pádraig Brady <P@draigBrady.com>
13363
13364         maint.mk: suppress a false positive warning
13365         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13366         diagnostics are marked with ngettext.
13367
13368 2011-03-10  Eric Blake  <eblake@redhat.com>
13369
13370         wchar: add explicit dependencies, for Tru64
13371         * modules/mbmemcasecoll (Depends-on): Add wchar.
13372         * modules/mbtowc (Depends-on): Likewise.
13373         * modules/vasnprintf (Depends-on): Likewise.
13374         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13375         * modules/wctomb (Depends-on): Likewise.
13376         Reported by Peter O'Gorman.
13377
13378 2011-03-08  Bruno Haible  <bruno@clisp.org>
13379
13380         passfd module, part 1, tweaks.
13381         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13382         Improve indentation. Improve AC_MSG_CHECKING messages.
13383         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13384         gl_SOCKET_FAMILIES.
13385
13386 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13387
13388         passfd module, part 1.
13389         * m4/afunix.m4: New file.
13390         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13391         sockets.
13392
13393 2011-03-08  Bruno Haible  <bruno@clisp.org>
13394
13395         regex-quote: New API.
13396         * lib/regex-quote.h: Include <stdbool.h>.
13397         (struct regex_quote_spec): New type.
13398         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13399         New declarations.
13400         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13401         'const struct regex_quote_spec *' argument.
13402         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13403         (pcre_special): New constant.
13404         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13405         New functions.
13406         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13407         'const struct regex_quote_spec *' argument.
13408         * modules/regex-quote (Depends-on): Add stdbool.
13409         * tests/test-regex-quote.c (check): Update for new API. Add test for
13410         anchored results.
13411         * NEWS: Mention the API change.
13412         Reported by Reuben Thomas and Eric Blake.
13413
13414 2011-03-06  Bruno Haible  <bruno@clisp.org>
13415
13416         regex-quote: Fix creation of POSIX extended regular expressions.
13417         * lib/regex-quote.c (ere_special): Add grouping and alternation
13418         operators.
13419
13420 2011-03-05  Bruno Haible  <bruno@clisp.org>
13421
13422         doc: Improve doc regarding autopoint vs. gnulib.
13423         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13424         disable autopoint while running autoreconf.
13425         Suggested by Ralf Wildenhues.
13426
13427 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13428
13429         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13430         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13431
13432 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13433
13434         parse-duration: remove xalloc.h dependency
13435         * lib/parse-duration.c (parse_period): handle NULL return from
13436         strdup instead of calling xstrdup().
13437         * modules/parse-duration: remove "xalloc" dependency
13438
13439 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13440
13441         bootstrap: honor m4_base when running aclocal
13442         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13443
13444 2011-03-02  Jim Meyering  <meyering@redhat.com>
13445
13446         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13447         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13448         on request from Matt Booth.
13449
13450 2011-03-01  Eric Blake  <eblake@redhat.com>
13451
13452         test-link: work on Hurd
13453         * tests/test-link.h (test_link): Hurd rejects linking directories
13454         with EISDIR instead of the POSIX-mandated EPERM.
13455
13456 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13457
13458         stdio: simplify by moving files to printf-posix, sigpipe
13459         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13460         since this symbol is needed only if printf is replaced.
13461         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13462         Require gl_ASM_SYMBOL_PREFIX.
13463         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13464         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13465         (Depends-on): Add 'raise'.
13466         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13467         * modules/stdio (Files): Remove lib/stdio-write.c,
13468         m4/asm-underscore.m4.
13469         (Depends-on): Remove 'raise'.
13470
13471         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13472         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13473         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13474         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13475
13476 2011-02-28  Bruno Haible  <bruno@clisp.org>
13477
13478         localcharset: Assume ANSI C behaviour of free().
13479         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13480         calling free().
13481         Suggested by Simon Josefsson <simon@josefsson.org>.
13482
13483 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13484             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13485             Bruno Haible  <bruno@clisp.org>  (tiny change)
13486
13487         On Cygwin, use /proc file system instead of win32 API.
13488         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13489         Win32 file names.
13490         (DllMain): Simplify by removing Cygwin specific code.
13491         (find_shared_library_fullname): Use Linux specific implementation also
13492         for Cygwin.
13493         (get_shared_library_fullname): Update accordingly.
13494         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13495         Win32 file names.
13496         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13497         Cygwin specific code.
13498
13499 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13500             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13501
13502         Fix OpenMP flag detection for various Fortran compilers.
13503         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13504         OpenMP-conditional compilation construct, to force compile
13505         failure with missing OpenMP flag.
13506         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13507
13508 2011-02-25  Eric Blake  <eblake@redhat.com>
13509
13510         strstr: expand test coverage
13511         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13512         compilation.
13513         * tests/test-memmem.c (main): Duplicate tests.
13514         * tests/test-strcasestr.c (main): Likewise.
13515         * tests/test-c-strcasestr.c (main): Likewise.
13516
13517 2011-02-25  Jim Meyering  <meyering@redhat.com>
13518
13519         maint.mk: detect missing-NL-at-EOF, too
13520         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13521         it also detects when a file lacks a newline at EOF.
13522         (require_exactly_one_NL_at_EOF_): Renamed from
13523         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13524         since people may well have .x-sc_... file names tied to the
13525         existing name.  Suggested by Eric Blake.
13526
13527 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13528
13529         dirname: move m4/dos.m4 functionality into lib/dosname.h
13530
13531         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13532         extracts symbols from it, puts them into config.h; but it's much
13533         easier to use the symbols directly.  filename.h already does this,
13534         but it disagrees with dos.m4 in some respects.  This patch
13535         introduces a different include file dosname.h that packages up
13536         dos.m4, and then later we can work on merging filename.h and
13537         dosname.h.  Applications that need only the easy-to-configure
13538         symbols should consider including dosname.h rather than dirname.h.
13539         * NEWS: Mention incompatible changes.
13540         * m4/dos.m4: Remove.
13541         * lib/dosname.h, modules/dosname: New files.
13542         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13543         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13544         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13545         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13546         Include dosname.h, not dirname.h.
13547         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13548         Include dosname.h, for definitions of symbols like ISSLASH
13549         that used to be in config.h.
13550         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13551         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13552         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13553         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13554         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13555         * modules/rmdir (Files): Likewise.
13556         * modules/stat (Files): Likewise.
13557         * modules/unlink (Files): Likewise.
13558         * modules/dirname-lgpl (Depends-on): Add dosname.
13559         * modules/lstat (Depends-on): Likewise.
13560         * modules/openat (Depends-on): Likewise.
13561         * modules/rmdir (Depends-on): Likewise.
13562         * modules/savewd (Depends-on): Likewise.
13563         * modules/stat (Depends-on): Likewise.
13564         * modules/unlink (Depends-on): Likewise.
13565         * modules/openat (Depends-on): Remove dirname-lgpl.
13566         * modules/savewd (Depends-on): Likewise.
13567         * tests/test-dirname.c: Do not use removed symbols like
13568         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13569         the remaining symbols, e.g., ISSLASH ('\\').
13570
13571 2011-02-25  Eric Blake  <eblake@redhat.com>
13572
13573         strstr: revert patches that introduced bug and pessimization
13574         * lib/str-two-way.h: Add another reference.
13575         (two_way_short_needle, two_way_long_needle): Revert changes from
13576         2011-02-24; they pessimize search speed.
13577         (critical_factorization): Partially revert changes from
13578         2010-06-22; they violate the requirement that the left half of the
13579         needle be smaller than the period of the needle.
13580
13581 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13582
13583         filenamecat: remove unnecessary dependency on dirname-lgpl
13584         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13585         is no direct dependency, just an indirect one via filenamecat-lgpl.
13586
13587         remove: remove unnecessary use of m4/dos.m4
13588         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13589         * modules/remove (FILES): Remove m4/dos.m4.
13590
13591         * lib/openat-proc.c: Don't include dirname.h; not needed.
13592
13593         backupfile: remove unnecessary use of m4/dos.m4
13594         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13595         of its symbols are used by the backupfile code.  backupfile.c does
13596         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13597         for the rare case of programs that want all their backup file
13598         names to live within 8+3 limits, and dos.m4 doesn't address that.
13599         * modules/backupfile (Files): Remove m4/dos.m4.
13600
13601 2011-02-24  Jim Meyering  <meyering@redhat.com>
13602
13603         strstr: fix a bug whereby strstr would mistakenly return NULL
13604         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13605         in period calculation.
13606         (two_way_long_needle): Likewise.
13607         The original problem was reported by Mike Stump in
13608         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13609         Ralf Wildenhues provided the short needle and haystack.
13610         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13611         Add a more involved test to trigger the bug in two_way_long_needle.
13612
13613 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13614
13615         gnulib-tool: remove use of bold display in help screen
13616         * gnulib-tool (func_usage): Do not use bold display anymore in the
13617         help screen.  That was just meant to be a temporary emphasis for a
13618         backward-incompatible change.
13619
13620 2011-02-23  Bruno Haible  <bruno@clisp.org>
13621
13622         Fix misindentation of preprocessor directives.
13623         * lib/argp-namefrob.h: Reindent preprocessor directives.
13624         * lib/getopt_int.h (struct _getopt_data): Likewise.
13625         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13626         * lib/vasnprintf.c (decode_long_double): Likewise.
13627         * tests/test-argmatch.c: Insert blank lines, for clarity.
13628         * tests/test-exclude.c: Likewise.
13629
13630 2011-02-22  Bruno Haible  <bruno@clisp.org>
13631
13632         ioctl: Fix for MacOS X in 64-bit mode.
13633         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13634         value.
13635         Suggested by Eric Blake.
13636         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13637
13638 2011-02-22  Jim Meyering  <meyering@redhat.com>
13639
13640         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13641         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13642         in lib/.
13643
13644 2011-02-22  Eric Blake  <eblake@redhat.com>
13645
13646         maint: avoid any CDPATH issue
13647         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13648
13649         maint: adjust cpp indentation for my modules, as well
13650         * Makefile (sc_cpp_indent_check): Add my name.
13651         * lib/fbufmode.c: Filter through cppi.
13652         * lib/fpurge.c: Likewise.
13653         * lib/freadable.c: Likewise.
13654         * lib/freading.c: Likewise.
13655         * lib/fwritable.c: Likewise.
13656         * lib/fwriting.c: Likewise.
13657         * lib/sigaction.c: Likewise.
13658
13659 2011-02-22  Jim Meyering  <meyering@redhat.com>
13660
13661         maint: adjust cpp indentation to reflect nesting depth
13662         I.e., in a block of code that begins with an unnested "#if",
13663         put one space between the "#" in column 1 and following token.
13664         For example,
13665         -#include <sys/vfs.h>
13666         +# include <sys/vfs.h>
13667         Do this only in .c files that are part of a module I maintain.
13668         * lib/linkat.c: Filter through cppi.
13669         * lib/nanosleep.c: Likewise.
13670         * lib/openat.c: Likewise.
13671         * lib/openat-die.c: Likewise.
13672         * lib/dup3.c: Likewise.
13673         * lib/fchownat.c: Likewise.
13674         * lib/flock.c: Likewise.
13675         * lib/fsync.c: Likewise.
13676         * lib/fts.c: Likewise.
13677         * lib/getpass.c: Likewise.
13678         * lib/gettimeofday.c: Likewise.
13679         * lib/userspec.c: Likewise.
13680         * Makefile (sc_cpp_indent_check): New rule, to check this.
13681
13682 2011-02-22  Bruno Haible  <bruno@clisp.org>
13683
13684         New module 'wctomb'.
13685         * lib/stdlib.in.h (wctomb): New declaration.
13686         * lib/wctomb.c: New file.
13687         * lib/wctomb-impl.h: New file.
13688         * m4/wctomb.m4: New file.
13689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13690         REPLACE_WCTOMB.
13691         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13692         REPLACE_WCTOMB.
13693         * modules/wctomb: New file.
13694         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13695         * doc/posix-functions/wctomb.texi: Mention the new module.
13696         * modules/wctob (Depends-on): Add wctomb.
13697
13698 2011-02-22  Bruno Haible  <bruno@clisp.org>
13699
13700         New module 'mbtowc'.
13701         * lib/stdlib.in.h (mbtowc): New declaration.
13702         * lib/mbtowc.c: New file.
13703         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13704         * m4/mbtowc.m4: New file.
13705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13706         REPLACE_MBTOWC.
13707         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13708         REPLACE_MBTOWC.
13709         * modules/mbtowc: New file.
13710         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13711         * doc/posix-functions/mbtowc.texi: Mention the new module.
13712         * modules/btowc (Depends-on): Add mbtowc.
13713
13714 2011-02-22  Bruno Haible  <bruno@clisp.org>
13715
13716         wcrtomb: Add more tests for native Windows platforms.
13717         * tests/test-wcrtomb-w32-1.sh: New file.
13718         * tests/test-wcrtomb-w32-2.sh: New file.
13719         * tests/test-wcrtomb-w32-3.sh: New file.
13720         * tests/test-wcrtomb-w32-4.sh: New file.
13721         * tests/test-wcrtomb-w32-5.sh: New file.
13722         * tests/test-wcrtomb-w32.c: New file.
13723         * modules/wcrtomb-tests (Files): Add them.
13724         (Makefile.am): Arrange to run these tests.
13725         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13726         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13727
13728 2011-02-20  Bruno Haible  <bruno@clisp.org>
13729
13730         wcrtomb: Enhance test.
13731         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13732
13733 2011-02-20  Bruno Haible  <bruno@clisp.org>
13734
13735         mbrtowc: Tiny optimization.
13736         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13737
13738 2011-02-20  Jim Meyering  <meyering@redhat.com>
13739
13740         test-exclude.c: remove unmatched #endif
13741         * tests/test-exclude.c: Remove stray #endif, left over from
13742         the change of a week ago.
13743
13744 2011-02-19  Jim Meyering  <meyering@redhat.com>
13745
13746         git-version-gen: skip "-dirty" check when appropriate
13747         * build-aux/git-version-gen: Don't run any git commands when the
13748         version string comes from .tarball-version.  Prior to this, we
13749         would run git update-index --refresh even from a just-unpacked
13750         tarball directory, and that could affect a .git/ directory in a
13751         parent of the build directory.  Reported by Mike Frysinger.
13752
13753 2011-02-19  Bruno Haible  <bruno@clisp.org>
13754
13755         unictype/property-byname: Reduce the size of the 'data' segment.
13756         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13757
13758 2011-02-19  Bruno Haible  <bruno@clisp.org>
13759
13760         unictype/scripts: Reduce the size of the 'data' segment.
13761         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13762         '%pic'.
13763         * lib/unictype/scripts_byname.gperf: Regenerated.
13764
13765 2011-02-19  Bruno Haible  <bruno@clisp.org>
13766
13767         stdint: Update documentation.
13768         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13769
13770 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13771
13772         stdint: omit redundant check for wchar.h
13773         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13774         always tests whether wchar.h exists, so remove the now-redundant test.
13775
13776 2011-02-18  Bruno Haible  <bruno@clisp.org>
13777
13778         stdint: Cut dependency to module 'wchar'.
13779         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13780         include the necessary prerequisites.
13781         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13782         * modules/stdint (Depends-on): Remove wchar.
13783         (Makefile.am): Substitute HAVE_WCHAR_H.
13784         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13785
13786 2011-02-18  Eric Blake  <eblake@redhat.com>
13787
13788         longlong: skip, rather than fail, on cross-compilation
13789         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13790         when cross-compiling; regression from 2011-02-16.
13791
13792 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13793
13794         * NEWS: Mention 2011-02-08 change to stdlib.
13795
13796 2011-02-17  Bruno Haible  <bruno@clisp.org>
13797
13798         getloadavg: Add comments about platforms.
13799         * m4/getloadavg.m4: Add comment.
13800         * lib/getloadavg.c: Likewise.
13801
13802 2011-02-17  Bruno Haible  <bruno@clisp.org>
13803
13804         getloadavg: Fix link error on Solaris 2.6.
13805         * modules/getloadavg (Link): New section.
13806         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13807         linking test-getloadavg.
13808         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13809         getloadavg.
13810
13811 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13812
13813         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13814         It was 'int', but this doesn't match the IRIX 6.5 manual.
13815         Suggested by Bruno Haible in
13816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13817
13818 2011-02-17  Bruno Haible  <bruno@clisp.org>
13819
13820         havelib: Fix comments.
13821         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13822         change.
13823
13824 2011-02-17  Bruno Haible  <bruno@clisp.org>
13825
13826         havelib: Update config.rpath.
13827         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13828
13829 2011-02-17  Bruno Haible  <bruno@clisp.org>
13830
13831         getloadavg test: Add some plausibility checks.
13832         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13833         is improbable.
13834
13835 2011-02-16  Eric Blake  <eblake@redhat.com>
13836
13837         maintainer-makefile: make syntax-check a no-op from tarballs
13838         * top/maint.mk (no-vc-detected): New rule.
13839         (local-checks-available): Use it to avoid hanging if someone tries
13840         'make syntax-check' from a tarball.  Also append to any non-syntax
13841         checks already defined in cfg.mk.
13842
13843 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13844
13845         longlong: tune, particularly for common case of c99
13846
13847         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13848         or running anything if c99, or if unsigned long long int does not
13849         work.  In either case, we know the answer without further tests.
13850         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13851         it at most once, and use its results for both long long int and
13852         unsigned long long int.  This is more likely to be efficient in
13853         the common case where the program wants to check for both long
13854         long int and unsigned long long int.
13855         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13856         since the answer is already known.
13857
13858 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13859
13860         getloadavg: set errno
13861         * lib/getloadavg.c: Set errno when returning -1.  If no other
13862         error number looks appropriate, set it to ENOSYS if the getloadavg
13863         looks like it can't possibly ever work, ENOTSUP otherwise.
13864         Suggested by Bruno Haible in
13865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13866
13867         getloadavg: trim unused parts and speed up 'configure'
13868         * NEWS: Document this.
13869         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13870         always compiled if getloadavg is absent.
13871         Move test code to ...
13872         * tests/test-getloadavg.c: New file, containing previous
13873         contents of test from lib/getloadavg.c.  It also contains
13874         suggestions by Bruno Haible in
13875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13876         * modules/getloadavg-tests: New file.
13877         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13878         Do tests in the same order as they're needed for getloadavg.c.
13879         Omit setgid-related tests that generate symbols KMEM_GROUP,
13880         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13881         Do only the tests that are needed to see whether the system has
13882         getloadavg, moving the other tests into ...
13883         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13884         NLIST_NAME_UNION; nobody should be using it.  Do not define
13885         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13886         relevant, as the user of this module shouldn't care how getloadavg
13887         is implemented.
13888
13889         getloadavg: omit unused var
13890         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13891
13892 2011-02-15  Jim Meyering  <meyering@redhat.com>
13893
13894         doc: update users.txt
13895         * users.txt: Update iwhd's URL.
13896
13897 2011-02-13  Bruno Haible  <bruno@clisp.org>
13898
13899         Consistent macro naming for macros that use GCC __attribute__.
13900         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13901         _ATTRIBUTE_NONNULL_.
13902         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13903         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13904         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13905         ATTRIBUTE_DEPRECATED.
13906         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13907         ATTRIBUTE_NORETURN.
13908         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13909         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13910         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13911         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13912         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13913         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13914         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13915         ATTRIBUTE_SENTINEL.
13916         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13917         ATTRIBUTE_RETURN_CHECK.
13918         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13919         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13920         ATTRIBUTE_NORETURN.
13921         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13922         Reported by Paul Eggert.
13923
13924 2011-02-13  Bruno Haible  <bruno@clisp.org>
13925
13926         Don't interfere with a program's definition of __attribute__.
13927         * lib/argp.h (__attribute__): Remove definition.
13928         (_GL_ATTRIBUTE_FORMAT): New macro.
13929         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13930         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13931         (_GL_ATTRIBUTE_FORMAT): New macro.
13932         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13933         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13934         GCC 3 or newer.
13935         * lib/error.h (__attribute__): Remove definition.
13936         (_GL_ATTRIBUTE_FORMAT): New macro.
13937         (error, error_at_line): Use it.
13938         * lib/hash.h (__attribute__): Remove definition.
13939         (ATTRIBUTE_WUR): Update definition. Define always.
13940         * lib/openat.h (__attribute__): Remove definition.
13941         (ATTRIBUTE_NORETURN): Update definition. Define always.
13942         * lib/sigpipe-die.h (__attribute__): Remove definition.
13943         (ATTRIBUTE_NORETURN): Update definition. Define always.
13944         * lib/vasnprintf.h (__attribute__): Remove definition.
13945         (_GL_ATTRIBUTE_FORMAT): New macro.
13946         (asnprintf, vasnprintf): Use it.
13947         * lib/xalloc.h (__attribute__): Remove definition.
13948         (ATTRIBUTE_NORETURN): Update definition. Define always.
13949         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13950         * lib/xmemdup0.h (__attribute__): Remove definition.
13951         (ATTRIBUTE_NORETURN): Update definition. Define always.
13952         * lib/xprintf.h (__attribute__): Remove definition.
13953         (_GL_ATTRIBUTE_FORMAT): New macro.
13954         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13955         * lib/xstrtol.h (__attribute__): Remove definition.
13956         (ATTRIBUTE_NORETURN): Update definition. Define always.
13957         * lib/xvasprintf.h (__attribute__): Remove definition.
13958         (_GL_ATTRIBUTE_FORMAT): New macro.
13959         (xasprintf, xvasprintf): Use it.
13960         * tests/test-argmatch.c (__attribute__): Remove definition.
13961         (ATTRIBUTE_NORETURN): Update definition. Define always.
13962         * tests/test-exclude.c (__attribute__): Remove definition.
13963         (ATTRIBUTE_NORETURN): Update definition. Define always.
13964         Reported by Paul Eggert.
13965
13966 2011-02-13  Bruno Haible  <bruno@clisp.org>
13967
13968         mbrtowc: Add more tests for native Windows platforms.
13969         * tests/test-mbrtowc-w32-1.sh: New file.
13970         * tests/test-mbrtowc-w32-2.sh: New file.
13971         * tests/test-mbrtowc-w32-3.sh: New file.
13972         * tests/test-mbrtowc-w32-4.sh: New file.
13973         * tests/test-mbrtowc-w32-5.sh: New file.
13974         * tests/test-mbrtowc-w32.c: New file.
13975         * modules/mbrtowc-tests (Files): Add them.
13976         (Makefile.am): Arrange to run these tests.
13977         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13978         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13979
13980 2011-02-13  Bruno Haible  <bruno@clisp.org>
13981
13982         mbrtowc: Work around native Windows bug.
13983         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13984         guess when no suitable locale for testing was found.
13985         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13986
13987 2011-02-13  Bruno Haible  <bruno@clisp.org>
13988
13989         mbsinit: Work around mingw bug.
13990         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13991         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13992         Windows.
13993         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13994
13995 2011-02-13  Bruno Haible  <bruno@clisp.org>
13996
13997         mbsinit: Don't crash for a NULL argument.
13998         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13999         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14000
14001 2011-02-13  Bruno Haible  <bruno@clisp.org>
14002
14003         Don't interfere with a program's definition of __attribute__.
14004         * lib/stdio.in.h (__attribute__): Remove definition.
14005         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14006         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14007         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14008         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14009         * lib/string.in.h (__attribute__): Remove definition.
14010         Reported by Paul Eggert.
14011
14012 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14013
14014         stdlib: don't get in the way of non-GCC __attribute__
14015         See thread starting at
14016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14017         Revert previous stdlib change, installing the following instead:
14018         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14019         to get in the way of a non-GCC compiler that supports __attribute__.
14020         (_GL_ATTRIBUTE_RETURN): New macro.
14021         (_Exit): Use it instead of __attribute__.
14022
14023 2011-02-12  Bruno Haible  <bruno@clisp.org>
14024
14025         quotearg test: Avoid test failure on mingw.
14026         * tests/test-quotearg.sh: Convert the locale identifier from native
14027         Windows syntax to Unix syntax.
14028
14029 2011-02-12  Bruno Haible  <bruno@clisp.org>
14030
14031         setlocale: Prefer gnulib's override over libintl's override.
14032         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14033         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14034         GNULIB_defined_setlocale is set.
14035
14036 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14037
14038         stdlib: support non-GCC __attribute__
14039
14040         Fix a serious and tricky problem encountered when attempting to
14041         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14042         5.5, but it crashed due to memory corruption on Solaris 10 with
14043         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14044         bits that are otherwise zero.  This tagging is optional inside
14045         Emacs but is preferred and is used when __attribute__ ((__aligned
14046         (8))) works, as it does with both recent-enough GCC and with Sun C
14047         5.11.  However, Sun C 5.11 is not GCC and does not #define
14048         __GNUC__ and __GNUC_MINOR__.
14049
14050         When I added the getloadavg module to Emacs, it brought in
14051         stdlib.in.h, which contained this fragment:
14052
14053            #ifndef __attribute__
14054            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14055            #  define __attribute__(Spec)   /* empty */
14056            # endif
14057            #endif
14058
14059         When files that include <stdlib.h> were compiled with Sun C 5.11,
14060         the above code disabled __attribute__ ((__aligned (8))), which
14061         caused variables to not be properly aligned, which eventually led
14062         to the pointer corruption mentioned above.  (This was a bit hard
14063         to diagnose, unfortunately.)
14064
14065         Several "#define __attribute__(X) /* empty */" code snippets need
14066         to be eradicated from Gnulib to work with non-GCC compilers that
14067         support __attribute__.  The Autoconf way to do this is to test for
14068         each kind of attribute that we want support for, and selectively
14069         enable that in source code.
14070
14071         Fix this problem just for stdlib.h, by adding a test for the
14072         __noreturn__ attribute, and change stdlib.in.h to use that test
14073         when needed.  This technique can be easily generalized to the
14074         other *.in.h files and attributes, and a similar technique can be
14075         used for *.h and *.c files.  This patch is enough to solve the
14076         problem for Emacs + getloadavg, and I thought I'd publish it for
14077         feedback before undertaking further, similar fixes in other
14078         modules.
14079
14080         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14081         because it's not needed for stdlib.h.  It merely substitutes the
14082         value directly into stdlib.h.  We may well need to #define it, or
14083         similar symbols, for other modules, but it's nice to also have an
14084         option to not #define it for applications like Emacs that do not
14085         need it.
14086
14087         * lib/stdlib.in.h (__attribute__): Do not #define.
14088         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14089         be defined only if the _Exit module is also used.
14090         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14092         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14093         platforms.
14094         * modules/_Exit (Files): Add m4/attribute.m4.
14095         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14096         * m4/attribute.m4: New file.
14097
14098 2011-02-12  Bruno Haible  <bruno@clisp.org>
14099
14100         wcsrtombs: Work around bug on native Windows.
14101         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14102         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14103         instead of len.
14104         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14105
14106 2011-02-12  Bruno Haible  <bruno@clisp.org>
14107
14108         mbsrtowcs: Work around bug on native Windows.
14109         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14110         against mingw bug.
14111         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14112
14113 2011-02-12  Bruno Haible  <bruno@clisp.org>
14114
14115         Avoid setlocale bugs in tests.
14116         * modules/btowc (Dependencies): Add setlocale.
14117         * modules/c-strcase (Dependencies): Likewise.
14118         * modules/mbmemcasecmp (Dependencies): Likewise.
14119         * modules/mbmemcasecoll (Dependencies): Likewise.
14120         * modules/mbrtowc (Dependencies): Likewise.
14121         * modules/mbscasecmp (Dependencies): Likewise.
14122         * modules/mbscasestr (Dependencies): Likewise.
14123         * modules/mbschr (Dependencies): Likewise.
14124         * modules/mbscspn (Dependencies): Likewise.
14125         * modules/mbsinit (Dependencies): Likewise.
14126         * modules/mbsncasecmp (Dependencies): Likewise.
14127         * modules/mbsnrtowcs (Dependencies): Likewise.
14128         * modules/mbspbrk (Dependencies): Likewise.
14129         * modules/mbspcasecmp (Dependencies): Likewise.
14130         * modules/mbsrchr (Dependencies): Likewise.
14131         * modules/mbsrtowcs (Dependencies): Likewise.
14132         * modules/mbsspn (Dependencies): Likewise.
14133         * modules/mbsstr (Dependencies): Likewise.
14134         * modules/nl_langinfo (Dependencies): Likewise.
14135         * modules/quotearg (Dependencies): Likewise.
14136         * modules/unicase/locale-language (Dependencies): Likewise.
14137         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14138         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14139         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14140         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14141         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14142         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14143         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14144         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14145         * modules/vasnprintf-posix (Dependencies): Likewise.
14146         * modules/wcrtomb (Dependencies): Likewise.
14147         * modules/wcsnrtombs (Dependencies): Likewise.
14148         * modules/wcsrtombs (Dependencies): Likewise.
14149
14150 2011-02-12  Bruno Haible  <bruno@clisp.org>
14151
14152         setlocale: Workaround native Windows bug.
14153         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14154         succeeds but sets LC_CTYPE to "C", report a failure.
14155         * tests/test-setlocale2.sh: New file.
14156         * tests/test-setlocale2.c: New file.
14157         * modules/setlocale-tests (Files): Add the new files.
14158         (Makefile.am): Enable test-setlocale2.sh test.
14159         * doc/posix-functions/setlocale.texi: Mention workaround.
14160
14161 2011-02-11  Bruno Haible  <bruno@clisp.org>
14162
14163         Tests for module 'setlocale'.
14164         * modules/setlocale-tests: New file.
14165         * tests/test-setlocale1.sh: New file.
14166         * tests/test-setlocale1.c: New file.
14167
14168         New module 'setlocale'.
14169         * lib/locale.in.h (setlocale): New declaration.
14170         * lib/setlocale.c: New file, based on
14171         gettext/gettext-runtime/intl/setlocale.c.
14172         * m4/setlocale.m4: New file.
14173         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14174         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14175         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14176         REPLACE_SETLOCALE.
14177         * modules/setlocale: New file.
14178         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14179         * doc/posix-functions/setlocale.texi: Mention the new module.
14180
14181 2011-02-11  Bruno Haible  <bruno@clisp.org>
14182
14183         Prepare for locale dependent tests on mingw.
14184         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14185         because it has the wrong locale encoding.
14186         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14187         French_France.1252 instead of "fr".
14188         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14189         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14190         because it has the wrong locale encoding.
14191         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14192         native Windows, try Turkish_Turkey.65001.
14193         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14194         Chinese_China.54936.
14195
14196         Prepare for locale dependent tests on mingw.
14197         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14198         differently.
14199         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14200         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14201         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14202         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14203
14204 2011-02-11  Eric Blake  <eblake@redhat.com>
14205
14206         strptime: avoid compiler warnings
14207         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14208         compiler warnings about dead code.
14209         Reported by Daniel P. Berrange.
14210
14211 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14212
14213         doc: update users.txt
14214         * users.txt: Add rcs.
14215
14216 2011-02-10  John W. Eaton  <jwe@gnu.org>
14217
14218         doc: update users.txt
14219         * users.txt: Add octave.
14220
14221 2011-02-10  Jim Meyering  <meyering@redhat.com>
14222
14223         doc: update users.txt
14224         * users.txt: Add iwhd.
14225
14226 2011-02-09  Bruno Haible  <bruno@clisp.org>
14227
14228         gnulib-tool: Make copyright notice adjustment more robust.
14229         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14230         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14231         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14232         License".
14233         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14234
14235 2011-02-06  Bruno Haible  <bruno@clisp.org>
14236
14237         New module 'towctrans'.
14238         * modules/towctrans: New file.
14239         * lib/wctype.in.h (towctrans): New declaration.
14240         * lib/towctrans.c: New file.
14241         * lib/towctrans-impl.h: New file.
14242         * m4/towctrans.m4: New file.
14243         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14244         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14245         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14246         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14247         * doc/posix-functions/towctrans.texi: Mention the new module.
14248
14249 2011-02-06  Bruno Haible  <bruno@clisp.org>
14250
14251         New module 'wctrans'.
14252         * modules/wctrans: New file.
14253         * lib/wctype.in.h (wctrans): New declaration.
14254         * lib/wctrans.c: New file.
14255         * lib/wctrans-impl.h: New file.
14256         * m4/wctrans.m4: New file.
14257         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14258         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14259         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14260         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14261         * doc/posix-functions/wctrans.texi: Mention the new module.
14262
14263 2011-02-06  Bruno Haible  <bruno@clisp.org>
14264
14265         New module 'iswctype'.
14266         * modules/iswctype: New file.
14267         * lib/wctype.in.h (iswctype): New declaration.
14268         * lib/iswctype.c: New file.
14269         * lib/iswctype-impl.h: New file.
14270         * m4/iswctype.m4: New file.
14271         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14272         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14273         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14274         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14275         * doc/posix-functions/iswctype.texi: Mention the new module and the
14276         HP-UX 11.00 problem.
14277
14278 2011-02-06  Bruno Haible  <bruno@clisp.org>
14279
14280         New module 'wctype'.
14281         * modules/wctype: Change to represent the wctype() substitute.
14282         * lib/wctype.in.h (wctype): New declaration.
14283         * lib/wctype.c: New file.
14284         * lib/wctype-impl.h: New file.
14285         * m4/wctype.m4: New file.
14286         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14287         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14288         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14289         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14290         * doc/posix-functions/wctype.texi: Mention the new module and the
14291         HP-UX 11.00 problem.
14292
14293 2011-02-06  Bruno Haible  <bruno@clisp.org>
14294
14295         wctype-h: Ensure wctype_t and wctrans_t are defined.
14296         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14297         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14298         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14299         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14300         HAVE_WCTRANS_T.
14301         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14302
14303 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14304
14305         flock: fix license typo
14306
14307         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14308         omitted.
14309
14310 2011-02-08  Bruno Haible  <bruno@clisp.org>
14311
14312         Split large sed scripts, for HP-UX sed.
14313         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14314         to avoid HP-UX limit of 99 commands, in the near future.
14315         * modules/stdlib (Makefile.am): Likewise.
14316         * modules/unistd (Makefile.am): Likewise.
14317         * modules/wchar (Makefile.am): Likewise.
14318         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14319         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14320         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14321
14322 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14323             Bruno Haible  <bruno@clisp.org>
14324
14325         stdlib: improve random_r modularization
14326         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14327         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14328         you also need the random_r module to get this material right.
14329         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14330         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14331         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14332
14333 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14334
14335         stdlib: don't depend on stdint
14336         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14337         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14338         be independent of whether stdint.h is needed.
14339         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14340         here, instead of ...
14341         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14342         struct random_data should be using the random_r module, not just
14343         the stdlib module (which wouldn't make sense: what package needs
14344         just struct random_data without also needing random_r?).
14345         * modules/stdlib (Depends-on): Remove stdint.
14346
14347         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14348         See the thread rooted at
14349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14350         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14351         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14352         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14353         __VMS)); previously it was always included (via fcntl--.h).
14354         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14355         hand; this is good enough for load averages.  Also, do not use
14356         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14357         flags directly if available and don't bother otherwise.  (Packages
14358         that need the extra reliability should use the modules that define
14359         these flags on older platforms that lack them.)
14360         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14361         fcntl-safer.
14362
14363 2011-02-08  Jim Meyering  <meyering@redhat.com>
14364
14365         di-set.h, ino-map.h: add multiple-inclusion guard
14366         Technically, the guard is required only for ino-map.h, due to its
14367         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14368         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14369         * lib/ino-map.h: Likewise.
14370
14371 2011-02-06  Bruno Haible  <bruno@clisp.org>
14372
14373         iswblank: Ensure declaration on glibc systems.
14374         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14375         * modules/iswblank (Dependencies): Add 'extensions'.
14376         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14377
14378 2011-02-06  Bruno Haible  <bruno@clisp.org>
14379
14380         New module 'iswblank'.
14381         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14382         * modules/iswblank: New file.
14383         * modules/wctype-h (Files): Remove lib/iswblank.c.
14384         (Makefile.am): Substitute GNULIB_ISWBLANK.
14385         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14386         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14387         (gl_WCTYPE_H_DEFAULTS): New macro.
14388         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14389         * modules/iswblank-tests: New file.
14390         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14391         * tests/test-wctype-h.c (main): Remove iswblank tests.
14392         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14393         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14394         of 'wctype-h'.
14395         * NEWS: Mention the change.
14396         * modules/mbchar (Depends-on): Add iswblank.
14397
14398 2011-02-08  Bruno Haible  <bruno@clisp.org>
14399
14400         di-set tests: Refactor.
14401         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14402         unnecessary includes.
14403         (ASSERT): Remove macro.
14404         (main): Make C90 compliant by avoiding variable declaration after
14405         statement.
14406         * modules/di-set-tests (Files): Add tests/macros.h.
14407
14408 2011-02-08  Bruno Haible  <bruno@clisp.org>
14409
14410         ino-map tests: Refactor.
14411         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14412         unnecessary includes.
14413         (ASSERT): Remove macro.
14414         (main): Make C90 compliant by avoiding variable declaration after
14415         statement.
14416         * modules/ino-map-tests (Files): Add tests/macros.h.
14417
14418 2011-02-08  Jim Meyering  <meyering@redhat.com>
14419
14420         di-set: add "const" to a cast
14421         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14422         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14423
14424 2011-02-06  Bruno Haible  <bruno@clisp.org>
14425
14426         Rename module 'wctype' to 'wctype-h'.
14427         * modules/wctype-h: Renamed from modules/wctype.
14428         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14429         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14430         (Files, Depends-on, Makefile.am): Update.
14431         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14432         (Files, Makefile.am): Update.
14433         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14434         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14435         * doc/posix-headers/wctype.texi: Update.
14436         * doc/posix-functions/iswalnum.texi: Update.
14437         * doc/posix-functions/iswalpha.texi: Update.
14438         * doc/posix-functions/iswblank.texi: Update.
14439         * doc/posix-functions/iswcntrl.texi: Update.
14440         * doc/posix-functions/iswdigit.texi: Update.
14441         * doc/posix-functions/iswgraph.texi: Update.
14442         * doc/posix-functions/iswlower.texi: Update.
14443         * doc/posix-functions/iswprint.texi: Update.
14444         * doc/posix-functions/iswpunct.texi: Update.
14445         * doc/posix-functions/iswspace.texi: Update.
14446         * doc/posix-functions/iswupper.texi: Update.
14447         * doc/posix-functions/iswxdigit.texi: Update.
14448         * doc/posix-functions/towlower.texi: Update.
14449         * doc/posix-functions/towupper.texi: Update.
14450         * NEWS: Mention the change.
14451         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14452         * modules/mbchar (Dependencies): Likewise.
14453         * modules/mbswidth (Dependencies): Likewise.
14454         * modules/quotearg (Dependencies): Likewise.
14455         * modules/regex (Dependencies): Likewise.
14456         * modules/wcscasecmp (Dependencies): Likewise.
14457         * modules/wcsncasecmp (Dependencies): Likewise.
14458         * modules/wcwidth (Dependencies): Likewise.
14459
14460 2011-02-06  Bruno Haible  <bruno@clisp.org>
14461
14462         New module 'wcswidth'.
14463         * modules/wcswidth: New file.
14464         * lib/wchar.in.h (wcswidth): New declaration.
14465         * lib/wcswidth.c: New file.
14466         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14467         * m4/wcswidth.m4: New file.
14468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14470         REPLACE_WCSWIDTH.
14471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14472         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14473         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14474         * doc/posix-functions/wcswidth.texi: Mention the new module.
14475
14476 2011-02-06  Bruno Haible  <bruno@clisp.org>
14477
14478         New module 'wcstok'.
14479         * modules/wcstok: New file.
14480         * lib/wchar.in.h (wcstok): New declaration.
14481         * lib/wcstok.c: New file.
14482         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14483         * m4/wcstok.m4: New file.
14484         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14485         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14486         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14487         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14488         * doc/posix-functions/wcstok.texi: Mention the new module.
14489
14490 2011-02-06  Bruno Haible  <bruno@clisp.org>
14491
14492         New module 'wcsstr'.
14493         * modules/wcsstr: New file.
14494         * lib/wchar.in.h (wcsstr): New declaration.
14495         * lib/wcsstr.c: New file.
14496         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14497         * m4/wcsstr.m4: New file.
14498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14501         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14502         * doc/posix-functions/wcsstr.texi: Mention the new module.
14503
14504 2011-02-06  Bruno Haible  <bruno@clisp.org>
14505
14506         New module 'wcspbrk'.
14507         * modules/wcspbrk: New file.
14508         * lib/wchar.in.h (wcspbrk): New declaration.
14509         * lib/wcspbrk.c: New file.
14510         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14511         * m4/wcspbrk.m4: New file.
14512         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14513         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14514         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14515         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14516         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14517
14518 2011-02-06  Bruno Haible  <bruno@clisp.org>
14519
14520         New module 'wcsspn'.
14521         * modules/wcsspn: New file.
14522         * lib/wchar.in.h (wcsspn): New declaration.
14523         * lib/wcsspn.c: New file.
14524         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14525         * m4/wcsspn.m4: New file.
14526         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14527         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14528         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14529         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14530         * doc/posix-functions/wcsspn.texi: Mention the new module.
14531
14532 2011-02-06  Bruno Haible  <bruno@clisp.org>
14533
14534         New module 'wcscspn'.
14535         * modules/wcscspn: New file.
14536         * lib/wchar.in.h (wcscspn): New declaration.
14537         * lib/wcscspn.c: New file.
14538         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14539         * m4/wcscspn.m4: New file.
14540         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14541         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14542         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14543         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14544         * doc/posix-functions/wcscspn.texi: Mention the new module.
14545
14546 2011-02-06  Bruno Haible  <bruno@clisp.org>
14547
14548         New module 'wcsrchr'.
14549         * modules/wcsrchr: New file.
14550         * lib/wchar.in.h (wcsrchr): New declaration.
14551         * lib/wcsrchr.c: New file.
14552         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14553         * m4/wcsrchr.m4: New file.
14554         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14555         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14556         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14557         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14558         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14559
14560 2011-02-06  Bruno Haible  <bruno@clisp.org>
14561
14562         New module 'wcschr'.
14563         * modules/wcschr: New file.
14564         * lib/wchar.in.h (wcschr): New declaration.
14565         * lib/wcschr.c: New file.
14566         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14567         * m4/wcschr.m4: New file.
14568         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14569         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14570         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14571         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14572         * doc/posix-functions/wcschr.texi: Mention the new module.
14573
14574 2011-02-06  Bruno Haible  <bruno@clisp.org>
14575
14576         New module 'wcsdup'.
14577         * modules/wcsdup: New file.
14578         * lib/wchar.in.h (wcsdup): New declaration.
14579         * lib/wcsdup.c: New file.
14580         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14581         * m4/wcsdup.m4: New file.
14582         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14583         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14584         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14585         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14586         * doc/posix-functions/wcsdup.texi: Mention the new module.
14587
14588 2011-02-06  Bruno Haible  <bruno@clisp.org>
14589
14590         New module 'wcsxfrm'.
14591         * modules/wcsxfrm: New file.
14592         * lib/wchar.in.h (wcsxfrm): New declaration.
14593         * lib/wcsxfrm.c: New file.
14594         * lib/wcsxfrm-impl.h: New file.
14595         * m4/wcsxfrm.m4: New file.
14596         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14597         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14598         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14599         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14600         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14601
14602 2011-02-06  Bruno Haible  <bruno@clisp.org>
14603
14604         New module 'wcscoll'.
14605         * modules/wcscoll: New file.
14606         * lib/wchar.in.h (wcscoll): New declaration.
14607         * lib/wcscoll.c: New file.
14608         * lib/wcscoll-impl.h: New file.
14609         * m4/wcscoll.m4: New file.
14610         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14611         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14612         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14613         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14614         * doc/posix-functions/wcscoll.texi: Mention the new module.
14615
14616 2011-02-06  Bruno Haible  <bruno@clisp.org>
14617
14618         New module 'wcsncasecmp'.
14619         * modules/wcsncasecmp: New file.
14620         * lib/wchar.in.h (wcsncasecmp): New declaration.
14621         * lib/wcsncasecmp.c: New file.
14622         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14623         * m4/wcsncasecmp.m4: New file.
14624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14626         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14627         HAVE_WCSNCASECMP.
14628         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14629         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14630
14631 2011-02-06  Bruno Haible  <bruno@clisp.org>
14632
14633         New module 'wcscasecmp'.
14634         * modules/wcscasecmp: New file.
14635         * lib/wchar.in.h (wcscasecmp): New declaration.
14636         * lib/wcscasecmp.c: New file.
14637         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14638         * m4/wcscasecmp.m4: New file.
14639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14642         HAVE_WCSCASECMP.
14643         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14644         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14645
14646 2011-02-05  Bruno Haible  <bruno@clisp.org>
14647
14648         New module 'wcsncmp'.
14649         * modules/wcsncmp: New file.
14650         * lib/wchar.in.h (wcsncmp): New declaration.
14651         * lib/wcsncmp.c: New file.
14652         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14653         * m4/wcsncmp.m4: New file.
14654         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14655         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14656         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14657         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14658         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14659
14660 2011-02-05  Bruno Haible  <bruno@clisp.org>
14661
14662         New module 'wcscmp'.
14663         * modules/wcscmp: New file.
14664         * lib/wchar.in.h (wcscmp): New declaration.
14665         * lib/wcscmp.c: New file.
14666         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14667         * m4/wcscmp.m4: New file.
14668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14670         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14671         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14672         * doc/posix-functions/wcscmp.texi: Mention the new module.
14673
14674 2011-02-05  Bruno Haible  <bruno@clisp.org>
14675
14676         New module 'wcsncat'.
14677         * modules/wcsncat: New file.
14678         * lib/wchar.in.h (wcsncat): New declaration.
14679         * lib/wcsncat.c: New file.
14680         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14681         * m4/wcsncat.m4: New file.
14682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14684         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14685         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14686         * doc/posix-functions/wcsncat.texi: Mention the new module.
14687
14688 2011-02-05  Bruno Haible  <bruno@clisp.org>
14689
14690         New module 'wcscat'.
14691         * modules/wcscat: New file.
14692         * lib/wchar.in.h (wcscat): New declaration.
14693         * lib/wcscat.c: New file.
14694         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14695         * m4/wcscat.m4: New file.
14696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14698         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14699         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14700         * doc/posix-functions/wcscat.texi: Mention the new module.
14701
14702 2011-02-05  Bruno Haible  <bruno@clisp.org>
14703
14704         New module 'wcpncpy'.
14705         * modules/wcpncpy: New file.
14706         * lib/wchar.in.h (wcpncpy): New declaration.
14707         * lib/wcpncpy.c: New file.
14708         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14709         * m4/wcpncpy.m4: New file.
14710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14712         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14713         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14714         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14715
14716 2011-02-05  Bruno Haible  <bruno@clisp.org>
14717
14718         New module 'wcsncpy'.
14719         * modules/wcsncpy: New file.
14720         * lib/wchar.in.h (wcsncpy): New declaration.
14721         * lib/wcsncpy.c: New file.
14722         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14723         * m4/wcsncpy.m4: New file.
14724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14726         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14727         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14728         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14729
14730 2011-02-05  Bruno Haible  <bruno@clisp.org>
14731
14732         New module 'wcpcpy'.
14733         * modules/wcpcpy: New file.
14734         * lib/wchar.in.h (wcpcpy): New declaration.
14735         * lib/wcpcpy.c: New file.
14736         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14737         * m4/wcpcpy.m4: New file.
14738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14740         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14741         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14742         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14743
14744 2011-02-05  Bruno Haible  <bruno@clisp.org>
14745
14746         New module 'wcscpy'.
14747         * modules/wcscpy: New file.
14748         * lib/wchar.in.h (wcscpy): New declaration.
14749         * lib/wcscpy.c: New file.
14750         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14751         * m4/wcscpy.m4: New file.
14752         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14753         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14754         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14755         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14756         * doc/posix-functions/wcscpy.texi: Mention the new module.
14757
14758 2011-02-05  Bruno Haible  <bruno@clisp.org>
14759
14760         New module 'wcsnlen'.
14761         * modules/wcsnlen: New file.
14762         * lib/wchar.in.h (wcsnlen): New declaration.
14763         * lib/wcsnlen.c: New file.
14764         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14765         * m4/wcsnlen.m4: New file.
14766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14768         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14769         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14770         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14771
14772 2011-02-05  Bruno Haible  <bruno@clisp.org>
14773
14774         New module 'wcslen'.
14775         * modules/wcslen: New file.
14776         * lib/wchar.in.h (wcslen): New declaration.
14777         * lib/wcslen.c: New file.
14778         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14779         * m4/wcslen.m4: New file.
14780         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14781         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14782         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14783         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14784         * doc/posix-functions/wcslen.texi: Mention the new module.
14785
14786 2011-02-05  Bruno Haible  <bruno@clisp.org>
14787
14788         New module 'wmemset'.
14789         * modules/wmemset: New file.
14790         * lib/wchar.in.h (wmemset): New declaration.
14791         * lib/wmemset.c: New file.
14792         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14793         * m4/wmemset.m4: New file.
14794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14796         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14797         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14798         * doc/posix-functions/wmemset.texi: Mention the new module.
14799
14800 2011-02-05  Bruno Haible  <bruno@clisp.org>
14801
14802         New module 'wmemmove'.
14803         * modules/wmemmove: New file.
14804         * lib/wchar.in.h (wmemmove): New declaration.
14805         * lib/wmemmove.c: New file.
14806         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14807         * m4/wmemmove.m4: New file.
14808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14810         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14811         HAVE_WMEMMOVE.
14812         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14813         * doc/posix-functions/wmemmove.texi: Mention the new module.
14814
14815 2011-02-05  Bruno Haible  <bruno@clisp.org>
14816
14817         New module 'wmemcpy'.
14818         * modules/wmemcpy: New file.
14819         * lib/wchar.in.h (wmemcpy): New declaration.
14820         * lib/wmemcpy.c: New file.
14821         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14822         * m4/wmemcpy.m4: New file.
14823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14825         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14826         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14827         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14828
14829 2011-02-05  Bruno Haible  <bruno@clisp.org>
14830
14831         New module 'wmemcmp'.
14832         * modules/wmemcmp: New file.
14833         * lib/wchar.in.h (wmemcmp): New declaration.
14834         * lib/wmemcmp.c: New file.
14835         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14836         * m4/wmemcmp.m4: New file.
14837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14839         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14840         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14841         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14842
14843 2011-02-07  Jim Meyering  <meyering@redhat.com>
14844
14845         di-set, ino-map: new modules, from coreutils
14846         * lib/di-set.c: New file.
14847         * lib/di-set.h: Likewise.
14848         * lib/ino-map.c: Likewise.
14849         * lib/ino-map.h: Likewise.
14850         * modules/di-set: Likewise.
14851         * modules/di-set-tests: Likewise.
14852         * modules/ino-map: Likewise.
14853         * modules/ino-map-tests: Likewise.
14854         * tests/test-di-set.c: Likewise.
14855         * tests/test-ino-map.c: Likewise.
14856
14857 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14858
14859         getloadavg: merge minor changes from Emacs
14860
14861         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14862         (getloadavg): Use memset, not bzero.
14863
14864         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14865         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14866         clash (bug#86).
14867
14868 2010-11-14  Bruno Haible  <bruno@clisp.org>
14869
14870         Allow multiple gnulib generated replacements to coexist.
14871         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14872         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14873         * lib/langinfo.in.h (nl_item): Likewise.
14874         * lib/math.in.h (_NaN, NAN): Likewise.
14875         * lib/netdb.in.h (struct addrinfo): Likewise.
14876         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14877         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14878         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14879         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14880         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14881         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14882         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14883         pthread_mutexattr_init, pthread_mutexattr_settype,
14884         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14885         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14886         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14887         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14888         * lib/sched.in.h (struct sched_param): Likewise.
14889         * lib/se-selinux.in.h (security_class_t, security_context_t,
14890         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14891         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14892         lsetfilecon, fsetfilecon, security_check_context,
14893         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14894         Likewise.
14895         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14896         Likewise.
14897         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14898         _gl_function_taking_int_returning_void_t, union sigval,
14899         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14900         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14901         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14902         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14903         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14904         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14905         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14906         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14907         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14908         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14909         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14910         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14911         socklen_t, rpl_fd_isset): Likewise.
14912         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14913         * lib/sys_time.in.h (struct timeval): Likewise.
14914         * lib/sys_times.in.h (struct tms): Likewise.
14915         * lib/sys_utsname.in.h (struct utsname):
14916         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14917         * lib/unistd.in.h (getpagesize): Likewise.
14918         * lib/wchar.in.h (mbstate_t): Likewise.
14919         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14920         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14921         towlower, towupper): Likewise.
14922         Reported by Sam Steingold <sds@gnu.org>.
14923
14924 2011-02-05  Eric Blake  <eblake@redhat.com>
14925
14926         unsetenv: work around Haiku issues
14927         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14928         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14929
14930 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14931
14932         libposix: avoid calling error() within libposix
14933         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14934         is defined.
14935
14936 2011-02-05  Eric Blake  <eblake@redhat.com>
14937
14938         strerror_r-posix: port to cygwin
14939         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14940         implementation.
14941         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14942         * tests/test-strerror_r.c (main): Fix test.
14943         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14944         issue.
14945
14946 2011-02-05  Bruno Haible  <bruno@clisp.org>
14947
14948         New module 'wmemchr'.
14949         * modules/wmemchr: New file.
14950         * lib/wchar.in.h (wmemchr): New declaration.
14951         * lib/wmemchr.c: New file.
14952         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14953         * m4/wmemchr.m4: New file.
14954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14956         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14957         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14958         * doc/posix-functions/wmemchr.texi: Mention the new module.
14959
14960 2011-02-04  Eric Blake  <eblake@redhat.com>
14961
14962         fdopendir: detect FreeBSD bug
14963         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14964         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14965
14966 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14967
14968         stdbool: do not define HAVE_STDBOOL_H
14969         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14970         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14971         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14972         imported from the latest Autoconf git.  It was motivated by Emacs,
14973         which uses gnulib but does not need HAVE_STDBOOL_H.
14974
14975 2011-02-04  Bruno Haible  <bruno@clisp.org>
14976
14977         wcsnrtombs: Prepare for new module wwcsnrtombs.
14978         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14979         * lib/wcsnrtombs.c: Include it.
14980         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14981
14982         wcsrtombs: Prepare for new module wwcsrtombs.
14983         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14984         * lib/wcsrtombs.c: Include it.
14985         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14986
14987         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14988         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14989         * lib/mbsnrtowcs.c: Include it.
14990         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14991
14992         mbsrtowcs: Prepare for new module mbsrtowwcs.
14993         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14994         * lib/mbsrtowcs.c: Include it.
14995         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14996
14997 2011-02-04  Bruno Haible  <bruno@clisp.org>
14998
14999         vasnprintf: Reduce use of malloc for small format strings.
15000         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15001         (arguments): Add room for the first 7 arguments.
15002         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15003         (char_directives, u8_directives, u16_directives, u32_directives): Add
15004         room for the first 7 directives.
15005         * lib/printf-parse.c: Include <string.h>.
15006         (PRINTF_PARSE): Change memory handling code so that it uses the first
15007         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15008         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15009         Reported by Pádraig Brady <P@draigbrady.com>.
15010
15011 2011-01-31  Eric Blake  <eblake@redhat.com>
15012
15013         dup2: work around Haiku bug
15014         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15015         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15016         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15017         * tests/test-dup2.c (main): Enhance test.
15018
15019 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15020
15021         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15022         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15023         declared by eglibc 2.11.2.
15024         * lib/stdio.in.h: Likewise.
15025
15026 2011-01-31  Eric Blake  <eblake@redhat.com>
15027
15028         ignore-value: add missing test dependency
15029         * tests/test-ignore-value.c: Revert previous change; stdio.h
15030         provides off_t.
15031         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15032
15033 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15034
15035         mktime: clarify long_int width checking
15036         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15037         the top level, to make it clearer that the assumption about
15038         long_int width is being checked.  See
15039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15040
15041 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15042
15043         ignore-value: Fix self-test.
15044         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15045
15046 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15047
15048         TYPE_MAXIMUM: avoid theoretically undefined behavior
15049         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15050         negative number, which the C Standard says has undefined behavior.
15051         In practice this is not a problem, but might as well do it by the book.
15052         Reported by Rich Felker and Eric Blake; see
15053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15054         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15055         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15057         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15058         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15059         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15060
15061         mktime: #undef mktime before #defining it
15062         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15063
15064         mktime: systematically normalize tm_isdst comparisons
15065         * lib/mktime.c (isdst_differ): New function.
15066         (__mktime_internal): Use it systematically for all isdst comparisons.
15067         This completes the fix for libc BZ #6723, and removes the need for
15068         normalizing tm_isdst.  See
15069         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15070         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15071
15072         mktime: fix some integer overflow issues and sidestep the rest
15073
15074         This was prompted by a bug report by Benjamin Lindner for MinGW
15075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15076         His bug is due to signed integer overflow (0 - INT_MIN), and I
15077         I scanned through mktime.c looking for other integer overflow
15078         problems, fixing all the bugs I found.
15079
15080         Although the C Standard says the resulting code is still not safe
15081         in the presence of integer overflow, in practice it should be good
15082         enough for all real-world two's-complement implementations, except
15083         for debugging environments that deliberately trap on integer
15084         overflow (e.g., gcc -ftrapv).
15085
15086         * lib/mktime.c (WRAPV): New macro.
15087         (SHR): Also check that long_int and time_t shift right in the
15088         usual way, before using the fast-but-unportable method.
15089         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15090         used.  The code already assumed two's complement, so there's
15091         no need to test for alternatives.  All uses removed.
15092         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15093         the C standard.  Problem reported by Rich Felker in
15094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15095         (twos_complement_arithmetic): Also check long_int and time_t.
15096         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15097         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15098         (__mktime_internal): Avoid integer overflow with unary subtraction
15099         in two instances where -1 - X is an adequate replacement for -X,
15100         since the calculations are approximate.
15101
15102 2011-01-29  Eric Blake  <eblake@redhat.com>
15103
15104         mktime: avoid infinite loop
15105         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15106         type; behavior is still undefined but portable to all known targets.
15107         Reported by Rich Felker.
15108
15109 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15110
15111         rename, unlink, same-inode: Relicense.
15112         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15113         * modules/unlink (License): Likewise.
15114         * modules/same-inode (License): Likewise.
15115
15116 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15117
15118         mktime: avoid problems on NetBSD 5 / i386
15119         * lib/mktime.c (long_int): New type.  This works around a problem
15120         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15121         but time_t is 64 bits, and where I expect the existing code is
15122         wrong in some cases.
15123         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15124         (ydhms_diff): Bring back the compile-time check for wide-enough
15125         year and yday.
15126
15127         mktime: fix misspelling in comment
15128         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15129         This merges all recent glibc changes of importance.
15130
15131 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15132
15133         move-if-change: cope with concurrent mv of identical file.
15134         * build-aux/move-if-change (CMPPROG): Accept environment
15135         variable as an override for `cmp'.
15136         (usage): Document CMPPROG.
15137         Adjust comparison to drop stdout.  Cope with failure of mv if
15138         the target file exists and is identical to the source, for
15139         parallel builds.
15140         Report from H.J. Lu against binutils in PR binutils/12283.
15141
15142 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15143
15144         * users.txt: Mention sharutils.
15145
15146 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15147
15148         * users.txt: Mention OATH Toolkit.
15149
15150 2011-01-27  Bruno Haible  <bruno@clisp.org>
15151
15152         Prepare for supporting FreeBSD 10.
15153         * build-aux/config.libpath: Remove handling of freebsd1*.
15154
15155 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15156
15157         Prepare for supporting FreeBSD 10.
15158         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15159         match FreeBSD 10.0.
15160
15161 2011-01-27  Bruno Haible  <bruno@clisp.org>
15162
15163         vma-iter, get-rusage-as: Add OpenBSD support.
15164         * modules/vma-iter (configure.ac): Test for mquery.
15165         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15166         * lib/vma-iter.c: Include <sys/mman.h>.
15167         (vma_iterate): Add an implementation based on mquery().
15168         * lib/resource-ext.h (get_rusage_as): Update comments.
15169         * lib/get-rusage-as.c: Likewise.
15170         * lib/get-rusage-data.c: Likewise.
15171
15172 2011-01-26  Karl Berry  <karl@gnu.org>
15173
15174         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15175         variables to make it easier to override the makeinfo program used.
15176
15177 2011-01-26  Eric Blake  <eblake@redhat.com>
15178
15179         fcntl: work around Haiku F_DUPFD bugs
15180         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15181         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15182         cloexec bit on duplication.
15183         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15184
15185 2011-01-26  Bruno Haible  <bruno@clisp.org>
15186
15187         Enable memory leak tests on AIX.
15188         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15189         * tests/test-fprintf-posix3.c (main): Likewise.
15190
15191 2011-01-26  Bruno Haible  <bruno@clisp.org>
15192
15193         Tests for module 'get-rusage-data'.
15194         * modules/get-rusage-data-tests: New file.
15195         * tests/test-get-rusage-data.c: New file.
15196
15197         New module 'get-rusage-data'.
15198         * lib/resource-ext.h (get_rusage_data): New declaration.
15199         * lib/get-rusage-data.c: New file.
15200         * modules/get-rusage-data: New file.
15201
15202 2011-01-25  Bruno Haible  <bruno@clisp.org>
15203
15204         get-rusage-as: Allow for easier testing.
15205         * lib/resource-ext.h (get_rusage_as): Add comment.
15206         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15207         (main): New function for interactive testing.
15208
15209 2011-01-25  Bruno Haible  <bruno@clisp.org>
15210
15211         vma-iter: Treat Haiku like BeOS.
15212         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15213         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15214
15215 2011-01-25  Eric Blake  <eblake@redhat.com>
15216
15217         c-stack: fix regression on cygwin when libsigsegv is present
15218         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15219
15220 2011-01-24  Bruno Haible  <bruno@clisp.org>
15221
15222         vma-iter: Avoid empty intervals.
15223         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15224         on an empty interval.
15225
15226 2011-01-24  Jim Meyering  <meyering@redhat.com>
15227
15228         u64: remove unnecessary #include
15229         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15230
15231 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15232
15233         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15234         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15235
15236 2011-01-23  Bruno Haible  <bruno@clisp.org>
15237
15238         New module 'vma-iter'.
15239         * lib/vma-iter.h: New file.
15240         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15241         * modules/vma-iter: New file.
15242         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15243         for get_rusage_as_via_iterator.
15244         (vma_iterate_callback): New function.
15245         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15246         * modules/get-rusage-as (Depends-on): Add vma-iter.
15247
15248 2011-01-23  Bruno Haible  <bruno@clisp.org>
15249
15250         uninorm: Tweak includes.
15251         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15252         Reported by Jim Meyering.
15253
15254 2011-01-23  Bruno Haible  <bruno@clisp.org>
15255
15256         get-rusage-as: Improve on NetBSD.
15257         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15258         /proc, like on FreeBSD.
15259
15260 2011-01-23  Jim Meyering  <meyering@redhat.com>
15261
15262         xreadlink.h: remove unnecessary #include
15263         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15264
15265         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15266         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15267
15268 2011-01-23  Bruno Haible  <bruno@clisp.org>
15269
15270         get-rusage-as: Fix bug.
15271         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15272         original limit when aborting the first loop.
15273
15274 2011-01-23  Bruno Haible  <bruno@clisp.org>
15275
15276         wctype: Ensure valid C syntax.
15277         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15278         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15279
15280 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15281
15282         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15284         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15285         as they are needed only for configure's test case.
15286         This removes two unnecessary symbols from config.h.
15287
15288         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15289         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15291         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15292         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15293         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15294         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15295         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15296         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15297         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15298         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15299         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15300         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15301         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15302         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15303         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15304         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15305         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15306
15307 2011-01-21  Eric Blake  <eblake@redhat.com>
15308
15309         maintainer-makefile: work with older git for submodule check
15310         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15311         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15312         Reported by Matthias Bolte.
15313
15314         bootstrap: minor portability fixes
15315         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15316         (usage): Omit leading capital and trailing . on help phrases, per
15317         GNU Coding Standards.
15318         (check_versions, top level): Prefix messages with script name.
15319
15320 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15321
15322         bootstrap: support --no-git option
15323         * build-aux/bootstrap: Add --no-git option, to be used when
15324         --gnulib-srcdir points to the exact desired checkout.
15325
15326 2011-01-21  Eric Blake  <eblake@redhat.com>
15327
15328         strerror_r-posix: work with glibc 2.13
15329         * lib/strerror_r.c (strerror_r): Fix return type.
15330
15331 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15332             Bruno Haible  <bruno@clisp.org>
15333
15334         uN_strstr: New unit tests.
15335         * modules/unistr/u8-strstr-tests: New file.
15336         * modules/unistr/u16-strstr-tests: New file.
15337         * modules/unistr/u32-strstr-tests: New file.
15338         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15339         * tests/unistr/test-u8-strstr.c: New file.
15340         * tests/unistr/test-u16-strstr.c: New file.
15341         * tests/unistr/test-u32-strstr.c: New file.
15342
15343 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15344             Bruno Haible  <bruno@clisp.org>
15345
15346         Make uN_strstr functions O(n) worst-case.
15347         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15348         16-bit and 32-bit unit cases, use the unibyte algorithm from
15349         lib/mbsstr.c.
15350         * lib/unistr/u8-strstr.c: Include <string.h>.
15351         (UNIT_IS_UINT8_T): New macro.
15352         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15353         (U_STRLEN, U_STRNLEN): New macros.
15354         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15355         (U_STRLEN, U_STRNLEN): New macros.
15356         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15357         (configure.ac): Update required libunistring version.
15358         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15359         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15360         malloca.
15361         (configure.ac): Update required libunistring version.
15362         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15363         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15364         malloca.
15365         (configure.ac): Update required libunistring version.
15366
15367 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15368             Bruno Haible  <bruno@clisp.org>
15369
15370         Prepare for faster uN_strstr functions.
15371         * lib/str-kmp.h: Support definable UNITs.
15372         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15373         needle_len argument.
15374         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15375         * lib/mbscasestr.c (mbscasestr): Likewise.
15376
15377 2011-01-21  Pádraig Brady <P@draigBrady.com>
15378
15379         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15380         * tests/test-malloca.c (main): Unset the environment variable
15381         to greatly speed up the test.
15382         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15383         * modules/malloca-tests: Depend on unsetenv.
15384
15385 2011-01-21  Pádraig Brady <P@draigBrady.com>
15386
15387         ignore-value: remove stdint dependency
15388         * lib/ignore-value.h: Remove <stdint.h>
15389         * modules/ignore-value: Remove stdint dependency.
15390
15391 2011-01-21  Jim Meyering  <meyering@redhat.com>
15392
15393         maint.mk: adjust variable name to be consistent with other gl_ vars
15394         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15395         to be lower case.
15396
15397 2011-01-20  Jim Meyering  <meyering@redhat.com>
15398
15399         maint.mk: make "check" depend on public-submodule-commit by default
15400         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15401
15402 2011-01-20  Bruno Haible  <bruno@clisp.org>
15403
15404         mbfile, mbiter: Complete change from 2008-12-21.
15405         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15406         * m4/mbiter.m4 (gl_MBITER): Likewise.
15407
15408 2011-01-20  Jim Meyering  <meyering@redhat.com>
15409
15410         init.sh: insert space between each function name and "()"
15411         * tests/init.sh: Make it a little easier to see that a function's
15412         name is "warn_", and not "warn" when looking at the first part of
15413         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15414
15415 2011-01-20  Jim Meyering  <meyering@redhat.com>
15416
15417         mountlist: clean up code formatting
15418         * lib/mountlist.c (read_file_system_list): Split a long line,
15419         correct bracing style, use NULL in place of "(struct statfs *)0",
15420         don't parenthesize return value, add spaces around "=" and after
15421         ";-in-for-stmt".
15422
15423 2011-01-14  Markus Duft <mduft@gentoo.org>
15424
15425         mountlist: add support for Interix
15426         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15427         Apply statvfs to all entries of /dev/fs.
15428         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15429         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15430
15431 2011-01-20  Jim Meyering  <meyering@redhat.com>
15432
15433         maint.mk: improve the public-submodule-commit rule
15434         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15435         to suppress printing of its commands... unless V=1.
15436         Add git submodule's --quiet option to suppress printing of e.g.,
15437         "Entering gnulib" output.
15438         "cd" into $(srcdir) before running git submodule.
15439
15440 2011-01-20  Bruno Haible  <bruno@clisp.org>
15441
15442         include_next: Fix bug introduced on 2011-01-18.
15443         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15444         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15445         ac_cv_header_... variable if the second argument is not 'check'.
15446         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15447         gl_NEXT_HEADERS_INTERNAL.
15448
15449 2011-01-20  Bruno Haible  <bruno@clisp.org>
15450
15451         Allow the user to avoid the GNULIB_TEST_* macros.
15452         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15453         Suggested by Paul Eggert.
15454
15455 2011-01-14  Jim Meyering  <meyering@redhat.com>
15456
15457         bootstrap: avoid failure when there is no .gitmodules file
15458         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15459         has been assigned to, even when its value is the empty string.
15460         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15461         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15462         Reported by John W. Eaton <jwe@gnu.org>.
15463
15464 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15465
15466         assume <ctype.h>, ..., <time.h> exist
15467         For years gnulib has been assuming the existence of the headers
15468         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15469         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15470         them, since they don't appear to be needed.
15471         * README (Portability guidelines): Document this.
15472         * lib/flock.c: Assume <fcntl.h> exists.
15473         * lib/regex_internal.h: Assume <locale.h> exists.
15474         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15475         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15476         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15477         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15478         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15479         * m4/regex.m4 (gl_REGEX): Likewise.
15480         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15481         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15482         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15483         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15484         * tests/test-argp.c: Likewise.
15485         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15486
15487         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15488         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15489         AA_APPLE_UNIVERSAL_BUILD.  See
15490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15491         * NEWS: Document this.
15492
15493 2011-01-19  Eric Blake  <eblake@redhat.com>
15494
15495         c-stack: assume stack overflow if SA_SIGINFO unsupported
15496         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15497         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15498         sigaction will work.
15499         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15500         behavior match Linux.
15501         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15502
15503         stdbool-tests: accomodate Haiku
15504         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15505
15506         binary-io: fix O_TEXT on Haiku
15507         * modules/binary-io (Depends-on): Add fcntl-h.
15508         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15509         than blindly undefining O_TEXT.
15510         Reported by Scott McCreary.
15511
15512 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15513
15514         include_next: do not check for standard headers like stddef.h
15515
15516         I found this problem when modifying Emacs to use gnulib.
15517         I noticed that it added HAVE_STDDEF_H to config.h, even though
15518         gnulib always assumes <stddef.h> exists as per README and this
15519         symbol is unnecessary.
15520         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15521         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15522         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15523         faster for headers like stddef.h that are known to exist.
15524         (gl_CHECK_NEXT_HEADERS): Use it.
15525         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15526         rather than gl_CHECK_NEXT_HEADERS.
15527         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15528         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15529
15530 2011-01-18  Eric Blake  <eblake@redhat.com>
15531
15532         ansi-c++-opt: skip C++ dependency style if C++ is unused
15533         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15534         tests when we know C++ compilation is not desired.
15535         Reported by Scott McCreary.
15536
15537 2011-01-18  Bruno Haible  <bruno@clisp.org>
15538
15539         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15540         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15541         (main): Perform test also when getrlimit and setrlimit don't exist or
15542         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15543         limiting the address space size using setrlimit, compare the address
15544         space size before and after the the test.
15545         * tests/test-dprintf-posix2.c: Likewise.
15546         * tests/test-fprintf-posix3.sh: Update skip messages.
15547         * tests/test-dprintf-posix2.sh: Likewise.
15548         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15549         * modules/dprintf-posix-tests (Depends-on): Likewise.
15550         Reported by Bruce Korb <bkorb@gnu.org> and
15551         Gary V. Vaughan <gary@gnu.org>.
15552
15553 2011-01-18  Bruno Haible  <bruno@clisp.org>
15554
15555         get-rusage-as: Improvement for Cygwin.
15556         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15557         areas that are merely reserved.
15558
15559 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15560
15561         strftime: remove dependencies on multibyte modules
15562
15563         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15564         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15565         only if __osf__ is defined, and I suspect OSF doesn't need these
15566         other modules.  If my guess is wrong, we'll need to come up with a
15567         variant of strftime that doesn't need the multibyte modules.
15568
15569         I discovered this problem when attempting modify Emacs to use the
15570         strftime module.  With the previous gnulib, this caused Emacs to
15571         need 31 new files, ranging from lib/config.charset to
15572         m4/wint_t.m4.  This was overkill and I expect would be offputting
15573         to the Emacs maintainers.  After this change, only 6 new files are
15574         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15575         stdbool.m4, and tm_gmtoff.m4.
15576
15577         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15578         Suggested by Bruno Haible in
15579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15580         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15581         and do not check for wchar.h.
15582         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15583         (Depends-on): Remove mbrlen, mbsinit, wchar.
15584
15585 2011-01-18  Bruno Haible  <bruno@clisp.org>
15586
15587         Tests for module 'get-rusage-as'.
15588         * modules/get-rusage-as-tests: New file.
15589         * tests/test-get-rusage-as.c: New file.
15590
15591         New module 'get-rusage-as'.
15592         * modules/get-rusage-as: New file.
15593         * lib/resource-ext.h: New file.
15594         * lib/get-rusage-as.c: New file.
15595
15596 2011-01-17  Eric Blake  <eblake@redhat.com>
15597
15598         sigaction: relax license from LGPLv3+ to LGPLv2+
15599         * modules/sigaction (License): Relax to LGPLv2+.
15600
15601 2011-01-14  Bruno Haible  <bruno@clisp.org>
15602
15603         filemode: Make function declarations usable in C++ mode.
15604         * lib/filemode.h: Enclose function declarations in extern "C" block.
15605         Reported by John W. Eaton <jwe@gnu.org>.
15606
15607 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15608
15609         save-cwd: no longer include "xgetcwd.h"
15610         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15611         This avoids a compilation failure in projects that use save-cwd
15612         without also using the xgetcwd module.
15613
15614 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15615
15616         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15617         This is so that a program like Emacs, which needs only dtoastr,
15618         does not have to bother with distributing and compiling ftoastr
15619         and ldtoastr.
15620         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15621         * modules/dtoastr, modules/ldtoastr: New files.
15622         * modules/ftoastr: Now works just for 'float'.
15623         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15624         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15625         dtoastr.c, ldtoastr.c.
15626
15627 2011-01-11  Jim Meyering  <meyering@redhat.com>
15628
15629         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15630         There is no need to work around the lack of the fchdir function,
15631         since gnulib can now provide a replacement when required.
15632         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15633         * modules/save-cwd (Depends-on): Add fchdir.
15634
15635 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15636
15637         openat, save-cwd: avoid xmalloc
15638
15639         This removes a direct (but undocumented) dependency of openat on
15640         xalloc, along with an indirect dependency via save-cwd.  It also
15641         removes a dependency of save-cwd on xgetcwd, and thereby
15642         indirectly on xalloc.  This change causes the openat substitute
15643         to fall back on save_cwd when memory is tight, and for save_cwd to
15644         fail instead of dying when memory is tight, but that's good enough.
15645         Problem and initial idea for fix reported by Bastien Roucaries in
15646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15647
15648         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15649         xalloc.h (for xmalloc).
15650         (openat_proc_name): Use malloc, not xmalloc.
15651         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15652         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15653
15654         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15655         This avoids heap allocation for file names whose lengths are in
15656         the range 512..1023, with the upper bound increasing to at most
15657         4031 depending on the platform's PATH_MAX.  (We do not want
15658         pathmax.h here as it might supply a non-constant PATH_MAX.)
15659         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15660         Perhaps they should be moved to malloca.h?
15661         (OPENAT_BUFFER_SIZE): Use them.
15662
15663 2011-01-10  Bruno Haible  <bruno@clisp.org>
15664
15665         doc: Update users.txt.
15666         * users.txt: Add recutils.
15667
15668 2011-01-09  Karl Berry  <karl@gnu.org>
15669
15670         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15671
15672         * doc/configmake.texi: New file.
15673         * doc/gnulib.texi: Include it.
15674         * modules/configmake: Move documentation from here.
15675
15676 2011-01-09  Bruno Haible  <bruno@clisp.org>
15677
15678         Update to Unicode 6.0.0.
15679         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15680         (get_lbp): Update for Unicode 6.0.0.
15681         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15682         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15683         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15684         U+11001, U+11038..U+11046. Remove U+06DE.
15685         (uc_width): Fix bounds of planes.
15686         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15687         lib/uniwidth/width.c.
15688         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15689         trailing whitespace removed.
15690         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15691         without comments, but with the original copyright notice.
15692         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15693         * lib/unicase/ignorable.h: Likewise.
15694         * lib/unicase/tocasefold.h: Likewise.
15695         * lib/unicase/tolower.h: Likewise.
15696         * lib/unicase/totitle.h: Likewise.
15697         * lib/unicase/toupper.h: Likewise.
15698         * lib/unictype/bidi_of.h: Likewise.
15699         * lib/unictype/blocks.h: Likewise.
15700         * lib/unictype/categ_C.h: Likewise.
15701         * lib/unictype/categ_Cn.h: Likewise.
15702         * lib/unictype/categ_L.h: Likewise.
15703         * lib/unictype/categ_Ll.h: Likewise.
15704         * lib/unictype/categ_Lm.h: Likewise.
15705         * lib/unictype/categ_Lo.h: Likewise.
15706         * lib/unictype/categ_Lu.h: Likewise.
15707         * lib/unictype/categ_M.h: Likewise.
15708         * lib/unictype/categ_Mc.h: Likewise.
15709         * lib/unictype/categ_Me.h: Likewise.
15710         * lib/unictype/categ_Mn.h: Likewise.
15711         * lib/unictype/categ_N.h: Likewise.
15712         * lib/unictype/categ_Nd.h: Likewise.
15713         * lib/unictype/categ_No.h: Likewise.
15714         * lib/unictype/categ_P.h: Likewise.
15715         * lib/unictype/categ_Po.h: Likewise.
15716         * lib/unictype/categ_S.h: Likewise.
15717         * lib/unictype/categ_Sc.h: Likewise.
15718         * lib/unictype/categ_Sk.h: Likewise.
15719         * lib/unictype/categ_Sm.h: Likewise.
15720         * lib/unictype/categ_So.h: Likewise.
15721         * lib/unictype/categ_of.h: Likewise.
15722         * lib/unictype/combining.h: Likewise.
15723         * lib/unictype/ctype_alnum.h: Likewise.
15724         * lib/unictype/ctype_alpha.h: Likewise.
15725         * lib/unictype/ctype_graph.h: Likewise.
15726         * lib/unictype/ctype_lower.h: Likewise.
15727         * lib/unictype/ctype_print.h: Likewise.
15728         * lib/unictype/ctype_punct.h: Likewise.
15729         * lib/unictype/ctype_upper.h: Likewise.
15730         * lib/unictype/decdigit.h: Likewise.
15731         * lib/unictype/digit.h: Likewise.
15732         * lib/unictype/numeric.h: Likewise.
15733         * lib/unictype/pr_alphabetic.h: Likewise.
15734         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15735         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15736         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15737         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15738         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15739         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15740         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15741         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15742         * lib/unictype/pr_case_ignorable.h: Likewise.
15743         * lib/unictype/pr_cased.h: Likewise.
15744         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15745         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15746         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15747         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15748         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15749         * lib/unictype/pr_combining.h: Likewise.
15750         * lib/unictype/pr_composite.h: Likewise.
15751         * lib/unictype/pr_currency_symbol.h: Likewise.
15752         * lib/unictype/pr_decimal_digit.h: Likewise.
15753         * lib/unictype/pr_deprecated.h: Likewise.
15754         * lib/unictype/pr_format_control.h: Likewise.
15755         * lib/unictype/pr_grapheme_base.h: Likewise.
15756         * lib/unictype/pr_grapheme_extend.h: Likewise.
15757         * lib/unictype/pr_grapheme_link.h: Likewise.
15758         * lib/unictype/pr_id_continue.h: Likewise.
15759         * lib/unictype/pr_id_start.h: Likewise.
15760         * lib/unictype/pr_ideographic.h: Likewise.
15761         * lib/unictype/pr_lowercase.h: Likewise.
15762         * lib/unictype/pr_math.h: Likewise.
15763         * lib/unictype/pr_numeric.h: Likewise.
15764         * lib/unictype/pr_other_alphabetic.h: Likewise.
15765         * lib/unictype/pr_other_id_continue.h: Likewise.
15766         * lib/unictype/pr_other_math.h: Likewise.
15767         * lib/unictype/pr_punctuation.h: Likewise.
15768         * lib/unictype/pr_sentence_terminal.h: Likewise.
15769         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15770         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15771         * lib/unictype/pr_unified_ideograph.h: Likewise.
15772         * lib/unictype/pr_uppercase.h: Likewise.
15773         * lib/unictype/pr_xid_continue.h: Likewise.
15774         * lib/unictype/pr_xid_start.h: Likewise.
15775         * lib/unictype/scripts.h: Likewise.
15776         * lib/unictype/scripts_byname.gperf: Likewise.
15777         * lib/unictype/sy_java_ident.h: Likewise.
15778         * lib/unigbrk/gbrkprop.h: Likewise.
15779         * lib/unilbrk/lbrkprop1.h: Likewise.
15780         * lib/unilbrk/lbrkprop2.h: Likewise.
15781         * lib/uninorm/decomposition-table2.h: Likewise.
15782         * lib/uniwbrk/wbrkprop.h: Likewise.
15783         * tests/unicase/test-cased.c: Likewise.
15784         * tests/unicase/test-ignorable.c: Likewise.
15785         * tests/unicase/test-uc_tolower.c: Likewise.
15786         * tests/unicase/test-uc_totitle.c: Likewise.
15787         * tests/unicase/test-uc_toupper.c: Likewise.
15788         * tests/unictype/test-categ_C.c: Likewise.
15789         * tests/unictype/test-categ_Cn.c: Likewise.
15790         * tests/unictype/test-categ_L.c: Likewise.
15791         * tests/unictype/test-categ_Ll.c: Likewise.
15792         * tests/unictype/test-categ_Lm.c: Likewise.
15793         * tests/unictype/test-categ_Lo.c: Likewise.
15794         * tests/unictype/test-categ_Lu.c: Likewise.
15795         * tests/unictype/test-categ_M.c: Likewise.
15796         * tests/unictype/test-categ_Mc.c: Likewise.
15797         * tests/unictype/test-categ_Me.c: Likewise.
15798         * tests/unictype/test-categ_Mn.c: Likewise.
15799         * tests/unictype/test-categ_N.c: Likewise.
15800         * tests/unictype/test-categ_Nd.c: Likewise.
15801         * tests/unictype/test-categ_No.c: Likewise.
15802         * tests/unictype/test-categ_P.c: Likewise.
15803         * tests/unictype/test-categ_Po.c: Likewise.
15804         * tests/unictype/test-categ_S.c: Likewise.
15805         * tests/unictype/test-categ_Sc.c: Likewise.
15806         * tests/unictype/test-categ_Sk.c: Likewise.
15807         * tests/unictype/test-categ_Sm.c: Likewise.
15808         * tests/unictype/test-categ_So.c: Likewise.
15809         * tests/unictype/test-ctype_alnum.c: Likewise.
15810         * tests/unictype/test-ctype_alpha.c: Likewise.
15811         * tests/unictype/test-ctype_graph.c: Likewise.
15812         * tests/unictype/test-ctype_lower.c: Likewise.
15813         * tests/unictype/test-ctype_print.c: Likewise.
15814         * tests/unictype/test-ctype_punct.c: Likewise.
15815         * tests/unictype/test-ctype_upper.c: Likewise.
15816         * tests/unictype/test-decdigit.h: Likewise.
15817         * tests/unictype/test-digit.h: Likewise.
15818         * tests/unictype/test-numeric.h: Likewise.
15819         * tests/unictype/test-pr_alphabetic.c: Likewise.
15820         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15821         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15822         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15823         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15824         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15825         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15826         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15827         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15828         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15829         * tests/unictype/test-pr_cased.c: Likewise.
15830         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15831         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15832         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15833         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15834         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15835         * tests/unictype/test-pr_combining.c: Likewise.
15836         * tests/unictype/test-pr_composite.c: Likewise.
15837         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15838         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15839         * tests/unictype/test-pr_deprecated.c: Likewise.
15840         * tests/unictype/test-pr_format_control.c: Likewise.
15841         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15842         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15843         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15844         * tests/unictype/test-pr_id_continue.c: Likewise.
15845         * tests/unictype/test-pr_id_start.c: Likewise.
15846         * tests/unictype/test-pr_ideographic.c: Likewise.
15847         * tests/unictype/test-pr_lowercase.c: Likewise.
15848         * tests/unictype/test-pr_math.c: Likewise.
15849         * tests/unictype/test-pr_numeric.c: Likewise.
15850         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15851         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15852         * tests/unictype/test-pr_other_math.c: Likewise.
15853         * tests/unictype/test-pr_punctuation.c: Likewise.
15854         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15855         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15856         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15857         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15858         * tests/unictype/test-pr_uppercase.c: Likewise.
15859         * tests/unictype/test-pr_xid_continue.c: Likewise.
15860         * tests/unictype/test-pr_xid_start.c: Likewise.
15861         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15862         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15863         changes.
15864         * lib/unictype/categ_Cc.h: Likewise.
15865         * lib/unictype/categ_Cf.h: Likewise.
15866         * lib/unictype/categ_Co.h: Likewise.
15867         * lib/unictype/categ_Cs.h: Likewise.
15868         * lib/unictype/categ_Lt.h: Likewise.
15869         * lib/unictype/categ_Nl.h: Likewise.
15870         * lib/unictype/categ_Pc.h: Likewise.
15871         * lib/unictype/categ_Pd.h: Likewise.
15872         * lib/unictype/categ_Pe.h: Likewise.
15873         * lib/unictype/categ_Pf.h: Likewise.
15874         * lib/unictype/categ_Pi.h: Likewise.
15875         * lib/unictype/categ_Ps.h: Likewise.
15876         * lib/unictype/categ_Z.h: Likewise.
15877         * lib/unictype/categ_Zl.h: Likewise.
15878         * lib/unictype/categ_Zp.h: Likewise.
15879         * lib/unictype/categ_Zs.h: Likewise.
15880         * lib/unictype/ctype_blank.h: Likewise.
15881         * lib/unictype/ctype_cntrl.h: Likewise.
15882         * lib/unictype/ctype_digit.h: Likewise.
15883         * lib/unictype/ctype_space.h: Likewise.
15884         * lib/unictype/ctype_xdigit.h: Likewise.
15885         * lib/unictype/mirror.h: Likewise.
15886         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15887         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15888         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15889         * lib/unictype/pr_bidi_control.h: Likewise.
15890         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15891         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15892         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15893         * lib/unictype/pr_bidi_pdf.h: Likewise.
15894         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15895         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15896         * lib/unictype/pr_dash.h: Likewise.
15897         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15898         * lib/unictype/pr_diacritic.h: Likewise.
15899         * lib/unictype/pr_extender.h: Likewise.
15900         * lib/unictype/pr_hex_digit.h: Likewise.
15901         * lib/unictype/pr_hyphen.h: Likewise.
15902         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15903         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15904         * lib/unictype/pr_ignorable_control.h: Likewise.
15905         * lib/unictype/pr_iso_control.h: Likewise.
15906         * lib/unictype/pr_join_control.h: Likewise.
15907         * lib/unictype/pr_left_of_pair.h: Likewise.
15908         * lib/unictype/pr_line_separator.h: Likewise.
15909         * lib/unictype/pr_logical_order_exception.h: Likewise.
15910         * lib/unictype/pr_non_break.h: Likewise.
15911         * lib/unictype/pr_not_a_character.h: Likewise.
15912         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15913         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15914         * lib/unictype/pr_other_id_start.h: Likewise.
15915         * lib/unictype/pr_other_lowercase.h: Likewise.
15916         * lib/unictype/pr_other_uppercase.h: Likewise.
15917         * lib/unictype/pr_paired_punctuation.h: Likewise.
15918         * lib/unictype/pr_paragraph_separator.h: Likewise.
15919         * lib/unictype/pr_pattern_syntax.h: Likewise.
15920         * lib/unictype/pr_pattern_white_space.h: Likewise.
15921         * lib/unictype/pr_private_use.h: Likewise.
15922         * lib/unictype/pr_quotation_mark.h: Likewise.
15923         * lib/unictype/pr_radical.h: Likewise.
15924         * lib/unictype/pr_soft_dotted.h: Likewise.
15925         * lib/unictype/pr_space.h: Likewise.
15926         * lib/unictype/pr_titlecase.h: Likewise.
15927         * lib/unictype/pr_variation_selector.h: Likewise.
15928         * lib/unictype/pr_white_space.h: Likewise.
15929         * lib/unictype/pr_zero_width.h: Likewise.
15930         * lib/unictype/sy_c_ident.h: Likewise.
15931         * lib/unictype/sy_c_whitespace.h: Likewise.
15932         * lib/unictype/sy_java_whitespace.h: Likewise.
15933         * lib/uninorm/composition-table.gperf: Likewise.
15934         * lib/uninorm/decomposition-table1.h: Likewise.
15935         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15936         LB8.
15937         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15938         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15939         * modules/unictype/*: Bump version number of expected libunistring
15940         version.
15941
15942 2011-01-09  Bruno Haible  <bruno@clisp.org>
15943
15944         Update to Unicode 5.2.0.
15945         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15946         trailing whitespace removed.
15947
15948 2011-01-09  Bruno Haible  <bruno@clisp.org>
15949
15950         New Unicode character properties, from Unicode 5.2.0.
15951         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15952         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15953         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15954         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15955         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15956         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15957         uc_is_property_cased, uc_is_property_case_ignorable,
15958         uc_is_property_changes_when_lowercased,
15959         uc_is_property_changes_when_uppercased,
15960         uc_is_property_changes_when_titlecased,
15961         uc_is_property_changes_when_casefolded,
15962         uc_is_property_changes_when_casemapped): New declarations.
15963         * lib/unictype/pr_byname.gperf: Add the new properties.
15964         * modules/unictype/property-byname (Depends-on): Depend on the new
15965         properties modules.
15966         * modules/unictype/property-all (Depends-on): Likewise.
15967         * MODULES.html.sh (Unicode string functions): Add
15968         unictype/property-case-ignorable, unictype/property-cased,
15969         unictype/property-changes-when-casefolded,
15970         unictype/property-changes-when-casemapped,
15971         unictype/property-changes-when-lowercased,
15972         unictype/property-changes-when-titlecased,
15973         unictype/property-changes-when-uppercased.
15974
15975         New module 'unictype/property-changes-when-casemapped'.
15976         * modules/unictype/property-changes-when-casemapped: New file.
15977         * lib/unictype/pr_changes_when_casemapped.c: New file.
15978         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15979         generated by gen-uni-tables.
15980         * modules/unictype/property-changes-when-casemapped-tests: New file.
15981         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15982         automatically generated by gen-uni-tables.
15983
15984         New module 'unictype/property-changes-when-casefolded'.
15985         * modules/unictype/property-changes-when-casefolded: New file.
15986         * lib/unictype/pr_changes_when_casefolded.c: New file.
15987         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15988         generated by gen-uni-tables.
15989         * modules/unictype/property-changes-when-casefolded-tests: New file.
15990         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15991         automatically generated by gen-uni-tables.
15992
15993         New module 'unictype/property-changes-when-titlecased'.
15994         * modules/unictype/property-changes-when-titlecased: New file.
15995         * lib/unictype/pr_changes_when_titlecased.c: New file.
15996         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15997         generated by gen-uni-tables.
15998         * modules/unictype/property-changes-when-titlecased-tests: New file.
15999         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16000         automatically generated by gen-uni-tables.
16001
16002         New module 'unictype/property-changes-when-uppercased'.
16003         * modules/unictype/property-changes-when-uppercased: New file.
16004         * lib/unictype/pr_changes_when_uppercased.c: New file.
16005         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16006         generated by gen-uni-tables.
16007         * modules/unictype/property-changes-when-uppercased-tests: New file.
16008         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16009         automatically generated by gen-uni-tables.
16010
16011         New module 'unictype/property-changes-when-lowercased'.
16012         * modules/unictype/property-changes-when-lowercased: New file.
16013         * lib/unictype/pr_changes_when_lowercased.c: New file.
16014         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16015         generated by gen-uni-tables.
16016         * modules/unictype/property-changes-when-lowercased-tests: New file.
16017         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16018         automatically generated by gen-uni-tables.
16019
16020         New module 'unictype/property-case-ignorable'.
16021         * modules/unictype/property-case-ignorable: New file.
16022         * lib/unictype/pr_case_ignorable.c: New file.
16023         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16024         by gen-uni-tables.
16025         * modules/unictype/property-case-ignorable-tests: New file.
16026         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16027         generated by gen-uni-tables.
16028
16029         New module 'unictype/property-cased'.
16030         * modules/unictype/property-cased: New file.
16031         * lib/unictype/pr_cased.c: New file.
16032         * lib/unictype/pr_cased.h: New file, automatically generated by
16033         gen-uni-tables.
16034         * modules/unictype/property-cased-tests: New file.
16035         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16036         gen-uni-tables.
16037
16038 2011-01-09  Bruno Haible  <bruno@clisp.org>
16039
16040         Update to Unicode 5.2.0.
16041         * lib/gen-uni-tables.c (output_predicate, output_category,
16042         output_combclass, output_bidi_category, output_decimal_digit_test,
16043         output_decimal_digit, output_digit_test, output_digit,
16044         output_numeric_test, output_numeric, output_mirror, output_scripts,
16045         output_scripts_byname, output_blocks, output_ident_category): Fix
16046         comment header.
16047         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16048         get_wbp.
16049         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16050         items.
16051         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16052         Changes_When_Lowercased, Changes_When_Uppercased,
16053         Changes_When_Titlecased, Changes_When_Casefolded,
16054         Changes_When_Casemapped.
16055         (is_property_alphabetic, is_property_default_ignorable_code_point):
16056         Update for Unicode 5.2.0.
16057         (is_property_cased, is_property_case_ignorable,
16058         is_property_changes_when_lowercased,
16059         is_property_changes_when_uppercased,
16060         is_property_changes_when_titlecased,
16061         is_property_changes_when_casefolded,
16062         is_property_changes_when_casemapped): New functions.
16063         (output_properties): Output also the properties cased, case_ignorable,
16064         changes_when_lowercased, changes_when_uppercased,
16065         changes_when_titlecased, changes_when_casefolded,
16066         changes_when_casemapped.
16067         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16068         Unicode TR#11 revision 17 -> 19.
16069         (LBP_CP): New enumeration value.
16070         (LBP_*): Adjust values accordingly.
16071         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16072         TR#14 revision 22 -> 24.
16073         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16074         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16075         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16076         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16077         is_WBP_MIDLETTER.
16078         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16079         the code1 and code2 of each composition rule.
16080         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16081         * lib/unicase/ignorable.h: Likewise.
16082         * lib/unicase/tocasefold.h: Likewise.
16083         * lib/unicase/tolower.h: Likewise.
16084         * lib/unicase/totitle.h: Likewise.
16085         * lib/unicase/toupper.h: Likewise.
16086         * lib/unictype/bidi_of.h: Likewise.
16087         * lib/unictype/blocks.h: Likewise.
16088         * lib/unictype/categ_C.h: Likewise.
16089         * lib/unictype/categ_Cf.h: Likewise.
16090         * lib/unictype/categ_Cn.h: Likewise.
16091         * lib/unictype/categ_L.h: Likewise.
16092         * lib/unictype/categ_Ll.h: Likewise.
16093         * lib/unictype/categ_Lm.h: Likewise.
16094         * lib/unictype/categ_Lo.h: Likewise.
16095         * lib/unictype/categ_Lu.h: Likewise.
16096         * lib/unictype/categ_M.h: Likewise.
16097         * lib/unictype/categ_Mc.h: Likewise.
16098         * lib/unictype/categ_Mn.h: Likewise.
16099         * lib/unictype/categ_N.h: Likewise.
16100         * lib/unictype/categ_Nd.h: Likewise.
16101         * lib/unictype/categ_Nl.h: Likewise.
16102         * lib/unictype/categ_No.h: Likewise.
16103         * lib/unictype/categ_P.h: Likewise.
16104         * lib/unictype/categ_Pd.h: Likewise.
16105         * lib/unictype/categ_Po.h: Likewise.
16106         * lib/unictype/categ_S.h: Likewise.
16107         * lib/unictype/categ_Sc.h: Likewise.
16108         * lib/unictype/categ_So.h: Likewise.
16109         * lib/unictype/categ_of.h: Likewise.
16110         * lib/unictype/combining.h: Likewise.
16111         * lib/unictype/ctype_alnum.h: Likewise.
16112         * lib/unictype/ctype_alpha.h: Likewise.
16113         * lib/unictype/ctype_graph.h: Likewise.
16114         * lib/unictype/ctype_lower.h: Likewise.
16115         * lib/unictype/ctype_print.h: Likewise.
16116         * lib/unictype/ctype_punct.h: Likewise.
16117         * lib/unictype/ctype_upper.h: Likewise.
16118         * lib/unictype/decdigit.h: Likewise.
16119         * lib/unictype/digit.h: Likewise.
16120         * lib/unictype/numeric.h: Likewise.
16121         * lib/unictype/pr_alphabetic.h: Likewise.
16122         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16123         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16124         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16125         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16126         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16127         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16128         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16129         * lib/unictype/pr_combining.h: Likewise.
16130         * lib/unictype/pr_composite.h: Likewise.
16131         * lib/unictype/pr_currency_symbol.h: Likewise.
16132         * lib/unictype/pr_dash.h: Likewise.
16133         * lib/unictype/pr_decimal_digit.h: Likewise.
16134         * lib/unictype/pr_deprecated.h: Likewise.
16135         * lib/unictype/pr_diacritic.h: Likewise.
16136         * lib/unictype/pr_extender.h: Likewise.
16137         * lib/unictype/pr_grapheme_base.h: Likewise.
16138         * lib/unictype/pr_grapheme_extend.h: Likewise.
16139         * lib/unictype/pr_grapheme_link.h: Likewise.
16140         * lib/unictype/pr_id_continue.h: Likewise.
16141         * lib/unictype/pr_id_start.h: Likewise.
16142         * lib/unictype/pr_ideographic.h: Likewise.
16143         * lib/unictype/pr_ignorable_control.h: Likewise.
16144         * lib/unictype/pr_logical_order_exception.h: Likewise.
16145         * lib/unictype/pr_lowercase.h: Likewise.
16146         * lib/unictype/pr_numeric.h: Likewise.
16147         * lib/unictype/pr_other_alphabetic.h: Likewise.
16148         * lib/unictype/pr_punctuation.h: Likewise.
16149         * lib/unictype/pr_sentence_terminal.h: Likewise.
16150         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16151         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16152         * lib/unictype/pr_unified_ideograph.h: Likewise.
16153         * lib/unictype/pr_uppercase.h: Likewise.
16154         * lib/unictype/pr_xid_continue.h: Likewise.
16155         * lib/unictype/pr_xid_start.h: Likewise.
16156         * lib/unictype/pr_zero_width.h: Likewise.
16157         * lib/unictype/scripts.h: Likewise.
16158         * lib/unictype/scripts_byname.gperf: Likewise.
16159         * lib/unictype/sy_java_ident.h: Likewise.
16160         * lib/unigbrk/gbrkprop.h: Likewise.
16161         * lib/unilbrk/lbrkprop1.h: Likewise.
16162         * lib/unilbrk/lbrkprop2.h: Likewise.
16163         * lib/unilbrk/lbrktables.h: Likewise.
16164         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16165         LBP_CP. Implement rule LB30.
16166         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16167         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16168         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16169         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16170         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16171         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16172         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16173         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16174         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16175         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16176         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16177         bits instead of 16 bits in the code1 and code2 of each composition
16178         rule.
16179         (uc_composition): Update for Unicode 5.2.0.
16180         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16181         * lib/uninorm/decomposition-table2.h: Likewise.
16182         * lib/uniwbrk/wbrkprop.h: Likewise.
16183         * tests/unicase/test-cased.c: Likewise.
16184         * tests/unicase/test-ignorable.c: Likewise.
16185         * tests/unicase/test-uc_tolower.c: Likewise.
16186         * tests/unicase/test-uc_totitle.c: Likewise.
16187         * tests/unicase/test-uc_toupper.c: Likewise.
16188         * tests/unictype/test-categ_C.c: Likewise.
16189         * tests/unictype/test-categ_Cf.c: Likewise.
16190         * tests/unictype/test-categ_Cn.c: Likewise.
16191         * tests/unictype/test-categ_L.c: Likewise.
16192         * tests/unictype/test-categ_Ll.c: Likewise.
16193         * tests/unictype/test-categ_Lm.c: Likewise.
16194         * tests/unictype/test-categ_Lo.c: Likewise.
16195         * tests/unictype/test-categ_Lu.c: Likewise.
16196         * tests/unictype/test-categ_M.c: Likewise.
16197         * tests/unictype/test-categ_Mc.c: Likewise.
16198         * tests/unictype/test-categ_Mn.c: Likewise.
16199         * tests/unictype/test-categ_N.c: Likewise.
16200         * tests/unictype/test-categ_Nd.c: Likewise.
16201         * tests/unictype/test-categ_Nl.c: Likewise.
16202         * tests/unictype/test-categ_No.c: Likewise.
16203         * tests/unictype/test-categ_P.c: Likewise.
16204         * tests/unictype/test-categ_Pd.c: Likewise.
16205         * tests/unictype/test-categ_Po.c: Likewise.
16206         * tests/unictype/test-categ_S.c: Likewise.
16207         * tests/unictype/test-categ_Sc.c: Likewise.
16208         * tests/unictype/test-categ_So.c: Likewise.
16209         * tests/unictype/test-ctype_alnum.c: Likewise.
16210         * tests/unictype/test-ctype_alpha.c: Likewise.
16211         * tests/unictype/test-ctype_graph.c: Likewise.
16212         * tests/unictype/test-ctype_lower.c: Likewise.
16213         * tests/unictype/test-ctype_print.c: Likewise.
16214         * tests/unictype/test-ctype_punct.c: Likewise.
16215         * tests/unictype/test-ctype_upper.c: Likewise.
16216         * tests/unictype/test-decdigit.h: Likewise.
16217         * tests/unictype/test-digit.h: Likewise.
16218         * tests/unictype/test-numeric.h: Likewise.
16219         * tests/unictype/test-pr_alphabetic.c: Likewise.
16220         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16221         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16222         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16223         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16224         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16225         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16226         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16227         * tests/unictype/test-pr_combining.c: Likewise.
16228         * tests/unictype/test-pr_composite.c: Likewise.
16229         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16230         * tests/unictype/test-pr_dash.c: Likewise.
16231         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16232         * tests/unictype/test-pr_deprecated.c: Likewise.
16233         * tests/unictype/test-pr_diacritic.c: Likewise.
16234         * tests/unictype/test-pr_extender.c: Likewise.
16235         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16236         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16237         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16238         * tests/unictype/test-pr_id_continue.c: Likewise.
16239         * tests/unictype/test-pr_id_start.c: Likewise.
16240         * tests/unictype/test-pr_ideographic.c: Likewise.
16241         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16242         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16243         * tests/unictype/test-pr_lowercase.c: Likewise.
16244         * tests/unictype/test-pr_numeric.c: Likewise.
16245         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16246         * tests/unictype/test-pr_punctuation.c: Likewise.
16247         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16248         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16249         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16250         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16251         * tests/unictype/test-pr_uppercase.c: Likewise.
16252         * tests/unictype/test-pr_xid_continue.c: Likewise.
16253         * tests/unictype/test-pr_xid_start.c: Likewise.
16254         * tests/unictype/test-pr_zero_width.c: Likewise.
16255         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16256         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16257         changed behaviour: line breaking is now disallowed between a letter
16258         or '=' and '('.
16259         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16260         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16261         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16262         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16263         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16264         lib/uniwidth/width.c.
16265         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16266         without comments, but with the original copyright notice.
16267         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16268         changes.
16269         * lib/unictype/categ_Cc.h: Likewise.
16270         * lib/unictype/categ_Co.h: Likewise.
16271         * lib/unictype/categ_Cs.h: Likewise.
16272         * lib/unictype/categ_Lt.h: Likewise.
16273         * lib/unictype/categ_Me.h: Likewise.
16274         * lib/unictype/categ_Pc.h: Likewise.
16275         * lib/unictype/categ_Pe.h: Likewise.
16276         * lib/unictype/categ_Pf.h: Likewise.
16277         * lib/unictype/categ_Pi.h: Likewise.
16278         * lib/unictype/categ_Ps.h: Likewise.
16279         * lib/unictype/categ_Sk.h: Likewise.
16280         * lib/unictype/categ_Sm.h: Likewise.
16281         * lib/unictype/categ_Z.h: Likewise.
16282         * lib/unictype/categ_Zl.h: Likewise.
16283         * lib/unictype/categ_Zp.h: Likewise.
16284         * lib/unictype/categ_Zs.h: Likewise.
16285         * lib/unictype/ctype_blank.h: Likewise.
16286         * lib/unictype/ctype_cntrl.h: Likewise.
16287         * lib/unictype/ctype_digit.h: Likewise.
16288         * lib/unictype/ctype_space.h: Likewise.
16289         * lib/unictype/ctype_xdigit.h: Likewise.
16290         * lib/unictype/mirror.h: Likewise.
16291         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16292         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16293         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16294         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16295         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16296         * lib/unictype/pr_bidi_control.h: Likewise.
16297         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16298         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16299         * lib/unictype/pr_bidi_pdf.h: Likewise.
16300         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16301         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16302         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16303         * lib/unictype/pr_format_control.h: Likewise.
16304         * lib/unictype/pr_hex_digit.h: Likewise.
16305         * lib/unictype/pr_hyphen.h: Likewise.
16306         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16307         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16308         * lib/unictype/pr_iso_control.h: Likewise.
16309         * lib/unictype/pr_join_control.h: Likewise.
16310         * lib/unictype/pr_left_of_pair.h: Likewise.
16311         * lib/unictype/pr_line_separator.h: Likewise.
16312         * lib/unictype/pr_math.h: Likewise.
16313         * lib/unictype/pr_non_break.h: Likewise.
16314         * lib/unictype/pr_not_a_character.h: Likewise.
16315         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16316         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16317         * lib/unictype/pr_other_id_continue.h: Likewise.
16318         * lib/unictype/pr_other_id_start.h: Likewise.
16319         * lib/unictype/pr_other_lowercase.h: Likewise.
16320         * lib/unictype/pr_other_math.h: Likewise.
16321         * lib/unictype/pr_other_uppercase.h: Likewise.
16322         * lib/unictype/pr_paired_punctuation.h: Likewise.
16323         * lib/unictype/pr_paragraph_separator.h: Likewise.
16324         * lib/unictype/pr_pattern_syntax.h: Likewise.
16325         * lib/unictype/pr_pattern_white_space.h: Likewise.
16326         * lib/unictype/pr_private_use.h: Likewise.
16327         * lib/unictype/pr_quotation_mark.h: Likewise.
16328         * lib/unictype/pr_radical.h: Likewise.
16329         * lib/unictype/pr_soft_dotted.h: Likewise.
16330         * lib/unictype/pr_space.h: Likewise.
16331         * lib/unictype/pr_titlecase.h: Likewise.
16332         * lib/unictype/pr_variation_selector.h: Likewise.
16333         * lib/unictype/pr_white_space.h: Likewise.
16334         * lib/unictype/sy_c_ident.h: Likewise.
16335         * lib/unictype/sy_c_whitespace.h: Likewise.
16336         * lib/unictype/sy_java_whitespace.h: Likewise.
16337         * modules/uni*/*: Bump version number of expected libunistring version.
16338         Reported by Simon Josefsson.
16339
16340 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16341
16342         useless-if-before-free: fix typo in --help and make the internal,
16343         automatic version date update process work once again.
16344         --help output contained a NUL character instead of the
16345         backslash-zero that was intended.  Also, the "must lie within
16346         the first 8 lines" line is on line 9, and hence not getting
16347         automatically updated.
16348         * build-aux/useless-if-before-free: Fix the former by adding a
16349         backslash, and the latter by condensing the three lines of what-it-does
16350         to a single line, leaving one line of slack for the future.
16351
16352 2011-01-09  Bruno Haible  <bruno@clisp.org>
16353
16354         uniwidth/width: Fix width of U+1D173..U+1D17A.
16355         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16356         symbolic_width, output_width_property_test): New functions.
16357         (main): Invoke output_nonspacing_property, output_width_property_test.
16358         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16359         U+1D173..U+1D17A.
16360         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16361         1.
16362         * modules/uniwidth/*: Bump version number of expected libunistring
16363         version.
16364         * modules/unilbrk/*: Likewise.
16365
16366 2011-01-08  Bruno Haible  <bruno@clisp.org>
16367
16368         uninorm tests: Preserve copyright of Unicode data file.
16369         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16370         Mention modifications.
16371
16372 2011-01-08  Bruno Haible  <bruno@clisp.org>
16373
16374         gen-uni-tables: Prepare for Unicode 5.2.0.
16375         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16376         (debug_output_lbp, output_lbp): Update.
16377
16378 2011-01-08  Bruno Haible  <bruno@clisp.org>
16379
16380         unilbrk: Clarify gen-uni-tables.c code.
16381         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16382         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16383         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16384
16385 2011-01-07  Bruno Haible  <bruno@clisp.org>
16386
16387         strtod: Restore errno when successfully parsing Infinity or NaN.
16388         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16389         restore the original errno.
16390
16391 2011-01-07  Bruno Haible  <bruno@clisp.org>
16392
16393         remove test: Avoid failure on HP-UX 11.
16394         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16395
16396 2011-01-07  Bruno Haible  <bruno@clisp.org>
16397
16398         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16399         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16400         error code.
16401
16402 2011-01-07  Pádraig Brady <P@draigBrady.com>
16403
16404         ignore-value: fixup comments, and add Eric Blake
16405         as an author since he rewrote the macros.
16406         * lib/ignore-value.h (ignore_value):  State that
16407         we now support aggregates.  Also specify exactly
16408         when the GCC warn_unused_result feature was added.
16409
16410 2011-01-06  Eric Blake  <eblake@redhat.com>
16411
16412         ignore-value: support aggregate types
16413         * lib/ignore-value.h (ignore_value): Provide separate gcc
16414         definition.
16415         * modules/ignore-value-tests: New test module.
16416         * tests/test-ignore-value.c: New test.
16417
16418         maint.mk: improve sc_prohibit_strcmp regex
16419         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16420         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16421         definition of STRNEQ.
16422
16423         signal: work around Haiku issue with SIGBUS
16424         * lib/siglist.h: Add comment.
16425         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16426         strsignal's favoring of SIGSEGV.
16427         * tests/test-signal.c (main): Avoid test failure.
16428         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16429         Reported by Scott McCreary.
16430
16431         maint.mk: add pre-release check to ensure submodule commits are public
16432         * top/maint.mk (public-submodule-commit): New rule.
16433         (submodule-checks): New variable.
16434         (alpha beta stable): Depend on the variable.
16435
16436 2011-01-05  Pádraig Brady <P@draigBrady.com>
16437         and Jim Meyering  <meyering@redhat.com>
16438
16439         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16440         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16441         (ATTRIBUTE_DEPRECATED): Define.
16442         (_ignore_case): New function.
16443         (ignore_value): New macro, to replace the old function.
16444         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16445         * modules/ignore-value (Depends-on): Add stdint.
16446
16447 2011-01-04  Eric Blake  <eblake@redhat.com>
16448
16449         doc: regenerate INSTALL
16450         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16451         @firstparagraphindent support, now that autoconf dropped it.
16452         (INSTALL_PRELUDE): Reinstate old macro.
16453         * doc/install.texi: Resync from autoconf.
16454         * doc/INSTALL: Reflect recent autoconf update.
16455         * doc/INSTALL.ISO: Likewise.
16456         * doc/INSTALL.UTF-8: Likewise.
16457         Reported by Karl Berry.
16458
16459 2011-01-04  Bruce Korb  <address@hidden>
16460
16461         git-version-gen: avoid a sub-shell
16462         * build-aux/git-version-gen: Redirect stderr in `...` via
16463         "exec 2>...", rather than via an added sub-shell.
16464
16465 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16466
16467         git-version-gen: use (...) rather than sh -c '...'
16468         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16469         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16470
16471 2011-01-03  Jim Meyering  <meyering@redhat.com>
16472
16473         git-version-gen: convert leading TABs to spaces
16474         * build-aux/git-version-gen: Expand leading TABs.
16475
16476         git-version-gen: handle failed "git rev-list"
16477         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16478         from git and proceeding as if it had succeeded but printed no SHA1
16479         checksums, suppress the diagnostic and handle the failure.
16480         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16481
16482         git-version-gen: include command name in one more diagnostic
16483         * build-aux/git-version-gen: When the required .tarball-version file
16484         was missing or unreadable, you might see the diagnostic from "cat",
16485         but no trace of the name of the invoking script.  Now, you still see
16486         the diagnostic from cat, but also get one from "git-version-gen: ".
16487         Inspired by a patch from Bruce Korb.
16488
16489         update-copyright: adjust test to match changed code
16490         * tests/test-update-copyright.sh: Change test's expected output
16491         to match new actual output.
16492
16493 2011-01-02  Bruno Haible  <bruno@clisp.org>
16494
16495         getlogin_r: Avoid test failure on HP-UX 11.
16496         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16497         ERANGE when the second argument is zero.
16498         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16499         portability problem.
16500
16501 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16502
16503         * build-aux/update-copyright: doc Simon's changes
16504
16505 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16506
16507         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16508         environment variable.
16509
16510 2011-01-02  Bruno Haible  <bruno@clisp.org>
16511
16512         unigbrk: Avoid gcc warnings.
16513         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16514         unused variable.
16515         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16516         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16517         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16518         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16519         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16520         Change type of first argument to 'const char *'.
16521         (main): Remove unused variable.
16522         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16523         type of first argument to 'const char *'.
16524         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16525         Likewise.
16526         (main): Change type of variable 's'.
16527         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16528         to 'int'.
16529
16530 2011-01-02  Bruno Haible  <bruno@clisp.org>
16531
16532         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16533         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16534         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16535         bug.
16536         * lib/pwrite.c: Undo 2010-12-31 patch.
16537         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16538
16539 2011-01-02  Bruno Haible  <bruno@clisp.org>
16540
16541         pread: Fix test whether it works.
16542         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16543
16544 2011-01-02  Bruno Haible  <bruno@clisp.org>
16545
16546         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16547         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16548         ends in "6". Don't require a specific month name. Try also the locale
16549         names found on HP-UX 11 and Solaris 7.
16550
16551 2011-01-02  Bruno Haible  <bruno@clisp.org>
16552
16553         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16554         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16555         C linkage.
16556         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16557
16558 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16559
16560         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16561         for consistency, since the "cluster" term is not used elsewhere.
16562         * lib/unigbrk.in.h: Update name.
16563         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16564         * lib/unigbrk/u16-grapheme-next.c: Update name.
16565         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16566         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16567         * lib/unigbrk/u32-grapheme-next.c: Update name.
16568         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16569         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16570         * lib/unigbrk/u8-grapheme-next.c: Update name.
16571         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16572         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16573         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16574         Suggested by Bruno Haible.
16575
16576 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16577
16578         Remove module 'u8-grapheme-len' as too redundant with
16579         'u8-grapheme-next'.
16580         * modules/unigbrk/u8-grapheme-len: Delete file.
16581         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16582         * lib/unigbrk.in.h: Remove prototype for deleted function.
16583         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16584         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16585
16586         Remove module 'u16-grapheme-len' as too redundant with
16587         'u16-grapheme-next'.
16588         * modules/unigbrk/u16-grapheme-len: Delete file.
16589         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16590         * lib/unigbrk.in.h: Remove prototype for deleted function.
16591         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16592         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16593
16594         Remove module 'u32-grapheme-len' as too redundant with
16595         'u32-grapheme-next'.
16596         * modules/unigbrk/u32-grapheme-len: Delete file.
16597         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16598         * lib/unigbrk.in.h: Remove prototype for deleted function.
16599         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16600         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16601
16602         Suggested by Bruno Haible.
16603
16604 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16605
16606         * unigbrk.in.h: Fix typo: "ben" => "been".
16607         Reported by Bruno Haible.
16608
16609 2011-01-01  Jim Meyering  <meyering@redhat.com>
16610
16611         maint: update almost all copyright ranges to include 2011
16612         Run the new "make update-copyright" rule.
16613
16614 2011-01-01  Jim Meyering  <meyering@redhat.com>
16615
16616         maint: update-copyright: exempt doc/INSTALL*
16617         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16618         since they are generated.  Suggested by Bruno Haible.
16619
16620 2011-01-01  Jim Meyering  <meyering@redhat.com>
16621
16622         maint: refine the update-copyright rule
16623         * Makefile (update-copyright): Also exclude any file that includes
16624         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16625         code that merely generates the comment.
16626
16627 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16628
16629         New module 'u8-grapheme-len'.
16630         * modules/unigbrk/u8-grapheme-len: New file.
16631         * modules/unigbrk/u8-grapheme-len-tests: New file.
16632         * lib/unigbrk.in.h: Add prototype for new function.
16633         * lib/unigbrk/u8-grapheme-len.c: New file.
16634         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16635
16636         New module 'u16-grapheme-len'.
16637         * modules/unigbrk/u16-grapheme-len: New file.
16638         * modules/unigbrk/u16-grapheme-len-tests: New file.
16639         * lib/unigbrk.in.h: Add prototype for new function.
16640         * lib/unigbrk/u16-grapheme-len.c: New file.
16641         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16642
16643         New module 'u32-grapheme-len'.
16644         * modules/unigbrk/u32-grapheme-len: New file.
16645         * modules/unigbrk/u32-grapheme-len-tests: New file.
16646         * lib/unigbrk.in.h: Add prototype for new function.
16647         * lib/unigbrk/u32-grapheme-len.c: New file.
16648         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16649
16650         New module 'u8-grapheme-next'.
16651         * modules/unigbrk/u8-grapheme-next: New file.
16652         * modules/unigbrk/u8-grapheme-next-tests: New file.
16653         * lib/unigbrk.in.h: Add prototype for new function.
16654         * lib/unigbrk/u8-grapheme-next.c: New file.
16655         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16656
16657         New module 'u16-grapheme-next'.
16658         * modules/unigbrk/u16-grapheme-next: New file.
16659         * modules/unigbrk/u16-grapheme-next-tests: New file.
16660         * lib/unigbrk.in.h: Add prototype for new function.
16661         * lib/unigbrk/u16-grapheme-next.c: New file.
16662         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16663
16664         New module 'u32-grapheme-next'.
16665         * modules/unigbrk/u32-grapheme-next: New file.
16666         * modules/unigbrk/u32-grapheme-next-tests: New file.
16667         * lib/unigbrk.in.h: Add prototype for new function.
16668         * lib/unigbrk/u32-grapheme-next.c: New file.
16669         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16670
16671         New module 'u8-grapheme-prev'.
16672         * modules/unigbrk/u8-grapheme-prev: New file.
16673         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16674         * lib/unigbrk.in.h: Add prototype for new function.
16675         * lib/unigbrk/u8-grapheme-prev.c: New file.
16676         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16677
16678         New module 'u16-grapheme-prev'.
16679         * modules/unigbrk/u16-grapheme-prev: New file.
16680         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16681         * lib/unigbrk.in.h: Add prototype for new function.
16682         * lib/unigbrk/u16-grapheme-prev.c: New file.
16683         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16684
16685         New module 'u32-grapheme-prev'.
16686         * modules/unigbrk/u32-grapheme-prev: New file.
16687         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16688         * lib/unigbrk.in.h: Add prototype for new function.
16689         * lib/unigbrk/u32-grapheme-prev.c: New file.
16690         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16691
16692         New module 'u8-grapheme-breaks'.
16693         * modules/unigbrk/u8-grapheme-breaks: New file.
16694         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16695         * lib/unigbrk.in.h: Add prototype for new function.
16696         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16697         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16698
16699         New module 'u16-grapheme-breaks'.
16700         * modules/unigbrk/u16-grapheme-breaks: New file.
16701         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16702         * lib/unigbrk.in.h: Add prototype for new function.
16703         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16704         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16705
16706         New module 'u32-grapheme-breaks'.
16707         * modules/unigbrk/u32-grapheme-breaks: New file.
16708         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16709         * lib/unigbrk.in.h: Add prototype for new function.
16710         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16711         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16712
16713         New module 'ulc-grapheme-breaks'.
16714         * modules/unigbrk/ulc-grapheme-breaks: New file.
16715         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16716         * m4/locale-ar.m4: New file.
16717         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16718         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16719         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16720
16721 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16722
16723         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16724         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16725         modified how this file was generated before I initially submitted
16726         the module, but failed to regenerate it.  This meant that several
16727         of the level2 entries were wrong.
16728         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16729         Remove the division-by-2 that is folded into the table now that
16730         gbrkprop.h has been regenerated properly.  Now -1 entries are
16731         handled correctly.
16732
16733         New module 'unigbrk/uc-gbrk-prop-tests'.
16734         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16735         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16736         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16737         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16738
16739 2011-01-01  Bruno Haible  <bruno@clisp.org>
16740
16741         Avoid use of hexadecimal escapes.
16742         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16743         instead of hexadecimal escapes.
16744
16745 2011-01-01  Jim Meyering  <meyering@redhat.com>
16746
16747         maint: new rule to update copyright year ranges
16748         * Makefile (update-copyright): New rule.
16749
16750         maint: indent with TABs in Makefile
16751         * Makefile: Expand leading sequences of spaces to TABs
16752
16753         version-etc: update the copyright year it reports
16754         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16755
16756 2010-12-31  Bruno Haible  <bruno@clisp.org>
16757
16758         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16759         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16760         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16761         zero.
16762
16763 2010-12-31  Bruno Haible  <bruno@clisp.org>
16764
16765         pwrite: Work around HP-UX 11.11 bug.
16766         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16767         works and set REPLACE_PWRITE if not.
16768         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16769         function.
16770         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16771
16772 2010-12-31  Bruno Haible  <bruno@clisp.org>
16773
16774         pread: Work around HP-UX 11 bugs.
16775         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16776         and set REPLACE_PREAD if not.
16777         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16778
16779 2010-12-31  Eric Blake  <eblake@redhat.com>
16780
16781         nl_langinfo: fix YESEXPR on Irix 6.5
16782         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16783         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16784         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16785         it.
16786
16787 2010-12-31  Bruno Haible  <bruno@clisp.org>
16788
16789         iconv: Document HP-UX 11 bug.
16790         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16791
16792 2010-12-31  Bruno Haible  <bruno@clisp.org>
16793
16794         ldexpl: Fix link error on HP-UX 11.
16795         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16796         LDEXPL_LIBM, using $ISNANL_LIBM.
16797
16798 2010-12-31  Eric Blake  <eblake@redhat.com>
16799
16800         ftello: avoid compilation failure with SunStudio c89
16801         * lib/ftello.c (ftello): Use lseek, not llseek.
16802
16803         tests: avoid failing coreutils tests on cygwin
16804         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16805         (create_exe_shims_): Return 0 when skipping.
16806
16807 2010-12-31  Bruno Haible  <bruno@clisp.org>
16808
16809         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16810         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16811
16812 2010-12-31  Bruno Haible  <bruno@clisp.org>
16813
16814         waitpid: Fix link error in C++ mode.
16815         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16816
16817 2010-12-31  Bruno Haible  <bruno@clisp.org>
16818
16819         isnan: Use GCC built-ins when possible.
16820         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16821         __builtin_isnan.
16822         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16823         (isnan): Define using GCC built-ins for GCC >= 4.0.
16824
16825 2010-12-31  Bruno Haible  <bruno@clisp.org>
16826
16827         isnand: Fix mistake.
16828         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16829         __builtin_isnand.
16830
16831 2010-12-31  Bruno Haible  <bruno@clisp.org>
16832
16833         open: Avoid C++ error on HP-UX 11.
16834         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16835
16836 2010-12-31  Bruno Haible  <bruno@clisp.org>
16837
16838         time_r: Add missing declarations on HP-UX 11.
16839         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16840         instead of HAVE_LOCALTIME_R.
16841         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16842         HAVE_LOCALTIME_R always.
16843         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16844         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16845         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16846         HAVE_LOCALTIME_R.
16847         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16848         * doc/posix-functions/localtime_r.texi: Likewise.
16849
16850 2010-12-29  Eric Blake  <eblake@redhat.com>
16851
16852         mountlist: tweak previous commit
16853         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16854         Reported by Paul Eggert.
16855
16856         mountlist: fix local drive detection on cygwin
16857         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16858         that works for cygwin.
16859
16860 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16861
16862         ftoastr, snprintf: ftoastr + snprintf module
16863         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16864         since the snprintf module now should be good enough here.
16865         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16866         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16867         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16868         GNULIB_SNPRINTF only for the test directory, and the latter
16869         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16870         seems to suffice by itself.
16871
16872 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16873
16874         alloca: one step towards thread-safety
16875         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16876         need for a static variable.  All callers changed.  This does not
16877         make the alloca replacement thread-safe, but it's one step.
16878
16879         tests: minor indenting change
16880         * tests/init.sh: Sync from coreutils housekeeping patch
16881         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16882         to keep lines within 80 columns.
16883
16884 2010-12-28  Jim Meyering  <meyering@redhat.com>
16885
16886         regex: don't infloop on persistent failing calloc
16887         * lib/regexec.c (build_trtable): Return failure indication upon
16888         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16889         In glibc, this was fixed for version 2.13:
16890         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16891
16892 2010-12-28  Bruno Haible  <bruno@clisp.org>
16893             Paul Eggert <eggert@cs.ucla.edu>
16894
16895         linkat: Make implementation robust against system behaviour variations.
16896         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16897         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16898         way, and to -2 if it needs a generic runtime test.
16899         * lib/linkat.c (solaris_optimized_link_immediate,
16900         solaris_optimized_link_follow): New functions.
16901         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16902         (check_same_link): Use it.
16903
16904 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16905
16906         New module 'unigbrk/base'.
16907         * modules/unigbrk/base: New file.
16908         * lib/unigbrk.in.h: New file.
16909
16910         New module 'unigbrk/uc-gbrk-prop'.
16911         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16912         * modules/unigbrk/uc-gbrk-prop: New file.
16913         * lib/unigbrk/gbrkprop.h: New file.
16914         * lib/unigbrk/uc-gbrk-prop.c: New file.
16915
16916         New module 'unigbrk/uc-is-grapheme-break'.
16917         * modules/unigbrk/uc-is-grapheme-break: New file.
16918         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16919         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16920         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16921         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16922         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16923
16924         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16925
16926 2010-12-27  Bruno Haible  <bruno@clisp.org>
16927
16928         linkat test: Avoid failure on Solaris 11 2010-11.
16929         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16930
16931 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16932
16933         utimens: work around glibc rounding bug on more platforms
16934         * lib/utimens.c (fdutimens): Work around rounding bug even if
16935         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16936         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16937
16938 2010-12-27  Bruno Haible  <bruno@clisp.org>
16939
16940         select tests: Improve comments.
16941         * tests/test-select.c (do_select): Add comments.
16942
16943 2010-12-27  Bruno Haible  <bruno@clisp.org>
16944
16945         select tests: Safer way of handling timeout.
16946         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16947         at every invocation.
16948
16949 2010-12-27  Bruno Haible  <bruno@clisp.org>
16950
16951         select tests: Use 'bool' where appropriate.
16952         * tests/test-select.c (connect_to_socket): Change argument type to
16953         'bool'.
16954
16955 2010-12-27  Bruno Haible  <bruno@clisp.org>
16956
16957         select tests: Use existing modules.
16958         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16959         (configure.ac): Don't test for unistd.h.
16960         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16961         declared in <unistd.h>.
16962
16963 2010-12-27  Bruno Haible  <bruno@clisp.org>
16964
16965         mbrtowc: Work around a Solaris 7 bug.
16966         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16967         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16968         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16969         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16970         MBRTOWC_NULL_ARG1_BUG.
16971         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16972         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16973         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16974         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16975
16976 2010-12-27  Jim Meyering  <meyering@redhat.com>
16977
16978         read-file.c: tweak syntax
16979         * lib/read-file.c (fread_file): Remove space after "*" in function
16980         definitions.
16981
16982 2010-12-27  Bruno Haible  <bruno@clisp.org>
16983
16984         times test: Avoid gcc warnings on OSF/1.
16985         * tests/test-times.c (main): Cast printf arguments from clock_t to
16986         'long int'.
16987
16988 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16989
16990         utimens: work around glibc rounding bug on older Linux kernels
16991         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16992         on Linux with a glibc whose utimes might not work, then work
16993         around a longstanding glibc bug involving rounding rather than
16994         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16995         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16996
16997 2010-12-26  Bruno Haible  <bruno@clisp.org>
16998
16999         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17000         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17001         _GL_CXXALIAS_SYS.
17002         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17003
17004 2010-12-26  Bruno Haible  <bruno@clisp.org>
17005
17006         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17007         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17008         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17009         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17010         looking for the declaration.
17011         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17012         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17013         problem.
17014         * doc/posix-functions/inet_pton.texi: Likewise.
17015
17016 2010-12-26  Bruno Haible  <bruno@clisp.org>
17017
17018         arpa_inet: Use the common idioms with C++ support.
17019         * lib/arpa_inet.in.h: Include c++defs.h.
17020         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17021         support.
17022         * modules/arpa_inet (Depends-on): Add c++defs.
17023         (Makefile.am): Substitute the contents of c++defs.h.
17024         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17025         * modules/arpa_inet-c++-tests: New file.
17026         * tests/test-arpa_inet-c++.cc: New file.
17027
17028 2010-12-25  Bruno Haible  <bruno@clisp.org>
17029
17030         Fix more C++ link errors on Solaris 8.
17031         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17032         $(LIB_EACCESS).
17033         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17034         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17035         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17036         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17037         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17038
17039 2010-12-25  Bruno Haible  <bruno@clisp.org>
17040
17041         printf-posix: Fix link error when a non-GCC compiler is used.
17042         * lib/stdio.in.h (printf): When not using GCC, override printf
17043         correctly.
17044         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17045
17046 2010-12-25  Bruno Haible  <bruno@clisp.org>
17047
17048         strerror_r-posix: Update doc.
17049         * doc/posix-functions/strerror_r.texi: Update doc about the return
17050         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17051
17052 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17053
17054         utimens: simplify the logic of the previous change
17055         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17056         This should not affect whether the test succeeds or fails.
17057
17058         utimens: configure better on hosts with NFS clock skew
17059         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17060         uses the clock of the local host.  It might use the clock of the
17061         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17062         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17063
17064 2010-12-25  Bruno Haible  <bruno@clisp.org>
17065
17066         ptsname test: Avoid failure on Solaris.
17067         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17068         open a pseudo-terminal; don't use BSD-style ptys.
17069         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17070
17071 2010-12-25  Bruno Haible  <bruno@clisp.org>
17072
17073         ptsname: Avoid ERANGE failure on some systems.
17074         * lib/ptsname.c (buffer): Increase size.
17075
17076 2010-12-25  Bruno Haible  <bruno@clisp.org>
17077
17078         rename, renameat: Avoid test failures at NFS mounted locations.
17079         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17080         so that subsequent mkdir calls succeed.
17081
17082 2010-12-25  Bruno Haible  <bruno@clisp.org>
17083
17084         iswblank: Fix C++ link error on Solaris 8.
17085         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17086         _GL_FUNCDECL_SYS.
17087
17088 2010-12-25  Bruno Haible  <bruno@clisp.org>
17089
17090         unistd: Fix C++ link error on Solaris 8.
17091         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17092
17093 2010-12-25  Bruno Haible  <bruno@clisp.org>
17094
17095         readlink doc: Mention an old glibc bug.
17096         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17097
17098 2010-12-25  Bruno Haible  <bruno@clisp.org>
17099
17100         fcntl-h: Fix for use of C++ on glibc systems.
17101         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17102         also on glibc systems in C++ mode.
17103         Reported by Gary V. Vaughan <gary@gnu.org>.
17104
17105 2010-12-25  Bruno Haible  <bruno@clisp.org>
17106
17107         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17108         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17109
17110 2010-12-25  Bruno Haible  <bruno@clisp.org>
17111
17112         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17113         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17114         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17115         test whether truncl works according to ISO C 99 with IEC 60559.
17116         * m4/truncl-ieee.m4: New file.
17117         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17118         m4/signbit.m4.
17119         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17120
17121 2010-12-25  Bruno Haible  <bruno@clisp.org>
17122
17123         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17124         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17125         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17126         test whether ceill works according to ISO C 99 with IEC 60559.
17127         * m4/ceill-ieee.m4: New file.
17128         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17129         m4/signbit.m4.
17130         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17131
17132 2010-12-25  Bruno Haible  <bruno@clisp.org>
17133
17134         Ensure all prerequisites of <wchar.h> are included.
17135         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17136         before <wchar.h>.
17137         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17138         gl_MBRLEN_NUL_RETVAL): Likewise.
17139         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17140         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17141         AC_FUNC_MBRTOWC): Likewise.
17142         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17143         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17144         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17145         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17146         Likewise.
17147         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17148         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17149         (gl_WCHAR_H): Improve comments.
17150         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17151
17152 2010-12-25  Bruno Haible  <bruno@clisp.org>
17153
17154         strtok_r: Fix C syntax error in autoconf macro.
17155         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17156         characters in test program.
17157
17158 2010-12-24  Bruno Haible  <bruno@clisp.org>
17159
17160         ceil, trunc, round: Fix gcc warnings.
17161         * lib/ceil.c (MIN): Undefine before redefining.
17162         * lib/trunc.c (MIN): Likewise.
17163         * lib/round.c (MIN): Likewise.
17164         Include <math.h> first.
17165
17166 2010-12-24  Bruno Haible  <bruno@clisp.org>
17167
17168         select tests: Avoid failures on OSF/1 5.1.
17169         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17170         failure of closing the last socket; it may fail with ECONNRESET.
17171
17172 2010-12-24  Eric Blake  <eblake@redhat.com>
17173
17174         stdint: avoid HP-UX 10.20 preprocessor bug
17175         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17176         than #if.
17177         * tests/test-floor2.c (main): Likewise.
17178         Reported by Peter O'Gorman.
17179
17180         pipe: make obsoletion transition easier
17181         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17182         * modules/pipe (Files): Include revived file.
17183         (Include): Drop reference, to mirror getdate's behavior.
17184
17185 2010-12-24  Bruno Haible  <bruno@clisp.org>
17186
17187         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17188         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17189         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17190         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17191
17192 2010-12-24  Bruno Haible  <bruno@clisp.org>
17193
17194         gethostname: Ensure declaration on NonStop Kernel.
17195         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17196         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17197
17198 2010-12-24  Bruno Haible  <bruno@clisp.org>
17199
17200         sys_select: Ensure all necessary types on NonStop Kernel.
17201         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17202         include <sys/time.h>.
17203         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17204         NonStop Kernel.
17205         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17206
17207 2010-12-24  Bruno Haible  <bruno@clisp.org>
17208
17209         sys_select: Remove unneeded include.
17210         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17211         have <sys/select.h>.
17212
17213 2010-12-24  Bruno Haible  <bruno@clisp.org>
17214
17215         gethostname: Provide a fallback for HOST_NAME_MAX.
17216         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17217         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17218         instead.
17219         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17220
17221 2010-12-24  Bruno Haible  <bruno@clisp.org>
17222
17223         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17224         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17225         (SA_RESTART): Likewise.
17226         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17227
17228 2010-12-24  Bruno Haible  <bruno@clisp.org>
17229
17230         signal: Define NSIG.
17231         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17232         * tests/test-signal.c (nsig): New variable.
17233         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17234
17235 2010-12-24  Bruno Haible  <bruno@clisp.org>
17236
17237         rename, renameat: Avoid test failures on OSF/1 5.1.
17238         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17239         alternative error codes.
17240         * tests/test-renameat.c (main): Likewise.
17241
17242 2010-12-24  Bruno Haible  <bruno@clisp.org>
17243
17244         *printf: Detect large precisions bug on Solaris 10/SPARC.
17245         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17246         by Paul Eggert.
17247         * tests/test-snprintf-posix.h (test_function): Add this test code here
17248         too.
17249         * tests/test-sprintf-posix.h (test_function): Likewise.
17250         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17251         * tests/test-vasprintf-posix.c (test_function): Likewise.
17252         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17253         around by gnulib.
17254         * doc/posix-functions/printf.texi: Likewise.
17255         * doc/posix-functions/snprintf.texi: Likewise.
17256         * doc/posix-functions/sprintf.texi: Likewise.
17257         * doc/posix-functions/vfprintf.texi: Likewise.
17258         * doc/posix-functions/vprintf.texi: Likewise.
17259         * doc/posix-functions/vsnprintf.texi: Likewise.
17260         * doc/posix-functions/vsprintf.texi: Likewise.
17261         * doc/posix-functions/dprintf.texi: Undo last commit.
17262         * doc/posix-functions/vdprintf.texi: Likewise.
17263
17264 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17265
17266         tests: port test-fdutimensat.c to Solaris 8
17267         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17268         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17269         On Solaris 8, it fails with errno == ENOSYS, because there is no
17270         futimens (so it can't use the fd), and there is no lutimens (so it
17271         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17272
17273         vsnprintf: make more consistent with snprintf; doc fixes
17274
17275         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17276         the byte count return problem was promoted from the snprintf-posix
17277         to the snprintf module.
17278         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17279         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17280         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17281         * tests/test-snprintf.c (main): Check the byte count returned.
17282         * tests/test-vsnprintf.c (main): Likewise.
17283
17284 2010-12-23  Eric Blake  <eblake@redhat.com>
17285
17286         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17287         * modules/sigpipe (License): Relax license.
17288
17289 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17290
17291         doc: document Solaris printf bug with large float precisions
17292         * doc/posix-functions/dprintf.texi (dprintf):
17293         * doc/posix-functions/fprintf.texi (fprintf):
17294         * doc/posix-functions/printf.texi (printf):
17295         * doc/posix-functions/snprintf.texi (snprintf):
17296         * doc/posix-functions/sprintf.texi (sprintf):
17297         * doc/posix-functions/vdprintf.texi (vdprintf):
17298         * doc/posix-functions/vfprintf.texi (vfprintf):
17299         * doc/posix-functions/vprintf.texi (vprintf):
17300         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17301         * doc/posix-functions/vsprintf.texi (vsprintf):
17302         Mention that these functions mishandle large floating point
17303         precisions on Solaris 10.  The same bug is also present in Solaris
17304         8, and I assume earlier.  This causes "cd gnulib-tests; make
17305         check" to fail on Solaris 8 (and I assume, later) when building
17306         the latest coreutils, in test-vasprintf-posix's call to
17307         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17308         the wide flavors (e.g., wprintf) so this patch just updates the
17309         documentation for the narrow ones.
17310
17311         test-posixtm.c: add two tests
17312         * tests/test-posixtm.c: Add two tests, to highlight the
17313         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17314         around this bug; this is merely to document it.
17315
17316 2010-12-22  Bruno Haible  <bruno@clisp.org>
17317
17318         getlogin_r: Work around portability problem on OSF/1.
17319         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17320         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17321         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17322         test for a truncated result.
17323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17324         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17325         * modules/getlogin_r (Depends-on): Add memchr.
17326         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17327
17328 2010-12-22  Bruno Haible  <bruno@clisp.org>
17329
17330         ptsname: Avoid test failure on OSF/1 5.1.
17331         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17332         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17333         (same_slave): New function.
17334         (main): Use it to compare ptsname's result with the expected file name.
17335
17336 2010-12-22  Bruno Haible  <bruno@clisp.org>
17337
17338         Port extended stdio modules to HP NonStop Kernel.
17339         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17340         macros.
17341         * lib/fbufmode.c: Update comments.
17342         * lib/fflush.c: Likewise.
17343         * lib/fpurge.c: Likewise.
17344         * lib/freadable.c: Likewise.
17345         * lib/freadahead.c: Likewise.
17346         * lib/freading.c: Likewise.
17347         * lib/freadptr.c: Likewise.
17348         * lib/freadseek.c: Likewise.
17349         * lib/fseeko.c: Likewise.
17350         * lib/fseterr.c: Likewise.
17351         * lib/fwritable.c: Likewise.
17352         * lib/fwriting.c: Likewise.
17353         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17354
17355 2010-12-22  Bruno Haible  <bruno@clisp.org>
17356
17357         ttyname_r: Work around bug on OSF/1 5.1.
17358         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17359         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17360         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17361         present.
17362         * lib/ttyname_r.c (ttyname_r): Update comments.
17363
17364 2010-12-22  Bruno Haible  <bruno@clisp.org>
17365
17366         round: Implement result sign according to IEEE 754.
17367         * lib/round.c (MIN, MINUS_ZERO): New macros.
17368         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17369         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17370         * tests/test-round-ieee.c (main): Likewise.
17371         * tests/test-roundl-ieee.c (main): Likewise.
17372
17373         trunc: Implement result sign according to IEEE 754.
17374         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17375         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17376         * tests/test-trunc2.c: Include minus-zero.h.
17377         (MINUS_ZERO): New macro.
17378         (trunc_reference): Keep in sync with lib/trunc.c.
17379         * tests/test-truncf2.c: Include minus-zero.h.
17380         (MINUS_ZERO): New macro.
17381         (truncf_reference): Keep in sync with lib/trunc.c.
17382         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17383         * tests/test-trunc-ieee.c (main): Likewise.
17384         * tests/test-truncl-ieee.c (main): Likewise.
17385
17386         ceil: Implement result sign according to IEEE 754.
17387         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17388         (FUNC): Return -0.0 for -1 < x < 0.
17389         * tests/test-ceil2.c: Include minus-zero.h.
17390         (MINUS_ZERO): New macro.
17391         (ceil_reference): Keep in sync with lib/ceil.c.
17392         * tests/test-ceilf2.c: Include minus-zero.h.
17393         (MINUS_ZERO): New macro.
17394         (ceilf_reference): Keep in sync with lib/ceil.c.
17395         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17396         * tests/test-ceil-ieee.c (main): Likewise.
17397         * tests/test-ceill-ieee.c (main): Likewise.
17398
17399         floor: Implement result sign according to IEEE 754.
17400         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17401         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17402         * tests/test-floorf2.c (floorf_reference): Likewise.
17403         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17404         * tests/test-floor-ieee.c (main): Likewise.
17405         * tests/test-floorl-ieee.c (main): Likewise.
17406
17407 2010-12-22  Bruno Haible  <bruno@clisp.org>
17408
17409         getaddrinfo: Update doc.
17410         * doc/posix-functions/gai_strerror.texi: Return type is also different
17411         on AIX and HP-UX.
17412
17413 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17414
17415         getaddrinfo, inet_ntop: Update doc for Solaris.
17416         * doc/posix-functions/gai_strerror.texi: Return type is also an
17417         issue on Solaris 9 and earlier.
17418         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17419         on Solaris 10 and earlier.
17420
17421 2010-12-21  Bruno Haible  <bruno@clisp.org>
17422
17423         New module 'roundl-ieee'.
17424         * modules/roundl-ieee: New file.
17425         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17426         test whether roundl works according to ISO C 99 with IEC 60559.
17427         * m4/roundl-ieee.m4: New file.
17428         * modules/roundl-ieee-tests: New file.
17429         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17430         * tests/test-roundl.c (main): Remove signbit tests.
17431         * modules/roundl-tests (Depends-on): Remove signbit.
17432         * doc/posix-functions/roundl.texi: Mention the new module.
17433
17434 2010-12-21  Bruno Haible  <bruno@clisp.org>
17435
17436         New module 'truncl-ieee'.
17437         * modules/truncl-ieee: New file.
17438         * modules/truncl-ieee-tests: New file.
17439         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17440         * tests/test-truncl.c (main): Remove signbit tests.
17441         * modules/truncl-tests (Depends-on): Remove signbit.
17442         * doc/posix-functions/truncl.texi: Mention the new module.
17443
17444 2010-12-21  Bruno Haible  <bruno@clisp.org>
17445
17446         New module 'ceill-ieee'.
17447         * modules/ceill-ieee: New file.
17448         * modules/ceill-ieee-tests: New file.
17449         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17450         * tests/test-ceill.c (main): Remove signbit tests.
17451         * modules/ceill-tests (Depends-on): Remove signbit.
17452         * doc/posix-functions/ceill.texi: Mention the new module.
17453
17454 2010-12-21  Bruno Haible  <bruno@clisp.org>
17455
17456         New module 'floorl-ieee'.
17457         * modules/floorl-ieee: New file.
17458         * modules/floorl-ieee-tests: New file.
17459         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17460         * tests/test-floorl.c (main): Remove signbit tests.
17461         * modules/floorl-tests (Depends-on): Remove signbit.
17462         * doc/posix-functions/floorl.texi: Mention the new module.
17463
17464 2010-12-21  Bruno Haible  <bruno@clisp.org>
17465
17466         New module 'round-ieee'.
17467         * modules/round-ieee: New file.
17468         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17469         whether round works according to ISO C 99 with IEC 60559.
17470         * m4/round-ieee.m4: New file.
17471         * modules/round-ieee-tests: New file.
17472         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17473         * tests/test-round1.c (main): Remove signbit tests.
17474         * modules/round-tests (Depends-on): Remove 'signbit'.
17475         * doc/posix-functions/round.texi: Mention the new module.
17476
17477 2010-12-21  Bruno Haible  <bruno@clisp.org>
17478
17479         New module 'trunc-ieee'.
17480         * modules/trunc-ieee: New file.
17481         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17482         whether trunc works according to ISO C 99 with IEC 60559.
17483         * m4/trunc-ieee.m4: New file.
17484         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17486         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17487         * modules/trunc-ieee-tests: New file.
17488         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17489         * tests/test-trunc1.c (main): Remove signbit tests.
17490         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17491         * doc/posix-functions/trunc.texi: Mention the new module.
17492
17493 2010-12-21  Bruno Haible  <bruno@clisp.org>
17494
17495         New module 'ceil-ieee'.
17496         * modules/ceil-ieee: New file.
17497         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17498         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17499         ISO C 99 with IEC 60559.
17500         * m4/ceil-ieee.m4: New file.
17501         * modules/ceil (Files): Add lib/ceil.c.
17502         (Depends-on): Add 'float'.
17503         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17504         * lib/math.in.h (ceil): New declaration.
17505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17506         REPLACE_CEIL.
17507         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17508         * modules/ceil-ieee-tests: New file.
17509         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17510         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17511         * doc/posix-functions/ceil.texi: Mention the new module.
17512
17513 2010-12-21  Bruno Haible  <bruno@clisp.org>
17514
17515         New module 'floor-ieee'.
17516         * modules/floor-ieee: New file.
17517         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17518         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17519         ISO C 99 with IEC 60559.
17520         * m4/floor-ieee.m4: New file.
17521         * modules/floor (Files): Add lib/floor.c.
17522         (Depends-on): Add 'float'.
17523         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17524         * lib/math.in.h (floor): New declaration.
17525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17526         REPLACE_FLOOR.
17527         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17528         * modules/floor-ieee-tests: New file.
17529         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17530         * tests/test-math-c++.cc: Check the signature of 'floor'.
17531         * doc/posix-functions/floor.texi: Mention the new module.
17532
17533 2010-12-21  Bruno Haible  <bruno@clisp.org>
17534
17535         New module 'roundf-ieee'.
17536         * modules/roundf-ieee: New file.
17537         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17538         test whether roundf works according to ISO C 99 with IEC 60559.
17539         * m4/roundf-ieee.m4: New file.
17540         * modules/roundf-ieee-tests: New file.
17541         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17542         * tests/test-roundf1.c (main): Remove signbit tests.
17543         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17544         * doc/posix-functions/roundf.texi: Mention the new module.
17545
17546 2010-12-21  Bruno Haible  <bruno@clisp.org>
17547
17548         New module 'truncf-ieee'.
17549         * modules/truncf-ieee: New file.
17550         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17551         test whether truncf works according to ISO C 99 with IEC 60559.
17552         * m4/truncf-ieee.m4: New file.
17553         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17555         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17556         * modules/truncf-ieee-tests: New file.
17557         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17558         * tests/test-truncf1.c (main): Remove signbit tests.
17559         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17560         * doc/posix-functions/truncf.texi: Mention the new module.
17561
17562 2010-12-21  Bruno Haible  <bruno@clisp.org>
17563
17564         New module 'ceilf-ieee'.
17565         * modules/ceilf-ieee: New file.
17566         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17567         test whether ceilf works according to ISO C 99 with IEC 60559.
17568         * m4/ceilf-ieee.m4: New file.
17569         * modules/ceilf-ieee-tests: New file.
17570         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17571         * tests/test-ceilf1.c (main): Remove signbit tests.
17572         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17573         * doc/posix-functions/ceilf.texi: Mention the new module.
17574
17575 2010-12-21  Bruno Haible  <bruno@clisp.org>
17576
17577         New module 'floorf-ieee'.
17578         * modules/floorf-ieee: New file.
17579         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17580         test whether floorf works according to ISO C 99 with IEC 60559.
17581         * m4/floorf-ieee.m4: New file.
17582         * modules/floorf-ieee-tests: New file.
17583         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17584         * tests/test-floorf1.c (main): Remove signbit tests.
17585         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17586         * doc/posix-functions/floorf.texi: Mention the new module.
17587
17588 2010-12-21  Bruno Haible  <bruno@clisp.org>
17589
17590         Support for minus zero in autoconf macros.
17591         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17592         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17593         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17594         * tests/minus-zero.h: Update comments.
17595
17596 2010-12-21  Bruno Haible  <bruno@clisp.org>
17597
17598         Tests for module 'ceil'.
17599         * modules/ceil-tests: New file.
17600         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17601         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17602
17603 2010-12-21  Bruno Haible  <bruno@clisp.org>
17604
17605         Tests for module 'floor'.
17606         * modules/floor-tests: New file.
17607         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17608         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17609
17610 2010-12-21  Bruno Haible  <bruno@clisp.org>
17611
17612         math: Fix indentation.
17613         * lib/math.in.h (floorf): Fix indentation.
17614
17615 2010-12-21  Bruno Haible  <bruno@clisp.org>
17616
17617         Fix cross-compilation guesses on Solaris.
17618         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17619         not match "solaris2.10".
17620         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17621         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17622         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17623
17624 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17625
17626         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17627         This fixes a problem observed with the latest coreutils snapshot
17628         that caused a test to fail on Solaris 8.  src/csplit.c's call
17629         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17630         earlier, instead of returning the number of bytes that would have
17631         been generated; this causes csplit to incorrectly report memory
17632         exhaustion.
17633         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17634         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17635         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17636         comments to match.
17637         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17638         Fix typo in matching older versions of Solaris: "solaris2.10"
17639         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17640         only for guessing while cross-compiling.
17641         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17642
17643 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17644
17645         ftoastr: fix comment again
17646         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17647         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17648         Also, simplify example a bit by using flags = 0.
17649
17650 2010-12-20  Bruno Haible  <bruno@clisp.org>
17651
17652         round*, trunc*: Update documentation regarding glibc.
17653         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17654         * doc/posix-functions/round.texi: Likewise.
17655         * doc/posix-functions/roundl.texi: Likewise.
17656         * doc/posix-functions/truncf.texi: Likewise.
17657         * doc/posix-functions/trunc.texi: Likewise.
17658         * doc/posix-functions/truncl.texi: Likewise.
17659
17660 2010-12-20  Bruno Haible  <bruno@clisp.org>
17661
17662         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17663         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17664         * doc/posix-functions/round.texi: Likewise.
17665         * doc/posix-functions/roundl.texi: Likewise.
17666
17667 2010-12-20  Bruno Haible  <bruno@clisp.org>
17668
17669         ttyname_r: Add missing declaration on HP-UX 11.
17670         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17671         HAVE_TTYNAME_R.
17672         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17673         declared. Set HAVE_TTYNAME_R always.
17674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17675         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17676         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17677         HAVE_TTYNAME_R.
17678         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17679
17680 2010-12-20  Bruno Haible  <bruno@clisp.org>
17681
17682         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17683         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17684         * doc/posix-functions/getlogin_r.texi: Likewise.
17685         * tests/test-getlogin.c: Include <errno.h>.
17686         (main): Avoid test failure on HP-UX 11.11.
17687         * tests/test-getlogin_r.c (main): Likewise.
17688
17689 2010-12-20  Bruno Haible  <bruno@clisp.org>
17690
17691         getlogin_r: Add missing declaration on HP-UX 11.
17692         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17693         declared also when it exists as a function.
17694         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17695
17696 2010-12-20  Bruno Haible  <bruno@clisp.org>
17697
17698         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17699         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17700         through wcrtomb.
17701
17702 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17703
17704         ftoastr: fix comment
17705         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17706         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17707
17708 2010-12-19  Bruno Haible  <bruno@clisp.org>
17709
17710         isnan: Ensure it is a macro.
17711         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17712         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17713         Solaris.
17714
17715 2010-12-19  Bruno Haible  <bruno@clisp.org>
17716
17717         ldexpl test: Fix link error on OSF/1 5.1.
17718         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17719
17720 2010-12-19  Bruno Haible  <bruno@clisp.org>
17721
17722         wctype: Make it work in C++ mode on OSF/1 5.1.
17723         * lib/wctype.in.h (iswblank): Declare but not define here.
17724         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17725         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17726         * modules/wctype (Files): Add lib/iswblank.c.
17727
17728 2010-12-19  Bruno Haible  <bruno@clisp.org>
17729
17730         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17731         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17732         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17733
17734 2010-12-19  Bruno Haible  <bruno@clisp.org>
17735
17736         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17737         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17738         _POSIX_PII_SOCKET.
17739         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17740         * doc/posix-functions/recvfrom.texi: Likewise.
17741         * doc/posix-functions/send.texi: Likewise.
17742         * doc/posix-functions/sendto.texi: Likewise.
17743
17744 2010-12-19  Bruno Haible  <bruno@clisp.org>
17745
17746         tcgetsid: Add missing declaration on OSF/1 5.1.
17747         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17748         HAVE_TCGETSID.
17749         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17750         Don't set HAVE_TCGETSID.
17751         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17752         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17753         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17754         HAVE_TCGETSID.
17755         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17756
17757 2010-12-19  Bruno Haible  <bruno@clisp.org>
17758
17759         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17760         * lib/stdio.in.h: During the include_next statement, let recursive
17761         includes of this file include only the system header file.
17762
17763 2010-12-19  Bruno Haible  <bruno@clisp.org>
17764
17765         iconv_open: Fix regression from 2010-12-04.
17766         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17767         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17768
17769 2010-12-19  Bruno Haible  <bruno@clisp.org>
17770
17771         stdbool test: Avoid a gcc warning.
17772         * tests/test-stdbool.c (main): Fail if e1 is false.
17773         Reported by Jim Meyering.
17774
17775 2010-12-19  Jim Meyering  <meyering@redhat.com>
17776
17777         setenv: restore to working order
17778         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17779         mistakenly removed.
17780         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17781         HAVE_SETENV.
17782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17783         HAVE_SETENV.
17784
17785 2010-12-19  Bruno Haible  <bruno@clisp.org>
17786
17787         Document some different function declarations on OSF/1 5.1.
17788         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17789         * doc/posix-functions/inet_ntop.texi: Likewise.
17790         * doc/posix-functions/gethostname.texi: Likewise.
17791         * lib/unistd.in.h (gethostname): Update comment.
17792
17793 2010-12-19  Bruno Haible  <bruno@clisp.org>
17794
17795         doc: Mention vasprintf-posix module.
17796         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17797         the 'vasprintf-posix' module.
17798         * doc/glibc-functions/vasprintf.texi: Likewise.
17799
17800 2010-12-19  Bruno Haible  <bruno@clisp.org>
17801
17802         unsetenv: Add missing declaration on OSF/1 5.1.
17803         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17804         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17805         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17807         not HAVE_UNSETENV.
17808         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17809         HAVE_UNSETENV.
17810         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17811
17812 2010-12-19  Bruno Haible  <bruno@clisp.org>
17813
17814         setenv: Add missing declaration on OSF/1 5.1.
17815         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17816         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17817         declared. Don't set HAVE_SETENV.
17818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17819         not HAVE_SETENV.
17820         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17821         HAVE_SETENV.
17822         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17823
17824 2010-12-19  Bruno Haible  <bruno@clisp.org>
17825
17826         nl_langinfo tests: Avoid gcc warning.
17827         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17828
17829 2010-12-19  Bruno Haible  <bruno@clisp.org>
17830
17831         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17832         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17833         _GL_CXXALIAS_SYS.
17834
17835 2010-12-19  Bruno Haible  <bruno@clisp.org>
17836
17837         stdbool: Relax test.
17838         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17839         address to 'bool' work in static initializer, for compilers other than
17840         GCC.
17841
17842 2010-12-19  Bruno Haible  <bruno@clisp.org>
17843
17844         ftello: Add missing declaration on OSF/1 5.1.
17845         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17846         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17848         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17849         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17850
17851 2010-12-19  Bruno Haible  <bruno@clisp.org>
17852
17853         fseeko: Add missing declaration on OSF/1 5.1.
17854         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17855         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17857         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17858         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17859
17860 2010-12-19  Bruno Haible  <bruno@clisp.org>
17861
17862         fchdir: Add missing declaration on OSF/1 5.1.
17863         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17866         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17867         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17868
17869 2010-12-19  Bruno Haible  <bruno@clisp.org>
17870
17871         relocatable-prog-wrapper: Separate from relocatable-prog.
17872         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17873         uninstall-relocwrapper rule here.
17874         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17875         Reported by Ian Beckwith <ianb@erislabs.net>.
17876
17877 2010-12-19  Bruno Haible  <bruno@clisp.org>
17878
17879         unistr/u8-mbsnlen: Add missing dependency.
17880         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17881         Reported by Ian Beckwith <ianb@erislabs.net>.
17882
17883 2010-12-19  Bruno Haible  <bruno@clisp.org>
17884
17885         iconv: Make it possible again to use this module without 'iconv-h'.
17886         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17887         if it is not defined.
17888         Reported by Ian Beckwith <ianb@erislabs.net>.
17889
17890 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17891
17892         acl: port to Solaris 8 when copying from tmpfs to ufs
17893         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17894         error number.  Problem observed on Solaris 8 with latest
17895         coreutils, with "mv A B", where A is on a tmpfs file system and B
17896         is on a ufs file system.  This caused coreutils' mv/part-symlink
17897         test to fail.
17898
17899         tests: set fail=0 at start
17900         * tests/init.sh (setup_): Move fail=0 initialization here ...
17901         (mktempd_): ... from here, so that tests can rely on fail being
17902         set to 0 initially.  This fixes a problem in coreutils; see:
17903         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17904
17905 2010-12-18  Bruno Haible  <bruno@clisp.org>
17906
17907         memmem-simple: Stylistic changes.
17908         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17909         Fix preprocessor directive indentation.
17910
17911 2010-12-15  Pádraig Brady <P@draigBrady.com>
17912
17913         memmem, memmem-simple: reorganize and expand empty needle check
17914         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17915         functional checks to memmem-simple so that one has a fully functional
17916         memmem by using just this module.
17917         Restrict the performance only check to the memmem module.
17918         Also expand the empty needle check to ensure the correct
17919         pointer is returned, not just a non NULL pointer.
17920         * doc/glibc-functions/memmem.texi: Rearrange the portability
17921         documentation to correlate with the rearranged checks.
17922         Clarify exactly how the memmem and memmem-simple modules
17923         relate to each other.
17924
17925 2010-12-15  Pádraig Brady <P@draigBrady.com>
17926             Bruno Haible  <bruno@clisp.org>
17927
17928         Improve cross-compilation guesses for uClibc.
17929         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17930         that uClibc does not have the glibc bug.
17931         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17932         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17933
17934 2010-12-14  Eric Blake  <eblake@redhat.com>
17935
17936         configmake: provide fallbacks for oldest supported autotools
17937         * m4/configmake.m4: New file.
17938         * modules/configmake (Files): Ship it.
17939         (configure.ac): Use it to guarantee fallbacks.
17940
17941 2010-12-13  Pádraig Brady <P@draigBrady.com>
17942
17943         read-file: Improve handling of large files
17944         * lib/read-file.c (fread_file): Minimize realloc()s
17945         for regular files, and better manage sizes around SIZE_MAX.
17946
17947 2010-12-13  Eric Blake  <eblake@redhat.com>
17948
17949         cloexec, fcntl: relax license
17950         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17951         consent from all contributors.
17952         * modules/fcntl (License): Likewise.
17953
17954 2010-12-10  Bruno Haible  <bruno@clisp.org>
17955
17956         Tests for module 'pipe-posix'.
17957         * modules/pipe-posix-tests: New file.
17958         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17959
17960 2010-12-10  Bruno Haible  <bruno@clisp.org>
17961
17962         pipe-posix: Make it work in C++ mode.
17963         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17964         (pipe): Use common idiom, not a macro definition.
17965         * lib/pipe.c: New file.
17966         * m4/pipe.m4: New file.
17967         * modules/pipe-posix (Description): Enhance.
17968         (Files): Add lib/pipe.c, m4/pipe.m4.
17969         (configure.ac): Invoke gl_FUNC_PIPE.
17970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17971         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17972         * tests/test-unistd-c++.cc: Check the signature of pipe.
17973
17974 2010-12-10  Bruno Haible  <bruno@clisp.org>
17975
17976         Rename module 'pipe' to 'spawn-pipe'.
17977         * modules/spawn-pipe: New file, renamed from modules/pipe.
17978         (Files, configure.ac, Makefile.am): Update.
17979         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17980         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17981         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17982         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17983         "spawn-pipe.h" instead of "pipe.h".
17984         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17985         to gl_SPAWN_PIPE.
17986         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17987         (Files, Makefile.am): Update.
17988         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17989         Update.
17990         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17991         Include "spawn-pipe.h" instead of "pipe.h".
17992         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17993         * lib/javacomp.c: Likewise.
17994         * lib/javaversion.c: Likewise.
17995         * lib/pipe-filter-gi.c: Likewise.
17996         * lib/pipe-filter-ii.c: Likewise.
17997         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17998         * modules/javacomp (Depends-on): Likewise.
17999         * modules/javaversion (Depends-on): Likewise.
18000         * modules/pipe-filter-gi (Depends-on): Likewise.
18001         * modules/pipe-filter-ii (Depends-on): Likewise.
18002         * MODULES.html.sh (Executing programs): Update.
18003         * NEWS: Mention the change.
18004
18005 2010-12-10  Eric Blake  <eblake@redhat.com>
18006
18007         pipe-posix: new module
18008         * modules/pipe-posix: New file.
18009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18010         (gl_UNISTD_H): Check for declaration.
18011         * modules/unistd (Makefile.am): Substitute it.
18012         * lib/unistd.in.h (pipe): Provide it for mingw.
18013         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18014         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18015
18016 2010-12-07  Bruno Haible  <bruno@clisp.org>
18017
18018         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18019         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18020         u8_strcmp_gnu.
18021         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18022
18023 2010-12-06  Bruno Haible  <bruno@clisp.org>
18024
18025         Update internal documentation.
18026         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18027
18028 2010-12-04  Bruno Haible  <bruno@clisp.org>
18029
18030         Put more information about failed tests into the test return codes.
18031         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18032         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18033         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18034         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18035         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18036         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18037         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18038         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18039         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18040         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18041         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18042         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18043         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18044         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18045         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18046         returns a bit mask.
18047         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18048         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18049         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18050         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18051         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18052         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18053         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18054         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18055         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18056         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18057         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18058         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18059         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18060         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18061         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18062         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18063         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18064         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18065         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18066         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18067         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18068         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18069         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18070         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18071         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18072         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18073         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18074         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18075         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18076         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18077         gl_PRINTF_PRECISION): Likewise.
18078         * m4/regex.m4 (gl_REGEX): Likewise.
18079         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18080         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18081         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18082         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18083         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18084         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18085         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18086         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18087         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18088         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18089         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18090         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18091         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18092         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18093         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18094         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18095         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18096         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18098         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18099         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18100         enumerated value.
18101         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18102
18103 2010-12-04  Bruno Haible  <bruno@clisp.org>
18104
18105         Update for Solaris 11 2010-11.
18106         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18107         Express, released in November 2010.
18108
18109 2010-12-04  Bruno Haible  <bruno@clisp.org>
18110
18111         nproc: Relax license.
18112         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18113         and Paul Eggert.
18114         Requested by Ludovic Courtès <ludo@gnu.org>.
18115
18116 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18117
18118         utimecmp: fine-grained src to nearby coarse-grained dest
18119
18120         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18121         and the source is on a file system with higher-resolution time
18122         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18123         not work, and the time stamps are close together, the algorithm to
18124         determine the exact resolution from the read-back mtime was buggy:
18125         it had a "!=" where it should have had an "==".  This bug has been
18126         in the code ever since it was introduced to gnulib.
18127         Problem reported by Dan Jacobson in
18128         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18129
18130 2010-11-30  Bruno Haible  <bruno@clisp.org>
18131
18132         strerror_r-posix: Fix autoconf test.
18133         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18134
18135 2010-11-28  Bruno Haible  <bruno@clisp.org>
18136             Paul Eggert  <eggert@cs.ucla.edu>
18137
18138         Tests for module 'getdomainname'.
18139         * modules/getdomainname-tests: New file.
18140         * tests/test-getdomainname.c: New file, based on
18141         tests/test-gethostname.c.
18142
18143 2010-11-28  Bruno Haible  <bruno@clisp.org>
18144             Paul Eggert  <eggert@cs.ucla.edu>
18145
18146         getdomainname: Use the system function when possible.
18147         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18148         (getdomainname): Replace if needed. Provide the declaration if it is
18149         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18150         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18151         (getdomainname): When the system has getdomainname, call the system
18152         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18153         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18154         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18155         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18156         the function if its second argument is of type 'int' or if it is found
18157         in libnsl.
18158         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18159         <sys/systeminfo.h> and sysinfo().
18160         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18162         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18163         HAVE_GETDOMAINNAME.
18164         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18165         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18166         * doc/glibc-functions/getdomainname.texi: Document the problems with
18167         the getdomainname declaration.
18168
18169 2010-11-28  Bruno Haible  <bruno@clisp.org>
18170
18171         sys_socket: Ensure ss_family field on AIX.
18172         * lib/sys_socket.in.h (ss_family): New macro definition.
18173         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18174         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18175         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18176         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18177         * modules/sys_socket (Makefile.am): Substitute
18178         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18179         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18180
18181 2010-11-27  Bruno Haible  <bruno@clisp.org>
18182
18183         readline: Improve configure output.
18184         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18185         "checking for readline..." result understandable.
18186
18187 2010-11-27  Bruno Haible  <bruno@clisp.org>
18188
18189         *printf-posix: Detect a bug on Solaris 10/x86.
18190         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18191         for floating-point output.
18192         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18193         directive.
18194         * tests/test-snprintf-posix.h (test_function): Likewise.
18195         * tests/test-sprintf-posix.h (test_function): Likewise.
18196         * tests/test-vasprintf-posix.c (test_function): Likewise.
18197         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18198         * doc/posix-functions/printf.texi: Likewise.
18199         * doc/posix-functions/snprintf.texi: Likewise.
18200         * doc/posix-functions/sprintf.texi: Likewise.
18201         * doc/posix-functions/vfprintf.texi: Likewise.
18202         * doc/posix-functions/vprintf.texi: Likewise.
18203         * doc/posix-functions/vsnprintf.texi: Likewise.
18204         * doc/posix-functions/vsprintf.texi: Likewise.
18205         * doc/glibc-functions/obstack_printf.texi: Likewise.
18206         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18207
18208 2010-11-27  Bruno Haible  <bruno@clisp.org>
18209
18210         Fix link error when module libunistring-optional is in use.
18211         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18212         * modules/striconveha-tests (Makefile.am): Likewise.
18213
18214 2010-11-27  Bruno Haible  <bruno@clisp.org>
18215
18216         regex: Mention link dependencies.
18217         * modules/regex (Link): New section.
18218         * modules/rpmatch (Link): Likewise.
18219         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18220
18221 2010-11-27  Bruno Haible  <bruno@clisp.org>
18222
18223         ftoastr: Fix compilation error on Solaris.
18224         * lib/ftoastr.c: Include <config.h>.
18225
18226 2010-11-27  Bruno Haible  <bruno@clisp.org>
18227
18228         getloadavg: Update documentation.
18229         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18230
18231 2010-11-27  Bruno Haible  <bruno@clisp.org>
18232
18233         sys_socket: Fix test whether the functions are declared.
18234         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18235         not <sys/select.h>.
18236
18237 2010-11-27  Bruno Haible  <bruno@clisp.org>
18238
18239         getpass: Make sure to get system declaration on some platforms.
18240         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18241         gl_USE_SYSTEM_EXTENSIONS.
18242         * modules/getpass (Depends-on): Add extensions.
18243
18244 2010-11-26  Bruno Haible  <bruno@clisp.org>
18245
18246         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18247         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18248         'iconv' module is present.
18249         (ICONV_CONST): New macro.
18250         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18251         ICONV_CONST.
18252         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18253         set ICONV_CONST.
18254         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18255         here.
18256         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18257         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18258         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18259         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18260         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18261         present.
18262
18263 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18264
18265         ftoastr: comment fix
18266         * lib/ftoastr.c: "little" -> "little or no" in comment
18267
18268 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18269
18270         stdint: port to GCC 4.3 + OSX + Octave
18271         On this platform, stdint.h is buggy and defines int64_t to long
18272         long int.  The replacement defined it to long int, causing
18273         problems with C++ style name mangling.  Instead, trust the system
18274         definition if INT64_MAX is defined, and likewise for the unsigned
18275         variant.   Problem reported by Jarno Rajahalme in
18276         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18277         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18278         and don't mess with int64_t and INT64_MAX in this case.
18279         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18280
18281 2010-11-24  Bruno Haible  <bruno@clisp.org>
18282
18283         doc: Corrections regarding MacOS X 10.4 and 10.5.
18284         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18285         MacOS X.
18286         Reported by Simon Josefsson.
18287
18288 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18289
18290         Uninstall ".bin" files installed by relocwrapper.
18291         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18292         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18293         unless it is already there.
18294
18295 2010-11-21  Bruno Haible  <bruno@clisp.org>
18296
18297         Update for NetBSD 5.0.
18298         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18299         NetBSD; the test fails on NetBSD 5.0.
18300         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18301         about NetBSD.
18302
18303 2010-11-21  Bruno Haible  <bruno@clisp.org>
18304
18305         Update for HP-UX 11.23 and HP-UX 11.31.
18306         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18307         HP-UX.
18308
18309 2010-11-21  Bruno Haible  <bruno@clisp.org>
18310
18311         Update for MacOS X 10.5.
18312         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18313         MacOS X; the test fails on MacOS X 10.5.8.
18314         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18315         about MacOS X.
18316
18317 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18318
18319         bootstrap: add bootstrap_sync option.
18320         See discussion at
18321         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18322         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18323         * build-aux/bootstrap: Accept --bootstrap-sync to update
18324         bootstrap if it is not identical to the local gnulib's
18325         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18326         enable this by default.  Accept --no-bootstrap-sync to disable
18327         it.
18328
18329 2010-11-20  Bruno Haible  <bruno@clisp.org>
18330
18331         Ensure that <features.h> is included before __GLIBC__ is tested.
18332         * lib/printf-parse.h: Include <features.h>.
18333         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18334         Reported by Mike Frysinger <vapier@gentoo.org>.
18335
18336         Ensure that <features.h> is included before __GLIBC__ is tested.
18337         * lib/wchar.in.h: Include <features.h>.
18338         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18339         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18340         Reported by Mike Frysinger <vapier@gentoo.org>.
18341
18342         Ensure that <features.h> is included before __GLIBC__ is tested.
18343         * lib/arpa_inet.in.h: Include <features.h>.
18344         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18345         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18346         Reported by Mike Frysinger <vapier@gentoo.org>.
18347
18348         Ensure that <features.h> is included before __GLIBC__ is tested.
18349         * build-aux/link-warning.h: Include <features.h>.
18350         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18351         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18352         Reported by Mike Frysinger <vapier@gentoo.org>.
18353
18354         Ensure that <features.h> is included before __GLIBC__ is tested.
18355         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18356         Reported by Mike Frysinger <vapier@gentoo.org>.
18357
18358 2010-11-20  Bruno Haible  <bruno@clisp.org>
18359
18360         memmem: Fix autoconf test.
18361         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18362
18363 2010-11-20  Bruno Haible  <bruno@clisp.org>
18364
18365         Port to uClibc.
18366         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18367         * lib/fcntl.in.h: Likewise.
18368         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18369         * lib/mbrtowc.c (mbrtowc): Likewise.
18370         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18371         * lib/strerror_r.c: Likewise.
18372         * lib/unistr/u8-strnlen.c: Likewise.
18373         * lib/vasnprintf.c (decimal_point_char): Likewise.
18374         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18375         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18376         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18377         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18378         * tests/test-sigaction.c (handler, main): Likewise.
18379         * lib/freading.h: Treat uClibc like a non-glibc platform.
18380         * lib/freading.c: Likewise.
18381         * lib/gettext.h: Likewise.
18382         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18383         Likewise.
18384         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18385         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18386         * lib/propername.c (proper_name_utf8): Likewise.
18387         * lib/spawn.in.h: Likewise.
18388         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18389         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18390         mem_cd_iconveh_internal): Likewise.
18391         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18392         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18393         strstr, strcasestr): Likewise.
18394         * lib/unicodeio.c (unicode_to_mb): Likewise.
18395         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18396         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18397         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18398         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18399         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18400         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18401         * lib/unistr/u8-stpncpy.c: Likewise.
18402         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18403         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18404         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18405         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18406         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18407         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18408         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18409         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18410         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18411         Likewise.
18412         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18413         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18414         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18415         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18416         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18417         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18418         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18419         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18420         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18421         * tests/test-striconveha.c (main): Likewise.
18422         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18423         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18424         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18425         * doc/posix-functions/getline.texi: Likewise.
18426         Reported by Mike Frysinger <vapier@gentoo.org>.
18427
18428 2010-11-20  Bruno Haible  <bruno@clisp.org>
18429
18430         nproc: Fix condition.
18431         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18432         HAVE_PTHREAD_AFFINITY_NP.
18433
18434 2010-11-20  Bruno Haible  <bruno@clisp.org>
18435
18436         Fix a comment.
18437         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18438
18439 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18440
18441         ftoastr: don't assume snprintf
18442         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18443         Implement a subset of snprintf here, by using sprintf safely.
18444         * modules/ftoastr (Depends-on): Remove snprintf.
18445
18446 2010-11-19  Jim Meyering  <meyering@redhat.com>
18447
18448         test-rename.h: fix compilation failure
18449         * tests/test-rename.h (test_rename): Add omitted "}".
18450
18451 2010-11-17  Jim Meyering  <meyering@redhat.com>
18452
18453         maint.mk: add a URL discussing the no-@acronym policy
18454         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18455
18456 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18457
18458         ftoastr: depend on snprintf, improve comments
18459         * lib/ftoastr.c: Also mention Loitsch's draft.
18460         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18461         needed in the current implementation, but it might simplify
18462         speeding up the code later.
18463         * modules/ftoastr: Depend on snprintf; this improves portability.
18464         Suggested by Bruno Haible in the same email.
18465
18466         ftoastr: port to hosts lacking strtof and strtold
18467         Problem reported by Bruno Haible in
18468         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18469         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18470         environment and strtold (and presumably strtof) are not available.
18471         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18472         (configure.ac): Require gl_C99_STRTOLD.
18473
18474 2010-11-18  Bruno Haible  <bruno@clisp.org>
18475
18476         c-strtold: Avoid link error on AIX 7.
18477         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18478         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18479         (gl_C_STRTOLD): Test whether strtold_l exists.
18480         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18481
18482 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18483
18484         intprops: new macro INT_BITS_STRLEN_BOUND
18485         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18486         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18487         not exposed.  Also, it uses a slightly tighter bound than before;
18488         though this makes no practical difference, we might as well be as
18489         tight as we easily can.
18490
18491         ftoastr: new module, for lossless conversion of floats to short strings
18492         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18493         * modules/ftoastr: New files.
18494
18495 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18496
18497         bootstrap: port to Solaris sed
18498         * build-aux/bootstrap (get_version): Port to Solaris sed.
18499         See Ralf Wildenhues's note in
18500         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18501
18502 2010-11-14  Jim Meyering  <meyering@redhat.com>
18503
18504         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18505         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18506         and move definition closer to sole use.
18507
18508 2010-11-13  Jim Meyering  <meyering@redhat.com>
18509
18510         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18511         Now we require at least autoconf-2.59, which means the work-around
18512         is no longer needed.
18513         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18514         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18515         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18516         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18517         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18518
18519 2010-11-13  Bruno Haible  <bruno@clisp.org>
18520
18521         rename, renameat: Avoid test failures at NFS mounted locations.
18522         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18523         functions.
18524         (test_rename): Use assert_nonexistent.
18525         * tests/test-rename.c: Include <dirent.h>.
18526         * tests/test-renameat.c: Likewise.
18527         Reported by Gary V. Vaughan <gary@gnu.org>.
18528
18529         rename, renameat: Document Linux bug with NFS
18530         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18531         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18532         * doc/posix-functions/renameat.texi: Likewise.
18533         Suggested by Eric Blake.
18534
18535 2010-11-13  Bruno Haible  <bruno@clisp.org>
18536
18537         rename test: Add comments.
18538         * tests/test-rename.h (test_rename): Add structure and comments.
18539
18540 2010-11-13  Eric Blake  <eblake@redhat.com>
18541
18542         maintainer-makefile: cover a few more files
18543         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18544         scripts generated within C files, for libvirt.
18545
18546 2010-11-13  Bruno Haible  <bruno@clisp.org>
18547
18548         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18549         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18550         character, return the number of bytes that belong together, not always
18551         1.
18552         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18553         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18554         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18555         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18556         number of bytes of an invalid character.
18557         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18558         (main): Invoke it.
18559         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18560         results.
18561         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18562         malformed byte sequences.
18563         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18564         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18565         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18566         Reported by Ben Pfaff and Paolo Bonzini.
18567
18568 2010-11-13  Bruno Haible  <bruno@clisp.org>
18569
18570         openat: Work around glibc bug with fchownat() and empty file names.
18571         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18572         (gl_FUNC_FCHOWNAT): Invoke it.
18573         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18574         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18575         Reported by Gary V. Vaughan <gary@gnu.org>.
18576
18577 2010-11-13  Bruno Haible  <bruno@clisp.org>
18578
18579         openat: Ensure autoconf macro ordering.
18580         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18581         gl_USE_SYSTEM_EXTENSIONS.
18582         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18583
18584 2010-11-13  Bruno Haible  <bruno@clisp.org>
18585
18586         Update comments.
18587         * lib/unistr/u8-check.c: Update file name in comments.
18588         * lib/unistr/u8-mblen.c: Likewise.
18589         * lib/unistr/u8-prev.c: Likewise.
18590         * lib/unistr/u8-strmblen.c: Likewise.
18591         * lib/unistr/u8-strmbtouc.c: Likewise.
18592
18593 2010-11-13  Jim Meyering  <meyering@redhat.com>
18594
18595         tests: avoid test failure on Solaris 10 due to lack of PATH export
18596         * tests/test-update-copyright.sh: Don't forget to export PATH.
18597
18598         init.sh: ensure that IFS is defined, just in case...
18599         * tests/init.sh (setup_): Ensure that IFS is defined,
18600         so that saving and restoring it works as expected.  This
18601         appears to be useful at least for an old version of dash
18602         from a long time ago (RH 6).  See here for details:
18603         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18604
18605         maint.mk: tighten "test a == b" check
18606         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18607         test to files that contain something like #!/bin/sh.
18608         Without this, coreutils would get two false positives in
18609         the comments of C source files.
18610
18611 2010-11-12  Eric Blake  <eblake@redhat.com>
18612
18613         bootstrap: fix typo in previous attempt
18614         * build-aux/bootstrap (buildreq): Correct the grouping.
18615         Reported by Paul Eggert.
18616
18617         maintainer-makefile: prohibit test x == x
18618         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18619         Based on a report by Matthias Bolte.
18620
18621         bootstrap: allow FreeBSD gzip
18622         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18623         which has no '.' and goes to stderr.
18624         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18625         Reported by Matthias Bolte.
18626
18627         maintainer-makefile: check for i18n setup
18628         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18629         will likely work.
18630
18631 2010-11-12  Bruno Haible  <bruno@clisp.org>
18632
18633         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18634         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18635         * lib/nanosleep.c (nanosleep): Likewise.
18636
18637 2010-11-11  Bruno Haible  <bruno@clisp.org>
18638
18639         fcntl-h: Fix for use of C++ on glibc systems.
18640         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18641         also on glibc systems in C++ mode.
18642         Reported by Gary V. Vaughan <gary@gnu.org>.
18643
18644 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18645
18646         mknod: avoid false failure with dash
18647         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18648
18649 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18650
18651         unlink: Fix "is it should" typo in diagnostic.
18652         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18653         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18654
18655 2010-11-11  Bruno Haible  <bruno@clisp.org>
18656
18657         Tests for module 'strerror_r-posix'.
18658         * modules/strerror_r-posix-tests: New file.
18659         * tests/test-strerror_r.c: New file.
18660         * tests/test-string-c++.cc: Check the signature of strerror_r.
18661
18662         New module 'strerror_r-posix'.
18663         * lib/string.in.h (strerror_r): New declaration.
18664         * lib/strerror_r.c: New file.
18665         * m4/strerror_r.m4: New file.
18666         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18667         of strerror_r.
18668         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18669         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18670         * modules/strerror_r-posix: New file.
18671         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18672         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18673         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18674         portability problems.
18675
18676 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18677
18678         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18679         line is also considered for output. Quoted function name in shell
18680         command, so temporary files for functions like MyClass::operator()
18681         are removed correctly without errors.
18682
18683 2010-11-09  Bruno Haible  <bruno@clisp.org>
18684
18685         * doc/posix-functions/strerror.texi: List more failing platforms.
18686
18687         * doc/posix-functions/strerror.texi: Add a comment.
18688
18689 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18690
18691         fdopendir: fix bug on MacOS X when low on file descriptors
18692
18693         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18694         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18695         All callers changed.
18696         (fdopendir): Invoke save_cwd at the top level, not after using
18697         multiple dup() calls to use up file descriptors.  Then retry
18698         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18699         less than the maximum number of open file descriptors, because
18700         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18701         on Mac OS X 10.6.4 for tar 1.24
18702         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18703         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18704         and for tar 1.25
18705         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18706
18707 2010-11-07  Bruno Haible  <bruno@clisp.org>
18708
18709         vasnprintf: Support I flag on glibc systems.
18710         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18711         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18712         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18713         snprintf function.
18714         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18715         glibc systems.
18716         * tests/test-vasnprintf-posix3.c: New file.
18717         * modules/vasnprintf-posix-tests (Files): Add it.
18718         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18719
18720 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18721
18722         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18723         * MODULES.html.sh: For compiler warnings, use name
18724         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18725
18726 2010-11-05  Eric Blake  <eblake@redhat.com>
18727
18728         ceil, floor: avoid spurious failure with icc
18729         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18730         [denormals-as-zero] when optimizing without -mieee-fp option.
18731         * tests/test-floorf2.c (floorf_reference): Likewise.
18732         * tests/test-ceilf1.c (dummy): New function.
18733         (main): Use it to outsmart icc's optimization.
18734         * tests/test-floorf1.c (dummy, main): Likewise.
18735
18736         tests: require working signbit
18737         * modules/ceilf-tests (Depends-on): Add signbit.
18738         * modules/ceill-tests (Depends-on): Likewise.
18739         * modules/floorf-tests (Depends-on): Likewise.
18740         * modules/floorl-tests (Depends-on): Likewise.
18741         * modules/round-tests (Depends-on): Likewise.
18742         * modules/roundf-tests (Depends-on): Likewise.
18743         * modules/roundl-tests (Depends-on): Likewise.
18744         * modules/trunc-tests (Depends-on): Likewise.
18745         * modules/truncf-tests (Depends-on): Likewise.
18746         * modules/truncl-tests (Depends-on): Likewise.
18747
18748         strtod: work around icc bug
18749         * lib/strtod.c (minus_zero): Define to working value.
18750         (strtod): Use it to avoid icc bug.
18751
18752         copysign: enhance tests
18753         * modules/copysign-tests (Files): Add minus-zero.h.
18754         * tests/test-copysign.c (main): Also test zeros.
18755
18756 2010-11-04  Eric Blake  <eblake@redhat.com>
18757
18758         ceil, floor, round, trunc: enhance tests of -0
18759         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18760         * tests/test-ceill.c (main): Likewise.
18761         * tests/test-floorf1.c (main): Likewise.
18762         * tests/test-floorl.c (main): Likewise.
18763         * tests/test-round1.c (main): Likewise.
18764         * tests/test-roundf1.c (main): Likewise.
18765         * tests/test-roundl.c (main): Likewise.
18766         * tests/test-trunc1.c (main): Likewise.
18767         * tests/test-truncf1.c (main): Likewise.
18768         * tests/test-truncl.c (main): Likewise.
18769
18770 2010-11-04  Eric Blake  <eblake@redhat.com>
18771
18772         frexp, tests: work around ICC bug with -zero
18773         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18774         works with more compilers.
18775         * tests/minus-zero.h: New file.
18776         * modules/ceilf-tests (Files): Include it.
18777         * modules/ceill-tests (Files): Likewise.
18778         * modules/floorf-tests (Files): Likewise.
18779         * modules/floorl-tests (Files): Likewise.
18780         * modules/frexp-nolibm-tests (Files): Likewise.
18781         * modules/frexp-tests (Files): Likewise.
18782         * modules/frexpl-nolibm-tests (Files): Likewise.
18783         * modules/frexpl-tests (Files): Likewise.
18784         * modules/isnan-tests (Files): Likewise.
18785         * modules/isnand-nolibm-tests (Files): Likewise.
18786         * modules/isnand-tests (Files): Likewise.
18787         * modules/isnanf-nolibm-tests (Files): Likewise.
18788         * modules/isnanf-tests (Files): Likewise.
18789         * modules/isnanl-nolibm-tests (Files): Likewise.
18790         * modules/isnanl-tests (Files): Likewise.
18791         * modules/round-tests (Files): Likewise.
18792         * modules/roundf-tests (Files): Likewise.
18793         * modules/roundl-tests (Files): Likewise.
18794         * modules/ldexpl-tests (Files): Likewise.
18795         * modules/signbit-tests (Files): Likewise.
18796         * modules/snprintf-posix-tests (Files): Likewise.
18797         * modules/sprintf-posix-tests (Files): Likewise.
18798         * modules/strtod-tests (Files): Likewise.
18799         * modules/trunc-tests (Files): Likewise.
18800         * modules/truncf-tests (Files): Likewise.
18801         * modules/truncl-tests (Files): Likewise.
18802         * modules/vsnprintf-posix-tests (Files): Likewise.
18803         * modules/vsprintf-posix-tests (Files): Likewise.
18804         * modules/vasnprintf-posix-tests (Files): Likewise.
18805         * modules/vasprintf-posix-tests (Files): Likewise.
18806         * tests/test-ceilf1.c (main): Use it.
18807         * tests/test-ceill.c (main): Likewise.
18808         * tests/test-floorf1.c (main): Likewise.
18809         * tests/test-floorl.c (main): Likewise.
18810         * tests/test-frexp.c (main): Likewise.
18811         * tests/test-frexpl.c (main): Likewise.
18812         * tests/test-isnan.c (main): Likewise.
18813         * tests/test-isnand.h (main): Likewise.
18814         * tests/test-isnanf.h (main): Likewise.
18815         * tests/test-isnanl.h (main): Likewise.
18816         * tests/test-ldexpl.c (main): Likewise.
18817         * tests/test-round.c (main): Likewise.
18818         * tests/test-roundf.c (main): Likewise.
18819         * tests/test-roundl.c (main): Likewise.
18820         * tests/test-signbit.c (test_signbitf, test_signbitd)
18821         (test_signbitl): Likewise.
18822         * tests/test-snprintf-posix.h (test_function): Likewise.
18823         * tests/test-sprintf-posix.h (test_function): Likewise.
18824         * tests/test-strtod.c (main): Likewise.
18825         * tests/test-trunc1.c (main): Likewise.
18826         * tests/test-truncf1.c (main): Likewise.
18827         * tests/test-truncl.c (main): Likewise.
18828
18829         isnanl: work around icc bug
18830         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18831
18832 2010-11-03  Eric Blake  <eblake@redhat.com>
18833
18834         tests: fix compiler warnings
18835         * tests/test-getopt.h (test_getopt): Fix condition.
18836         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18837         * tests/test-pipe2.c (main): Likewise.
18838         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18839
18840         utimens: fix broken m4 test
18841         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18842
18843 2010-10-28  Bruno Haible  <bruno@clisp.org>
18844
18845         posix_spawn*, getdtablesize: Relax license.
18846         * modules/posix_spawn (License): Change to LGPLv2+.
18847         * modules/posix_spawnp (License): Likewise.
18848         * modules/posix_spawn-internal (License): Likewise.
18849         * modules/posix_spawnattr_init (License): Likewise.
18850         * modules/posix_spawnattr_getflags (License): Likewise.
18851         * modules/posix_spawnattr_setflags (License): Likewise.
18852         * modules/posix_spawnattr_getpgroup (License): Likewise.
18853         * modules/posix_spawnattr_setpgroup (License): Likewise.
18854         * modules/posix_spawnattr_getschedparam (License): Likewise.
18855         * modules/posix_spawnattr_setschedparam (License): Likewise.
18856         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18857         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18858         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18859         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18860         * modules/posix_spawnattr_getsigmask (License): Likewise.
18861         * modules/posix_spawnattr_setsigmask (License): Likewise.
18862         * modules/posix_spawnattr_destroy (License): Likewise.
18863         * modules/posix_spawn_file_actions_init (License): Likewise.
18864         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18865         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18866         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18867         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18868         * modules/getdtablesize (License): Likewise.
18869         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18870
18871 2010-10-26  Bruno Haible  <bruno@clisp.org>
18872
18873         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18874         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18875         Cygwin and mingw.
18876         Suggested by Eric Blake.
18877
18878 2010-10-26  Bruno Haible  <bruno@clisp.org>
18879
18880         stdio: Work around compilation error due to renameat() on Solaris 10.
18881         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18882         * lib/renameat.c: Don't include <unistd.h> here.
18883         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18884         Reported by Paul Eggert and Eric Blake.
18885
18886 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18887
18888         renameat: port to Solaris 10, which declares renameat in unistd.h
18889
18890         * lib/renameat.c: Include unistd.h before stdio.h, because
18891         Solaris 10 declares renameat in unistd.h.  Problem encountered
18892         when building GNU tar 1.24 on Solaris 10.
18893
18894 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18895
18896         fdopendir: fix C89 compilation
18897         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18898         compilers.
18899
18900 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18901
18902         inttostr: simplify by removing unnecessary redundancy
18903         * lib/anytostr.c: Don't include verify.h.
18904         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18905         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18906         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18907         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18908         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18909         Likewise.
18910         * modules/inttostr (Depends-on): Remove 'verify'.
18911
18912 2010-10-23  Bruno Haible  <bruno@clisp.org>
18913
18914         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18915         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18916         Reported by Eric Blake.
18917
18918 2010-10-23  Bruno Haible  <bruno@clisp.org>
18919
18920         Tests: Fix LOCALE_JA on MirBSD 10.
18921         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18922         to an UTF-8 locale.
18923         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18924         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18925         Reported by Eric Blake.
18926
18927 2010-10-21  Bruno Haible  <bruno@clisp.org>
18928
18929         nl_langinfo test: Avoid test failure on NetBSD 5.
18930         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18931         Reported by Eric Blake.
18932
18933 2010-10-21  Eric Blake  <eblake@redhat.com>
18934
18935         c-stack: work around libsigsegv 2.8 bug
18936         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18937         overflow on at least PowerPC64.
18938
18939 2010-10-17  Bruno Haible  <bruno@clisp.org>
18940
18941         userspec: Drop redundant file.
18942         * modules/userspec (Files): Remove lib/inttostr.h.
18943
18944 2010-10-17  Bruno Haible  <bruno@clisp.org>
18945
18946         nl_langinfo tests: Silence some warnings.
18947         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18948         Reported by Jim Meyering.
18949
18950 2010-10-17  Bruno Haible  <bruno@clisp.org>
18951
18952         Make use of GCC's attribute __alloc_size__.
18953         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18954         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18955         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18956         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18957         __alloc_size__.
18958         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18959         Suggested by Jim Meyering.
18960
18961 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18962
18963         bootstrap: anchor .gitignore entries.
18964         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18965         with...
18966         (insert_vc_ignore): ... this new function, which prepends `/' to
18967         all .gitignore entries before passing them to
18968         insert_sorted_if_absent.
18969
18970 2010-10-16  Bruno Haible  <bruno@clisp.org>
18971
18972         nextafter: Fix configure check.
18973         * modules/nextafter (configure.ac): Correct expected prototype.
18974
18975 2010-10-16  Bruno Haible  <bruno@clisp.org>
18976
18977         termios: Update documentation.
18978         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18979
18980 2010-10-16  Bruno Haible  <bruno@clisp.org>
18981
18982         tests: Make them compile with TinyCC.
18983         * tests/test-strstr.c (main): Remove parentheses around array
18984         initializer.
18985
18986 2010-10-15  Eric Blake  <eblake@redhat.com>
18987
18988         ignore-value: make header idempotent
18989         * lib/ignore-value.h: Add double-inclusion guards.
18990         Reported by Stefan Berger.
18991
18992 2010-10-15  Jim Meyering  <meyering@redhat.com>
18993
18994         GNUmakefile: handle "stable" target, not "major"
18995         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18996         lists in maint.mk and announce-gen.  Without this, "make stable"
18997         would fail to ensure that $(VERSION) is up to date.
18998
18999 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19000
19001         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19002         & co.
19003
19004 2010-10-14  Bruno Haible  <bruno@clisp.org>
19005
19006         vasnprintf: Don't set errno to 0.
19007         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19008         block that sets it to 0.
19009         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19010
19011 2010-10-14  Bruno Haible  <bruno@clisp.org>
19012
19013         socketlib: Fix.
19014         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19015         gl_PREREQ_SYS_H_WINSOCK2.
19016         Reported by Ian Beckwith <ianb@erislabs.net>.
19017
19018 2010-10-13  Jim Meyering  <meyering@redhat.com>
19019
19020         test-select-stdin.c: avoid warn_unused_result warnings
19021         * tests/test-select-stdin.c: Include "macros.h".
19022         ASSERT that read and fflush succeed.
19023
19024 2010-10-13  Jim Meyering  <meyering@redhat.com>
19025
19026         git-version-gen: do require git-VC'd files in cwd
19027         * build-aux/git-version-gen: Reject a git version string
19028         if there are no commits associated with the current directory.
19029         This avoids an unlikely false-positive (unrelated dir whose parent
19030         repository also contains a tag matching v*), as pointed out
19031         by Giuseppe Scrivano in
19032         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19033
19034 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19035
19036         argv-iter: omit nonconforming declaration
19037         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19038         enum arg_iter_err declaration, which doesn't conform to C99.
19039         Solaris 10 cc warns about this.
19040
19041 2010-10-13  Eric Blake  <eblake@redhat.com>
19042
19043         termios: fix compilation on mingw
19044         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19045         (gl_TERMIOS_H): Adjust it on mingw.
19046         * modules/termios (Makefile.am): Substitute new key.
19047         * lib/termios.in.h (includes): Make include_next conditional.
19048         * doc/posix-headers/termios.texi (termios.h): Update
19049         documentation.
19050         Reported by Daniel P. Berrange.
19051
19052 2010-10-13  Jim Meyering  <meyering@redhat.com>
19053
19054         git-version-gen: don't require that .git/ be in the current dir
19055         * build-aux/git-version-gen: Adjust this script so that it works
19056         when run from any working directory beneath the top-level .git/-
19057         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19058         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19059
19060         test-select: avoid warn_unused_result warnings
19061         * tests/test-select.c: Include "macros.h".
19062         ASSERT that each call to read, write, and pipe succeeds.
19063         While not technically required, also check each "close".
19064         * modules/select-tests (Files): Add tests/macros.h.
19065
19066         test-symlinkat: remove declaration of unused local
19067         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19068
19069         test-inttostr: avoid shadowing warnings
19070         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19071         and use malloc rather than the stack for the same reason as
19072         mentioned in the comment justifying the other allocation.
19073
19074 2010-10-11  Bruno Haible  <bruno@clisp.org>
19075
19076         stdlib: Allow multiple gnulib generated replacements to coexist.
19077         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19078         Reported by Sam Steingold <sds@gnu.org>.
19079
19080 2010-10-11  Jim Meyering  <meyering@redhat.com>
19081
19082         fix a documentation typo
19083         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19084
19085 2010-10-11  Eric Blake  <eblake@redhat.com>
19086
19087         futimens: work around Solaris 11 bug
19088         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19089         * tests/test-futimens.h (test_futimens): Enhance, rather than
19090         weaken test.
19091         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19092
19093 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19094
19095         Indentation.
19096         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19097         higher-level operators more to the left.
19098
19099 2010-10-11  Jim Meyering  <meyering@redhat.com>
19100
19101         test-futimens: avoid unwarranted test failure on Solaris 5.11
19102         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19103         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19104         because it tries to dereference the NULL name argument.
19105
19106 2010-10-11  Bruno Haible  <bruno@clisp.org>
19107
19108         Indentation.
19109         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19110         indentation.
19111
19112 2010-10-11  Jim Meyering  <meyering@redhat.com>
19113
19114         spawn.in.h: make indentation consistent with parentheses
19115         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19116         Make indentation consistent with parentheses.
19117
19118 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19119
19120         Fix mismatched parens in previous commit
19121         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19122         parens.
19123
19124 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19125
19126         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19127
19128         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19129         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19130         * lib/malloca.c: Include "verify.h".
19131         (verify1): Remove, replacing with a verify call.
19132         * lib/relocwrapper.c (verify1): Likewise.
19133         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19134         Likewise.
19135         * modules/malloca (Depends-on): Add 'verify'.
19136         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19137         * modules/vasnprintf (Depends-on): Add 'verify'.
19138         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19139         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19140         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19141         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19142         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19143         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19144         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19145
19146         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19147
19148         Formerly the style was sometimes 2*X - 1, because the C standard
19149         was wrongly thought to disallow ?: in integral constant expressions.
19150         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19151         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19152         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19153         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19154         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19155         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19156         verify that time_t cannot be floating.
19157
19158 2010-10-08  Eric Blake  <eblake@redhat.com>
19159
19160         time: enforce recent POSIX ruling that time_t is integral
19161         * lib/time.in.h (__time_t_must_be_integral): Detect any
19162         problematic systems, allowing the rest of gnulib to assume POSIX.
19163
19164 2010-10-08  Jim Meyering  <meyering@redhat.com>
19165
19166         fdopendir: fix a bug on systems lacking openat and /proc support
19167         OpenBSD 4.7 is one such system.  The most noticeable effect was
19168         failure of any application making nontrivial use of fts: rm, du,
19169         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19170           ./rm: traversal failed: `a': Bad file descriptor
19171         Debugging that, you see that even though FD 6 was closed just
19172         prior to the opendir call in fd_clone_opendir, its resulting
19173         dir->dd_fd was 8, rather than the expected value of 6:
19174
19175         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19176         93                close (fd);
19177         (gdb) n
19178         94                dir = fd_clone_opendir (dupfd);
19179         (gdb) n
19180         95                saved_errno = errno;
19181         (gdb) p dir->dd_fd
19182         $11 = 8
19183
19184         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19185         The problem is that on OpenBSD, fd_clone_opendir has to resort
19186         to using the old-style save/restore CWD mechanism, due to its
19187         lack of openat/proc support, and *that* would steal the FD (6)
19188         that opendir was supposed to use.
19189
19190         The fix is to squirrel away the desired FD so that save_cwd uses a
19191         different one, and then free the dest FD right before calling opendir.
19192         That guarantees opendir will use the required file descriptor.
19193
19194         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19195
19196 2010-10-08  Bruno Haible  <bruno@clisp.org>
19197
19198         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19199         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19200
19201 2010-10-08  Bruno Haible  <bruno@clisp.org>
19202
19203         nanosleep: Make replacement POSIX compliant.
19204         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19205         is out of range.
19206         Reported by Jim Meyering.
19207
19208 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19209
19210         bootstrap: add hook for altering gnulib.mk, for Bison
19211         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19212         the Bison bootstrapping process can rewrite file names and variables
19213         in this file before later parts of 'bootstrap' use the file.
19214         Bison wants to include lib/gnulib.mk from the top-level makefile,
19215         so it needs the file names in this file to be relative to the top
19216         level, not relative to lib; plus it needs variable names to be
19217         rewritten.
19218         (slurp): Use the new function.
19219
19220         bootstrap: reformat for readability
19221         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19222
19223 2010-10-08  Eric Blake  <eblake@redhat.com>
19224
19225         docs: update cygwin progress
19226         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19227         1.7.7.
19228         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19229         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19230         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19231         * doc/posix-functions/carg.texi (carg): Likewise.
19232         * doc/posix-functions/cargf.texi (cargf): Likewise.
19233         * doc/posix-functions/casin.texi (casin): Likewise.
19234         * doc/posix-functions/casinf.texi (casinf): Likewise.
19235         * doc/posix-functions/casinh.texi (casinh): Likewise.
19236         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19237         * doc/posix-functions/catan.texi (catan): Likewise.
19238         * doc/posix-functions/catanf.texi (catanf): Likewise.
19239         * doc/posix-functions/catanh.texi (catanh): Likewise.
19240         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19241         * doc/posix-functions/ccos.texi (ccos): Likewise.
19242         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19243         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19244         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19245         * doc/posix-functions/cexp.texi (cexp): Likewise.
19246         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19247         * doc/posix-functions/cimag.texi (cimag): Likewise.
19248         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19249         * doc/posix-functions/clog.texi (clog): Likewise.
19250         * doc/posix-functions/clogf.texi (clogf): Likewise.
19251         * doc/posix-functions/conj.texi (conj): Likewise.
19252         * doc/posix-functions/conjf.texi (conjf): Likewise.
19253         * doc/posix-functions/cpow.texi (cpow): Likewise.
19254         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19255         * doc/posix-functions/cproj.texi (cproj): Likewise.
19256         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19257         * doc/posix-functions/creal.texi (creal): Likewise.
19258         * doc/posix-functions/crealf.texi (crealf): Likewise.
19259         * doc/posix-functions/csin.texi (csin): Likewise.
19260         * doc/posix-functions/csinf.texi (csinf): Likewise.
19261         * doc/posix-functions/csinh.texi (csinh): Likewise.
19262         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19263         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19264         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19265         * doc/posix-functions/ctan.texi (ctan): Likewise.
19266         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19267         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19268         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19269         * doc/posix-headers/complex.texi (complex.h): Likewise.
19270
19271 2010-10-07  Jim Meyering  <meyering@redhat.com>
19272
19273         parse-datetime: avoid compilation failure on OpenBSD 4.7
19274         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19275         This works around a compilation failure on OpenBSD 4.7:
19276         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19277
19278 2010-10-07  Eric Blake  <eblake@redhat.com>
19279
19280         docs: update cygwin progress
19281         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19282         1.7.6.
19283         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19284         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19285         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19286         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19287         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19288         Likewise.
19289         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19290         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19291         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19292         Likewise.
19293         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19294         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19295         Likewise.
19296         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19297         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19298         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19299         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19300         Likewise.
19301         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19302         Likewise.
19303         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19304
19305         docs: update parse-datetime history
19306         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19307         documentation of this function's history and alternatives.
19308
19309         cygwin: use more robust version check
19310         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19311         exclude an eventual cygwin 1.9.1.
19312         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19313         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19314         (gl_FUNC_STRCASESTR): Likewise.
19315         Reported by Bruno Haible.
19316
19317 2010-10-06  Bruno Haible  <bruno@clisp.org>
19318
19319         string, sys_select: Avoid #including large headers unless necessary.
19320         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19321         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19322         OSF/1, BeOS, Haiku.
19323         Reported by Jim Meyering.
19324
19325 2010-10-05  Eric Blake  <eblake@redhat.com>
19326
19327         memmem, strstr, strcasestr: fix bug with long periodic needle
19328         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19329         periodic needle having false positive.
19330         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19331         and cygwin 1.7.7.
19332         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19333         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19334         (gl_FUNC_STRCASESTR): Likewise.
19335         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19336         * tests/test-memmem.c (main): Expose the bug.
19337         * tests/test-strcasestr.c (main): Likewise.
19338         * tests/test-strstr.c (main): Likewise.
19339         * tests/test-c-strcasestr.c (main): Likewise.
19340         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19341         * doc/posix-functions/strstr.texi (strstr): Likewise.
19342         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19343         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19344
19345 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19346
19347         parse-datetime: do some more renaming
19348         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19349         parse_datetime, not get_date.  Mention the renaming.
19350         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19351         in comments.
19352         * m4/bison.m4: Likewise.
19353
19354 2010-10-05  Eric Blake  <eblake@redhat.com>
19355
19356         parse-datetime: better name than get_date
19357         * NEWS: Reword the deprecation notice.
19358         * modules/get_date: Rename to modules/parse-datetime.
19359         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19360         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19361         * lib/get_date.y: Rename to lib/parse-datetime.y.
19362         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19363         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19364         * doc/getdate.texi: Provide fallback wrapper.
19365         * lib/getdate.h: Move guts, and wrap...
19366         * lib/parse-datetime.h: ...new file.
19367         * lib/parse-datetime.y (get_date): Rename...
19368         (parse_datetime): ...to this.
19369         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19370         (gl_PARSE_DATETIME): ...to this.
19371         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19372         documentation.
19373         * modules/getdate (Files): Provide fallback docs and header.
19374         (Notice, Depends-on): Update references.
19375         * tests/test-parse-datetime.c: Likewise.
19376         * DEPENDENCIES: Likewise.
19377         * MODULES.html.sh (Date and time <time.h>): Likewise.
19378         * doc/parse-datetime.texi (Date input formats)
19379         (Authors of parse_datetime): Likewise.
19380         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19381         (Include): Likewise.
19382         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19383         * gnulib-tool: Likewise.
19384         * m4/bison.m4 (gl_BISON): Likewise.
19385         Suggested by Bruno Haible.
19386
19387 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19388
19389         more ports to Solaris tr, which needs [] around ranges
19390         * gnulib-tool: Solaris tr needs [] around ranges.
19391         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19392         * tests/test-pipe-filter-gi1.c (main): Likewise.
19393         * tests/test-pipe-filter-ii1.c (main): Likewise.
19394
19395 2010-10-05  Eric Blake  <eblake@redhat.com>
19396
19397         bootstrap: fix Solaris regression
19398         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19399         around ranges.
19400         Reported by Pádraig Brady.
19401
19402         bootstrap: work with pkg-config
19403         * build-aux/bootstrap (check_versions): Also transliterate - in
19404         prerequisite name.
19405         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19406         prerequisites that were already found, to avoid confusion.
19407         Reported by Justin Clift.
19408
19409         faccessat: remove unused wrappers
19410         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19411         presence of these wrappers dragged in -lgen on Solaris.
19412         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19413
19414 2010-10-05  Jim Meyering  <meyering@redhat.com>
19415
19416         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19417         * Makefile (sc_pragma_columns): New syntax-check rule.
19418
19419 2010-10-04  Bruno Haible  <bruno@clisp.org>
19420
19421         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19422         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19423         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19424         Reported by Bruce Korb and Eric Blake.
19425
19426 2010-10-04  Bruno Haible  <bruno@clisp.org>
19427
19428         threadlib: Make option --with-libpth-prefix work.
19429         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19430         use $LIBPTH, not just -lpth.
19431
19432 2010-10-04  Bruno Haible  <bruno@clisp.org>
19433
19434         Avoid line length limitation from HP NonStop system header files.
19435         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19436         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19437         * lib/ctype.in.h: Likewise.
19438         * lib/dirent.in.h: Likewise.
19439         * lib/errno.in.h: Likewise.
19440         * lib/fcntl.in.h: Likewise.
19441         * lib/float.in.h: Likewise.
19442         * lib/getopt.in.h: Likewise.
19443         * lib/iconv.in.h: Likewise.
19444         * lib/inttypes.in.h: Likewise.
19445         * lib/langinfo.in.h: Likewise.
19446         * lib/locale.in.h: Likewise.
19447         * lib/math.in.h: Likewise.
19448         * lib/netdb.in.h: Likewise.
19449         * lib/netinet_in.in.h: Likewise.
19450         * lib/poll.in.h: Likewise.
19451         * lib/pthread.in.h: Likewise.
19452         * lib/pty.in.h: Likewise.
19453         * lib/sched.in.h: Likewise.
19454         * lib/se-selinux.in.h: Likewise.
19455         * lib/search.in.h: Likewise.
19456         * lib/signal.in.h: Likewise.
19457         * lib/spawn.in.h: Likewise.
19458         * lib/stdarg.in.h: Likewise.
19459         * lib/stddef.in.h: Likewise.
19460         * lib/stdint.in.h: Likewise.
19461         * lib/stdio.in.h: Likewise.
19462         * lib/stdlib.in.h: Likewise.
19463         * lib/string.in.h: Likewise.
19464         * lib/strings.in.h: Likewise.
19465         * lib/sys_file.in.h: Likewise.
19466         * lib/sys_ioctl.in.h: Likewise.
19467         * lib/sys_select.in.h: Likewise.
19468         * lib/sys_socket.in.h: Likewise.
19469         * lib/sys_stat.in.h: Likewise.
19470         * lib/sys_time.in.h: Likewise.
19471         * lib/sys_times.in.h: Likewise.
19472         * lib/sys_utsname.in.h: Likewise.
19473         * lib/sys_wait.in.h: Likewise.
19474         * lib/sysexits.in.h: Likewise.
19475         * lib/termios.in.h: Likewise.
19476         * lib/time.in.h: Likewise.
19477         * lib/unistd.in.h: Likewise.
19478         * lib/wchar.in.h: Likewise.
19479         * lib/wctype.in.h: Likewise.
19480         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19481         * modules/ctype (Makefile.am): Likewise.
19482         * modules/dirent (Makefile.am): Likewise.
19483         * modules/errno (Makefile.am): Likewise.
19484         * modules/fcntl-h (Makefile.am): Likewise.
19485         * modules/float (Makefile.am): Likewise.
19486         * modules/getopt-posix (Makefile.am): Likewise.
19487         * modules/iconv-h (Makefile.am): Likewise.
19488         * modules/inttypes (Makefile.am): Likewise.
19489         * modules/langinfo (Makefile.am): Likewise.
19490         * modules/locale (Makefile.am): Likewise.
19491         * modules/math (Makefile.am): Likewise.
19492         * modules/netdb (Makefile.am): Likewise.
19493         * modules/netinet_in (Makefile.am): Likewise.
19494         * modules/poll-h (Makefile.am): Likewise.
19495         * modules/pthread (Makefile.am): Likewise.
19496         * modules/pty (Makefile.am): Likewise.
19497         * modules/sched (Makefile.am): Likewise.
19498         * modules/search (Makefile.am): Likewise.
19499         * modules/selinux-h (Makefile.am): Likewise.
19500         * modules/signal (Makefile.am): Likewise.
19501         * modules/spawn (Makefile.am): Likewise.
19502         * modules/stdarg (Makefile.am): Likewise.
19503         * modules/stddef (Makefile.am): Likewise.
19504         * modules/stdint (Makefile.am): Likewise.
19505         * modules/stdio (Makefile.am): Likewise.
19506         * modules/stdlib (Makefile.am): Likewise.
19507         * modules/string (Makefile.am): Likewise.
19508         * modules/strings (Makefile.am): Likewise.
19509         * modules/sys_file (Makefile.am): Likewise.
19510         * modules/sys_ioctl (Makefile.am): Likewise.
19511         * modules/sys_select (Makefile.am): Likewise.
19512         * modules/sys_socket (Makefile.am): Likewise.
19513         * modules/sys_stat (Makefile.am): Likewise.
19514         * modules/sys_time (Makefile.am): Likewise.
19515         * modules/sys_times (Makefile.am): Likewise.
19516         * modules/sys_utsname (Makefile.am): Likewise.
19517         * modules/sys_wait (Makefile.am): Likewise.
19518         * modules/sysexits (Makefile.am): Likewise.
19519         * modules/termios (Makefile.am): Likewise.
19520         * modules/time (Makefile.am): Likewise.
19521         * modules/unistd (Makefile.am): Likewise.
19522         * modules/wchar (Makefile.am): Likewise.
19523         * modules/wctype (Makefile.am): Likewise.
19524
19525 2010-10-04  Bruno Haible  <bruno@clisp.org>
19526
19527         read-file tests: Avoid a test failure on NonStop Kernel.
19528         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19529         a regular file.
19530         Reported by Joachim Schmitz <schmitz@hp.com>.
19531
19532 2010-10-03  Bruno Haible  <bruno@clisp.org>
19533
19534         gnulib-tool: Fixes for --create-testdir with --libtool.
19535         * gnulib-tool (func_get_automake_snippet): Don't augment
19536         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19537         an executable.
19538         (func_create_testdir): Handle module 'alloca' like func_import.
19539         Reported by Bruce Korb <bruce.korb@gmail.com>.
19540
19541 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19542
19543         Avoid some lines longer than 80 characters.
19544         * lib/stdint.in.h: Break long comment lines.
19545         * lib/math.in.h: Likewise.
19546         (_GL_NUM_UINT_WORDS): New macro, for readability.
19547         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19548         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19549         * lib/stdlib.in.h: Likewise.
19550         * lib/spawn.in.h: Likewise.
19551         * lib/sys_socket.in.h: Update an URL.
19552         * lib/sys_stat.in.h: Break long line.
19553
19554 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19555
19556         Improve pmccabe2html.
19557         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19558         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19559         when the sources change. Remove the line in the HTML about "Used
19560         ranges" (which implied that there might be other unused ranges),
19561         rename "Resume" to "Summary" (easier to understand for more users).
19562         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19563         styles, and some unnecessary blank lines.
19564
19565 2010-10-03  Bruno Haible  <bruno@clisp.org>
19566             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19567
19568         acl: Add support for ACLs on NonStop Kernel.
19569         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19570         Check whether the function aclsort() exists.
19571         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19572         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19573         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19574         (acl_nontrivial [HAVE_ACLSORT]: New function.
19575         (file_has_acl): Implement for NonStop Kernel.
19576         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19577         (qset_acl): Implement for NonStop Kernel.
19578         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19579         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19580         (main): Implement for NonStop Kernel.
19581         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19582         Kernel. Handle this flavor.
19583         * tests/test-set-mode-acl.sh: Likewise.
19584         * tests/test-copy-acl.sh: Likewise.
19585         * tests/test-copy-file.sh: Likewise.
19586
19587 2010-10-03  Bruno Haible  <bruno@clisp.org>
19588
19589         Info about ACLs on NonStop Kernel.
19590         * doc/acl-resources.txt: Add info about NonStop Kernel.
19591         References by Joachim Schmitz <schmitz@hp.com>.
19592
19593 2010-10-02  Bruno Haible  <bruno@clisp.org>
19594
19595         Define missing EDQUOT on NonStop Kernel.
19596         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19597         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19598         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19599         missing.
19600         * doc/posix-headers/errno.texi: Mention the NSK bug.
19601         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19602         Reported by Joachim Schmitz <schmitz@hp.com>.
19603
19604 2010-10-02  Bruno Haible  <bruno@clisp.org>
19605
19606         Update doc for POSIX:2008.
19607         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19608         Update URL of POSIX specification.
19609
19610 2010-10-02  Bruno Haible  <bruno@clisp.org>
19611
19612         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19613         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19614         from gnulib, not from Automake.
19615
19616 2010-10-02  Bruno Haible  <bruno@clisp.org>
19617
19618         New module 'system-posix'.
19619         * modules/system-posix: New file.
19620         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19621         module is present.
19622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19623         GNULIB_SYSTEM_POSIX.
19624         * modules/stdlib (Depends-on): Remove sys_wait.
19625         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19626         * doc/posix-functions/system.texi: Mention the new module.
19627         * doc/posix-headers/stdlib.texi: Likewise.
19628         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19629         define test_sys_wait_macros to a no-op.
19630         Reported by Sam Steingold <sds@gnu.org>.
19631
19632 2010-09-30  Bruno Haible  <bruno@clisp.org>
19633
19634         More renaming from 'getdate' to 'get_date'.
19635         * doc/get_date.texi: Renamed from doc/getdate.texi.
19636         * modules/get_date (Files): Update.
19637         * MODULES.html.sh (Date and time <time.h>): Update.
19638         * DEPENDENCIES: Update.
19639         * gnulib-tool: Update comment.
19640         * m4/bison.m4 (gl_BISON): Likewise.
19641         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19642
19643 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19644
19645         bootstrap: support ACLOCAL_FLAGS during aclocal
19646         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19647         can add additional -I dir for third-party .m4 files.
19648
19649 2010-09-30  Eric Blake  <eblake@redhat.com>
19650
19651         bootstrap: use glibtoolize on MacOS
19652         * build-aux/bootstrap (check_versions): Convert libtool into
19653         libtoolize.
19654         (tool search): Move libtool check earlier, and look for
19655         glibtoolize for MacOS.
19656         (gnulib_tool_options): Auto-add --libtool when appropriate.
19657         Reported by Justin Clift.
19658
19659         poll: fix typo that broke test on MacOS
19660         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19661         Reported by Justin Clift.
19662
19663         getdate: rename to get_date
19664         Note: getdate.h is not renamed, to minimize client impact.
19665         * modules/getdate: Mark obsolete.  Move old contents...
19666         * modules/get_date: ...to new module name.
19667         * modules/getdate-tests: Move...
19668         * modules/get_date-tests: ...here.
19669         * m4/getdate.m4: Move...
19670         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19671         * lib/getdate.y: Move...
19672         * lib/get_date.y: ...here.
19673         * tests/test-getdate.c: Move...
19674         * tests/test-get_date.c: ...here.
19675         * doc/posix-functions/getdate.texi (getdate): Update name.
19676         * NEWS: Mention the change.
19677
19678 2010-09-29  Bruno Haible  <bruno@clisp.org>
19679
19680         Separate the module 'waitpid' from the module 'sys_wait'.
19681         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19682         present.
19683         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19684         gl_MODULE_INDICATOR_FOR_TESTS.
19685         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19686         * modules/sys_wait (Depends-on): Remove waitpid.
19687         (Makefile.am): Substitute GNULIB_WAITPID.
19688         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19689         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19690         signature only if the 'waitpid' module is present.
19691         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19692         * NEWS: Mention the change.
19693         * modules/grantpt (Depends-on): Add waitpid.
19694         * modules/wait-process (Depends-on): Likewise.
19695
19696 2010-09-29  Bruno Haible  <bruno@clisp.org>
19697
19698         More tests for module 'sys_wait'.
19699         * modules/sys_wait-c++-tests: New file.
19700         * tests/test-sys_wait-c++.cc: New file.
19701         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19702         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19703
19704 2010-09-29  Bruno Haible  <bruno@clisp.org>
19705
19706         New module 'waitpid'.
19707         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19708         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19709         Don't include <process.h>.
19710         (waitpid): Declare only, using modern idiom.
19711         * m4/waitpid.m4: New file.
19712         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19713         * modules/waitpid: New file.
19714         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19715         (Makefile.am): Update.
19716         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19717
19718 2010-09-28  Bruno Haible  <bruno@clisp.org>
19719
19720         poll: Assume ANSI C.
19721         * lib/poll.c (poll): Use an ANSI C declaration.
19722
19723 2010-09-28  Bruno Haible  <bruno@clisp.org>
19724
19725         poll-h: Create poll.h on all platforms.
19726         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19727         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19728         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19729         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19730         (gl_REPLACE_POLL_H): Don't set POLL_H.
19731         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19732         * modules/poll-h (Depends-on): Add include_next.
19733         (Makefile.am): Create poll.h unconditionally. Substitute also
19734         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19735
19736 2010-09-28  Bruno Haible  <bruno@clisp.org>
19737
19738         Tests for module 'poll-h'.
19739         * modules/poll-h-c++-tests: New file.
19740         * tests/test-poll-h-c++.cc: New file.
19741
19742         Tests for module 'poll-h'.
19743         * modules/poll-h-tests: New file.
19744         * tests/test-poll-h.c: New file.
19745
19746 2010-09-28  Bruno Haible  <bruno@clisp.org>
19747
19748         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19749         * modules/poll-h (Depends-on): Add 'extensions'.
19750
19751 2010-09-28  Bruno Haible  <bruno@clisp.org>
19752
19753         New module 'poll-h'.
19754         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19755         (poll): Use modern idiom.
19756         * modules/poll-h: New file.
19757         * modules/poll (Files): Remove lib/poll.in.h.
19758         (Depends-on): Add poll-h.
19759         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19760         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19761         * m4/poll_h.m4: New file.
19762         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19763         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19764         and invoke gl_REPLACE_POLL_H.
19765         * lib/poll.c: Use common idiom.
19766         * tests/test-poll.c: Likewise.
19767         * doc/posix-headers/poll.texi: Mention the poll-h module.
19768         Suggested by Eric Blake.
19769
19770 2010-09-26  Bruno Haible  <bruno@clisp.org>
19771
19772         sys_wait: Implement WSTOPSIG.
19773         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19774         Reported by Simon Josefsson.
19775
19776 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19777
19778         stdlib, sys_wait: Avoid compilation error on mingw.
19779         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19780
19781 2010-09-26  Bruno Haible  <bruno@clisp.org>
19782
19783         stdlib tests: Avoid code duplication.
19784         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19785         * modules/sys_wait-tests (Files): Likewise.
19786         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19787         * tests/test-stdlib.c: Include test-sys_wait.h.
19788         (main): Invoke test_sys_wait_macros.
19789         * tests/test-sys_wait.c: Include test-sys_wait.h.
19790         (main): Invoke test_sys_wait_macros.
19791
19792 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19793
19794         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19795         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19796         sure Windows sockets are working before calling getaddrinfo.
19797         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19798         * doc/gnulib.texi (Windows sockets): Fix typo.
19799
19800 2010-09-25  Bruno Haible  <bruno@clisp.org>
19801
19802         Tests for module 'regex-quote'.
19803         * modules/regex-quote-tests: New file.
19804         * tests/test-regex-quote.c: New file.
19805
19806         New module 'regex-quote'.
19807         * lib/regex-quote.h: New file.
19808         * lib/regex-quote.c: New file.
19809         * modules/regex-quote: New file.
19810         Suggested by Reuben Thomas <rrt@sc3d.org>.
19811
19812 2010-09-24  Bruno Haible  <bruno@clisp.org>
19813
19814         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19815         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19816
19817 2010-09-23  Bruno Haible  <bruno@clisp.org>
19818
19819         setenv: Relax license.
19820         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19821         Blake.
19822         Requested by Eric Blake.
19823
19824 2010-09-22  Bruno Haible  <bruno@clisp.org>
19825
19826         termios: Relax license.
19827         * modules/termios (License): Change to LGPLv2+.
19828         Requested by Eric Blake.
19829
19830 2010-09-22  Bruno Haible  <bruno@clisp.org>
19831
19832         threadlib: Allow the package to change the default to 'no'.
19833         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19834         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19835         Reported by Paul Eggert.
19836
19837 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19838             Bruno Haible  <bruno@clisp.org>
19839
19840         Fix endless loop in mbmemcasecoll.
19841         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19842         byte.
19843         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19844
19845 2010-09-22  Bruno Haible  <bruno@clisp.org>
19846
19847         Tests for module 'memcoll'.
19848         * modules/memcoll-tests: New file.
19849         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19850
19851         memcoll, xmemcoll: Clarify size vs. length.
19852         * modules/memcoll.c (memcoll0): Clarify specification.
19853         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19854         passed to collate_error.
19855
19856 2010-09-22  Bruno Haible  <bruno@clisp.org>
19857
19858         Tests for module 'memcasecmp'.
19859         * modules/memcasecmp-tests: New file.
19860         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19861
19862 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19863
19864         * lib/pthread.in.h: Add split double-inclusion guard, and include
19865         system <pthread.h> if there is one.  Use @@-style as in other
19866         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19867         pthread.h doesn't.
19868         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19869         (pthread_mutexattr_settype, pthread_mutex_trylock):
19870         New static inline functions, if there's no system <pthread.h>.
19871         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19872         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19873         Approximate with mutexes if the system lacks spinlocks, as in
19874         MacOS.
19875         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19876         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19877         @@-style.  Check for spinlocks separately.
19878         (gl_PTHREAD_DEFAULTS): New macro.
19879         * modules/pthread: Redo to use a more typical style for in.h files.
19880
19881 2010-09-21  Eric Blake  <eblake@redhat.com>
19882
19883         net_if: enhance tests
19884         * tests/test-net_if.c (main): Move signature checks earlier.
19885         Print failures to stderr.
19886         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19887         Document the bug that we do not yet fix.
19888
19889 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19890
19891         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19892         about gnulib, not GSS.
19893
19894 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19895
19896         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19897         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19898         for Emacs.
19899         * build-aux/pmccabe2html: Make Makefile.am example code more
19900         cut-and-paste friendly.
19901
19902 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19903
19904         * tests/test-net_if.c: New file.
19905         * modules/net_if-tests: New file.
19906
19907 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19908
19909         pthread: add pthread_spin_destroy
19910         * lib/pthread.in.h (pthread_spin_destroy): New function.
19911
19912 2010-09-19  Bruno Haible  <bruno@clisp.org>
19913
19914         gnulib-tool: Fix --help output.
19915         * gnulib-tool (func_usage): Fix help message.
19916         Reported by Reuben Thomas <rrt@sc3d.org>.
19917
19918 2010-09-18  Jim Meyering  <meyering@redhat.com>
19919
19920         maint.mk: avoid unexpanded \n in two diagnostics
19921         * top/maint.mk (sc_prohibit_always_true_header_tests):
19922         Don't use a literal \n in a halt=... assignment.  It would not be
19923         expanded, and the two \n bytes would appear in the diagnostic output
19924         rather than the desired newline.  Use halt=$$(printf ... instead.
19925         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19926
19927 2010-09-18  Bruno Haible  <bruno@clisp.org>
19928
19929         netinet_in: Doc tweak.
19930         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19931         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19932
19933 2010-09-18  Jim Meyering  <meyering@redhat.com>
19934
19935         init.sh: correct an outdated comment
19936         * tests/init.sh (create_exe_shims_):  s/function/alias/
19937
19938         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19939         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19940         a file named "*.exe" is removed between the glob expansion and the
19941         processing of that oddly named file.
19942
19943 2010-09-17  Eric Blake  <eblake@redhat.com>
19944
19945         mirbsd: add some more support
19946         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19947         in BSD family.
19948         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19949         devices as OpenBSD.
19950         * m4/host-os.m4 (mirbsd): Add MirBSD.
19951
19952         tests: fix unportable assumption on sys/wait.h
19953         * tests/test-sys_wait.c (main): Relax test.
19954         * tests/test-stdlib.c (main): Likewise.
19955
19956         init.sh: accomodate directory with no .exes
19957         * tests/init.sh: Accomodate directory containing only scripts.
19958
19959         tests: avoid compiler warning
19960         * tests/test-stdlib.c (main): Use the variable.
19961
19962         fdutimens, fdutimensat: update signature, again
19963         * lib/utimens.h (gl_futimens): Delete, and move signature...
19964         (fdutimens): ...here.
19965         (fdutimensat): Rearrange signature.
19966         (lutimensat): Rename variable for clarity.
19967         * lib/fdutimensat.c (fdutimensat): Update signature.
19968         * lib/utimens.c (fdutimens): Likewise.
19969         (gl_futimens): Delete.
19970         (utimens, lutimens): Update callers.
19971         * lib/futimens.c (futimens): Likewise.
19972         * tests/test-fdutimensat.c: Likewise.
19973         * tests/test-utimens.c: Likewise.
19974         * tests/test-futimens.h: Update comment.
19975         * NEWS: Mention this.
19976         Suggested by Paul Eggert.
19977
19978 2010-09-17  Bruno Haible  <bruno@clisp.org>
19979
19980         Take over the maintenance of some older macros from Autoconf.
19981         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19982         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19983         GNU Autoconf.
19984         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19985         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19986
19987 2010-09-17  Eric Blake  <eblake@redhat.com>
19988
19989         fdutimensat: drop atflag validation
19990         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19991         with valid fd, to close a race scenario where futimens is
19992         unsupported and FILE was replaced by a symlink.
19993         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19994         accordingly.
19995         Suggested by Paul Eggert.
19996
19997 2010-09-16  Bruno Haible  <bruno@clisp.org>
19998
19999         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20000         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20001
20002 2010-09-16  Bruno Haible  <bruno@clisp.org>
20003
20004         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20005         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20006         login_tty exists.
20007         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20008
20009 2010-09-16  Bruno Haible  <bruno@clisp.org>
20010
20011         login_tty: Make the replacement code work on BSD systems.
20012         * lib/login_tty.c: Include <sys/ioctl.h>.
20013         (login_tty): Use ioctl TIOCSCTTY when available.
20014         * modules/login_tty (Depends-on): Add sys_ioctl.
20015         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20016
20017 2010-09-16  Bruno Haible  <bruno@clisp.org>
20018
20019         login_tty: Stricter unit test.
20020         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20021         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20022         and tcgetsid() after login_tty.
20023         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20024
20025 2010-09-16  Bruno Haible  <bruno@clisp.org>
20026
20027         New module 'tcgetsid'.
20028         * lib/tcgetsid.c: New file.
20029         * m4/tcgetsid.m4: New file.
20030         * modules/tcgetsid: New file.
20031         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20032         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20033         GNULIB_TCGETSID, HAVE_TCGETSID.
20034         * lib/termios.in.h: Include <sys/types.h>.
20035         (tcgetsid): New declaration.
20036         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20037         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20038         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20039         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20040
20041 2010-09-16  Bruno Haible  <bruno@clisp.org>
20042
20043         Tests for module 'termios'.
20044         * modules/termios-c++-tests: New file.
20045         * modules/termios-tests: New file.
20046         * tests/test-termios-c++.cc: New file.
20047         * tests/test-termios.c: New file.
20048
20049         New module 'termios'.
20050         * modules/termios: New file.
20051         * lib/termios.in.h: New file.
20052         * m4/termios_h.m4: New file.
20053         * doc/posix-headers/termios.texi: Mention the new module.
20054
20055 2010-09-16  Eric Blake  <eblake@redhat.com>
20056
20057         fdutimensat: add an atflag parameter
20058         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20059         * lib/utimens.h (fdutimensat): Update prototype.
20060         * tests/test-fdutimensat.c: Adjust test to match.
20061         * NEWS: Document the change.
20062         Suggested by Paul Eggert.
20063
20064 2010-09-16  Bruno Haible  <bruno@clisp.org>
20065
20066         Fix typos in comments.
20067         * lib/striconveh.h: Fix typo in comment.
20068         * lib/login_tty.c (login_tty): Likewise.
20069
20070 2010-09-15  Bruno Haible  <bruno@clisp.org>
20071
20072         stdlib: clarify MirBSD WEXITSTATUS bug
20073         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20074         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20075
20076 2010-09-15  Eric Blake  <eblake@redhat.com>
20077
20078         stdlib: work around MirBSD WEXITSTATUS bug
20079         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20080         * modules/stdlib (Depends-on): Add sys_wait.
20081         * tests/test-sys_wait.c (main): Enhance test.
20082         * tests/test-stdlib.c (main): Likewise.
20083         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20084
20085         docs: mention MacOS issue with WEXITSTATUS(constant)
20086         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20087         issue.
20088         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20089
20090         strnlen: add tests
20091         * modules/strnlen-tests: New file.
20092         * tests/test-strnlen.c: Likewise.
20093
20094 2010-09-14  Bruno Haible  <bruno@clisp.org>
20095
20096         unistr/base: Avoid link errors when module 'libunistring' is also used.
20097         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20098         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20099         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20100         Declare also when HAVE_LIBUNISTRING is set.
20101         Reported by Pádraig Brady <P@draigbrady.com>.
20102
20103 2010-09-14  Eric Blake  <eblake@redhat.com>
20104
20105         test-rawmemchr: make more robust
20106         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20107         (Depends-on, configure.ac): Add needed prerequisites to use it.
20108         * modules/memchr-tests (Files, Depends-on, configure.ac):
20109         Likewise, to avoid implicit reliance on memchr module prereqs.
20110         * tests/test-memchr.c (main): Ensure proper masking.
20111         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20112         reads.
20113
20114         memchr: detect glibc Alpha bug
20115         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20116         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20117         Alpha.
20118         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20119         * tests/test-memchr.c (main): Enhance test.
20120         Reported by Nelson H. F. Beebe.
20121
20122 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20123
20124         fts, getcwd, glob: audit for dirfd returning -1
20125         * lib/fts.c (opendir): Remove #define; no longer used.
20126         (opendirat): New arg PDIR_FD.  All callers changed.
20127         (fts_build, _opendir2): Use new opendirat to avoid the need for
20128         dirfd, or for checking whether dirfd returns a negative value.
20129         Don't use opendir; always use openat followed by fdopendir.
20130         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20131         it.
20132         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20133         returns -1 here.
20134         * modules/fts (Depends-on): Remove dirfd.
20135         * modules/getcwd (Depends-on): Likewise.
20136
20137 2010-09-13  Eric Blake  <eblake@redhat.com>
20138
20139         float: fix broken MirBSD header
20140         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20141         * doc/posix-headers/float.texi (float.h): Document it.
20142
20143 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20144
20145         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20146         * lib/fts.c (opendirat): New arg extra_flags.
20147         (__opendir2): Use it to avoid following symlinks when opening
20148         a directory, if symlinks are not supposed to be followed.  See
20149         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20150
20151         fdopendir: preserve argument fd before returning
20152         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20153         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20154         (fdopendir): Use them, arranging for FD to be open to the same
20155         directory that it was when it started.  (It might be temporarily
20156         closed while fdopendir is running, so this not thread- or
20157         signal-safe.)  Be careful to do the right thing even when file
20158         descriptors are scarce and dup fails with errno == EMFILE.  See
20159         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20160
20161 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20162
20163         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20164         * NEWS: Document change.
20165         * m4/regex.m4: Disable test for regoff_t size.
20166
20167 2010-09-13  Jim Meyering  <meyering@redhat.com>
20168
20169         fts: don't operate on an invalid file descriptor after failed dup
20170         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20171         negative file descriptor.
20172
20173 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20174
20175         savedir: add streamsavedir, deprecate fdsavedir
20176         * NEWS: Mention deprecation of fdsavedir.
20177         * lib/savedir.c (streamsavedir): New extern function, whose name
20178         ends in "savedir" to be consistent with the others.  This differs
20179         from savedirstream in that it doesn't close its argument.  The
20180         next version of GNU tar will use this instead of fdsavedir, to
20181         avoid some race conditions and conserve file descriptors.
20182         (savedirstream): Reimplement as a wrapper around streamsavedir.
20183         (fdsavedir): Add a comment deprecating this function.  As far as
20184         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20185         * lib/savedir.h (streamsavedir): New decl.
20186         (fdsavedir): Add a comment deprecating this.
20187
20188 2010-09-10  Bruno Haible  <bruno@clisp.org>
20189
20190         langinfo: Fix last commit.
20191         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20192         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20193         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20194
20195 2010-09-10  Bruno Haible  <bruno@clisp.org>
20196
20197         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20198         * lib/progreloc.c (O_EXEC): Define fallback.
20199
20200 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20201
20202         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20203         * NEWS: Document recent changes to fcntl-h.
20204         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20205         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20206         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20207         Similarly for O_SEARCH; this last was already true, but not documented.
20208         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20209         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20210         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20211         Likewise.
20212         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20213         is zero, not whether it is defined.
20214         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20215         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20216         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20217
20218 2010-09-10  Bruno Haible  <bruno@clisp.org>
20219
20220         langinfo, nl_langinfo: Fix for IRIX 5.3.
20221         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20222         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20223         HAVE_LANGINFO_YESEXPR.
20224         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20225         HAVE_LANGINFO_YESEXPR.
20226         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20227         HAVE_LANGINFO_T_FMT_AMPM is 0.
20228         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20229         HAVE_LANGINFO_YESEXPR is 0.
20230         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20231         NOEXPR.
20232         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20233         * doc/posix-functions/nl_langinfo.texi: Likewise.
20234         Reported by Eric Blake.
20235
20236 2010-09-10  Bruno Haible  <bruno@clisp.org>
20237
20238         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20239         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20240         on FreeBSD 8.0 and OpenBSD 4.6.
20241         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20242         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20243         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20244         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20245         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20246         ac_includes_default.
20247         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20248
20249 2010-09-09  Eric Blake  <eblake@redhat.com>
20250
20251         strsignal: work around NetBSD bug
20252         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20253         * lib/string.in.h (includes): Likewise.
20254         * doc/posix-functions/strsignal.texi (strsignal): Document the
20255         bug.
20256         Reported by Nelson H. F. Beebe.
20257
20258         gnulib-tool: work with NetBSD /bin/sh
20259         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20260         (func_get_description, func_get_comment, func_get_status)
20261         (func_get_notice, func_get_applicability, func_get_filelist)
20262         (func_get_dependencies, func_get_autoconf_early_snippet)
20263         (func_get_autoconf_snippet, func_get_automake_snippet)
20264         (func_get_include_directive, func_get_link_directive)
20265         (func_get_license, func_get_maintainer, func_import): Avoid
20266         shell syntax errors from parsing syntax extensions.
20267
20268 2010-09-09  Bruno Haible  <bruno@clisp.org>
20269
20270         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20271         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20272         a reliable way to determine whether the 'alias' command works.
20273
20274 2010-09-08  Jim Meyering  <meyering@redhat.com>
20275
20276         init.sh: penalize a set-x-impaired shell; don't disqualify it
20277         * tests/init.sh: Too many shells corrupt application stderr when
20278         you set -x, so we can't afford to disqualify them, since at least
20279         on Irix-6.5, that would disqualify all bourne shells.
20280         Instead, use a two-pass approach.
20281         On the first pass, try to find a shell that meets the stricter
20282         condition that set -x does not corrupt stderr.
20283         If no shell meets the stricter condition, retest each candidate
20284         shell, but without that extra condition.  Finally, when
20285         VERBOSE=yes is requested and set -x might cause trouble, simply
20286         issue a warning and refrain from enabling debug output.
20287
20288 2010-09-08  Eric Blake  <eblake@redhat.com>
20289
20290         unsetenv: fix OpenBSD bug
20291         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20292         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20293         documentation.
20294         Reported by Jim Meyering.
20295
20296         strtod: work around IRIX 6.5 bug
20297         * lib/strtod.c (strtod): Reparse number on shorter string if
20298         exponent parse was invalid.
20299         * tests/test-strtod.c (main): Add check for "0x1p 2".
20300         Reported by Tom G. Christensen.
20301
20302         getopt: optimize previous patch
20303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20304         empty variable.  Speed up awk script.
20305         Reported by Paolo Bonzini.
20306
20307 2010-09-08  Jim Meyering  <meyering@redhat.com>
20308
20309         test.sh: disqualify shells for which set -x corrupts stderr
20310         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20311         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20312         appear in stderr output.  For example, this command:
20313             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20314         prints "P=1" on those two systems:
20315
20316 2010-09-08  Bruno Haible  <bruno@clisp.org>
20317
20318         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20319         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20320         commands, because some shells ignore redirections when there is an
20321         error in the command lookup.
20322         Reported by Eric Blake.
20323
20324 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20325
20326         * lib/regex.h: Fix a mention of `regex_compile' (should be
20327         `re_compile_pattern').
20328         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20329         (re_set_registers): Correct name of parameter in comment.
20330
20331         * doc/regex.texi: Add documentation for missing syntax flags.
20332         Remove commented-out documentation of defunct syntax option
20333         RE_NO_EMPTY_ALTS.
20334         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20335         Add documentation of re_set_registers.
20336         Document trick to re-use a pattern buffer by setting fastmap manually.
20337         Update documentation of struct re_pattern_buffer per public members.
20338         Uncomment documentation of equivalence class operators and
20339         collating symbol operators, since they are now implemented,
20340         Explain leftmost-longest matching in relation to alternatives.
20341         Tidy documentation of substring matching.
20342         Remove POSIX documentation, which is done better in
20343         glibc, and refer the reader there. Keep BSD API documentation, as
20344         that is not readily available elsewhere.
20345
20346 2010-09-07  Eric Blake  <eblake@redhat.com>
20347
20348         getopt: handle POSIXLY_CORRECT set but not exported
20349         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20350         export state of POSIXLY_CORRECT, due to bash set -o posix.
20351         Reported by Dustin J. Mitchell.
20352
20353 2010-09-05  Bruno Haible  <bruno@clisp.org>
20354
20355         gnulib-tool: Highlight the changed options.
20356         * gnulib-tool (func_usage): Display the --import, --add-import,
20357         --remove-import explanations in bold font.
20358
20359 2010-09-06  Karl Berry  <karl@gnu.org>
20360
20361         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20362
20363 2010-09-05  Bruno Haible  <bruno@clisp.org>
20364
20365         uniwidth/width: Update comment.
20366         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20367         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20368
20369 2010-09-05  Bruno Haible  <bruno@clisp.org>
20370
20371         isinf, isnan: Relax license.
20372         * modules/isinf (License): Change from GPL to LGPL, with consent from
20373         Ben Pfaff.
20374         * modules/isnan (License): Likewise.
20375         Requested by Ludovic Courtès.
20376
20377 2010-09-04  Bruno Haible  <bruno@clisp.org>
20378
20379         gnulib-tool: Help migration from --import to --add-import or --update.
20380         * gnulib-tool: Emit a verbose error message when --import is used
20381         without any module name.
20382
20383 2010-09-04  Bruno Haible  <bruno@clisp.org>
20384
20385         Update doc about gnulib-tool.
20386         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20387         'gnulib-tool --update' in more detail.
20388         Reported by Eric Blake.
20389
20390 2010-09-04  Bruno Haible  <bruno@clisp.org>
20391
20392         gnulib-tool: Change --import. New options --add/remove-import.
20393         * gnulib-tool: New options --add-import, --remove-import.
20394         (func_usage): Document them.
20395         (have_associative): Define always.
20396         (func_import): In import mode, don't merge the specified settings with
20397         the cached settings. Implement remove-import mode.
20398         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20399         Explain when to use them versus --import.
20400         (Simple update): Use --add-import instead of --import.
20401         * NEWS: Mention the change.
20402
20403 2010-09-04  Bruno Haible  <bruno@clisp.org>
20404
20405         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20406         separate gnulib.mk.
20407
20408 2010-09-04  Bruno Haible  <bruno@clisp.org>
20409
20410         gnulib-tool: Don't talk about CVS any more.
20411         * gnulib-tool (func_usage, func_import): Write "version control"
20412         instead of CVS.
20413
20414 2010-09-04  Jim Meyering  <meyering@redhat.com>
20415
20416         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20417         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20418         false positives (whose names may be ill-chosen) when searching
20419         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20420         would cause a false-positive.
20421
20422         avoid coreutils "make distcheck" failure
20423         Coreutils tests with an absolute build directory name that contains
20424         a space.  Not quoting this directory name caused a failure.
20425         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20426         * tests/test-vc-list-files-cvs.sh: Likewise.
20427
20428 2010-09-04  Bruno Haible  <bruno@clisp.org>
20429
20430         gnulib-tool: Avoid error when run in a package without Makefile.am.
20431         * gnulib-tool: When collecting the m4dirs in a package that does not
20432         have a Makefile.am, eliminate those directories that contain no
20433         gnulib-cache.m4. Fix expression that counts these directories.
20434
20435 2010-09-04  Bruno Haible  <bruno@clisp.org>
20436
20437         update-copyright test: Improve output when perl is missing or too old.
20438         * tests/test-update-copyright.sh: Move test of Perl version down after
20439         the test whether Perl exists. Provide an explanation relating Perl's
20440         error message to Automake's SKIP: message.
20441
20442 2010-09-04  Bruno Haible  <bruno@clisp.org>
20443
20444         Don't augment PATH in TESTS_ENVIRONMENT.
20445         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20446         set abs_aux_dir instead of augmenting PATH.
20447         * modules/vc-list-files-tests (Makefile.am): Likewise.
20448         * tests/test-update-copyright.sh: Augment PATH here.
20449         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20450         path_prepend_.
20451         * tests/test-vc-list-files-git.sh: Likewise.
20452
20453 2010-09-04  Jim Meyering  <meyering@redhat.com>
20454
20455         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20456         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20457
20458 2010-09-04  Bruno Haible  <bruno@clisp.org>
20459
20460         strdup: Fix compilation error in C++ mode.
20461         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20462         the macro.
20463
20464 2010-09-04  Bruno Haible  <bruno@clisp.org>
20465
20466         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20467         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20468         macro into a function.
20469         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20470
20471 2010-09-04  Bruno Haible  <bruno@clisp.org>
20472
20473         Set PATH_SEPARATOR the same way autoconf does.
20474         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20475         the value of PATH_SEPARATOR the same way autoconf-generated configure
20476         scripts do.
20477         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20478         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20479
20480 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20481
20482         Set PATH_SEPARATOR the same way autoconf does.
20483         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20484         the same way autoconf-generated configure scripts do.
20485         * posix-modules: Likewise.
20486
20487 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20488
20489         hash: fix safe_hasher const typo
20490         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20491         const; otherwise, there is a type error later.
20492
20493 2010-09-02  Jim Meyering  <meyering@redhat.com>
20494
20495         test-update-copyright.sh: require perl 5.8.0
20496         * tests/test-update-copyright.sh: Require 5.8.0,
20497         which Tom G. Christensen has confirmed is adequate,
20498         while 5.6.1 is not.
20499
20500 2010-09-02  Eric Blake  <eblake@redhat.com>
20501
20502         tests: init.sh improvements for re-exec'ing with zsh
20503         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20504         -vx through shell re-exec.
20505         Reported by Tom G. Christensen.
20506
20507         wctype: fix typo in previous commit
20508         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20509         Reported by Ludovic Courtès.
20510
20511 2010-09-02  Jim Meyering  <meyering@redhat.com>
20512
20513         test-update-copyright.sh: skip test if Perl is too old
20514         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20515         Reported by Tom G. Christensen.
20516
20517 2010-09-02  Bruno Haible  <bruno@clisp.org>
20518
20519         wctype: Avoid compilation error on IRIX 6.5.30.
20520         * lib/wctype.in.h (iswblank): Declare with a replacement if
20521         REPLACE_ISWBLANK is set.
20522         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20523         declared. Set REPLACE_ISWBLANK.
20524         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20525         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20526         * doc/posix-headers/wctype.texi: Likewise.
20527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20528
20529 2010-09-01  Bruno Haible  <bruno@clisp.org>
20530
20531         New module 'socketlib'.
20532         * modules/socketlib: New file.
20533         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20534         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20535         * modules/sockets (Depends-on): Add socketlib.
20536         Suggested by Sam Steingold <sds@gnu.org>.
20537
20538 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20539
20540         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20541
20542         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20543         when one needs search access to a directory but not read access.
20544         On systems where it is available, it works in some cases where
20545         O_RDONLY does not, namely on directories that are searchable but
20546         not readable, and which need only to be searchable.  If O_SEARCH
20547         is not available, fall back to the traditional method of using
20548         O_RDONLY.
20549
20550         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20551         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20552         when opening a directory that needs only to be searchable.
20553         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20554         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20555         * lib/openat-proc.c (openat_proc_name): Likewise.
20556         * lib/openat.c (openat_needs_fchdir): Likewise.
20557         * lib/save-cwd.c (save_cwd): Likewise.
20558         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20559
20560 2010-08-28  Bruno Haible  <bruno@clisp.org>
20561
20562         New module 'host-cpu-c-abi'.
20563         * modules/host-cpu-c-abi: New file.
20564         * m4/host-cpu-c-abi.m4: New file, based on part of
20565         clisp/src/m4/general.m4.
20566         Requested by Sam Steingold <sds@gnu.org>.
20567
20568 2010-08-31  Eric Blake  <eblake@redhat.com>
20569         and Jim Meyering  <meyering@redhat.com>
20570
20571         hash: factor, and guard against misbehaving hasher function
20572         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20573         of table->hasher's return value.  Also protect against a hash value
20574         so large that adding it to table->bucket results in a NULL pointer.
20575         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20576         Use it in place of open-coded check-and-abort.
20577
20578 2010-08-30  Bruno Haible  <bruno@clisp.org>
20579
20580         hash: silence spurious clang warning
20581         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20582         Reported by Eric Blake.
20583
20584 2010-08-30  Eric Blake  <eblake@redhat.com>
20585
20586         strstr, memmem, strcasestr: avoid leaked shell message
20587         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20588         FreeBSD.
20589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20590         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20591
20592         tests: silence clang warning
20593         * tests/test-malloca.c (do_allocation): Avoid dead store.
20594
20595 2010-08-29  Bruno Haible  <bruno@clisp.org>
20596
20597         gettext: Fix recent mistake.
20598         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20599
20600 2010-08-29  Bruno Haible  <bruno@clisp.org>
20601
20602         selinux-h: Offer a --without-selinux option.
20603         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20604         --without-selinux was specified, skip all tests and define
20605         HAVE_SELINUX_SELINUX_H to 0.
20606         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20607         set LIB_SELINUX to empty.
20608         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20609         gl_LIBSELINUX. If --without-selinux was specified, replace
20610         selinux/context.h.
20611         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20612
20613 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20614             Bruno Haible  <bruno@clisp.org>
20615
20616         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20617         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20618         of HAVE_REALLOC.
20619         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20620         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20621         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20622         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20623
20624 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20625             Bruno Haible  <bruno@clisp.org>
20626
20627         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20628         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20629         HAVE_CALLOC.
20630         * lib/xmalloc.c: Update accordingly.
20631         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20632         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20633         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20634
20635 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20636             Bruno Haible  <bruno@clisp.org>
20637
20638         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20639         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20640         HAVE_MALLOC.
20641         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20642         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20643         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20644
20645 2010-08-29  Bruno Haible  <bruno@clisp.org>
20646
20647         Update modules list.
20648         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20649         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20650         (String handling <string.h>): Add astrxfrm.
20651         (File system functions): Add readlinkat.
20652
20653 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20654
20655         Tests for module 'realloc-gnu'.
20656         * modules/realloc-gnu-tests: New file.
20657         * tests/test-realloc-gnu.c: New file.
20658
20659         Tests for module 'calloc-gnu'.
20660         * modules/calloc-gnu-tests: New file.
20661         * tests/test-calloc-gnu.c: New file.
20662
20663         Tests for module 'malloc-gnu'.
20664         * modules/malloc-gnu-tests: New file.
20665         * tests/test-malloc-gnu.c: New file.
20666
20667 2010-08-28  Bruno Haible  <bruno@clisp.org>
20668
20669         Rename module 'realloc' -> 'realloc-gnu'.
20670         * modules/realloc-gnu: New file, copied from modules/realloc.
20671         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20672         obsolete.
20673         * modules/mgetgroups (Depends-on): Update.
20674         * doc/posix-functions/realloc.texi: Update.
20675         * NEWS: Mention the change.
20676
20677         Rename module 'calloc' -> 'calloc-gnu'.
20678         * modules/calloc-gnu: New file, copied from modules/calloc.
20679         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20680         obsolete.
20681         * doc/posix-functions/calloc.texi: Update.
20682         * NEWS: Mention the change.
20683
20684         Rename module 'malloc' -> 'malloc-gnu'.
20685         * modules/malloc-gnu: New file, copied from modules/malloc.
20686         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20687         obsolete.
20688         * modules/argp (Depends-on): Update.
20689         * modules/regex (Depends-on): Update.
20690         * doc/posix-functions/malloc.texi: Update.
20691         * NEWS: Mention the change.
20692
20693 2010-08-28  Eric Blake  <eblake@redhat.com>
20694
20695         pread, pwrite: add missing dependency
20696         * modules/pread (Depends-on): Add extensions.
20697         * modules/pwrite (Depends-on): Likewise.
20698
20699 2010-08-28  Bruno Haible  <bruno@clisp.org>
20700
20701         unistr/u*-strchr: Fix tests dependencies.
20702         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20703         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20704         Reported by Ian Beckwith <ianb@erislabs.net>.
20705
20706 2010-08-28  Bruno Haible  <bruno@clisp.org>
20707
20708         read-file: Don't occupy too much unused memory.
20709         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20710
20711 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20712             Eric Blake  <eblake@redhat.com>
20713             Bruno Haible  <bruno@clisp.org>
20714
20715         read-file: Avoid memory reallocations with regular files.
20716         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20717         (fread_file): With regular files, use the remaining length as the
20718         initial buffer size.  Check against overflow.
20719         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20720         sys_stat.
20721
20722 2010-08-28  Bruno Haible  <bruno@clisp.org>
20723
20724         ftello: Relax license.
20725         * modules/ftello (License): Relax to LGPLv2+.
20726         Reported by Eric Blake.
20727
20728 2010-08-28  Bruno Haible  <bruno@clisp.org>
20729
20730         Avoid relocwrapper link errors due to gnulib replacement functions.
20731         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20732         function.
20733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20734
20735 2010-08-28  Bruno Haible  <bruno@clisp.org>
20736
20737         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20738         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20739         defined.
20740         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20741         Suggested by Eric Blake.
20742
20743 2010-08-28  Bruno Haible  <bruno@clisp.org>
20744
20745         sys_socket, netdb: Ensure socklen_t gets defined.
20746         * modules/sys_socket (Depends-on): Add socklen.
20747         * modules/netdb (Depends-on): Likewise.
20748         * modules/getaddrinfo (Depends-on): Remove socklen.
20749         * modules/getsockopt (Depends-on): Likewise.
20750         * modules/setsockopt (Depends-on): Likewise.
20751         * tests/test-sys_socket.c: Check that socklen_t is defined.
20752         * tests/test-netdb.c: Likewise.
20753         * m4/socklen.m4: Update comments.
20754         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20755
20756 2010-08-27  Eric Blake  <eblake@redhat.com>
20757
20758         login_tty: add missing dependency
20759         * modules/login_tty (Depends-on): Add pty.
20760
20761 2010-08-26  Eric Blake  <eblake@redhat.com>
20762
20763         lib-symbol-versions: fix m4 quoting
20764         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20765         format for AC_LINK_IFELSE.
20766
20767         glob: fix compile test
20768         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20769
20770         btowc: fix missing file
20771         * modules/btowc (Files): Also ship locale-fr.m4.
20772
20773         lseek: fix link test
20774         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20775         AC_LINK_IFELSE.
20776
20777         include_next: silence autoconf 2.68 warning
20778         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20779         AC_COMPILE_IFELSE as special.
20780         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20781         autoconf < 2.68.
20782
20783         acl: fix compilation test
20784         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20785         AC_COMPILE_IFELSE.
20786
20787 2010-08-26  Bruno Haible  <bruno@clisp.org>
20788
20789         Modernize AC_TRY_RUN invocations.
20790         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20791         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20792         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20793         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20794         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20795         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20796         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20797         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20798         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20799         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20800         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20801         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20802         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20803         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20805         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20806         gl_MBRLEN_NUL_RETVAL): Likewise.
20807         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20808         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20809         Likewise.
20810         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20811         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20812         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20813         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20814         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20815         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20816         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20817         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20818         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20819         Likewise.
20820         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20821         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20823         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20824         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20825         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20826         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20827         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20828         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20830
20831 2010-08-26  Bruno Haible  <bruno@clisp.org>
20832
20833         Modernize AC_TRY_LINK invocations.
20834         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20835         AC_TRY_LINK.
20836         * m4/argp.m4 (gl_ARGP): Likewise.
20837         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20838         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20839         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20840         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20841         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20842         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20843         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20844         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20845         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20846         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20847         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20848         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20849         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20850         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20851         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20852         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20853         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20854         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20855         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20856         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20857         Likewise.
20858         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20859         Likewise.
20860         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20861         Likewise.
20862         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20863         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20864         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20865         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20866         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20867         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20868         * m4/servent.m4 (gl_SERVENT): Likewise.
20869         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20870         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20871         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20872         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20873         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20874         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20875         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20876         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20877         * modules/tsearch-tests (configure.ac): Likewise.
20878
20879 2010-08-26  Bruno Haible  <bruno@clisp.org>
20880
20881         Modernize AC_TRY_COMPILE invocations.
20882         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20883         AC_TRY_COMPILE.
20884         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20885         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20886         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20887         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20888         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20889         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20890         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20891         * m4/lock.m4 (gl_LOCK): Likewise.
20892         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20893         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20894         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20895         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20896         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20897         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20898         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20899         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20900         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20901         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20902         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20903         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20904         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20905         extraneous semicolon.
20906
20907 2010-08-26  Jim Meyering  <meyering@redhat.com>
20908
20909         stat-time: relax license LGPL
20910         * modules/stat-time (License): Change from GPL to LGPL,
20911         with consent from all contributors, for use in libguile.
20912         Requested by Ludovic Courtès.
20913
20914 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20915
20916         poll: return immediately on POLLHUP.
20917         * lib/poll.c (poll): Always set timeout before wait_timeout is
20918         computed.
20919
20920 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20921
20922         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20923         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20924         rmdir ("dir/.//"), unlinkat.
20925
20926 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20927
20928         stdbool: avoid spurious failure with modern xlc
20929         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20930
20931 2010-08-24  Bruno Haible  <bruno@clisp.org>
20932
20933         getloadavg: simplify code
20934         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20935         gl_have_func. Update comments.
20936
20937 2010-08-24  Eric Blake  <eblake@redhat.com>
20938
20939         getloadavg: don't define SVR4 on cygwin
20940         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20941         only define SVR4 when -lkvm is required.
20942         Reported by Yaakov Selkowitz.
20943
20944 2010-08-24  Bruno Haible  <bruno@clisp.org>
20945
20946         priv-set: fix comment
20947         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20948
20949 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20950
20951         priv-set: fix comments
20952         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20953         to match code, as suggested by David Bartley in:
20954         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20955
20956 2010-08-23  Eric Blake  <eblake@redhat.com>
20957
20958         stdbool: avoid rejecting clang
20959         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20960         * tests/test-stdbool.c: Enable more tests if using the system
20961         <stdbool.h> instead of the gnulib replacement.
20962         (main): Move xlc bug test to a runtime test for all compilers.
20963         Reported by Anders Kaseorg.
20964
20965         argz: fix shell quoting issue
20966         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20967         Reported by Charles Wilson.
20968
20969 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20970             Erik Faye-Lund <kusmabite@gmail.com>
20971
20972         poll, select: handle ERROR_BROKEN_PIPE.
20973         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20974         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20975         * lib/select.c (win32_compute_revents): Do not mark a pipe
20976         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20977
20978 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20979
20980         fts: allow compilation with C++
20981         * lib/fts_.h: Specify extern "C" linkage with C++.
20982
20983 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20984
20985         Fix gnulib-tool sed script de-commentation for AIX sed.
20986         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20987         sed.
20988
20989 2010-08-17  Eric Blake  <eblake@redhat.com>
20990
20991         test-stddef: test for (some) offsetof bugs
20992         * tests/test-stddef.c: Enhance test to ensure correct type of
20993         offsetof.
20994         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20995         that we are not fixing at this time.
20996
20997 2010-08-15  Bruno Haible  <bruno@clisp.org>
20998
20999         stpncpy: Allow stpncpy to be defined as a macro.
21000         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21001         if it's already correctly declared.
21002         * lib/string.in.h (stpncpy): Undefine before redefining.
21003         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21004
21005 2010-08-14  Bruno Haible  <bruno@clisp.org>
21006
21007         Rename module 'memxfrm' to 'amemxfrm'.
21008         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21009         (amemxfrm): Renamed from memxfrm.
21010         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21011         (amemxfrm): Renamed from memxfrm.
21012         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21013         * NEWS: Mention the change.
21014         * MODULES.html.sh (String handling <string.h>): Update.
21015         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21016         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21017         * lib/unicase/u16-casexfrm.c: Likewise.
21018         * lib/unicase/u32-casexfrm.c: Likewise.
21019         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21020         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21021         * lib/uninorm/u16-normxfrm.c: Likewise.
21022         * lib/uninorm/u32-normxfrm.c: Likewise.
21023         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21024         memxfrm.
21025         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21026         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21027         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21028         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21029         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21030         Suggested by Paul Eggert.
21031
21032 2010-08-14  Bruno Haible  <bruno@clisp.org>
21033
21034         Tests for module 'astrxfrm'.
21035         * modules/astrxfrm-tests: New file.
21036         * tests/test-astrxfrm.c: New file.
21037
21038         New module 'astrxfrm'.
21039         * lib/astrxfrm.h: New file.
21040         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21041         * modules/astrxfrm: New file.
21042
21043 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21044
21045         regex: Tweak doc.
21046         * doc/regex.texi (Overview): Don't mention regex.c.
21047         (GNU Regular Expression Compiling): Likewise.
21048         (Match-end-of-line Operator): Mention 'not_eol'.
21049
21050 2010-08-14  Brian Gough  <bjg@gnu.org>
21051             Bruno Haible  <bruno@clisp.org>
21052
21053         git-merge-changelog: add doc relating to use with bzr and hg.
21054         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21055
21056 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21057
21058         pthread: fix pthread.h creation for srcdir != builddir
21059         * modules/pthread (Makefile.am): Fix the rule to work also in a
21060         non-srcdir build.
21061
21062 2010-08-13  Karl Berry  <karl@gnu.org>
21063
21064         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21065         * doc/posix-*/*: force line break before @url of POSIX
21066         specifications.
21067         Suggested by Werner Lemberg.
21068
21069 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21070
21071         strtod: fix const diagnostic
21072         * lib/strtod.c (strtod): Don't assign const char * to char *,
21073         as this elicits a warning from GCC when warnings are enabled.
21074
21075 2010-08-10  Pádraig Brady <P@draigbrady.com>
21076         and Eric Blake  <eblake@redhat.com>
21077
21078         copy-acl: ignore ENOTSUP on HP-UX
21079         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21080         so that it is available for HP-UX.
21081         * lib/copy-acl.c (qcopy_acl): Use it.
21082         Reported by Patrick M. Callahan.
21083
21084 2010-08-10  Eric Blake  <eblake@redhat.com>
21085
21086         open, chown: relax license
21087         * modules/open (License): Change to LGPLv2+, with consent by all
21088         authors, for use in augeas.
21089         * modules/chown (License): Likewise.
21090         * modules/lchown (Likewise): Likewise.
21091         Requested by Adam Stokes.
21092
21093 2010-08-09  Karl Berry  <karl@gnu.org>
21094
21095         * build-aux/ar-lib: new file, import from Automake.
21096         * config/srclist.txt: autocheck for updates.
21097
21098 2010-08-09  Eric Blake  <eblake@redhat.com>
21099
21100         readlinkat: adjust client modules
21101         * modules/areadlinkat (Depends-on): Use readlinkat, not
21102         symlinkat.
21103         * modules/areadlinkat-with-size (Depends-on): Likewise.
21104
21105         mknod: be more vocal about danger of running tests as root
21106         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21107         root, since that is just asking for problems.
21108         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21109
21110         readlinkat: split into its own module
21111         * modules/symlinkat: Split readlinkat...
21112         * modules/readlinkat: ...into separate module.
21113         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21114         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21115         * lib/symlinkat.c (readlinkat): Move...
21116         * lib/readlinkat.c: ...into new file.
21117         * modules/symlinkat-tests: Split readlinkat test...
21118         * modules/readlinkat-tests: ...into separate module.
21119         * tests/test-symlinkat.c: Split...
21120         * tests/test-readlinkat.c: ...into new file.
21121         * NEWS: Document the split.
21122         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21123         * lib/unistd.in.h (readlinkat): Likewise.
21124         Suggested by Bruno Haible.
21125
21126 2010-08-08  Bruno Haible  <bruno@clisp.org>
21127
21128         memxfrm: Speed up.
21129         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21130         that usually only one call to strxfrm is necessary for each string
21131         part.
21132         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21133
21134 2010-08-07  Karl Berry  <karl@gnu.org>
21135
21136         * doc/posix-headers/limits.texi,
21137         * doc/posix-functions/malloc.texi,
21138         * doc/posix-functions/strsignal.texi: missing @item.
21139         * doc/ld-version-script.texi: spurious leading i.
21140         * doc/regex.texi (Interval Operators): no commas inside @var.
21141
21142 2010-08-01  Bruno Haible  <bruno@clisp.org>
21143
21144         Integrate the regex documentation.
21145         * doc/gnulib.texi: Define 'cn' index.
21146         (Regular expressions): New a chapter that includes regex.texi and
21147         regexprops-generic.texi.
21148         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21149         syntax.
21150
21151         Whitespace cleanup.
21152         * doc/regex.texi: Remove trailing spaces.
21153
21154         Add regex documentation.
21155         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21156         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21157         Written by Kathy A. Hargreaves and Karl Berry.
21158
21159 2010-08-01  Bruno Haible  <bruno@clisp.org>
21160
21161         link: Update documentation.
21162         * doc/posix-functions/link.texi: Update regarding Solaris.
21163
21164 2010-07-31  Bruno Haible  <bruno@clisp.org>
21165
21166         Update modules list.
21167         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21168         (String handling <string.h>): Add memcmp2, memxfrm.
21169         (Container data structures): Add xlist, xsublist, xoset.
21170         (Core language properties): Add alignof, unused-parameter.
21171         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21172         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21173         (Unibyte characters <ctype.h>): New section.
21174         (String handling <string.h>): New section.
21175         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21176         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21177         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21178         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21179         tan, tanh, tanl, y0, y1, yn.
21180         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21181         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21182         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21183         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21184         unlockpt, vdprintf, vdprintf-posix.
21185         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21186         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21187         xconcat-filename.
21188         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21189         getdtablesize, pipe2, pipe2-safer.
21190         (Security): New section.
21191         (Networking functions): Add accept4.
21192         (Signal handling): Add sigpipe.
21193         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21194         mbmemcasecoll.
21195         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21196         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21197         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21198         pipe-filter-ii.
21199         (Misc): Add argp-version-etc, login_tty, parse-duration.
21200
21201 2010-07-31  Bruno Haible  <bruno@clisp.org>
21202
21203         Improve doc in MODULES.html.
21204         * modules/linkat (Description): Add the word "function".
21205         * modules/mkfifo (Description): Likewise.
21206         * modules/mknod (Description): Likewise.
21207         * modules/remove (Description): Likewise.
21208         * modules/renameat (Description): Likewise.
21209         * modules/stat (Description): Likewise.
21210         * modules/symlink (Description): Likewise.
21211         * modules/unlink (Description): Likewise.
21212
21213 2010-07-31  Bruno Haible  <bruno@clisp.org>
21214
21215         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21216         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21217         option --enable/disable-c++ instead of --enable/disable-cxx.
21218         * NEWS: Mention the change.
21219
21220 2010-07-31  Bruno Haible  <bruno@clisp.org>
21221
21222         readlink, areadlink: Relax test a bit.
21223         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21224         alternative to ENOTDIR.
21225         * tests/test-areadlink.h (test_areadlink): Likewise.
21226         Reported by Rainer Tammer.
21227
21228 2010-07-31  Bruno Haible  <bruno@clisp.org>
21229
21230         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21231         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21232         character, perform the search using U_STRCHR.
21233         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21234         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21235         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21236         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21237         Suggested by Paolo Bonzini.
21238
21239 2010-07-31  Bruno Haible  <bruno@clisp.org>
21240
21241         unistr/u*-strstr: Fix dependencies.
21242         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21243         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21244         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21245
21246 2010-07-31  Bruno Haible  <bruno@clisp.org>
21247
21248         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21249         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21250         the beginning of the loop.
21251         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21252         cases in 'switch' statement.
21253
21254         unistr/u8-strchr: Fix several bugs.
21255         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21256         the string. When not found, return NULL, not a pointer near the end.
21257
21258         More tests for unistr/u8-strchr.
21259         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21260         that the function does not read past the first occurrence of the byte
21261         being searched.
21262         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21263         * tests/unistr/test-u16-strchr.c (main): New function.
21264         * tests/unistr/test-u32-strchr.c (main): New function.
21265
21266 2010-07-31  Bruno Haible  <bruno@clisp.org>
21267
21268         posix-modules: Ignore backup files of documentation files.
21269         * posix-modules: grep only through files named *.texi.
21270
21271 2010-07-31  Bruno Haible  <bruno@clisp.org>
21272
21273         symlinkat: Fix documentation.
21274         * doc/posix-functions/readlinkat.texi: Fix module name.
21275
21276 2010-07-31  Bruno Haible  <bruno@clisp.org>
21277
21278         fchownat: Replace also when chown has the trailing slash bug.
21279         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21280         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21281         introduced on 2010-04-10.
21282         Reported by Rainer Tammer.
21283
21284 2010-07-31  Bruno Haible  <bruno@clisp.org>
21285
21286         linkat: Work around AIX 7.1 bug.
21287         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21288         whether linkat handles trailing slash correctly. If not, replace linkat
21289         and define LINKAT_TRAILING_SLASH_BUG.
21290         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21291         check whether (fd1,file1) points to a directory if file1 or file2 ends
21292         in a slash. Code taken from lib/link.c.
21293         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21294         Reported by Rainer Tammer.
21295
21296 2010-07-31  Bruno Haible  <bruno@clisp.org>
21297
21298         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21299         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21300         This disables an xlc optimization that was causing wrong test results.
21301         Reported by Rainer Tammer.
21302
21303 2010-07-31  Bruno Haible  <bruno@clisp.org>
21304
21305         iconv: Work around AIX 6.1..7.1 bug.
21306         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21307         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21308         cross-compiling, guess no on all versions of AIX.
21309         Reported by Rainer Tammer.
21310
21311 2010-07-31  Bruno Haible  <bruno@clisp.org>
21312
21313         readlink: Relax test a bit.
21314         * tests/test-readlink.h (test_readlink): Allow different errno value
21315         when readlink is called with a file name that ends in / and refers to
21316         a file.
21317         Suggested by Eric Blake.
21318         Reported by Rainer Tammer.
21319
21320 2010-07-31  Bruno Haible  <bruno@clisp.org>
21321
21322         copysign: Does not require -lm on glibc systems.
21323         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21324         gl_COMMON_DOUBLE_MATHFUNC.
21325         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21326
21327 2010-07-31  Bruno Haible  <bruno@clisp.org>
21328
21329         duplocale: Work around AIX 7.1 bug.
21330         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21331         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21332         * lib/duplocale.c (rpl_duplocale): Update comment.
21333         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21334         Reported by Rainer Tammer.
21335
21336 2010-07-30  Bruno Haible  <bruno@clisp.org>
21337
21338         dirfd: Avoid link error on AIX 7.1.
21339         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21340         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21341         exist, set REPLACE_DIRFD.
21342         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21343         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21344         * doc/posix-functions/dirfd.texi: Update.
21345         Reported by Rainer Tammer.
21346
21347 2010-07-30  Eric Blake  <eblake@redhat.com>
21348
21349         strtod: next round of AIX fixes
21350         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21351         exponent.
21352         * tests/test-strtod.c (main): Enhance tests.
21353         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21354         Reported by Rainer Tammer.
21355
21356         futimens: fix configure check
21357         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21358         Reported by Bruno Haible.
21359
21360 2010-07-30  Bruno Haible  <bruno@clisp.org>
21361
21362         getline: Update regarding AIX.
21363         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21364         Reported by Rainer Tammer.
21365
21366 2010-07-30  Bruno Haible  <bruno@clisp.org>
21367
21368         wcwidth: Drop replacement on AIX 7.
21369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21370         AIX 7.
21371         Reported by Rainer Tammer.
21372
21373 2010-07-30  Bruno Haible  <bruno@clisp.org>
21374
21375         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21376         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21377         a 'char *'.
21378         Reported by Rainer Tammer.
21379
21380 2010-07-30  Bruno Haible  <bruno@clisp.org>
21381
21382         unlink: Update regarding AIX.
21383         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21384         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21385         Reported by Rainer Tammer.
21386
21387 2010-07-30  Bruno Haible  <bruno@clisp.org>
21388
21389         symlink: Update regarding AIX.
21390         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21391         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21392         Reported by Rainer Tammer.
21393
21394 2010-07-30  Bruno Haible  <bruno@clisp.org>
21395
21396         strndup: Update regarding AIX.
21397         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21398         AIX 7.
21399         Reported by Rainer Tammer.
21400
21401 2010-07-30  Bruno Haible  <bruno@clisp.org>
21402
21403         stat: Update regarding AIX.
21404         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21405         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21406         Reported by Rainer Tammer.
21407
21408 2010-07-30  Bruno Haible  <bruno@clisp.org>
21409
21410         truncl: Fix autoconf test.
21411         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21412         whether truncl works.
21413         Reported by Rainer Tammer.
21414
21415 2010-07-30  Bruno Haible  <bruno@clisp.org>
21416
21417         round: Update regarding AIX.
21418         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21419         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21420         Reported by Rainer Tammer.
21421
21422 2010-07-30  Bruno Haible  <bruno@clisp.org>
21423
21424         rename: Update regarding AIX.
21425         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21426         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21427         Reported by Rainer Tammer.
21428
21429 2010-07-30  Bruno Haible  <bruno@clisp.org>
21430
21431         printf.m4: Update regarding AIX.
21432         * m4/printf.m4: Update comments regarding AIX.
21433         Reported by Rainer Tammer.
21434
21435 2010-07-30  Bruno Haible  <bruno@clisp.org>
21436
21437         iconv: Update regarding AIX.
21438         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21439         AIX 7.
21440         Reported by Rainer Tammer.
21441
21442 2010-07-30  Bruno Haible  <bruno@clisp.org>
21443
21444         getopt: Update regarding AIX.
21445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21446         no on AIX.
21447         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21448         Reported by Rainer Tammer.
21449
21450 2010-07-30  Bruno Haible  <bruno@clisp.org>
21451
21452         ldexpl; Update regarding AIX.
21453         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21454         on AIX 7.
21455         Reported by Rainer Tammer.
21456
21457 2010-07-30  Bruno Haible  <bruno@clisp.org>
21458
21459         frexpl: Update regarding AIX.
21460         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21461         on AIX 7.
21462         Reported by Rainer Tammer.
21463
21464 2010-07-30  Bruno Haible  <bruno@clisp.org>
21465
21466         open, fopen: Update regarding AIX.
21467         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21468         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21469         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21470         * doc/posix-functions/fopen.texi: Likewise.
21471         Reported by Rainer Tammer.
21472
21473 2010-07-30  Bruno Haible  <bruno@clisp.org>
21474
21475         chown: Update doc regarding AIX.
21476         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21477         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21478         Reported by Rainer Tammer.
21479
21480 2010-07-30  Eric Blake  <eblake@redhat.com>
21481
21482         strtod: fix bug in replacement function on AIX
21483         * lib/strtod.c (strtod): Special case broken "0x" parse in
21484         underlying strtod.
21485         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21486         * doc/posix-functions/strtod.texi (strtod): Likewise.
21487         Reported by Rainer Tammer.
21488
21489 2010-07-30  Bruno Haible  <bruno@clisp.org>
21490
21491         mbrlen: Fix cross-compilation guess for AIX.
21492         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21493         guess. Leftover from 2008-12-22.
21494
21495 2010-07-30  Bruno Haible  <bruno@clisp.org>
21496
21497         mbrtowc: Fix cross-compilation guess for AIX.
21498         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21499         guess. Leftover from 2008-12-21.
21500
21501 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21502
21503         init.sh: work around trap limitation of some shells
21504         * tests/init.sh (setup_): Move exit trap outside of shell function.
21505
21506 2010-07-29  Eric Blake  <eblake@redhat.com>
21507
21508         strtod: aid debugging
21509         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21510         understanding why strtod is rejected.
21511
21512 2010-07-28  Bruno Haible  <bruno@clisp.org>
21513
21514         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21515         * lib/unistr/u8-chr.c: Include <string.h>.
21516         * tests/unistr/test-u8-chr.c: Likewise.
21517         * tests/unistr/test-u16-chr.c: Likewise.
21518         * tests/unistr/test-u32-chr.c: Likewise.
21519         * tests/unistr/test-u8-strchr.c: Likewise.
21520         * tests/unistr/test-u16-strchr.c: Likewise.
21521         * tests/unistr/test-u32-strchr.c: Likewise.
21522         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21523         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21524         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21525         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21526
21527 2010-07-28  Bruno Haible  <bruno@clisp.org>
21528
21529         Use spaces for indentation, not tabs.
21530         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21531
21532 2010-07-27  Bruno Haible  <bruno@clisp.org>
21533
21534         mbspcasecmp: Fix function specification.
21535         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21536         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21537         Reported by Eric Blake <eblake@redhat.com>.
21538
21539 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21540
21541         timespec: use cast and not conditional, as truncation isn't possible
21542         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21543         instead of a conditional.  Comment about the situation in more detail.
21544         This undoes most of the 2009-10-29 patch.
21545
21546 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21547
21548         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21549         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21550         * lib/unistr/u8-strchr.c: Likewise.
21551         * modules/unistr/u8-chr: Depend on memchr.
21552
21553         unistr/u*-strchr: add tests
21554         * modules/unistr/u8-strchr-tests: New file.
21555         * modules/unistr/u16-strchr-tests: New file.
21556         * modules/unistr/u32-strchr-tests: New file.
21557         * tests/unistr/test-strchr.h: New file.
21558         * tests/unistr/test-u8-strchr.c: New file.
21559         * tests/unistr/test-u16-strchr.c: New file.
21560         * tests/unistr/test-u32-strchr.c: New file.
21561
21562         unistr/u*-chr: test multibyte sequences more
21563         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21564         test vector.
21565         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21566         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21567         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21568
21569         unistr/u*-chr: test multibyte sequences
21570         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21571
21572         unistr/u*-chr: prepare for multibyte tests
21573         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21574         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21575         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21576         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21577         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21578         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21579
21580 2010-07-18  Bruno Haible  <bruno@clisp.org>
21581
21582         unistr/u8-strchr: Optimize non-ASCII argument case.
21583         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21584         because the first byte often matches anyway.
21585         Reported by Pádraig Brady <P@draigbrady.com>.
21586
21587 2010-07-15  Karl Berry  <karl@gnu.org>
21588
21589         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21590
21591 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21592
21593         getcwd: on Solaris, work better if ancestors are inaccessible
21594         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21595         buffer and size, try again with a large buffer.  This works better
21596         on Solaris, since its getcwd succeeds even if the path to the root
21597         is inaccessible, and this is helpful in common cases such as .zfs
21598         hidden directories.  Problem reported by J Chapman Flack in
21599         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21600         Use system getcwd if it's declared, not merely if it's partly
21601         working; use the partly-working test only to avoid needless effort
21602         if the system getcwd fails.
21603         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21604         comment that was already obsolete and is now even more obsolete.
21605         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21606         now might call strdup.
21607
21608 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21609
21610         pthread: Add enough so that coreutils/src/sort.c compiles.
21611         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21612         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21613         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21614         Include <sys/types.h>, in case it defines pthread_t.
21615         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21616         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21617         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21618         (pthread_rwlockattr_t, pthread_spinlock_t):
21619         New typedefs, if HAVE_PTHREAD_T is not defined.
21620         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21621         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21622         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21623         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21624         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21625         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21626         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21627         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21628         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21629         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21630         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21631         New macros.
21632         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21633         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21634         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21635         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21636         (pthread_spin_unlock): New dummy functions.
21637         (pthread_create): Return EAGAIN; don't set errno.
21638         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21639         require AC_C_INLINE.
21640         * modules/pthread (Depends-on): Add sched, time.
21641         (pthread.h): Use AM_V_GEN.
21642
21643 2010-07-13  Bruno Haible  <bruno@clisp.org>
21644
21645         striconveh: Don't malloc memory if the result buffer is sufficient.
21646         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21647         buffer if its size is sufficient.
21648         Reported by Ludovic Courtès <ludo@gnu.org>.
21649
21650 2010-07-13  Bruno Haible  <bruno@clisp.org>
21651
21652         strtod: Add safety check.
21653         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21654
21655 2010-07-12  Bruno Haible  <bruno@clisp.org>
21656
21657         Unify tests that set gl_cv_func_ldexpl_no_libm.
21658         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21659         gl_FUNC_LDEXPL.
21660         (gl_FUNC_LDEXPL): Invoke it.
21661         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21662
21663 2010-07-12  Bruno Haible  <bruno@clisp.org>
21664
21665         Unify tests that set gl_cv_func_ldexp_no_libm.
21666         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21667         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21668         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21669         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21670         * modules/strtod (Files): Add m4/ldexp.m4.
21671
21672 2010-07-12  Bruno Haible  <bruno@clisp.org>
21673
21674         Unify tests that set gl_cv_func_frexpl_no_libm.
21675         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21676         gl_FUNC_FREXPL_NO_LIBM.
21677         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21678         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21679
21680 2010-07-12  Bruno Haible  <bruno@clisp.org>
21681
21682         Unify tests that set gl_cv_func_frexp_no_libm.
21683         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21684         gl_FUNC_FREXP_NO_LIBM.
21685         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21686         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21687
21688 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21689
21690         memcoll: clarify sizes versus lengths, document better, and tweak perf
21691         * lib/memcoll.c (strcoll_loop, memcoll0):
21692         Improve quality of descriptive comments.  Name variables
21693         consistently as to whether they are lengths (which do not include
21694         terminating null) versus sizes (which do).
21695         * lib/xmemcoll.c (xmemcoll0): Likewise.
21696         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21697         returned when s1size == 0; this is easier to compile and saves
21698         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21699
21700 2010-07-12  Bruno Haible  <bruno@clisp.org>
21701
21702         Tests for module '_Exit'.
21703         * modules/_Exit-tests: New file.
21704         * tests/test-_Exit.sh: New file.
21705         * tests/test-_Exit.c: New file.
21706
21707         New module '_Exit'.
21708         * lib/stdlib.in.h (__attribute__): New macro.
21709         (_Exit): New declaration.
21710         * lib/_Exit.c: New file.
21711         * m4/_Exit.m4: New file.
21712         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21713         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21714         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21715         * modules/_Exit: New file.
21716         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21717         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21718
21719 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21720
21721         strtod: make it more-accurate typically, and don't require libm
21722         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21723         Include limits.h.  Don't include string.h.
21724         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21725         (locale_isspace): New function, so that no casts are needed to
21726         check whether *s is a space.
21727         (ldexp): Provide an unused dummy if not available.
21728         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21729         (strtod): Use them.  This implementation prefers to use the
21730         underlying strtod if available, falling back on our own code
21731         only to fix known bugs.  This is more likely to produce an
21732         accurate result.  Also, it avoids the use of libm functions.
21733         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21734         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21735         was absent, but it caused a test failure with coreutils.
21736         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21737         with libm.
21738         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21739         * modules/strtod-tests (Makefile.am): Likewise.
21740
21741 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21742             Bruno Haible  <bruno@clisp.org>
21743
21744         unistr/u8-strchr: Optimize ASCII argument case.
21745         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21746
21747 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21748
21749         (x)memcoll: minor tweaks
21750         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21751         is after the type that it qualifies.
21752         (memcoll0): Likewise.
21753         * lib/memcoll.h (memcoll0): Likewise.
21754         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21755         * lib/xmemcoll.h (xmemcoll0): Likewise.
21756         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21757         differs from memcoll in that the NUL byte is part of the argument.
21758         Omit the abort-checks, as performance is a real issue here.  Plus,
21759         the checks were wrong anyway (an off-by-one error).  Omit local
21760         variable 'diff', as it's a bit clearer that way.
21761         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21762         no longer needed.
21763
21764 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21765
21766         (x)memcoll: speedup when input is known to be NUL delimited
21767         * lib/memcoll.c: Include stdlib.
21768         (memcoll0): New function.
21769         (strcoll_loop): New function, refactored for use in both memcoll
21770         and memcoll0.
21771         * lib/memcoll.h (memcoll0): Add prototype.
21772         * lib/xmemcoll.c (xmemcoll0): New function.
21773         (collate_error): New function, refactored for use in both xmemcoll
21774         and xmemcoll0.
21775         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21776         * m4/memcoll.m4: add inline invocation.
21777
21778 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21779
21780         * build-aux/bootstrap: Remove any local translations
21781         from the translation project synchronization directory,
21782         so that local only translations are not distributed.
21783
21784 2010-07-04  Bruno Haible  <bruno@clisp.org>
21785
21786         fsusage: Clarify which code applies to which platforms.
21787         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21788         platform.
21789         * lib/fsusage.c (get_fs_usage): Likewise.
21790
21791 2010-07-04  Bruno Haible  <bruno@clisp.org>
21792
21793         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21794         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21795         Reported by Martin Lambers <marlam@marlam.de>.
21796
21797 2010-07-04  Jim Meyering  <meyering@redhat.com>
21798
21799         hash: once again explicitly disallow insertion of NULL
21800         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21801         inserting a NULL pointer cannot work with these functions.
21802         Add a comment with details.
21803         This reverts part of the 2010-07-01 commit, 5bef1a35
21804         "hash: extend module to deal with non-pointer keys".
21805
21806 2010-07-01  Bruno Haible  <bruno@clisp.org>
21807
21808         stdbool: Update doc.
21809         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21810         Info from Christian Weisgerber <naddy@mips.inka.de>.
21811
21812 2010-07-01  Jim Meyering  <meyering@redhat.com>
21813
21814         hash: extend module to deal with non-pointer keys
21815         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21816         but that allows insertion of non-pointer entries.
21817         Do not disallow an ENTRY value of NULL.
21818         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21819         * lib/hash.h (hash_insert0): Declare.
21820
21821 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21822
21823         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21824         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21825         not present (i.e. with autoconf 2.59 and when using gettextize, not
21826         gnulib), require AC_GNU_SOURCE instead.
21827
21828 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21829
21830         idpriv-drop: Fix tests.
21831         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21832         not to the test-idpriv-droptemp program.
21833
21834 2010-06-29  Bruno Haible  <bruno@clisp.org>
21835
21836         string: Fix syntax error with g++ 2.96.
21837         * lib/string.in.h (__pure__): Remove definition.
21838         (_GL_ATTRIBUTE_PURE): New macro.
21839         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21840         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21841         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21842
21843 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21844
21845         unitypes: Fix bug introduced on 2010-05-18.
21846         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21847
21848 2010-06-22  Eric Blake  <eblake@redhat.com>
21849
21850         memmem: slight optimization
21851         * lib/str-two-way.h (critical_factorization): Update comments.
21852         Reduce work during factorization phase.
21853         Reported by Carlos Bueno <carlos@bueno.org>.
21854
21855 2010-06-21  Bruno Haible  <bruno@clisp.org>
21856
21857         Fix HAVE_CALLOC_POSIX misnomer.
21858         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21859         !HAVE_CALLOC_POSIX.
21860         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21861         HAVE_CALLOC_POSIX.
21862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21863         instead of HAVE_CALLOC_POSIX.
21864         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21865         HAVE_CALLOC_POSIX.
21866
21867         Use modern idiom for calloc() replacement.
21868         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21869         AC_FUNC_CALLOC.
21870         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21871         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21872         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21873         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21874         (gl_REPLACE_CALLOC): New macro.
21875
21876 2010-06-21  Bruno Haible  <bruno@clisp.org>
21877
21878         Fix HAVE_REALLOC_POSIX misnomer.
21879         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21880         !HAVE_REALLOC_POSIX.
21881         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21882         HAVE_REALLOC_POSIX.
21883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21884         instead of HAVE_REALLOC_POSIX.
21885         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21886         HAVE_REALLOC_POSIX.
21887
21888         Use modern idiom for realloc() replacement.
21889         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21890         AC_FUNC_REALLOC.
21891         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21892         Autoconf's AC_FUNC_REALLOC.
21893         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21894         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21895         (gl_REPLACE_REALLOC): New macro.
21896         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21897
21898 2010-06-21  Bruno Haible  <bruno@clisp.org>
21899
21900         Fix HAVE_MALLOC_POSIX misnomer.
21901         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21902         !HAVE_MALLOC_POSIX.
21903         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21904         HAVE_MALLOC_POSIX.
21905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21906         instead of HAVE_MALLOC_POSIX.
21907         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21908         HAVE_MALLOC_POSIX.
21909
21910         Use modern idiom for malloc() replacement.
21911         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21912         AC_FUNC_MALLOC.
21913         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21914         Autoconf's AC_FUNC_MALLOC.
21915         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21916         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21917         (gl_REPLACE_MALLOC): New macro.
21918         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21919
21920 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21921
21922         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21923         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21924         This macro takes 3 arguments, not 4.
21925
21926 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21927
21928         ipv6: fix detection under mingw
21929         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21930         in6_addr.
21931
21932 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21933
21934         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21935         that strtod() works when cross-compiling to a glibc version known
21936         to work.
21937
21938 2010-06-15  Bruno Haible  <bruno@clisp.org>
21939
21940         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21941
21942 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21943
21944         select: Correct timeout.
21945         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21946
21947 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21948
21949         git-version-gen: init shell var to avoid env var influence
21950         * build-aux/git-version-gen (v): Init shell var to empty.
21951
21952 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21953
21954         priv-set: Don't assume that priv.h exists merely because getppriv does.
21955         See Jan Andersen's bug report about AIX 5L in
21956         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21957         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21958         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21959         * lib/priv-set.h: Likewise.
21960         * tests/test-priv-set.c: Likewise.
21961
21962 2010-06-13  Bruno Haible  <bruno@clisp.org>
21963
21964         relocatable: Make it easier to test whether to install wrappers.
21965         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21966         RELOCATABLE_VIA_WRAPPER.
21967
21968 2010-06-13  Bruno Haible  <bruno@clisp.org>
21969
21970         gnulib-tool: Display specified modules and dependencies differently.
21971         * gnulib-tool (func_show_module_list): New function.
21972         (func_import, func_create_testdir): Invoke it.
21973         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21974
21975 2010-06-13  Bruno Haible  <bruno@clisp.org>
21976
21977         gnulib-tool: Align code of func_import and func_create_testdir.
21978         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21979         specified_modules.
21980
21981 2010-06-12  Jim Meyering  <meyering@redhat.com>
21982
21983         test-inttostr: avoid spurious failure on Solaris 9
21984         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21985         to accept "%ju".  Reported by Bruno Haible.
21986
21987 2010-06-11  Jim Meyering  <meyering@redhat.com>
21988
21989         test-sys_socket: mark variables as used more readably
21990         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21991         as "used" explicitly via (void) statement casts.  This is more
21992         readable than using them in an artificial return expression.
21993         Suggestion from Bruno Haible.
21994
21995 2010-06-11  Bruno Haible  <bruno@clisp.org>
21996
21997         Avoid some more warnings from "gcc -Wwrite-strings".
21998         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21999         to 'const char *'.
22000         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22001         * tests/test-c-strcasestr.c (main): Likewise.
22002         * tests/test-mbscasestr1.c (main): Likewise.
22003         * tests/test-mbscasestr2.c (main): Likewise.
22004         * tests/test-memmem.c (main): Likewise.
22005         * tests/test-strstr.c (main): Likewise.
22006         * tests/test-strcasestr.c (main): Likewise.
22007
22008 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22009
22010         init.sh: change framework_failure_ to fail with status 99, not 1
22011         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22012         automake's parallel-tests rule that this is an unexpected failure,
22013         even if the test is listed in XFAIL_TESTS.
22014
22015 2010-06-11  Jim Meyering  <meyering@redhat.com>
22016
22017         test-inttostr: avoid warnings about 4-6KB literal strings
22018         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22019         Include "macros.h", for its definition of ASSERT.
22020         (CK): s/assert/ASSERT/
22021         * modules/inttostr-tests (Files): Add macros.h.
22022
22023         init.sh: don't use $ME_ or skip_ before they are defined
22024         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22025         their first uses.  Also hoist their companions: warn_, fail_,
22026         framework_failure_, $stderr_fileno.  Prompted by a patch from
22027         Stefano Lattarini.
22028
22029         test-sys_socket: avoid set-but-not-used warnings from gcc
22030         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22031         avoid warning about set-but-not-used variables.
22032
22033         test-xvasprintf: avoid 'const' discard warnings
22034         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22035         "const" when assigning from literal strings.
22036         (test_xasprintf): Add "void" in function argument list to placate
22037         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22038
22039         tests: avoid compilation warnings in argmatch and exclude tests...
22040         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22041         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22042         Since it always exits, declare with the "noreturn" attribute.
22043         * tests/test-argmatch.c: Likewise.
22044
22045         tests: avoid 'const' discard warnings in mbsstr tests
22046         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22047         * tests/test-mbsstr2.c (main): Likewise.
22048
22049         test-verify: avoid warning from gcc's -Wmissing-declarations
22050         * tests/test-verify.c (function): Declare to be static.
22051
22052         test-inttostr.c: include <string.h> for use of strcmp
22053         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22054
22055         test-linkat: avoid failed assertion on "other" architectures
22056         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22057         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22058         sparc: https://bugs.launchpad.net/bugs/591968
22059
22060 2010-06-11  Jim Meyering  <meyering@redhat.com>
22061
22062         printf.m4: avoid autoconf's "Expanded Before Required" warning
22063         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22064         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22065         autoconf warning.
22066
22067 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22068
22069         Replacement header templates are now named with ".in", not "_".
22070         * doc/gnulib-intro.texi: Correct.
22071
22072 2010-06-10  Jim Meyering  <meyering@redhat.com>
22073
22074         inttostr-tests: depend on snprintf, not snprintf-posix
22075         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22076         snprintf-posix, to avoid this aclocal failure:
22077           missing file gnulib-tests/vasnprintf.c
22078           configure.ac:45: error: expected source file, required through \
22079           AC_LIBSOURCES, not found
22080
22081 2010-06-10  Jim Meyering  <meyering@redhat.com>
22082
22083         inttostr: add a new function, inttostr, and tests
22084         The namesake function was not available.  The existence of the
22085         template file, inttostr.c makes its addition nontrivial.
22086         * lib/anytostr.c: Rename from inttostr.c.
22087         (anytostr): Rename from inttostr.
22088         * lib/inttostr.c: New file.
22089         * modules/inttostr (Files): Add anytostr.c.
22090         (Makefile.am): Set lib_SOURCES instead of ...
22091         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22092         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22093         * lib/offtostr.c: Likewise.
22094         * lib/uinttostr.c: Likewise.
22095         * lib/umaxtostr.c: Likewise.
22096         * modules/inttostr-tests: New file.
22097         * tests/test-inttostr.c: New file.  Test these functions.
22098
22099 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22100             Bruno Haible  <bruno@clisp.org>
22101
22102         Add "Extending Gnulib" chapter to manual.
22103         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22104         chapter.
22105         (Extending Gnulib): New chapter.
22106         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22107         chapter.
22108
22109 2010-06-09  Bruno Haible  <bruno@clisp.org>
22110
22111         Avoid relocwrapper link errors due to gnulib replacement functions.
22112         * lib/areadlink.c: Use the system's malloc, realloc functions.
22113         (areadlink): Set errno to ENOMEM explicitly.
22114         * modules/areadlink (Depends-on): Remove malloc-posix.
22115         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22116
22117 2010-06-09  Bruno Haible  <bruno@clisp.org>
22118
22119         Avoid relocwrapper link errors due to gnulib replacement functions.
22120         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22121         * lib/malloca.c: Likewise.
22122         * lib/relocatable.c: Likewise.
22123         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22124         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22125         * lib/setenv.c: Use the system's malloc, realloc functions.
22126         * lib/strerror.c: Use the system's sprintf function.
22127         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22128
22129 2010-06-04  Bruno Haible  <bruno@clisp.org>
22130
22131         Prefer documented low-level autoconf macro names.
22132         * m4/lib-link.m4: Use m4_translit instead of translit.
22133         * m4/environ.m4: Likewise.
22134         * m4/mathfunc.m4: Likewise.
22135         * m4/onceonly.m4: Likewise.
22136         * m4/stdint.m4: Likewise.
22137         Suggested by Eric Blake.
22138
22139 2010-06-04  Martin Lambers  <marlam@marlam.de>
22140             Bruno Haible  <bruno@clisp.org>
22141
22142         havelib: Allow library names with '+' characters.
22143         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22144         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22145
22146 2010-06-09  Bruno Haible  <bruno@clisp.org>
22147
22148         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22149         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22150         realloc failed.
22151
22152 2010-06-08  Peter Simons  <simons@cryp.to>
22153
22154         maint.mk: make the news-check rule more configurable
22155         * top/maint.mk (news-check-lines-spec): New variable.
22156         (news-check): Use "sed -n 1,10p" in place of "head".
22157
22158 2010-06-07  Jim Meyering  <meyering@redhat.com>
22159
22160         do-release-commit-and-tag: fix typo in --help
22161         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22162
22163         regex: avoid new dead-code warning with gcc-4.6.0
22164         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22165         if-block containing a while-loop.  It's been unused for at least
22166         5 years.
22167
22168 2010-06-05  Bruno Haible  <bruno@clisp.org>
22169
22170         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22171         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22172
22173 2010-06-04  Bruno Haible  <bruno@clisp.org>
22174
22175         Update to GNU gettext 0.18.1.
22176         * modules/gettext (configure.ac): Require gettext infrastructure from
22177         version 0.18.1.
22178
22179 2010-06-03  Bruno Haible  <bruno@clisp.org>
22180
22181         Don't use AC_LIBOBJ with file names in subdirectories.
22182         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22183         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22184         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22185         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22186         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22187         gl_LIBUNISTRING_LIBSOURCE.
22188         (Makefile.am): Augment lib_SOURCES here, conditionally.
22189         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22190
22191 2010-06-03  Bruno Haible  <bruno@clisp.org>
22192
22193         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22194         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22195         expansion does not end with a newline.
22196         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22197         unnecessary newline.
22198
22199 2010-06-03  Bruno Haible  <bruno@clisp.org>
22200
22201         Reduce dependencies.
22202         * tests/test-quotearg.h: New file, extracted from
22203         tests/test-quotearg.c.
22204         * tests/test-quotearg-simple.c: New file, extracted from
22205         tests/test-quotearg.c.
22206         * tests/test-quotearg.c: Don't include <ctype.h>.
22207         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22208         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22209         use_quote_double_quotes, use_quotearg_colon): Moved to
22210         tests/test-quotearg.h.
22211         (results_g, flag_results, custom_quotes, custom_results): Moved
22212         to tests/test-quotearg-simple.c.
22213         (main): Moved the part that does not depend on gettext to
22214         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22215         performed.
22216         * modules/quotearg-simple: New file.
22217         * modules/quotearg-simple-tests: New file.
22218         * modules/quotearg (Depends-on): Add quotearg-simple.
22219         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22220         (Files): Add tests/test-quotearg.h.
22221         Reported by Paolo Bonzini.
22222
22223 2010-06-03  Bruno Haible  <bruno@clisp.org>
22224
22225         Reduce dependencies.
22226         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22227
22228 2010-06-03  Bruno Haible  <bruno@clisp.org>
22229
22230         time: Undefine more broken macros.
22231         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22232         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22233         Reported by Eric Blake.
22234
22235 2010-06-03  Bruno Haible  <bruno@clisp.org>
22236
22237         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22238         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22239         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22240         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22241         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22242         Reported by Ludovic Courtès <ludo@gnu.org>.
22243
22244 2010-06-02  Eric Blake  <eblake@redhat.com>
22245
22246         time: work with mingw + pthreads-win32 library
22247         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22248         if timespec is defined only in pthread.h.
22249         * modules/time (Makefile.am): Substitute it.
22250         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22251         <pthread.h>, when needed.
22252         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22253         from the library.
22254
22255 2010-05-31  Bruno Haible  <bruno@clisp.org>
22256
22257         Avoid expanding two macros in the wrong order.
22258         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22259         gl_LIBUNISTRING if it is defined.
22260         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22261         autoconf >= 2.64.
22262         Reported by Ludovic Courtès <ludo@gnu.org>.
22263
22264 2010-05-27  Jim Meyering  <meyering@redhat.com>
22265
22266         maint.mk: also prohibit "#undef" of always-defined symbols
22267         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22268         Allow more than one space before the symbol name.
22269         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22270         the regexp uses alternation.
22271
22272 2010-05-26  Eric Blake  <eblake@redhat.com>
22273
22274         maint.mk: avoid echo -e
22275         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22276         Convert all uses of echo -* to printf.
22277         Reported by Matthias Bolte.
22278
22279 2010-05-25  Bruno Haible  <bruno@clisp.org>
22280
22281         Update to GNU gettext 0.18, part 2.
22282         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22283         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22284
22285 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22286
22287         Add missing include in test-pwrite.c.
22288         * tests/test-pwrite.c: Include string.h, for strcmp.
22289
22290 2010-05-24  Bruno Haible  <bruno@clisp.org>
22291
22292         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22293
22294 2010-05-24  Bruno Haible  <bruno@clisp.org>
22295
22296         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22297         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22298         iconveh_error argument.
22299         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22300         U_STRCONV_TO_LOCALE.
22301         * lib/unistr/u16-strcoll.c: Likewise.
22302         * lib/unistr/u32-strcoll.c: Likewise.
22303         * modules/unistr/u8-strcoll (Depends-on): Add
22304         uniconv/u8-strconv-to-enc, localcharset. Remove
22305         uniconv/u8-strconv-to-locale.
22306         (configure.ac): Bump version number.
22307         * modules/unistr/u16-strcoll (Depends-on): Add
22308         uniconv/u16-strconv-to-enc, localcharset. Remove
22309         uniconv/u16-strconv-to-locale.
22310         (configure.ac): Bump version number.
22311         * modules/unistr/u32-strcoll (Depends-on): Add
22312         uniconv/u32-strconv-to-enc, localcharset. Remove
22313         uniconv/u32-strconv-to-locale.
22314         (configure.ac): Bump version number.
22315
22316 2010-05-24  Bruno Haible  <bruno@clisp.org>
22317
22318         Avoid a test failure on NetBSD 5.0.
22319         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22320         an iconv() bug.
22321
22322 2010-05-24  Bruno Haible  <bruno@clisp.org>
22323
22324         Adjust #include directive style.
22325         * modules/regex (Includes): Recommend to write <regex.h>.
22326
22327 2010-05-24  Bruno Haible  <bruno@clisp.org>
22328
22329         regex: Don't require alloca.
22330         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22331         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22332         only inside if (0).
22333
22334 2010-05-23  Jim Meyering  <meyering@redhat.com>
22335
22336         test-renameat.c: include <sys/stat.h>
22337         * tests/test-renameat.c: Include <sys/stat.h>; required for
22338         definition of S_IS* macros.
22339
22340 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22341
22342         Update maintainer documentation for 'relocatable-prog' module.
22343         * doc/relocatable-maint.texi: Update.
22344         Comments by Bruno Haible.
22345
22346 2010-05-23  Bruno Haible  <bruno@clisp.org>
22347
22348         git-merge-changelog: Enable --split-merged-entry by default.
22349         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22350         (usage): Don't mention this option any more.
22351         Reported by Ralf Wildenhues.
22352
22353 2010-05-23  Jim Meyering  <meyering@redhat.com>
22354
22355         test-pwrite: do not leave behind a test file named "out"
22356         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22357         The trivial-looking use of init.sh is really necessary.
22358         It ensures that the temporary file, "out", is created in
22359         a temporary directory, and removed upon termination.
22360         * tests/test-pwrite.sh: Re-add file.
22361         * modules/pwrite-tests: Reference it.
22362
22363 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22364
22365         Fix output redirection buglet in init.sh.
22366         * tests/init.sh: Fix redirection of stderr.
22367
22368 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22369
22370         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22371
22372 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22373
22374         * modules/valgrind-tests: New file.
22375         * m4/valgrind-tests.m4: New file.
22376         * doc/valgrind-tests.texi: New file.
22377         * doc/gnulib.texi (Running self-tests under valgrind): New
22378         section.
22379
22380 2010-05-19  Bruno Haible  <bruno@clisp.org>
22381
22382         Clean up dead code in recent commit.
22383         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22384         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22385         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22386         Suggested by Paolo Bonzini.
22387
22388 2010-05-19  Bruno Haible  <bruno@clisp.org>
22389
22390         Avoid valgrind error reports from libunistring.
22391         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22392         * modules/libunistring (Files): Add it.
22393         * modules/libunistring-optional (Files): Likewise.
22394
22395 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22396             Bruno Haible  <bruno@clisp.org>
22397
22398         New module 'libunistring-optional'.
22399         * modules/libunistring-optional: New file.
22400         * m4/libunistring-base.m4: New file.
22401         * m4/libunistring-optional.m4: New file.
22402         * lib/unicase.in.h: Renamed from lib/unicase.h.
22403         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22404         * lib/unictype.in.h: Renamed from lib/unictype.h.
22405         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22406         * lib/uniname.in.h: Renamed from lib/uniname.h.
22407         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22408         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22409         * lib/unistr.in.h: Renamed from lib/unistr.h.
22410         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22411         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22412         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22413         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22414         gl_LIBUNISTRING. If the library was found, determine the installed
22415         version and set LIBUNISTRING_VERSION.
22416         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22417         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22418         handle a configuration option --with-included-libunistring.
22419         * modules/libunistring (Files): Add m4/absolute-header.m4.
22420         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22421         Add m4/libunistring-base.m4.
22422         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22423         (Makefile.am): Build unicase.h from unicase.in.h.
22424         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22425         Add m4/libunistring-base.m4.
22426         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22427         (Makefile.am): Build uniconv.h from uniconv.in.h.
22428         * modules/unictype/base (Files): Use unictype.in.h instead of
22429         unictype.h. Add m4/libunistring-base.m4.
22430         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22431         (Makefile.am): Build unictype.h from unictype.in.h.
22432         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22433         Add m4/libunistring-base.m4.
22434         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22435         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22436         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22437         Add m4/libunistring-base.m4.
22438         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22439         (Makefile.am): Build uniname.h from uniname.in.h.
22440         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22441         Add m4/libunistring-base.m4.
22442         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22443         (Makefile.am): Build uninorm.h from uninorm.in.h.
22444         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22445         unistdio.h. Add m4/libunistring-base.m4.
22446         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22447         (Makefile.am): Build unistdio.h from unistdio.in.h.
22448         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22449         Add m4/libunistring-base.m4.
22450         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22451         (Makefile.am): Build unistr.h from unistr.in.h.
22452         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22453         Add m4/libunistring-base.m4.
22454         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22455         (Makefile.am): Build unitypes.h from unitypes.in.h.
22456         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22457         Add m4/libunistring-base.m4.
22458         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22459         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22460         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22461         uniwidth.h. Add m4/libunistring-base.m4.
22462         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22463         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22464         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22465         instead of augmenting lib_SOURCES.
22466         * modules/unicase/empty-suffix-context: Likewise.
22467         * modules/unicase/locale-language: Likewise.
22468         * modules/unicase/tolower: Likewise.
22469         * modules/unicase/totitle: Likewise.
22470         * modules/unicase/toupper: Likewise.
22471         * modules/unicase/u8-casecmp: Likewise.
22472         * modules/unicase/u8-casecoll: Likewise.
22473         * modules/unicase/u8-casefold: Likewise.
22474         * modules/unicase/u8-casexfrm: Likewise.
22475         * modules/unicase/u8-ct-casefold: Likewise.
22476         * modules/unicase/u8-ct-tolower: Likewise.
22477         * modules/unicase/u8-ct-totitle: Likewise.
22478         * modules/unicase/u8-ct-toupper: Likewise.
22479         * modules/unicase/u8-is-cased: Likewise.
22480         * modules/unicase/u8-is-casefolded: Likewise.
22481         * modules/unicase/u8-is-lowercase: Likewise.
22482         * modules/unicase/u8-is-titlecase: Likewise.
22483         * modules/unicase/u8-is-uppercase: Likewise.
22484         * modules/unicase/u8-prefix-context: Likewise.
22485         * modules/unicase/u8-suffix-context: Likewise.
22486         * modules/unicase/u8-tolower: Likewise.
22487         * modules/unicase/u8-totitle: Likewise.
22488         * modules/unicase/u8-toupper: Likewise.
22489         * modules/unicase/u16-casecmp: Likewise.
22490         * modules/unicase/u16-casecoll: Likewise.
22491         * modules/unicase/u16-casefold: Likewise.
22492         * modules/unicase/u16-casexfrm: Likewise.
22493         * modules/unicase/u16-ct-casefold: Likewise.
22494         * modules/unicase/u16-ct-tolower: Likewise.
22495         * modules/unicase/u16-ct-totitle: Likewise.
22496         * modules/unicase/u16-ct-toupper: Likewise.
22497         * modules/unicase/u16-is-cased: Likewise.
22498         * modules/unicase/u16-is-casefolded: Likewise.
22499         * modules/unicase/u16-is-lowercase: Likewise.
22500         * modules/unicase/u16-is-titlecase: Likewise.
22501         * modules/unicase/u16-is-uppercase: Likewise.
22502         * modules/unicase/u16-prefix-context: Likewise.
22503         * modules/unicase/u16-suffix-context: Likewise.
22504         * modules/unicase/u16-tolower: Likewise.
22505         * modules/unicase/u16-totitle: Likewise.
22506         * modules/unicase/u16-toupper: Likewise.
22507         * modules/unicase/u32-casecmp: Likewise.
22508         * modules/unicase/u32-casecoll: Likewise.
22509         * modules/unicase/u32-casefold: Likewise.
22510         * modules/unicase/u32-casexfrm: Likewise.
22511         * modules/unicase/u32-ct-casefold: Likewise.
22512         * modules/unicase/u32-ct-tolower: Likewise.
22513         * modules/unicase/u32-ct-totitle: Likewise.
22514         * modules/unicase/u32-ct-toupper: Likewise.
22515         * modules/unicase/u32-is-cased: Likewise.
22516         * modules/unicase/u32-is-casefolded: Likewise.
22517         * modules/unicase/u32-is-lowercase: Likewise.
22518         * modules/unicase/u32-is-titlecase: Likewise.
22519         * modules/unicase/u32-is-uppercase: Likewise.
22520         * modules/unicase/u32-prefix-context: Likewise.
22521         * modules/unicase/u32-suffix-context: Likewise.
22522         * modules/unicase/u32-tolower: Likewise.
22523         * modules/unicase/u32-totitle: Likewise.
22524         * modules/unicase/u32-toupper: Likewise.
22525         * modules/unicase/ulc-casecmp: Likewise.
22526         * modules/unicase/ulc-casecoll: Likewise.
22527         * modules/unicase/ulc-casexfrm: Likewise.
22528         * modules/uniconv/u8-conv-from-enc: Likewise.
22529         * modules/uniconv/u8-conv-to-enc: Likewise.
22530         * modules/uniconv/u8-strconv-from-enc: Likewise.
22531         * modules/uniconv/u8-strconv-from-locale: Likewise.
22532         * modules/uniconv/u8-strconv-to-enc: Likewise.
22533         * modules/uniconv/u8-strconv-to-locale: Likewise.
22534         * modules/uniconv/u16-conv-from-enc: Likewise.
22535         * modules/uniconv/u16-conv-to-enc: Likewise.
22536         * modules/uniconv/u16-strconv-from-enc: Likewise.
22537         * modules/uniconv/u16-strconv-from-locale: Likewise.
22538         * modules/uniconv/u16-strconv-to-enc: Likewise.
22539         * modules/uniconv/u16-strconv-to-locale: Likewise.
22540         * modules/uniconv/u32-conv-from-enc: Likewise.
22541         * modules/uniconv/u32-conv-to-enc: Likewise.
22542         * modules/uniconv/u32-strconv-from-enc: Likewise.
22543         * modules/uniconv/u32-strconv-from-locale: Likewise.
22544         * modules/uniconv/u32-strconv-to-enc: Likewise.
22545         * modules/uniconv/u32-strconv-to-locale: Likewise.
22546         * modules/unictype/bidicategory-byname: Likewise.
22547         * modules/unictype/bidicategory-name: Likewise.
22548         * modules/unictype/bidicategory-of: Likewise.
22549         * modules/unictype/bidicategory-test: Likewise.
22550         * modules/unictype/block-list: Likewise.
22551         * modules/unictype/block-test: Likewise.
22552         * modules/unictype/category-C: Likewise.
22553         * modules/unictype/category-Cc: Likewise.
22554         * modules/unictype/category-Cf: Likewise.
22555         * modules/unictype/category-Cn: Likewise.
22556         * modules/unictype/category-Co: Likewise.
22557         * modules/unictype/category-Cs: Likewise.
22558         * modules/unictype/category-L: Likewise.
22559         * modules/unictype/category-Ll: Likewise.
22560         * modules/unictype/category-Lm: Likewise.
22561         * modules/unictype/category-Lo: Likewise.
22562         * modules/unictype/category-Lt: Likewise.
22563         * modules/unictype/category-Lu: Likewise.
22564         * modules/unictype/category-M: Likewise.
22565         * modules/unictype/category-Mc: Likewise.
22566         * modules/unictype/category-Me: Likewise.
22567         * modules/unictype/category-Mn: Likewise.
22568         * modules/unictype/category-N: Likewise.
22569         * modules/unictype/category-Nd: Likewise.
22570         * modules/unictype/category-Nl: Likewise.
22571         * modules/unictype/category-No: Likewise.
22572         * modules/unictype/category-P: Likewise.
22573         * modules/unictype/category-Pc: Likewise.
22574         * modules/unictype/category-Pd: Likewise.
22575         * modules/unictype/category-Pe: Likewise.
22576         * modules/unictype/category-Pf: Likewise.
22577         * modules/unictype/category-Pi: Likewise.
22578         * modules/unictype/category-Po: Likewise.
22579         * modules/unictype/category-Ps: Likewise.
22580         * modules/unictype/category-S: Likewise.
22581         * modules/unictype/category-Sc: Likewise.
22582         * modules/unictype/category-Sk: Likewise.
22583         * modules/unictype/category-Sm: Likewise.
22584         * modules/unictype/category-So: Likewise.
22585         * modules/unictype/category-Z: Likewise.
22586         * modules/unictype/category-Zl: Likewise.
22587         * modules/unictype/category-Zp: Likewise.
22588         * modules/unictype/category-Zs: Likewise.
22589         * modules/unictype/category-and: Likewise.
22590         * modules/unictype/category-and-not: Likewise.
22591         * modules/unictype/category-byname: Likewise.
22592         * modules/unictype/category-name: Likewise.
22593         * modules/unictype/category-none: Likewise.
22594         * modules/unictype/category-of: Likewise.
22595         * modules/unictype/category-or: Likewise.
22596         * modules/unictype/category-test: Likewise.
22597         * modules/unictype/combining-class: Likewise.
22598         * modules/unictype/ctype-alnum: Likewise.
22599         * modules/unictype/ctype-alpha: Likewise.
22600         * modules/unictype/ctype-blank: Likewise.
22601         * modules/unictype/ctype-cntrl: Likewise.
22602         * modules/unictype/ctype-digit: Likewise.
22603         * modules/unictype/ctype-graph: Likewise.
22604         * modules/unictype/ctype-lower: Likewise.
22605         * modules/unictype/ctype-print: Likewise.
22606         * modules/unictype/ctype-punct: Likewise.
22607         * modules/unictype/ctype-space: Likewise.
22608         * modules/unictype/ctype-upper: Likewise.
22609         * modules/unictype/ctype-xdigit: Likewise.
22610         * modules/unictype/decimal-digit: Likewise.
22611         * modules/unictype/digit: Likewise.
22612         * modules/unictype/mirror: Likewise.
22613         * modules/unictype/numeric: Likewise.
22614         * modules/unictype/property-alphabetic: Likewise.
22615         * modules/unictype/property-ascii-hex-digit: Likewise.
22616         * modules/unictype/property-bidi-arabic-digit: Likewise.
22617         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22618         * modules/unictype/property-bidi-block-separator: Likewise.
22619         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22620         * modules/unictype/property-bidi-common-separator: Likewise.
22621         * modules/unictype/property-bidi-control: Likewise.
22622         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22623         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22624         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22625         * modules/unictype/property-bidi-european-digit: Likewise.
22626         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22627         * modules/unictype/property-bidi-left-to-right: Likewise.
22628         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22629         * modules/unictype/property-bidi-other-neutral: Likewise.
22630         * modules/unictype/property-bidi-pdf: Likewise.
22631         * modules/unictype/property-bidi-segment-separator: Likewise.
22632         * modules/unictype/property-bidi-whitespace: Likewise.
22633         * modules/unictype/property-byname: Likewise.
22634         * modules/unictype/property-combining: Likewise.
22635         * modules/unictype/property-composite: Likewise.
22636         * modules/unictype/property-currency-symbol: Likewise.
22637         * modules/unictype/property-dash: Likewise.
22638         * modules/unictype/property-decimal-digit: Likewise.
22639         * modules/unictype/property-default-ignorable-code-point: Likewise.
22640         * modules/unictype/property-deprecated: Likewise.
22641         * modules/unictype/property-diacritic: Likewise.
22642         * modules/unictype/property-extender: Likewise.
22643         * modules/unictype/property-format-control: Likewise.
22644         * modules/unictype/property-grapheme-base: Likewise.
22645         * modules/unictype/property-grapheme-extend: Likewise.
22646         * modules/unictype/property-grapheme-link: Likewise.
22647         * modules/unictype/property-hex-digit: Likewise.
22648         * modules/unictype/property-hyphen: Likewise.
22649         * modules/unictype/property-id-continue: Likewise.
22650         * modules/unictype/property-id-start: Likewise.
22651         * modules/unictype/property-ideographic: Likewise.
22652         * modules/unictype/property-ids-binary-operator: Likewise.
22653         * modules/unictype/property-ids-trinary-operator: Likewise.
22654         * modules/unictype/property-ignorable-control: Likewise.
22655         * modules/unictype/property-iso-control: Likewise.
22656         * modules/unictype/property-join-control: Likewise.
22657         * modules/unictype/property-left-of-pair: Likewise.
22658         * modules/unictype/property-line-separator: Likewise.
22659         * modules/unictype/property-logical-order-exception: Likewise.
22660         * modules/unictype/property-lowercase: Likewise.
22661         * modules/unictype/property-math: Likewise.
22662         * modules/unictype/property-non-break: Likewise.
22663         * modules/unictype/property-not-a-character: Likewise.
22664         * modules/unictype/property-numeric: Likewise.
22665         * modules/unictype/property-other-alphabetic: Likewise.
22666         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22667         * modules/unictype/property-other-grapheme-extend: Likewise.
22668         * modules/unictype/property-other-id-continue: Likewise.
22669         * modules/unictype/property-other-id-start: Likewise.
22670         * modules/unictype/property-other-lowercase: Likewise.
22671         * modules/unictype/property-other-math: Likewise.
22672         * modules/unictype/property-other-uppercase: Likewise.
22673         * modules/unictype/property-paired-punctuation: Likewise.
22674         * modules/unictype/property-paragraph-separator: Likewise.
22675         * modules/unictype/property-pattern-syntax: Likewise.
22676         * modules/unictype/property-pattern-white-space: Likewise.
22677         * modules/unictype/property-private-use: Likewise.
22678         * modules/unictype/property-punctuation: Likewise.
22679         * modules/unictype/property-quotation-mark: Likewise.
22680         * modules/unictype/property-radical: Likewise.
22681         * modules/unictype/property-sentence-terminal: Likewise.
22682         * modules/unictype/property-soft-dotted: Likewise.
22683         * modules/unictype/property-space: Likewise.
22684         * modules/unictype/property-terminal-punctuation: Likewise.
22685         * modules/unictype/property-test: Likewise.
22686         * modules/unictype/property-titlecase: Likewise.
22687         * modules/unictype/property-unassigned-code-value: Likewise.
22688         * modules/unictype/property-unified-ideograph: Likewise.
22689         * modules/unictype/property-uppercase: Likewise.
22690         * modules/unictype/property-variation-selector: Likewise.
22691         * modules/unictype/property-white-space: Likewise.
22692         * modules/unictype/property-xid-continue: Likewise.
22693         * modules/unictype/property-xid-start: Likewise.
22694         * modules/unictype/property-zero-width: Likewise.
22695         * modules/unictype/scripts: Likewise.
22696         * modules/unictype/syntax-c-ident: Likewise.
22697         * modules/unictype/syntax-c-whitespace: Likewise.
22698         * modules/unictype/syntax-java-ident: Likewise.
22699         * modules/unictype/syntax-java-whitespace: Likewise.
22700         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22701         * modules/unilbrk/u8-width-linebreaks: Likewise.
22702         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22703         * modules/unilbrk/u16-width-linebreaks: Likewise.
22704         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22705         * modules/unilbrk/u32-width-linebreaks: Likewise.
22706         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22707         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22708         * modules/uniname/uniname: Likewise.
22709         * modules/uninorm/canonical-decomposition: Likewise.
22710         * modules/uninorm/composition: Likewise.
22711         * modules/uninorm/decomposing-form: Likewise.
22712         * modules/uninorm/decomposition: Likewise.
22713         * modules/uninorm/filter: Likewise.
22714         * modules/uninorm/nfc: Likewise.
22715         * modules/uninorm/nfd: Likewise.
22716         * modules/uninorm/nfkc: Likewise.
22717         * modules/uninorm/nfkd: Likewise.
22718         * modules/uninorm/u8-normalize: Likewise.
22719         * modules/uninorm/u8-normcmp: Likewise.
22720         * modules/uninorm/u8-normcoll: Likewise.
22721         * modules/uninorm/u8-normxfrm: Likewise.
22722         * modules/uninorm/u16-normalize: Likewise.
22723         * modules/uninorm/u16-normcmp: Likewise.
22724         * modules/uninorm/u16-normcoll: Likewise.
22725         * modules/uninorm/u16-normxfrm: Likewise.
22726         * modules/uninorm/u32-normalize: Likewise.
22727         * modules/uninorm/u32-normcmp: Likewise.
22728         * modules/uninorm/u32-normcoll: Likewise.
22729         * modules/uninorm/u32-normxfrm: Likewise.
22730         * modules/unistdio/u8-asnprintf: Likewise.
22731         * modules/unistdio/u8-asprintf: Likewise.
22732         * modules/unistdio/u8-snprintf: Likewise.
22733         * modules/unistdio/u8-sprintf: Likewise.
22734         * modules/unistdio/u8-u8-asnprintf: Likewise.
22735         * modules/unistdio/u8-u8-asprintf: Likewise.
22736         * modules/unistdio/u8-u8-snprintf: Likewise.
22737         * modules/unistdio/u8-u8-sprintf: Likewise.
22738         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22739         * modules/unistdio/u8-u8-vasprintf: Likewise.
22740         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22741         * modules/unistdio/u8-u8-vsprintf: Likewise.
22742         * modules/unistdio/u8-vasnprintf: Likewise.
22743         * modules/unistdio/u8-vasprintf: Likewise.
22744         * modules/unistdio/u8-vsnprintf: Likewise.
22745         * modules/unistdio/u8-vsprintf: Likewise.
22746         * modules/unistdio/u16-asnprintf: Likewise.
22747         * modules/unistdio/u16-asprintf: Likewise.
22748         * modules/unistdio/u16-snprintf: Likewise.
22749         * modules/unistdio/u16-sprintf: Likewise.
22750         * modules/unistdio/u16-u16-asnprintf: Likewise.
22751         * modules/unistdio/u16-u16-asprintf: Likewise.
22752         * modules/unistdio/u16-u16-snprintf: Likewise.
22753         * modules/unistdio/u16-u16-sprintf: Likewise.
22754         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22755         * modules/unistdio/u16-u16-vasprintf: Likewise.
22756         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22757         * modules/unistdio/u16-u16-vsprintf: Likewise.
22758         * modules/unistdio/u16-vasnprintf: Likewise.
22759         * modules/unistdio/u16-vasprintf: Likewise.
22760         * modules/unistdio/u16-vsnprintf: Likewise.
22761         * modules/unistdio/u16-vsprintf: Likewise.
22762         * modules/unistdio/u32-asnprintf: Likewise.
22763         * modules/unistdio/u32-asprintf: Likewise.
22764         * modules/unistdio/u32-snprintf: Likewise.
22765         * modules/unistdio/u32-sprintf: Likewise.
22766         * modules/unistdio/u32-u32-asnprintf: Likewise.
22767         * modules/unistdio/u32-u32-asprintf: Likewise.
22768         * modules/unistdio/u32-u32-snprintf: Likewise.
22769         * modules/unistdio/u32-u32-sprintf: Likewise.
22770         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22771         * modules/unistdio/u32-u32-vasprintf: Likewise.
22772         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22773         * modules/unistdio/u32-u32-vsprintf: Likewise.
22774         * modules/unistdio/u32-vasnprintf: Likewise.
22775         * modules/unistdio/u32-vasprintf: Likewise.
22776         * modules/unistdio/u32-vsnprintf: Likewise.
22777         * modules/unistdio/u32-vsprintf: Likewise.
22778         * modules/unistdio/ulc-asnprintf: Likewise.
22779         * modules/unistdio/ulc-asprintf: Likewise.
22780         * modules/unistdio/ulc-fprintf: Likewise.
22781         * modules/unistdio/ulc-snprintf: Likewise.
22782         * modules/unistdio/ulc-sprintf: Likewise.
22783         * modules/unistdio/ulc-vasnprintf: Likewise.
22784         * modules/unistdio/ulc-vasprintf: Likewise.
22785         * modules/unistdio/ulc-vfprintf: Likewise.
22786         * modules/unistdio/ulc-vsnprintf: Likewise.
22787         * modules/unistdio/ulc-vsprintf: Likewise.
22788         * modules/unistr/u8-check: Likewise.
22789         * modules/unistr/u8-chr: Likewise.
22790         * modules/unistr/u8-cmp: Likewise.
22791         * modules/unistr/u8-cmp2: Likewise.
22792         * modules/unistr/u8-cpy: Likewise.
22793         * modules/unistr/u8-cpy-alloc: Likewise.
22794         * modules/unistr/u8-endswith: Likewise.
22795         * modules/unistr/u8-mblen: Likewise.
22796         * modules/unistr/u8-mbsnlen: Likewise.
22797         * modules/unistr/u8-mbtouc: Likewise.
22798         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22799         * modules/unistr/u8-mbtoucr: Likewise.
22800         * modules/unistr/u8-move: Likewise.
22801         * modules/unistr/u8-next: Likewise.
22802         * modules/unistr/u8-prev: Likewise.
22803         * modules/unistr/u8-set: Likewise.
22804         * modules/unistr/u8-startswith: Likewise.
22805         * modules/unistr/u8-stpcpy: Likewise.
22806         * modules/unistr/u8-stpncpy: Likewise.
22807         * modules/unistr/u8-strcat: Likewise.
22808         * modules/unistr/u8-strchr: Likewise.
22809         * modules/unistr/u8-strcmp: Likewise.
22810         * modules/unistr/u8-strcoll: Likewise.
22811         * modules/unistr/u8-strcpy: Likewise.
22812         * modules/unistr/u8-strcspn: Likewise.
22813         * modules/unistr/u8-strdup: Likewise.
22814         * modules/unistr/u8-strlen: Likewise.
22815         * modules/unistr/u8-strmblen: Likewise.
22816         * modules/unistr/u8-strmbtouc: Likewise.
22817         * modules/unistr/u8-strncat: Likewise.
22818         * modules/unistr/u8-strncmp: Likewise.
22819         * modules/unistr/u8-strncpy: Likewise.
22820         * modules/unistr/u8-strnlen: Likewise.
22821         * modules/unistr/u8-strpbrk: Likewise.
22822         * modules/unistr/u8-strrchr: Likewise.
22823         * modules/unistr/u8-strspn: Likewise.
22824         * modules/unistr/u8-strstr: Likewise.
22825         * modules/unistr/u8-strtok: Likewise.
22826         * modules/unistr/u8-to-u16: Likewise.
22827         * modules/unistr/u8-to-u32: Likewise.
22828         * modules/unistr/u8-uctomb: Likewise.
22829         * modules/unistr/u16-check: Likewise.
22830         * modules/unistr/u16-chr: Likewise.
22831         * modules/unistr/u16-cmp: Likewise.
22832         * modules/unistr/u16-cmp2: Likewise.
22833         * modules/unistr/u16-cpy: Likewise.
22834         * modules/unistr/u16-cpy-alloc: Likewise.
22835         * modules/unistr/u16-endswith: Likewise.
22836         * modules/unistr/u16-mblen: Likewise.
22837         * modules/unistr/u16-mbsnlen: Likewise.
22838         * modules/unistr/u16-mbtouc: Likewise.
22839         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22840         * modules/unistr/u16-mbtoucr: Likewise.
22841         * modules/unistr/u16-move: Likewise.
22842         * modules/unistr/u16-next: Likewise.
22843         * modules/unistr/u16-prev: Likewise.
22844         * modules/unistr/u16-set: Likewise.
22845         * modules/unistr/u16-startswith: Likewise.
22846         * modules/unistr/u16-stpcpy: Likewise.
22847         * modules/unistr/u16-stpncpy: Likewise.
22848         * modules/unistr/u16-strcat: Likewise.
22849         * modules/unistr/u16-strchr: Likewise.
22850         * modules/unistr/u16-strcmp: Likewise.
22851         * modules/unistr/u16-strcoll: Likewise.
22852         * modules/unistr/u16-strcpy: Likewise.
22853         * modules/unistr/u16-strcspn: Likewise.
22854         * modules/unistr/u16-strdup: Likewise.
22855         * modules/unistr/u16-strlen: Likewise.
22856         * modules/unistr/u16-strmblen: Likewise.
22857         * modules/unistr/u16-strmbtouc: Likewise.
22858         * modules/unistr/u16-strncat: Likewise.
22859         * modules/unistr/u16-strncmp: Likewise.
22860         * modules/unistr/u16-strncpy: Likewise.
22861         * modules/unistr/u16-strnlen: Likewise.
22862         * modules/unistr/u16-strpbrk: Likewise.
22863         * modules/unistr/u16-strrchr: Likewise.
22864         * modules/unistr/u16-strspn: Likewise.
22865         * modules/unistr/u16-strstr: Likewise.
22866         * modules/unistr/u16-strtok: Likewise.
22867         * modules/unistr/u16-to-u32: Likewise.
22868         * modules/unistr/u16-to-u8: Likewise.
22869         * modules/unistr/u16-uctomb: Likewise.
22870         * modules/unistr/u32-check: Likewise.
22871         * modules/unistr/u32-chr: Likewise.
22872         * modules/unistr/u32-cmp: Likewise.
22873         * modules/unistr/u32-cmp2: Likewise.
22874         * modules/unistr/u32-cpy: Likewise.
22875         * modules/unistr/u32-cpy-alloc: Likewise.
22876         * modules/unistr/u32-endswith: Likewise.
22877         * modules/unistr/u32-mblen: Likewise.
22878         * modules/unistr/u32-mbsnlen: Likewise.
22879         * modules/unistr/u32-mbtouc: Likewise.
22880         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22881         * modules/unistr/u32-mbtoucr: Likewise.
22882         * modules/unistr/u32-move: Likewise.
22883         * modules/unistr/u32-next: Likewise.
22884         * modules/unistr/u32-prev: Likewise.
22885         * modules/unistr/u32-set: Likewise.
22886         * modules/unistr/u32-startswith: Likewise.
22887         * modules/unistr/u32-stpcpy: Likewise.
22888         * modules/unistr/u32-stpncpy: Likewise.
22889         * modules/unistr/u32-strcat: Likewise.
22890         * modules/unistr/u32-strchr: Likewise.
22891         * modules/unistr/u32-strcmp: Likewise.
22892         * modules/unistr/u32-strcoll: Likewise.
22893         * modules/unistr/u32-strcpy: Likewise.
22894         * modules/unistr/u32-strcspn: Likewise.
22895         * modules/unistr/u32-strdup: Likewise.
22896         * modules/unistr/u32-strlen: Likewise.
22897         * modules/unistr/u32-strmblen: Likewise.
22898         * modules/unistr/u32-strmbtouc: Likewise.
22899         * modules/unistr/u32-strncat: Likewise.
22900         * modules/unistr/u32-strncmp: Likewise.
22901         * modules/unistr/u32-strncpy: Likewise.
22902         * modules/unistr/u32-strnlen: Likewise.
22903         * modules/unistr/u32-strpbrk: Likewise.
22904         * modules/unistr/u32-strrchr: Likewise.
22905         * modules/unistr/u32-strspn: Likewise.
22906         * modules/unistr/u32-strstr: Likewise.
22907         * modules/unistr/u32-strtok: Likewise.
22908         * modules/unistr/u32-to-u16: Likewise.
22909         * modules/unistr/u32-to-u8: Likewise.
22910         * modules/unistr/u32-uctomb: Likewise.
22911         * modules/uniwbrk/u8-wordbreaks: Likewise.
22912         * modules/uniwbrk/u16-wordbreaks: Likewise.
22913         * modules/uniwbrk/u32-wordbreaks: Likewise.
22914         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22915         * modules/uniwbrk/wordbreak-property: Likewise.
22916         * modules/uniwidth/u8-strwidth: Likewise.
22917         * modules/uniwidth/u8-width: Likewise.
22918         * modules/uniwidth/u16-strwidth: Likewise.
22919         * modules/uniwidth/u16-width: Likewise.
22920         * modules/uniwidth/u32-strwidth: Likewise.
22921         * modules/uniwidth/u32-width: Likewise.
22922         * modules/uniwidth/width: Likewise.
22923         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22924         with $(LIBUNISTRING).
22925         * modules/unicase/ignorable-tests: Likewise.
22926         * modules/unicase/locale-language-tests: Likewise.
22927         * modules/unicase/tolower-tests: Likewise.
22928         * modules/unicase/totitle-tests: Likewise.
22929         * modules/unicase/toupper-tests: Likewise.
22930         * modules/unicase/u8-casecmp-tests: Likewise.
22931         * modules/unicase/u8-casecoll-tests: Likewise.
22932         * modules/unicase/u8-casefold-tests: Likewise.
22933         * modules/unicase/u8-is-cased-tests: Likewise.
22934         * modules/unicase/u8-is-casefolded-tests: Likewise.
22935         * modules/unicase/u8-is-lowercase-tests: Likewise.
22936         * modules/unicase/u8-is-titlecase-tests: Likewise.
22937         * modules/unicase/u8-is-uppercase-tests: Likewise.
22938         * modules/unicase/u8-tolower-tests: Likewise.
22939         * modules/unicase/u8-totitle-tests: Likewise.
22940         * modules/unicase/u8-toupper-tests: Likewise.
22941         * modules/unicase/u16-casecmp-tests: Likewise.
22942         * modules/unicase/u16-casecoll-tests: Likewise.
22943         * modules/unicase/u16-casefold-tests: Likewise.
22944         * modules/unicase/u16-is-cased-tests: Likewise.
22945         * modules/unicase/u16-is-casefolded-tests: Likewise.
22946         * modules/unicase/u16-is-lowercase-tests: Likewise.
22947         * modules/unicase/u16-is-titlecase-tests: Likewise.
22948         * modules/unicase/u16-is-uppercase-tests: Likewise.
22949         * modules/unicase/u16-tolower-tests: Likewise.
22950         * modules/unicase/u16-totitle-tests: Likewise.
22951         * modules/unicase/u16-toupper-tests: Likewise.
22952         * modules/unicase/u32-casecmp-tests: Likewise.
22953         * modules/unicase/u32-casecoll-tests: Likewise.
22954         * modules/unicase/u32-casefold-tests: Likewise.
22955         * modules/unicase/u32-is-cased-tests: Likewise.
22956         * modules/unicase/u32-is-casefolded-tests: Likewise.
22957         * modules/unicase/u32-is-lowercase-tests: Likewise.
22958         * modules/unicase/u32-is-titlecase-tests: Likewise.
22959         * modules/unicase/u32-is-uppercase-tests: Likewise.
22960         * modules/unicase/u32-tolower-tests: Likewise.
22961         * modules/unicase/u32-totitle-tests: Likewise.
22962         * modules/unicase/u32-toupper-tests: Likewise.
22963         * modules/unicase/ulc-casecmp-tests: Likewise.
22964         * modules/unicase/ulc-casecoll-tests: Likewise.
22965         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22966         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22967         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22968         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22969         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22970         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22971         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22972         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22973         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22974         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22975         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22976         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22977         * modules/unictype/bidicategory-byname-tests: Likewise.
22978         * modules/unictype/bidicategory-name-tests: Likewise.
22979         * modules/unictype/bidicategory-of-tests: Likewise.
22980         * modules/unictype/bidicategory-test-tests: Likewise.
22981         * modules/unictype/block-list-tests: Likewise.
22982         * modules/unictype/block-of-tests: Likewise.
22983         * modules/unictype/block-test-tests: Likewise.
22984         * modules/unictype/category-C-tests: Likewise.
22985         * modules/unictype/category-Cc-tests: Likewise.
22986         * modules/unictype/category-Cf-tests: Likewise.
22987         * modules/unictype/category-Cn-tests: Likewise.
22988         * modules/unictype/category-Co-tests: Likewise.
22989         * modules/unictype/category-Cs-tests: Likewise.
22990         * modules/unictype/category-L-tests: Likewise.
22991         * modules/unictype/category-Ll-tests: Likewise.
22992         * modules/unictype/category-Lm-tests: Likewise.
22993         * modules/unictype/category-Lo-tests: Likewise.
22994         * modules/unictype/category-Lt-tests: Likewise.
22995         * modules/unictype/category-Lu-tests: Likewise.
22996         * modules/unictype/category-M-tests: Likewise.
22997         * modules/unictype/category-Mc-tests: Likewise.
22998         * modules/unictype/category-Me-tests: Likewise.
22999         * modules/unictype/category-Mn-tests: Likewise.
23000         * modules/unictype/category-N-tests: Likewise.
23001         * modules/unictype/category-Nd-tests: Likewise.
23002         * modules/unictype/category-Nl-tests: Likewise.
23003         * modules/unictype/category-No-tests: Likewise.
23004         * modules/unictype/category-P-tests: Likewise.
23005         * modules/unictype/category-Pc-tests: Likewise.
23006         * modules/unictype/category-Pd-tests: Likewise.
23007         * modules/unictype/category-Pe-tests: Likewise.
23008         * modules/unictype/category-Pf-tests: Likewise.
23009         * modules/unictype/category-Pi-tests: Likewise.
23010         * modules/unictype/category-Po-tests: Likewise.
23011         * modules/unictype/category-Ps-tests: Likewise.
23012         * modules/unictype/category-S-tests: Likewise.
23013         * modules/unictype/category-Sc-tests: Likewise.
23014         * modules/unictype/category-Sk-tests: Likewise.
23015         * modules/unictype/category-Sm-tests: Likewise.
23016         * modules/unictype/category-So-tests: Likewise.
23017         * modules/unictype/category-Z-tests: Likewise.
23018         * modules/unictype/category-Zl-tests: Likewise.
23019         * modules/unictype/category-Zp-tests: Likewise.
23020         * modules/unictype/category-Zs-tests: Likewise.
23021         * modules/unictype/category-and-not-tests: Likewise.
23022         * modules/unictype/category-and-tests: Likewise.
23023         * modules/unictype/category-byname-tests: Likewise.
23024         * modules/unictype/category-name-tests: Likewise.
23025         * modules/unictype/category-none-tests: Likewise.
23026         * modules/unictype/category-of-tests: Likewise.
23027         * modules/unictype/category-or-tests: Likewise.
23028         * modules/unictype/category-test-withtable-tests: Likewise.
23029         * modules/unictype/combining-class-tests: Likewise.
23030         * modules/unictype/ctype-alnum-tests: Likewise.
23031         * modules/unictype/ctype-alpha-tests: Likewise.
23032         * modules/unictype/ctype-blank-tests: Likewise.
23033         * modules/unictype/ctype-cntrl-tests: Likewise.
23034         * modules/unictype/ctype-digit-tests: Likewise.
23035         * modules/unictype/ctype-graph-tests: Likewise.
23036         * modules/unictype/ctype-lower-tests: Likewise.
23037         * modules/unictype/ctype-print-tests: Likewise.
23038         * modules/unictype/ctype-punct-tests: Likewise.
23039         * modules/unictype/ctype-space-tests: Likewise.
23040         * modules/unictype/ctype-upper-tests: Likewise.
23041         * modules/unictype/ctype-xdigit-tests: Likewise.
23042         * modules/unictype/decimal-digit-tests: Likewise.
23043         * modules/unictype/digit-tests: Likewise.
23044         * modules/unictype/mirror-tests: Likewise.
23045         * modules/unictype/numeric-tests: Likewise.
23046         * modules/unictype/property-alphabetic-tests: Likewise.
23047         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23048         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23049         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23050         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23051         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23052         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23053         * modules/unictype/property-bidi-control-tests: Likewise.
23054         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23055         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23056         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23057         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23058         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23059         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23060         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23061         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23062         * modules/unictype/property-bidi-pdf-tests: Likewise.
23063         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23064         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23065         * modules/unictype/property-byname-tests: Likewise.
23066         * modules/unictype/property-combining-tests: Likewise.
23067         * modules/unictype/property-composite-tests: Likewise.
23068         * modules/unictype/property-currency-symbol-tests: Likewise.
23069         * modules/unictype/property-dash-tests: Likewise.
23070         * modules/unictype/property-decimal-digit-tests: Likewise.
23071         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23072         * modules/unictype/property-deprecated-tests: Likewise.
23073         * modules/unictype/property-diacritic-tests: Likewise.
23074         * modules/unictype/property-extender-tests: Likewise.
23075         * modules/unictype/property-format-control-tests: Likewise.
23076         * modules/unictype/property-grapheme-base-tests: Likewise.
23077         * modules/unictype/property-grapheme-extend-tests: Likewise.
23078         * modules/unictype/property-grapheme-link-tests: Likewise.
23079         * modules/unictype/property-hex-digit-tests: Likewise.
23080         * modules/unictype/property-hyphen-tests: Likewise.
23081         * modules/unictype/property-id-continue-tests: Likewise.
23082         * modules/unictype/property-id-start-tests: Likewise.
23083         * modules/unictype/property-ideographic-tests: Likewise.
23084         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23085         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23086         * modules/unictype/property-ignorable-control-tests: Likewise.
23087         * modules/unictype/property-iso-control-tests: Likewise.
23088         * modules/unictype/property-join-control-tests: Likewise.
23089         * modules/unictype/property-left-of-pair-tests: Likewise.
23090         * modules/unictype/property-line-separator-tests: Likewise.
23091         * modules/unictype/property-logical-order-exception-tests: Likewise.
23092         * modules/unictype/property-lowercase-tests: Likewise.
23093         * modules/unictype/property-math-tests: Likewise.
23094         * modules/unictype/property-non-break-tests: Likewise.
23095         * modules/unictype/property-not-a-character-tests: Likewise.
23096         * modules/unictype/property-numeric-tests: Likewise.
23097         * modules/unictype/property-other-alphabetic-tests: Likewise.
23098         * modules/unictype/property-other-default-ignorable-code-point-tests:
23099         Likewise.
23100         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23101         * modules/unictype/property-other-id-continue-tests: Likewise.
23102         * modules/unictype/property-other-id-start-tests: Likewise.
23103         * modules/unictype/property-other-lowercase-tests: Likewise.
23104         * modules/unictype/property-other-math-tests: Likewise.
23105         * modules/unictype/property-other-uppercase-tests: Likewise.
23106         * modules/unictype/property-paired-punctuation-tests: Likewise.
23107         * modules/unictype/property-paragraph-separator-tests: Likewise.
23108         * modules/unictype/property-pattern-syntax-tests: Likewise.
23109         * modules/unictype/property-pattern-white-space-tests: Likewise.
23110         * modules/unictype/property-private-use-tests: Likewise.
23111         * modules/unictype/property-punctuation-tests: Likewise.
23112         * modules/unictype/property-quotation-mark-tests: Likewise.
23113         * modules/unictype/property-radical-tests: Likewise.
23114         * modules/unictype/property-sentence-terminal-tests: Likewise.
23115         * modules/unictype/property-soft-dotted-tests: Likewise.
23116         * modules/unictype/property-space-tests: Likewise.
23117         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23118         * modules/unictype/property-test-tests: Likewise.
23119         * modules/unictype/property-titlecase-tests: Likewise.
23120         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23121         * modules/unictype/property-unified-ideograph-tests: Likewise.
23122         * modules/unictype/property-uppercase-tests: Likewise.
23123         * modules/unictype/property-variation-selector-tests: Likewise.
23124         * modules/unictype/property-white-space-tests: Likewise.
23125         * modules/unictype/property-xid-continue-tests: Likewise.
23126         * modules/unictype/property-xid-start-tests: Likewise.
23127         * modules/unictype/property-zero-width-tests: Likewise.
23128         * modules/unictype/scripts-tests: Likewise.
23129         * modules/unictype/syntax-c-ident-tests: Likewise.
23130         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23131         * modules/unictype/syntax-java-ident-tests: Likewise.
23132         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23133         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23134         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23135         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23136         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23137         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23138         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23139         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23140         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23141         * modules/uniname/uniname-tests: Likewise.
23142         * modules/uninorm/canonical-decomposition-tests: Likewise.
23143         * modules/uninorm/compat-decomposition-tests: Likewise.
23144         * modules/uninorm/composition-tests: Likewise.
23145         * modules/uninorm/decomposing-form-tests: Likewise.
23146         * modules/uninorm/decomposition-tests: Likewise.
23147         * modules/uninorm/filter-tests: Likewise.
23148         * modules/uninorm/nfc-tests: Likewise.
23149         * modules/uninorm/nfd-tests: Likewise.
23150         * modules/uninorm/nfkc-tests: Likewise.
23151         * modules/uninorm/nfkd-tests: Likewise.
23152         * modules/uninorm/u8-normcmp-tests: Likewise.
23153         * modules/uninorm/u8-normcoll-tests: Likewise.
23154         * modules/uninorm/u16-normcmp-tests: Likewise.
23155         * modules/uninorm/u16-normcoll-tests: Likewise.
23156         * modules/uninorm/u32-normcmp-tests: Likewise.
23157         * modules/uninorm/u32-normcoll-tests: Likewise.
23158         * modules/unistdio/u8-asnprintf-tests: Likewise.
23159         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23160         * modules/unistdio/u8-vasprintf-tests: Likewise.
23161         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23162         * modules/unistdio/u8-vsprintf-tests: Likewise.
23163         * modules/unistdio/u16-asnprintf-tests: Likewise.
23164         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23165         * modules/unistdio/u16-vasprintf-tests: Likewise.
23166         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23167         * modules/unistdio/u16-vsprintf-tests: Likewise.
23168         * modules/unistdio/u32-asnprintf-tests: Likewise.
23169         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23170         * modules/unistdio/u32-vasprintf-tests: Likewise.
23171         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23172         * modules/unistdio/u32-vsprintf-tests: Likewise.
23173         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23174         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23175         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23176         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23177         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23178         * modules/unistr/u8-check-tests: Likewise.
23179         * modules/unistr/u8-chr-tests: Likewise.
23180         * modules/unistr/u8-cmp-tests: Likewise.
23181         * modules/unistr/u8-cmp2-tests: Likewise.
23182         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23183         * modules/unistr/u8-cpy-tests: Likewise.
23184         * modules/unistr/u8-mblen-tests: Likewise.
23185         * modules/unistr/u8-mbsnlen-tests: Likewise.
23186         * modules/unistr/u8-mbtouc-tests: Likewise.
23187         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23188         * modules/unistr/u8-mbtoucr-tests: Likewise.
23189         * modules/unistr/u8-move-tests: Likewise.
23190         * modules/unistr/u8-next-tests: Likewise.
23191         * modules/unistr/u8-prev-tests: Likewise.
23192         * modules/unistr/u8-set-tests: Likewise.
23193         * modules/unistr/u8-stpcpy-tests: Likewise.
23194         * modules/unistr/u8-stpncpy-tests: Likewise.
23195         * modules/unistr/u8-strcat-tests: Likewise.
23196         * modules/unistr/u8-strcmp-tests: Likewise.
23197         * modules/unistr/u8-strcoll-tests: Likewise.
23198         * modules/unistr/u8-strcpy-tests: Likewise.
23199         * modules/unistr/u8-strdup-tests: Likewise.
23200         * modules/unistr/u8-strlen-tests: Likewise.
23201         * modules/unistr/u8-strmblen-tests: Likewise.
23202         * modules/unistr/u8-strmbtouc-tests: Likewise.
23203         * modules/unistr/u8-strncat-tests: Likewise.
23204         * modules/unistr/u8-strncmp-tests: Likewise.
23205         * modules/unistr/u8-strncpy-tests: Likewise.
23206         * modules/unistr/u8-strnlen-tests: Likewise.
23207         * modules/unistr/u8-to-u16-tests: Likewise.
23208         * modules/unistr/u8-to-u32-tests: Likewise.
23209         * modules/unistr/u8-uctomb-tests: Likewise.
23210         * modules/unistr/u16-check-tests: Likewise.
23211         * modules/unistr/u16-chr-tests: Likewise.
23212         * modules/unistr/u16-cmp-tests: Likewise.
23213         * modules/unistr/u16-cmp2-tests: Likewise.
23214         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23215         * modules/unistr/u16-cpy-tests: Likewise.
23216         * modules/unistr/u16-mblen-tests: Likewise.
23217         * modules/unistr/u16-mbsnlen-tests: Likewise.
23218         * modules/unistr/u16-mbtouc-tests: Likewise.
23219         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23220         * modules/unistr/u16-mbtoucr-tests: Likewise.
23221         * modules/unistr/u16-move-tests: Likewise.
23222         * modules/unistr/u16-next-tests: Likewise.
23223         * modules/unistr/u16-prev-tests: Likewise.
23224         * modules/unistr/u16-set-tests: Likewise.
23225         * modules/unistr/u16-stpcpy-tests: Likewise.
23226         * modules/unistr/u16-stpncpy-tests: Likewise.
23227         * modules/unistr/u16-strcat-tests: Likewise.
23228         * modules/unistr/u16-strcmp-tests: Likewise.
23229         * modules/unistr/u16-strcoll-tests: Likewise.
23230         * modules/unistr/u16-strcpy-tests: Likewise.
23231         * modules/unistr/u16-strdup-tests: Likewise.
23232         * modules/unistr/u16-strlen-tests: Likewise.
23233         * modules/unistr/u16-strmblen-tests: Likewise.
23234         * modules/unistr/u16-strmbtouc-tests: Likewise.
23235         * modules/unistr/u16-strncat-tests: Likewise.
23236         * modules/unistr/u16-strncmp-tests: Likewise.
23237         * modules/unistr/u16-strncpy-tests: Likewise.
23238         * modules/unistr/u16-strnlen-tests: Likewise.
23239         * modules/unistr/u16-to-u32-tests: Likewise.
23240         * modules/unistr/u16-to-u8-tests: Likewise.
23241         * modules/unistr/u16-uctomb-tests: Likewise.
23242         * modules/unistr/u32-check-tests: Likewise.
23243         * modules/unistr/u32-chr-tests: Likewise.
23244         * modules/unistr/u32-cmp-tests: Likewise.
23245         * modules/unistr/u32-cmp2-tests: Likewise.
23246         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23247         * modules/unistr/u32-cpy-tests: Likewise.
23248         * modules/unistr/u32-mblen-tests: Likewise.
23249         * modules/unistr/u32-mbsnlen-tests: Likewise.
23250         * modules/unistr/u32-mbtouc-tests: Likewise.
23251         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23252         * modules/unistr/u32-mbtoucr-tests: Likewise.
23253         * modules/unistr/u32-move-tests: Likewise.
23254         * modules/unistr/u32-next-tests: Likewise.
23255         * modules/unistr/u32-prev-tests: Likewise.
23256         * modules/unistr/u32-set-tests: Likewise.
23257         * modules/unistr/u32-stpcpy-tests: Likewise.
23258         * modules/unistr/u32-stpncpy-tests: Likewise.
23259         * modules/unistr/u32-strcat-tests: Likewise.
23260         * modules/unistr/u32-strcmp-tests: Likewise.
23261         * modules/unistr/u32-strcoll-tests: Likewise.
23262         * modules/unistr/u32-strcpy-tests: Likewise.
23263         * modules/unistr/u32-strdup-tests: Likewise.
23264         * modules/unistr/u32-strlen-tests: Likewise.
23265         * modules/unistr/u32-strmblen-tests: Likewise.
23266         * modules/unistr/u32-strmbtouc-tests: Likewise.
23267         * modules/unistr/u32-strncat-tests: Likewise.
23268         * modules/unistr/u32-strncmp-tests: Likewise.
23269         * modules/unistr/u32-strncpy-tests: Likewise.
23270         * modules/unistr/u32-strnlen-tests: Likewise.
23271         * modules/unistr/u32-to-u16-tests: Likewise.
23272         * modules/unistr/u32-to-u8-tests: Likewise.
23273         * modules/unistr/u32-uctomb-tests: Likewise.
23274         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23275         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23276         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23277         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23278         * modules/uniwidth/u8-strwidth-tests: Likewise.
23279         * modules/uniwidth/u8-width-tests: Likewise.
23280         * modules/uniwidth/u16-strwidth-tests: Likewise.
23281         * modules/uniwidth/u16-width-tests: Likewise.
23282         * modules/uniwidth/u32-strwidth-tests: Likewise.
23283         * modules/uniwidth/u32-width-tests: Likewise.
23284         * modules/uniwidth/width-tests: Likewise.
23285
23286 2010-05-18  Richard Jones  <rjones@redhat.com>
23287
23288         doc: users.txt: list hivex
23289         * users.txt: Add hivex.
23290
23291 2010-05-18  Richard Jones  <rjones@redhat.com>
23292
23293         doc: users.txt: list febootstrap
23294         * users.txt: Add febootstrap.
23295
23296 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23297
23298         bootstrap: fix an error when gnulib is not used as a git submodule
23299         * build-aux/bootstrap (gnulib_path): If its length is zero then
23300         assign "gnulib" to it.
23301         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23302
23303 2010-05-16  Bruno Haible  <bruno@clisp.org>
23304
23305         Avoid autoconf warnings about AM_ICONV.
23306         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23307         2.64.
23308
23309 2010-05-16  Bruno Haible  <bruno@clisp.org>
23310
23311         absolute-header: Make the macro usable in more situations.
23312         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23313         from gl_ABSOLUTE_HEADER.
23314         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23315
23316 2010-05-16  James Youngman  <jay@gnu.org>
23317
23318         doc: update users.txt
23319         * users.txt: Add CSSC.
23320
23321 2010-05-16  Jim Meyering  <meyering@redhat.com>
23322
23323         init.sh: fix an error in the previous change; add more comments
23324         * tests/init.sh: Compare exit code in loop against 9, not 2.
23325         Patch by Bruno Haible.
23326         Make the two tests more similar by adding an empty "then" clause.
23327         Add comments.
23328
23329         init.sh: avoid unnecessary shell re-exec
23330         * tests/init.sh: Improve the re-exec-required check to first test the
23331         current shell.  If it passes the test, do not search for a shell that
23332         does pass, and do not re-exec.  This test is particularly contorted to
23333         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23334         of $(...) evokes a syntax error and causes immediate shell exit with
23335         status 2.  Bruno Haible reported that the re-exec made it impossible
23336         to single-step through any init.sh-using script.
23337
23338 2010-05-16  Bruno Haible  <bruno@clisp.org>
23339
23340         Fix collision between gnulib's and libintl's printf replacements.
23341         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23342         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23343         (printf): When using GNU C, map the __printf__ function to rpl_printf
23344         via __asm__. When not using GNU C, define rpl_printf instead of
23345         __printf__.
23346         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23347         commit.
23348         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23349         commit.
23350         * m4/asm-underscore.m4: New file.
23351         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23352         * modules/stdio (Files): Add m4/asm-underscore.m4.
23353         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23354         Reported by Ben Pfaff.
23355
23356 2010-05-16  Bruno Haible  <bruno@clisp.org>
23357
23358         verify: Avoid skipping the test on openSUSE 11.0.
23359         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23360
23361 2010-05-13  Bruno Haible  <bruno@clisp.org>
23362
23363         Avoid useless warnings from G++.
23364         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23365         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23366         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23367
23368 2010-05-11  Jim Meyering  <meyering@redhat.com>
23369
23370         maint.mk: tweak preceding change
23371         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23372         regexps tighter by anchoring at EOL, and make the new group "shy"
23373         for slightly decreased overhead.
23374
23375 2010-05-11  Eric Blake  <eblake@redhat.com>
23376
23377         maint.mk: gnulib doesn't guarantee NSIG
23378         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23379
23380 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23381
23382         test-pwrite.c: Remove unused variable declaration.
23383         * tests/test-pwrite.c (main): Remove read_buf declaration.
23384
23385         Remove useless test-pwrite.sh file.
23386         * tests/test-pwrite.sh: Delete file.
23387         * modules/pwrite-tests: Remove references.
23388         Reported by Bruno Haible.
23389
23390 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23391
23392         init.sh: fix a typo
23393         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23394
23395 2010-05-10  Jim Meyering  <meyering@redhat.com>
23396
23397         maint.mk: avoid using a temporary file in the always-defined-macros check
23398         * top/maint.mk (.re-defmac): Remove rule.
23399         (gl_trap_): Remove definition.
23400         (sc_prohibit_always-defined_macros): Rewrite not to create and
23401         depend on a temporary file.  Instead, depend on GNU grep's ability
23402         to read a list of regular expressions from stdin when given "-f -".
23403
23404 2010-05-09  Bruno Haible  <bruno@clisp.org>
23405
23406         Update to GNU gettext 0.18, part 1.
23407         * m4/gettext.m4: Update to GNU gettext 0.18.
23408         * m4/intl.m4: Likewise.
23409         * m4/po.m4: Likewise.
23410         * modules/gettext (Files): Add m4/fcntl-o.m4.
23411         (configure.ac): Require gettext infrastructure from version 0.18.
23412
23413 2010-05-09  Jim Meyering  <meyering@redhat.com>
23414
23415         init.sh: enable MALLOC_PERTURB_
23416         * tests/init.sh: Enable glibc's malloc-perturbing option.
23417
23418         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23419         With my recent change in init.sh from the two-line form:
23420             -#   : ${srcdir=.}
23421             -#   . "$srcdir/init.sh"; path_prepend_ .
23422             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23423         I noticed that using the one-line form would cause this test
23424         to fail with a false-positive, or to stop working altogether,
23425         depending on whether help-version changed or all the tests did.
23426         * top/maint.mk (_hv_regex): Remove this definition.
23427         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23428         (_hv_regex_strong): Use a stronger regex to check for conformance.
23429         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23430         Give a separate diagnostic for lack of conforming use.
23431
23432         maint.mk: prohibit definition of symbols defined by gnulib
23433         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23434         definition of symbols defined by gnulib.
23435
23436 2010-05-09  Bruno Haible  <bruno@clisp.org>
23437
23438         acl: Avoid test failure on Cygwin-hosted mingw.
23439         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23440
23441 2010-05-09  Bruno Haible  <bruno@clisp.org>
23442
23443         error: Use system's fcntl function.
23444         * lib/error.c (fcntl): Undefine.
23445
23446 2010-05-09  Jim Meyering  <meyering@redhat.com>
23447
23448         verify: adjust formatting to be more consistent
23449         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23450         argument-list '('s, and after one comma.
23451
23452 2010-05-09  Bruno Haible  <bruno@clisp.org>
23453
23454         error: More reliable output on mingw.
23455         * lib/error.c: Include <windows.h>.
23456         (is_open): New function.
23457         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23458         defined.
23459
23460 2010-05-09  Bruno Haible  <bruno@clisp.org>
23461
23462         vasnprintf: Fix syntax errors in libintl build on mingw.
23463         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23464         pad_ourselves and prec_ourselves after use.
23465
23466 2010-05-08  Bruno Haible  <bruno@clisp.org>
23467
23468         * lib/config.charset: Update comments for Cygwin 1.7.
23469         * lib/localcharset.c: Likewise.
23470
23471 2010-05-07  Jim Meyering  <meyering@redhat.com>
23472
23473         init.sh: improve comments
23474         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23475         . "${srcdir=.}/init.sh"; path_prepend_ .
23476         Add a note about path_prepend_ and the alternative of using
23477         TESTS_ENVIRONMENT.
23478
23479 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23480
23481         exclude: Unescape hashed patterns in wildcard mode.
23482         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23483         to the hash list.
23484         * tests/test-exclude8.sh: New test case.
23485         * modules/exclude-tests: Add new test.
23486
23487 2010-05-05  Eric Blake  <eblake@redhat.com>
23488
23489         verify: automate tests
23490         * modules/verify-tests: New module.
23491         * tests/test-verify.sh: New file.
23492         * tests/test-verify.c: Guard each negative test with a unique id.
23493         Also avoid warning about unused left hand of comma expressions.
23494
23495 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23496
23497         Further improvements to verify.h, suggested by Eric Blake.
23498         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23499         the GL_* versions, to avoid collision with OpenGL.
23500         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23501         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23502         than testing merely whether it's defined.
23503
23504         Modify verify.h to pacify gcc -Wredundant_decls.
23505         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23506         These use the prefix "GL_" since they're likely to be useful elsewhere.
23507         We may need to break them out into a different .h file.
23508         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23509         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23510         of verify_function__.
23511
23512 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23513
23514         Tests for module pwrite.
23515         * modules/pwrite-tests: New file.
23516         * tests/test-pwrite.sh: New file.
23517         * tests/test-pwrite.c: New file.
23518
23519         New module pwrite.
23520         * lib/unistd.in.h (pwrite): New declaration.
23521         * lib/pwrite.c: New file, from glibc with modifications.
23522         * m4/pwrite.m4: New file.
23523         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23524         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23525         REPLACE_PWRITE.
23526         * modules/pwrite: New file.
23527         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23528         REPLACE_PWRITE.
23529         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23530         * doc/posix-functions/pwrite.texi: Mention the new module.
23531
23532 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23533
23534         pread: Update documentation.
23535         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23536
23537 2010-05-04  Eric Blake  <eblake@redhat.com>
23538
23539         docs: update cygwin progress
23540         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23541         this bug.
23542         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23543         Added in cygwin 1.7.2.
23544         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23545         Likewise.
23546         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23547         Likewise.
23548         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23549         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23550         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23551         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23552         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23553         Mention nproc module.
23554         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23555         bug in cygwin 1.7.5 addition.
23556         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23557         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23558         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23559         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23560         1.7.5.
23561         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23562         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23563         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23564         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23565         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23566         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23567         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23568         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23569         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23570         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23571         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23572         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23573         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23574         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23575         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23576         Likewise.
23577         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23578         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23579         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23580         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23581         Likewise.
23582         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23583         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23584         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23585         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23586         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23587         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23588         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23589         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23590         Likewise.
23591         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23592         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23593         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23594         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23595         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23596         Likewise.
23597         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23598         Likewise.
23599         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23600         Likewise.
23601         * doc/glibc-functions/xdrrec_endofrecord.texi
23602         (xdrrec_endofrecord): Likewise.
23603         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23604         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23605         Likewise.
23606         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23607         Likewise.
23608
23609 2010-05-04  Jim Meyering  <meyering@redhat.com>
23610
23611         gendocs.sh: make its "-s FILE" option more useful
23612         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23613         $PACKAGE to reflect the probably-different basename of "FILE".
23614
23615 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23616
23617         bootstrap: don't ignore download_po_files failure
23618         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23619         failure.
23620
23621 2010-05-03  Jim Meyering  <meyering@redhat.com>
23622
23623         maint.mk: allow to pass options to gendocs.sh
23624         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23625         (gendocs_options_): New overridable variable.
23626
23627         gnu-web-doc-update: don't ignore configure or build failure
23628         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23629
23630         announce-gen: backslash-escape '@'s in --help output
23631         * build-aux/announce-gen: Fix syntax errors.
23632
23633         maint.mk, announce-gen: allow project-specific announcement mail headers
23634         * top/maint.mk (translation_project_): Define default.
23635         (announcement_Cc_, announcement_mail_headers_): Likewise.
23636         (announcement): Invoke announce-gen with new --mail-headers option.
23637         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23638
23639         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23640         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23641         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23642         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23643         line in the "err2" output file when running "make check" in verbose
23644         mode (i.e., with set -x enabled).
23645
23646 2010-05-03  Bruno Haible  <bruno@clisp.org>
23647
23648         wctob: Fix for weird platforms.
23649         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23650         argument value.
23651
23652 2010-05-03  Jim Meyering  <meyering@redhat.com>
23653
23654         maint.mk: prohibit unwarranted use of <strings.h>
23655         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23656         strings.h in a file that does not also use strcasecmp, strncasecmp,
23657         ffs or ffsll.
23658
23659         maint.mk: remove obsolete comments
23660         * top/maint.mk: Remove stale, commented-out rules.
23661
23662 2010-05-02  Bruno Haible  <bruno@clisp.org>
23663
23664         wcwidth: Declare also when it's aliased.
23665         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23666         macro.
23667
23668 2010-05-02  Bruno Haible  <bruno@clisp.org>
23669
23670         Fix regression from 2010-04-25.
23671         * gnulib-tool (func_modules_transitive_closure): Check the status of
23672         all modules, not only of the tests that are of the form foo-tests where
23673         foo is a module.
23674
23675 2010-05-02  Bruno Haible  <bruno@clisp.org>
23676
23677         wctob: Work around nasty Cygwin 1.7.2 bug.
23678         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23679         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23680
23681 2010-05-01  Bruno Haible  <bruno@clisp.org>
23682
23683         fpurge: Sharper test.
23684         * tests/test-fpurge.c (main): Add one more ftell check.
23685         * modules/fpurge-tests (Depends-on): Add ftell.
23686         Suggested by Eric Blake.
23687
23688 2010-05-01  Bruno Haible  <bruno@clisp.org>
23689
23690         ftello: Another test.
23691         * tests/test-ftello3.c: New file.
23692         * modules/ftello-tests (Files): Add it.
23693         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23694         MOSTLYCLEANFILES.
23695
23696         ftell: Another test.
23697         * tests/test-ftell3.c: New file.
23698         * modules/ftell-tests (Files): Add it.
23699         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23700         MOSTLYCLEANFILES.
23701
23702 2010-05-01  Bruno Haible  <bruno@clisp.org>
23703
23704         ftell, ftello: Work around Solaris bug.
23705         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23706         * lib/ftello.c: Include stdio-impl.h.
23707         (ftello): On Solaris, when _IOWRT is set, compute the result without
23708         looking at _IOREAD.
23709         * modules/ftello (Files): Add lib/stdio-impl.h.
23710         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23711         * doc/posix-functions/ftello.texi: Likewise.
23712         Reported by Eric Blake.
23713
23714 2010-05-01  Bruno Haible  <bruno@clisp.org>
23715
23716         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23717         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23718         the _IOWRT flag is also set.
23719
23720 2010-05-01  Bruno Haible  <bruno@clisp.org>
23721
23722         Fix doc about a HP-UX stdio bug.
23723         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23724         * doc/posix-functions/ftello.texi: Likewise.
23725
23726 2010-05-01  Bruno Haible  <bruno@clisp.org>
23727
23728         lseek test: Fix failure on Solaris.
23729         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23730         output.
23731
23732 2010-04-30  Jim Meyering  <meyering@redhat.com>
23733
23734         bootstrap: don't ignore failure to generate po*/Makevars
23735         * build-aux/bootstrap (with_gettext): Don't ignore failure
23736         to create po/Makevars or runtime-po/Makevars.
23737
23738 2010-04-29  Eric Blake  <eblake@redhat.com>
23739
23740         headers: relax license to LGPLv2+
23741         * modules/fcntl-h (License): Relax license.
23742         * modules/getopt-posix (License): Likewise.
23743         * modules/locale (License): Likewise.
23744         * modules/math (License): Likewise.
23745         * modules/pty (License): Likewise.
23746         * modules/sched (License): Likewise.
23747         * modules/search (License): Likewise.
23748         * modules/spawn (License): Likewise.
23749         * modules/stdarg (License): Likewise.
23750         * modules/sysexits (License): Likewise.
23751
23752 2010-04-29  Jim Meyering  <meyering@redhat.com>
23753
23754         inttypes: relax license to LGPLv2+
23755         * modules/inttypes (License): Relax license.
23756
23757 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23758
23759         * top/maint.mk (indent): Run twice to produce idempotent results.
23760
23761 2010-04-28  Bruno Haible  <bruno@clisp.org>
23762
23763         getdate: Generate getdate.c in the source directory.
23764         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23765         MOSTLYCLEANFILES.
23766         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23767
23768 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23769
23770         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23771         is not declared as a const *; avoid warnings in that case.
23772
23773 2010-04-28  Eric Blake  <eblake@redhat.com>
23774
23775         canonicalize-lgpl: avoid compiler warning
23776         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23777         declaration' / 'extraneous semicolon' warning with some compilers.
23778         Reported by Andreas Gruenbacher.
23779
23780 2010-04-28  Jim Meyering  <meyering@redhat.com>
23781
23782         init.sh: ensure a more reliable exit status when exiting via trap
23783         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23784         Inspired by patches from Dmitry V. Levin.
23785         Also trap on signal 3 (SIGQUIT).
23786
23787 2010-04-27  Bruno Haible  <bruno@clisp.org>
23788
23789         Update doc about utimes().
23790         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23791         'utimens' module.
23792         Reported by Andreas Gruenbacher <agruen@suse.de>.
23793
23794 2010-04-27  Eric Blake  <eblake@redhat.com>
23795
23796         full-read, full-write: relax license
23797         * modules/full-read (License): Drop to LGPLv2+.
23798         * modules/full-write (License): Likewise.
23799         * modules/safe-read (License): Likewise.
23800         * modules/safe-write (License): Likewise.
23801
23802         pthread: mention library for linking
23803         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23804
23805 2010-04-27  Jim Meyering  <meyering@redhat.com>
23806
23807         maint.mk: fix a bug introduced in last change
23808         * top/maint.mk (gl_assured_headers_): Now that all names are on
23809         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23810         is not anchored to end of word, it should be adequate.
23811
23812         maint.mk: avoid side-effect in latest syntax-check
23813         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23814         to run commands via $(shell...), and hence to incur cost only when
23815         the new rule is actually run.
23816
23817         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23818         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23819         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23820         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23821         (gl_assured_headers_, az_, AZ_): Define.
23822         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23823
23824 2010-04-26  Jim Meyering  <jim@meyering.net>
23825             Bruno Haible  <bruno@clisp.org>
23826
23827         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23828         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23829         Prompted by an exchange with Gilles Espinasse.
23830
23831 2010-04-26  Jim Meyering  <meyering@redhat.com>
23832
23833         git-version-gen: aesthetic tweak
23834         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23835         so that the command remains on a single line.
23836
23837 2010-04-26  Eric Blake  <eblake@redhat.com>
23838
23839         git-version-gen: allow use on EBCDIC hosts
23840         * build-aux/git-version-gen (dirty): Use literal rather than tying
23841         ourselves to ascii.
23842         Reported by Steve Goetze.
23843
23844 2010-04-25  Bruno Haible  <bruno@clisp.org>
23845
23846         netdb: Add support for GNULIB_POSIXCHECK.
23847         * lib/netdb.in.h: Include warn-on-use.h.
23848         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23849         functions are used when GNULIB_POSIXCHECK is defined and the
23850         getaddrinfo module is not in use.
23851         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23852         freeaddrinfo, gai_strerror, getnameinfo are declared.
23853         * modules/netdb (Depends-on): Add warn-on-use.
23854         (Makefile.am): Include warn-on-use.h in netdb.h.
23855
23856 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23857
23858         build: avoid "make check" failure without .git/ directory
23859         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23860         there is no .git/ directory.
23861
23862 2010-04-25  Bruno Haible  <bruno@clisp.org>
23863
23864         ptsname: Fix misuse of ttyname_r.
23865         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23866         of errno.
23867
23868 2010-04-25  Bruno Haible  <bruno@clisp.org>
23869
23870         ttyname_r: Make it work on Solaris 10.
23871         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23872         if the system function has the POSIX declaration. Test whether the
23873         function fails if the buffer is less than 128 bytes large.
23874         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23875         system's ttyname_r function. Provide a reasonably large buffer.
23876         * modules/ttyname_r (Depends-on): Add extensions.
23877         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23878
23879 2010-04-25  Bruno Haible  <bruno@clisp.org>
23880
23881         Use the 'extensions' module for some more functions on Solaris.
23882         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23883         module.
23884         * doc/posix-functions/ctime_r.texi: Likewise.
23885         * doc/posix-functions/getgrgid_r.texi: Likewise.
23886         * doc/posix-functions/getgrnam_r.texi: Likewise.
23887         * doc/posix-functions/getpwnam_r.texi: Likewise.
23888         * doc/posix-functions/getpwuid_r.texi: Likewise.
23889         * doc/posix-functions/readdir_r.texi: Likewise.
23890         * doc/posix-functions/sigwait.texi: Likewise.
23891         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23892         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23893
23894 2010-04-25  Bruno Haible  <bruno@clisp.org>
23895
23896         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23897         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23898         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23899         * lib/ttyname_r.c: Include <limits.h>.
23900         (ttyname_r): Define using the system's ttyname_r function, if it exists
23901         and not on Solaris.
23902         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23903         set.
23904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23905         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23906         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23907         Reported by Simon Josefsson.
23908
23909 2010-04-25  Bruno Haible  <bruno@clisp.org>
23910
23911         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23912         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23913         * doc/posix-functions/ctime_r.texi: Likewise.
23914         * doc/posix-functions/getgrgid_r.texi: Likewise.
23915         * doc/posix-functions/getgrnam_r.texi: Likewise.
23916         * doc/posix-functions/getlogin_r.texi: Likewise.
23917         * doc/posix-functions/getpwnam_r.texi: Likewise.
23918         * doc/posix-functions/getpwuid_r.texi: Likewise.
23919         * doc/posix-functions/readdir_r.texi: Likewise.
23920         * doc/posix-functions/sigwait.texi: Likewise.
23921         * doc/posix-functions/ttyname_r.texi: Likewise.
23922         Reported by Simon Josefsson.
23923
23924 2010-04-25  Bruno Haible  <bruno@clisp.org>
23925
23926         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23927         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23928         also to --create-testdir.
23929         (func_acceptable): Don't consider the status of *-tests modules here.
23930         (func_modules_transitive_closure): Consider it here, before including a
23931         test module.
23932         (func_import, func_create_testdir): Set inc_all_direct_tests,
23933         inc_all_indirect_tests.
23934         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23935         --create-testdir and --create-megatestdir.
23936
23937 2010-04-25  Bruno Haible  <bruno@clisp.org>
23938
23939         gnulib-tool: Add --without-*-tests options.
23940         * gnulib-tool (func_usage): Document the --without-*-tests options.
23941         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23942         excl_unportable_tests): New variables.
23943         Fail if they are specified with --import or --update.
23944         (func_acceptable): Respect the excl_*_tests variables.
23945         (func_import): Set the excl_*_tests variables to empty.
23946
23947 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23948             Bruno Haible  <bruno@clisp.org>
23949
23950         Work around a MacOS X 10.4 bug with openpty.
23951         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23952         * tests/test-openpty.c (main): Close the master side explicitly.
23953
23954 2010-04-25  Bruno Haible  <bruno@clisp.org>
23955
23956         strnlen: Fix a C++ test error on MacOS X and Solaris.
23957         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23958         the function is not declared.
23959         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23960         Simon Josefsson.
23961
23962 2010-04-24  Bruno Haible  <bruno@clisp.org>
23963
23964         Avoid a gcc warning.
23965         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23966         of correct type for %08lx directive.
23967         Reported by Eric Blake.
23968
23969 2010-04-24  Bruno Haible  <bruno@clisp.org>
23970
23971         vasnprintf: Correct errno value in case of out-of-memory.
23972         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23973         or sprintf. Use the errno value from SNPRINTF or sprintf.
23974         Reported by Ian Beckwith <ianb@erislabs.net>.
23975
23976 2010-04-24  Bruno Haible  <bruno@clisp.org>
23977
23978         ansi-c++-opt: Find correct compiler when cross-compiling.
23979         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23980         AC_CHECK_PROGS.
23981         Reported by Simon Josefsson.
23982
23983 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23984
23985         vc-list-files: Add support for subversion
23986         * build-aux/vc-list-files: Use "svn list" to generate the list of
23987         files controlled by subversion.
23988
23989 2010-04-23  Jim Meyering  <meyering@redhat.com>
23990
23991         vc-list-files tests: convert to use init.sh
23992         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23993         path_prepend_.
23994         Use Exit, not exit.
23995         Use skip_ rather than open coding it.
23996         Remove trap set-up and compare definitions.
23997         * tests/test-vc-list-files-git.sh: Likewise.
23998         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23999
24000 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24001
24002         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24003         backup files.
24004
24005 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24006
24007         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24008
24009 2010-04-20  Eric Blake  <eblake@redhat.com>
24010
24011         tests: be robust to ignored SIGPIPE
24012         * tests/test-select-in.sh: Consume all output.
24013         * tests/test-lseek.sh: Check correct exit status, while avoiding
24014         EPIPE.
24015
24016 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24017             Bruno Haible  <bruno@clisp.org>
24018
24019         visibility: Don't use -fvisibility if it leads to a warning.
24020         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24021         yes, don't pretend that visibility works if it leads to a warning.
24022         Reported by Mike Gran <spk121@yahoo.com>.
24023
24024 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24025
24026         * build-aux/bootstrap: Use "git -h" for testing for supported options
24027         instead of "git --help".  The short-form option only shows a summary,
24028         and doesn't layout the full man page.  Grep for the full option name
24029         in the summary, too.
24030
24031 2010-04-19  Bruno Haible  <bruno@clisp.org>
24032
24033         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24034         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24035         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24036         mention of RELOCATABLE_STRIP.
24037         Reported by Sylvain Beucler <beuc@beuc.net>.
24038
24039 2010-04-19  Bruno Haible  <bruno@clisp.org>
24040
24041         * lib/diffseq.h: Fix typo in comment.
24042         Reported by Eric Blake.
24043
24044 2010-04-19  Bruno Haible  <bruno@clisp.org>
24045
24046         ioctl: Move autoconf macro to a .m4 file.
24047         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24048         * modules/ioctl (Files): Add it.
24049         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24050         Reported by Ian Beckwith <ianb@erislabs.net>.
24051
24052 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24053             Bruno Haible  <bruno@clisp.org>
24054
24055         diffseq: Accommodate use-case with abstract arrays.
24056         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24057         is not defined.
24058         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24059         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24060
24061 2010-04-18  Bruno Haible  <bruno@clisp.org>
24062
24063         * doc/posix-headers/stdbool.texi: More precise wording.
24064
24065 2010-04-17  Jim Meyering  <meyering@redhat.com>
24066
24067         maint.mk: use gnu-style indentation in an embedded perl script
24068         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24069         Rename variable: s/two/last_two_bytes/
24070
24071 2010-04-16  Eric Blake  <eblake@redhat.com>
24072
24073         test-stdbool: skip test that fails with Solaris CC
24074         * tests/test-stdbool.c (f): Skip test that causes compilation
24075         error under buggy C++ compiler.
24076         * lib/stdbool.in.h: Document the limitation.
24077         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24078
24079         setenv: allow compilation with C++
24080         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24081         register keyword.
24082
24083         stdint: allow test to pass with C++
24084         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24085
24086         getopt: allow compilation with C++
24087         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24088         struct.
24089         * lib/getopt.c (_getopt_internal_r): Use correct type.
24090         Reported by Dagobert Michelson, via Joel E. Denny.
24091
24092 2010-04-16  Bruno Haible  <bruno@clisp.org>
24093
24094         Override netdb.h always.
24095         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24096         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24097         Reported by Ludovic Courtès <ludo@gnu.org>.
24098
24099 2010-04-15  Bruno Haible  <bruno@clisp.org>
24100
24101         openpty: Fix mistake from 2010-03-21.
24102         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24103         Reported by Simon Josefsson.
24104
24105 2010-04-15  Eric Blake  <eblake@redhat.com>
24106
24107         test-forkpty: fix expected signature
24108         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24109         Reported by Simon Josefsson.
24110
24111 2010-04-15  Jim Meyering  <meyering@redhat.com>
24112
24113         maint.mk: texinfo_suffix_re_: correct the default regexp
24114         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24115
24116         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24117         make it configurable via texinfo_suffix_re_.
24118
24119 2010-04-14  Eric Blake  <eblake@redhat.com>
24120
24121         strtok_r: relax license to LGPLv2+
24122         * modules/strtok_r (License): Relax license.
24123         Reported by Matthias Bolte.
24124
24125 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24126
24127         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24128         version 1.4.4 by default instead of requiring the libgcrypt
24129         version used during build.  This makes it possible to use the
24130         application with older but still binary compatible libgcrypt
24131         versions.
24132
24133 2010-04-13  Eric Blake  <eblake@redhat.com>
24134
24135         getopt-gnu: match recent glibc fixes and posix ruling
24136         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24137         '+' handling, when requesting extensions.
24138         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24139         'W;' handling.
24140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24141         * doc/posix-functions/getopt.texi (getopt): Document this.
24142         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24143         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24144         Likewise.
24145
24146         getopt: merge bug fixes from glibc
24147         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24148         diagnostics.  Honor '+:' correctly.  Reject ';'.
24149
24150         getopt-posix: detect MacOS bug
24151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24152         optind when missing a required argument.
24153         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24154         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24155         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24156         Likewise.
24157
24158         getopt-posix: avoid spurious failure on Solaris
24159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24160         an indicator that setting optind=1 is sufficient for reset.
24161
24162         getopt-posix: avoid spurious failure on FreeBSD
24163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24164         in POSIX mode, since the m4 test uses it.
24165
24166         gnulib-tool: silence warning on BSD sh
24167         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24168
24169 2010-04-13  Jim Meyering  <meyering@redhat.com>
24170
24171         doc: users.txt: GNU patch now uses gnulib
24172         * users.txt: Add patch.
24173
24174 2010-04-12  Jim Meyering  <meyering@redhat.com>
24175
24176         maint.mk: generate more concise timing data for syntax-check rules
24177         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24178         " done" from each line that reports a syntax-check test duration.
24179
24180 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24181
24182         git-version-gen: use "git update-index..." rather than "git status"
24183         * build-aux/git-version-gen: Use git update-index --refresh, not
24184         "git status".  With some versions of git, "git status" would fail
24185         to update the index and result in an unwarranted "-dirty" suffix.
24186
24187 2010-04-11  Jim Meyering  <meyering@redhat.com>
24188
24189         openat: correct formatting (no semantic change)
24190         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24191         Suggested by Bruno Haible.
24192
24193 2010-04-11  Bruno Haible  <bruno@clisp.org>
24194
24195         Stricter declaration checking in testdirs.
24196         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24197         If for_tests is true, augment AM_CPPFLAGS to define
24198         GNULIB_STRICT_CHECKING.
24199         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24200         GNULIB_STRICT_CHECKING is defined, verify that the function is
24201         declared.
24202
24203 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24204             Bruno Haible  <bruno@clisp.org>
24205
24206         libunistring: Improve configure output.
24207         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24208         Don't say "consider installing GNU libunistring" when checking again
24209         with libiconv.
24210
24211 2010-04-11  Bruno Haible  <bruno@clisp.org>
24212
24213         libunistring: Correct value of $LTLIBUNISTRING.
24214         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24215         correct the value of $LTLIBUNISTRING.
24216
24217 2010-04-11  Bruno Haible  <bruno@clisp.org>
24218
24219         havelib: Add static libraries to LIBS in the right order.
24220         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24221         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24222
24223 2010-04-11  Bruno Haible  <bruno@clisp.org>
24224
24225         libunistring: Detect libunistring also when it depends on libiconv.
24226         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24227         the second AC_LIB_HAVE_LINKFLAGS invocation.
24228
24229 2010-04-11  James Youngman  <jay@gnu.org>
24230
24231         close-stream: declare local scalars to be "const"
24232         * lib/close-stream.c (close_stream): Make boolean variables const
24233         to document the fact that we set but do not change them.
24234
24235 2010-04-11  Bruno Haible  <bruno@clisp.org>
24236
24237         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24238
24239 2010-04-11  Jim Meyering  <meyering@redhat.com>
24240
24241         maint.mk: don't include dist-check.mk
24242         * top/maint.mk: Remove bogus include directive.
24243
24244         maint.mk: improve empty-line-at-EOF check
24245         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24246         solution, rather than tail+Perl-based one.  The latter would read
24247         a few kilobytes from the end of each file, and did not handle empty
24248         files properly.
24249
24250         maint.mk: print the elapsed time for each syntax-check rule
24251         * top/maint.mk (sc_m_rules_): Save start time in a file.
24252         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24253         (local-check): Interpose the .z rules
24254
24255 2010-04-11  Jim Meyering  <meyering@redhat.com>
24256
24257         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24258         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24259         empty file with one that ends in an empty line.
24260
24261 2010-04-10  Bruno Haible  <bruno@clisp.org>
24262
24263         mkdir: Make it work on mingw64.
24264         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24265         * lib/mkdir.c: Update comment.
24266         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24267
24268 2010-04-10  Bruno Haible  <bruno@clisp.org>
24269
24270         Don't override improved macro from newer autoconf.
24271         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24272         autoconf >= 2.62.
24273         Reported by Joel E. Denny <jdenny@clemson.edu>.
24274
24275 2010-04-10  Jim Meyering  <meyering@redhat.com>
24276
24277         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24278         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24279
24280         maint.mk: correct a diagnostic
24281         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24282         in diagnostic; now use $prohibit.
24283
24284 2010-04-10  Bruno Haible  <address@hidden>
24285
24286         fchownat: Fix a C++ test error on Solaris 8.
24287         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24288         the function does not exist.
24289
24290 2010-04-10  Bruno Haible  <bruno@clisp.org>
24291
24292         vasnprintf: Add more tests.
24293         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24294         (test_function): Test converting an invalid wide string.
24295
24296         vasnprintf: Correct handling of unconvertible wide string arguments.
24297         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24298         VASNPRINTF.
24299         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24300         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24301         smaller than the expected maximum need for the directive. Set errno to
24302         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24303         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24305         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24306         * modules/vasnprintf (Files): Add m4/printf.m4.
24307         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24308
24309 2010-04-10  Bruno Haible  <bruno@clisp.org>
24310
24311         vasnprintf: Fix crash in %ls directive.
24312         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24313         string is passed as argument to %ls, with no precision and no width.
24314         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24315
24316 2010-04-10  Bruno Haible  <bruno@clisp.org>
24317
24318         vasnprintf: Fix multiple test failures on mingw.
24319         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24320         _snprintf, or snwprintf, not _snwprintf.
24321
24322 2010-04-10  Bruno Haible  <bruno@clisp.org>
24323
24324         write: Fix a C++ test error on mingw.
24325         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24326
24327 2010-04-10  Bruno Haible  <bruno@clisp.org>
24328
24329         vasnprintf test: Reduce code duplication.
24330         * tests/test-vasnprintf.c (test_function): New function, extracted from
24331         test_vasnprintf.
24332         (test_vasnprintf, test_asnprintf): Invoke it.
24333
24334 2010-04-10  Bruno Haible  <bruno@clisp.org>
24335
24336         strnlen: Fix warning in C++ mode on MacOS X.
24337         * lib/string.in.h (strnlen): Use the modern idiom.
24338         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24339         defining strnlen as a macro already in <config.h>.
24340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24341         REPLACE_STRNLEN.
24342         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24343         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24344
24345 2010-04-08  James Youngman  <jay@gnu.org>
24346
24347         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24348         the example.
24349
24350 2010-04-09  Jim Meyering  <meyering@redhat.com>
24351
24352         maint.mk: print better diagnostic when there is no $(_hv_file)
24353         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24354         announce that when $(_hv_file) (aka help-version) does not exist.
24355
24356         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24357         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24358         not try to interpret its random input bytes.  Jarno Rajahalme reported
24359         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24360         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24361         (mktempd_): Likewise, just in case.
24362
24363         ftruncate: add two years to projected module removal date: 2012
24364         * m4/ftruncate.m4: Adjust comments.
24365
24366         ftruncate: mark module as obsolete; even MinGW provides it, now
24367         * modules/ftruncate (Status): Obsolete.
24368         (Notice): Say that.
24369         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24370         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24371
24372 2010-04-08  Bruno Haible  <bruno@clisp.org>
24373
24374         Fix side effects from tests-related modules.
24375         * modules/dprintf-posix (Comment): New section.
24376         * modules/fprintf-posix (Comment): Likewise.
24377         * modules/obstack-printf-posix (Comment): Likewise.
24378         * modules/printf-posix (Comment): Likewise.
24379         * modules/snprintf-posix (Comment): Likewise.
24380         * modules/sprintf-posix (Comment): Likewise.
24381         * modules/vasnprintf-posix (Comment): Likewise.
24382         * modules/vasprintf-posix (Comment): Likewise.
24383         * modules/vdprintf-posix (Comment): Likewise.
24384         * modules/vfprintf-posix (Comment): Likewise.
24385         * modules/vprintf-posix (Comment): Likewise.
24386         * modules/vsnprintf-posix (Comment): Likewise.
24387         * modules/vsprintf-posix (Comment): Likewise.
24388         * modules/xprintf-posix (Comment): Likewise.
24389         * modules/xvasprintf-posix (Comment): Likewise.
24390         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24391         * modules/floorf-tests (Depends-on): Likewise.
24392         * modules/round-tests (Depends-on): Likewise.
24393         * modules/roundf-tests (Depends-on): Likewise.
24394         * modules/trunc-tests (Depends-on): Likewise.
24395         * modules/truncf-tests (Depends-on): Likewise.
24396         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24397         'fprintf-posix' module is not present.
24398         * tests/test-floorf2.c (check): Likewise.
24399         * tests/test-trunc2.c (check): Likewise.
24400         * tests/test-truncf2.c (check): Likewise.
24401         * tests/test-round2.c (equal): Likewise.
24402         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24403
24404 2010-04-07  Karl Berry  <karl@gnu.org>
24405
24406         * config/srclist.txt,
24407         * config/srclistvars.sh,
24408         * config/srclist-update: doc fixes.
24409
24410 2010-04-07  Jim Meyering  <meyering@redhat.com>
24411
24412         maint.mk: add a PATH crosschecking syntax-check rule
24413         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24414         Useful if you use a test like the one in help-version (coreutils,
24415         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24416         printed by prog --version.
24417
24418 2010-04-06  Bruno Haible  <bruno@clisp.org>
24419
24420         Fix link error on mingw.
24421         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24422         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24423
24424 2010-04-06  Bruno Haible  <bruno@clisp.org>
24425
24426         Assume rmdir exists.
24427         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24428
24429 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24430
24431         doc: update users.txt
24432         * users.txt: Add gcal.
24433
24434 2010-04-06  Jim Meyering  <meyering@redhat.com>
24435
24436         init.sh: simply unset TMPDIR rather than risking env -i
24437         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24438         although it probably works fine on all Unix-based systems, some
24439         systems (Cygwin?) cannot tolerate a totally cleared environment.
24440         Suggestion from Eric Blake.
24441
24442 2010-04-06  Jim Meyering  <meyering@redhat.com>
24443
24444         init.sh: portability fix: use env's POSIX-specified -i option not -u
24445         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24446         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24447
24448 2010-04-05  Bruno Haible  <bruno@clisp.org>
24449
24450         btowc: Work around Cygwin 1.7.2 bug.
24451         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24452         does not map NUL to 0.
24453         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24454
24455 2010-04-05  Bruno Haible  <bruno@clisp.org>
24456
24457         Make the multithread modules work on Cygwin 1.7.2.
24458         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24459         imported symbols can be declared weak, so that it returns "no" on
24460         Cygwin 1.7.2.
24461
24462 2010-04-05  Bruno Haible  <bruno@clisp.org>
24463
24464         Use the module 'strncat'.
24465         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24466
24467         Tests for module 'strncat'.
24468         * modules/strncat-tests: New file.
24469         * tests/test-strncat.c: New file.
24470
24471         New module 'strncat'.
24472         * lib/string.in.h (strncat): New declaration.
24473         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24474         * m4/strncat.m4: New file, based on m4/memchr.m4.
24475         * modules/strncat: New file.
24476         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24477         is declared.
24478         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24479         REPLACE_STRNCAT.
24480         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24481         REPLACE_STRNCAT.
24482         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24483         module.
24484         * tests/test-string-c++.cc: Check signature of strncat.
24485
24486 2010-04-05  Jim Meyering  <meyering@redhat.com>
24487
24488         xstrtoumax-tests: convert to use init.sh
24489         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24490         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24491         Use Exit, not exit.
24492         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24493
24494         xstrtoimax-tests: convert to use init.sh
24495         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24496         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24497         Use Exit, not exit.
24498         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24499
24500 2010-04-05  Bruno Haible  <bruno@clisp.org>
24501
24502         sys_socket: Avoid #define replacements in C++ mode.
24503         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24504         warning to the function if possible, rather than #defining the symbol
24505         to a dysfunctional alias.
24506
24507 2010-04-05  Bruno Haible  <bruno@clisp.org>
24508
24509         fseeko: Fix C++ test error on mingw.
24510         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24511         gl_FUNC_FSEEKO.
24512         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24513         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24514         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24515         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24516
24517 2010-04-05  Bruno Haible  <bruno@clisp.org>
24518
24519         duplocale: Improve test output.
24520         * tests/test-duplocale.c (main): Print reason for skipped test.
24521
24522 2010-04-05  Bruno Haible  <bruno@clisp.org>
24523
24524         Assume rmdir exists.
24525         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24526         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24527
24528 2010-04-05  Bruno Haible  <bruno@clisp.org>
24529
24530         Fix link error on Solaris 8 with cc.
24531         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24532
24533 2010-04-05  Bruno Haible  <bruno@clisp.org>
24534
24535         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24536         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24537
24538 2010-04-05  Bruno Haible  <bruno@clisp.org>
24539
24540         vasprintf: Update documentation.
24541         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24542
24543 2010-04-05  Bruno Haible  <bruno@clisp.org>
24544
24545         ptsname: Improve test.
24546         * tests/test-ptsname.c (main): Also try the various master names of BSD
24547         systems.
24548
24549 2010-04-05  Bruno Haible  <bruno@clisp.org>
24550
24551         memchr: Avoid a possible C++ test error.
24552         * lib/string.in.h (memchr): Provide declaration if function is missing.
24553         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24554         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24556         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24557
24558 2010-04-05  Bruno Haible  <bruno@clisp.org>
24559
24560         strtok_r: Improve idiom.
24561         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24562         AC_LIBOBJ is used.
24563
24564 2010-04-05  Bruno Haible  <bruno@clisp.org>
24565
24566         strdup: Improve idiom.
24567         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24568         AC_LIBOBJ is used.
24569         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24570         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24571         when AC_LIBOBJ is used.
24572
24573 2010-04-05  Bruno Haible  <bruno@clisp.org>
24574
24575         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24576         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24577         don't set REPLACE_MBSINIT to 1.
24578         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24579         don't set REPLACE_MBRTOWC to 1.
24580         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24581         exist, don't set REPLACE_MBSRTOWCS to 1.
24582         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24583         exist, don't set REPLACE_MBSNRTOWCS to 1.
24584         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24585         don't set REPLACE_WCRTOMB to 1.
24586         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24587         exist, don't set REPLACE_WCSRTOMBS to 1.
24588         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24589         exist, don't set REPLACE_WCSNRTOMBS to 1.
24590
24591 2010-04-05  Bruno Haible  <bruno@clisp.org>
24592
24593         ldexpl: Improve idiom.
24594         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24595         make sure to set HAVE_DECL_LDEXPL to 0.
24596
24597 2010-04-05  Jim Meyering  <meyering@redhat.com>
24598
24599         xstrtol-tests: convert to use init.sh
24600         * modules/xstrtol-tests (Files): Add tests/init.sh.
24601         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24602         Use Exit, not exit.
24603         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24604
24605         atexit-tests: convert to use init.sh
24606         * modules/atexit-tests (Files): Add tests/init.sh.
24607         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24608         Use Exit, not exit.
24609         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24610
24611         init.sh: fix typo
24612         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24613
24614         init.sh: make it easier for a test script to write to the tty, ...
24615         when using automake's parallel-tests mode.
24616         * tests/init.sh (stderr_fileno_): Define overridable variable.
24617         (warn_): New function, to use it.
24618         (fail_, skip_, framework_failure_): Use warn_.
24619
24620 2010-04-04  Bruno Haible  <bruno@clisp.org>
24621
24622         btowc: Avoid warning.
24623         * lib/btowc.c: Include <stdlib.h>.
24624         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24625
24626 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24627             Bruno Haible  <bruno@clisp.org>
24628
24629         wchar: Port to NetBSD 1.5.
24630         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24631         * lib/wctype.in.h (WEOF): Likewise.
24632
24633 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24634             Bruno Haible  <bruno@clisp.org>
24635
24636         Port extended stdio to NetBSD 1.5.
24637         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24638         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24639         older.
24640
24641 2010-04-04  Bruno Haible  <bruno@clisp.org>
24642
24643         string: Remove unused substitution.
24644         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24645         HAVE_DECL_STRERROR.
24646         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24647
24648 2010-04-04  Bruno Haible  <bruno@clisp.org>
24649
24650         strtod: Avoid a possible C++ test error.
24651         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24652         set REPLACE_STRTOD.
24653
24654 2010-04-04  Bruno Haible  <bruno@clisp.org>
24655
24656         strerror: Update documentation.
24657         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24658
24659 2010-04-04  Bruno Haible  <bruno@clisp.org>
24660
24661         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24662         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24663         _GL_CXXALIAS_SYS_CAST.
24664
24665 2010-04-04  Bruno Haible  <bruno@clisp.org>
24666
24667         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24668         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24669         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24670         REPLACE_FREXPL to 1.
24671         * doc/posix-functions/frexpl.texi: Update documentation.
24672
24673 2010-04-04  Bruno Haible  <bruno@clisp.org>
24674
24675         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24676         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24677
24678 2010-04-04  Bruno Haible  <bruno@clisp.org>
24679
24680         Implement nanosleep for native Windows.
24681         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24682
24683 2010-04-04  Bruno Haible  <bruno@clisp.org>
24684
24685         math: Fix some C++ test errors on Solaris 8.
24686         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24687
24688 2010-04-04  Bruno Haible  <bruno@clisp.org>
24689
24690         math: Fix some C++ test errors on Cygwin.
24691         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24692         truncl): Provide declaration if the system does not have it.
24693         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24694         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24695         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24696         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24697         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24698         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24699         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24700         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24701         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24702         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24703         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24704         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24705         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24706         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24707         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24708         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24710         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24711         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24712         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24713         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24714         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24715
24716 2010-04-04  Bruno Haible  <bruno@clisp.org>
24717
24718         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24719         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24720         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24721         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24722         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24723         * m4/isinf.m4 (gl_ISINF): Likewise.
24724         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24725
24726 2010-04-04  Bruno Haible  <bruno@clisp.org>
24727
24728         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24729         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24730
24731 2010-04-04  Bruno Haible  <bruno@clisp.org>
24732
24733         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24734         * modules/tmpfile (configure.ac): Update.
24735
24736         tmpfile: Fix C++ test error on mingw.
24737         * lib/stdio.in.h (tmpfile): New declaration.
24738         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24739         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24740         * modules/tmpfile (Depends-on): Add stdio.
24741         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24742         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24743         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24744         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24745         REPLACE_TMPFILE.
24746         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24747
24748 2010-04-04  Bruno Haible  <bruno@clisp.org>
24749
24750         ioctl: Fix C++ test error on mingw.
24751         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24752         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24753         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24754
24755 2010-04-03  Bruno Haible  <bruno@clisp.org>
24756
24757         wcwidth: Fix C++ test error on mingw.
24758         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24760         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24761
24762 2010-04-03  Bruno Haible  <bruno@clisp.org>
24763
24764         nanosleep: Fix C++ test error on mingw.
24765         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24766         * lib/time.in.h (nanosleep): Use modern idiom.
24767         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24768         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24769         REPLACE_NANOSLEEP to 1.
24770         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24771         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24772
24773 2010-04-03  Bruno Haible  <bruno@clisp.org>
24774
24775         strptime: Fix C++ test error on mingw.
24776         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24777         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24778         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24779         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24780         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24781         not REPLACE_STRPTIME.
24782         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24783         REPLACE_STRPTIME.
24784
24785 2010-04-03  Bruno Haible  <bruno@clisp.org>
24786
24787         timegm: Fix C++ test error on mingw.
24788         * lib/time.in.h (timegm): Use modern idiom.
24789         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24790         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24791         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24792         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24793
24794 2010-04-03  Bruno Haible  <bruno@clisp.org>
24795
24796         timegm: Assume declaration if function exists.
24797         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24798         if it exists. Don't clobber ac_cv_func_timegm.
24799
24800 2010-04-03  Bruno Haible  <bruno@clisp.org>
24801
24802         time_r: Fix C++ test error on mingw.
24803         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24804         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24805         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24806         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24807         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24808
24809 2010-04-03  Bruno Haible  <bruno@clisp.org>
24810
24811         time_r: Minor updates.
24812         * modules/time_r (Description): Mention the provided functions.
24813         * lib/time_r.c: Don't include <string.h>.
24814         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24815         * doc/posix-functions/localtime_r.texi: Likewise.
24816
24817 2010-04-03  Bruno Haible  <bruno@clisp.org>
24818
24819         time: Fix regression introduced on 2010-03-08.
24820         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24821         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24822
24823 2010-04-03  Jim Meyering  <meyering@redhat.com>
24824
24825         maint.mk: don't silently disable project-specific syntax-check rules
24826         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24827         that they need to convert their project-specific syntax-check rules
24828         to use the new _sc_search_regexp.
24829
24830 2010-04-03  Bruno Haible  <bruno@clisp.org>
24831
24832         fchdir: Fix regression introduced on 2010-03-08.
24833         * lib/unistd.in.h (fchdir): Fix declaration.
24834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24836         REPLACE_FCHDIR.
24837         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24838         REPLACE_FCHDIR.
24839
24840 2010-04-03  Bruno Haible  <bruno@clisp.org>
24841
24842         getpagesize: Fix C++ test error on mingw.
24843         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24844         system does not declare the function.
24845         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24846         declared.
24847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24848         HAVE_DECL_GETPAGESIZE.
24849         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24850
24851 2010-04-03  Bruno Haible  <bruno@clisp.org>
24852
24853         stdio: Make C++ tests work on mingw.
24854         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24855         does not declare the function.
24856
24857 2010-04-03  Bruno Haible  <bruno@clisp.org>
24858
24859         ftello: Fix C++ test error on mingw.
24860         * lib/stdio.in.h (ftello): Use modern idiom.
24861         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24862         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24863         is missing and that it needs to be replaced.
24864         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24866         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24867
24868 2010-04-03  Bruno Haible  <bruno@clisp.org>
24869
24870         fseeko: Fix C++ test error on mingw.
24871         * lib/stdio.in.h (fseeko): Use modern idiom.
24872         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24873         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24874         is missing and that it needs to be replaced.
24875         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24877         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24878
24879 2010-04-03  Bruno Haible  <bruno@clisp.org>
24880
24881         mkstemp: Fix C++ test error on mingw.
24882         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24883         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24884         function is missing and that it needs to be replaced.
24885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24886         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24887
24888 2010-04-03  Bruno Haible  <bruno@clisp.org>
24889
24890         stpncpy: Fix C++ test error on mingw.
24891         * lib/string.in.h (stpncpy): Use modern idiom.
24892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24893         function is missing and that it needs to be replaced.
24894         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24895         REPLACE_STPNCPY.
24896         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24897
24898 2010-04-03  Bruno Haible  <bruno@clisp.org>
24899
24900         sys_stat: Fix C++ test error on mingw.
24901         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24902         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24903
24904 2010-04-03  Bruno Haible  <bruno@clisp.org>
24905
24906         pty: Update doc.
24907         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24908
24909 2010-04-03  Bruno Haible  <bruno@clisp.org>
24910
24911         unistd: Fix C++ test error on mingw.
24912         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24913
24914 2010-04-03  Bruno Haible  <bruno@clisp.org>
24915
24916         Update doc regarding mingw.
24917         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24918         * doc/glibc-functions/login_tty.texi: Likewise.
24919         * doc/glibc-functions/forkpty.texi: Likewise.
24920
24921 2010-04-03  Bruno Haible  <bruno@clisp.org>
24922
24923         stdlib: Avoid compilation failure of c-strtold on mingw.
24924         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24925
24926 2010-04-03  Bruno Haible  <bruno@clisp.org>
24927
24928         locale: Make C++ tests work on Cygwin and mingw.
24929         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24930         cannot provide the function.
24931         Reported by Simon Josefsson.
24932
24933 2010-04-03  Bruno Haible  <bruno@clisp.org>
24934
24935         localename: Port to MacOS X 10.6.
24936         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24937         memory layout of the locales in MacOS X 10.6 as well.
24938         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24939
24940 2010-04-02  Bruno Haible  <bruno@clisp.org>
24941
24942         gnulib-tool: Ensure that long-running tests are executed last.
24943         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24944         running tests after the one for the other tests.
24945
24946 2010-04-02  Bruno Haible  <bruno@clisp.org>
24947
24948         gnulib-tool: Ensure the tests in the main directory are executed first.
24949         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24950         start with the current directory.
24951
24952 2010-04-02  Bruno Haible  <bruno@clisp.org>
24953
24954         Tests for module 'havelib', moved here from GNU gettext.
24955         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24956         modifications.
24957         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24958         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24959         with modifications.
24960         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24961         modifications.
24962         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24963         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24964         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24965         with modifications.
24966         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24967         with modifications.
24968         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24969         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24970         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24971         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24972         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24973         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24974         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24975         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24976         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24977         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24978         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24979         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24980         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24981         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24982         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24983         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24984         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24985         with modifications.
24986         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24987         with modifications.
24988         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24989         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24990         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24991         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24992         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24993         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24994         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24995         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24996         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24997         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24998         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24999         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25000         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25001         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25002         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25003         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25004         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25005         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25006         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25007         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25008         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25009         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25010         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25011         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25012         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25013         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25014         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25015         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25016         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25017         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25018         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25019         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25020         * tests/havelib/rpathx/rpathx.c: New file, from
25021         gettext/autoconf-lib-link.
25022         * tests/havelib/rpathx/Makefile.am: New file, from
25023         gettext/autoconf-lib-link.
25024         * tests/havelib/rpathx/configure.ac: New file, from
25025         gettext/autoconf-lib-link with modifications.
25026         * tests/havelib/rpathy/rpathy.c: New file, from
25027         gettext/autoconf-lib-link.
25028         * tests/havelib/rpathy/Makefile.am: New file, from
25029         gettext/autoconf-lib-link.
25030         * tests/havelib/rpathy/configure.ac: New file, from
25031         gettext/autoconf-lib-link with modifications.
25032         * tests/havelib/rpathz/rpathz.c: New file, from
25033         gettext/autoconf-lib-link.
25034         * tests/havelib/rpathz/Makefile.am: New file, from
25035         gettext/autoconf-lib-link.
25036         * tests/havelib/rpathz/configure.ac: New file, from
25037         gettext/autoconf-lib-link with modifications.
25038         * tests/havelib/rpathlx/usex.c: New file, from
25039         gettext/autoconf-lib-link.
25040         * tests/havelib/rpathlx/Makefile.am: New file, from
25041         gettext/autoconf-lib-link.
25042         * tests/havelib/rpathlx/configure.ac: New file, from
25043         gettext/autoconf-lib-link with modifications.
25044         * tests/havelib/rpathly/usey.c: New file, from
25045         gettext/autoconf-lib-link.
25046         * tests/havelib/rpathly/Makefile.am: New file, from
25047         gettext/autoconf-lib-link.
25048         * tests/havelib/rpathly/configure.ac: New file, from
25049         gettext/autoconf-lib-link with modifications.
25050         * tests/havelib/rpathlz/usez.c: New file, from
25051         gettext/autoconf-lib-link.
25052         * tests/havelib/rpathlz/Makefile.am: New file, from
25053         gettext/autoconf-lib-link.
25054         * tests/havelib/rpathlz/configure.ac: New file, from
25055         gettext/autoconf-lib-link with modifications.
25056         * tests/havelib/rpathlyx/usey.c: New file, from
25057         gettext/autoconf-lib-link.
25058         * tests/havelib/rpathlyx/Makefile.am: New file, from
25059         gettext/autoconf-lib-link.
25060         * tests/havelib/rpathlyx/configure.ac: New file, from
25061         gettext/autoconf-lib-link with modifications.
25062         * tests/havelib/rpathlzyx/usez.c: New file, from
25063         gettext/autoconf-lib-link.
25064         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25065         gettext/autoconf-lib-link.
25066         * tests/havelib/rpathlzyx/configure.ac: New file, from
25067         gettext/autoconf-lib-link with modifications.
25068         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25069         with modifications.
25070
25071 2010-04-02  Bruno Haible  <bruno@clisp.org>
25072
25073         gnulib-tool: Create distributed built sources also for the tests.
25074         * gnulib-tool (func_create_testdir): Also generate distributed built
25075         sources in the tests directory.
25076
25077 2010-04-02  Bruno Haible  <bruno@clisp.org>
25078
25079         gnulib-tool: Obey user's environment variables.
25080         * gnulib-tool (func_create_testdir): When creating built sources,
25081         respect the environment variables for autoconf, automake, etc. given by
25082         the user.
25083
25084 2010-04-02  Bruno Haible  <bruno@clisp.org>
25085
25086         gnulib-tool: Provide the value of --m4-base to modules.
25087         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25088         of gl_m4_base.
25089
25090 2010-04-02  Eric Blake  <eblake@redhat.com>
25091
25092         maint.mk: fix some fallout
25093         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25094         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25095
25096 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25097
25098         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25099         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25100         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25101         (sc_cast_of_x_alloc_return_value): Likewise.
25102         (sc_cast_of_alloca_return_value): Likewise.
25103         (sc_space_tab): Likewise.
25104         (sc_prohibit_atoi_atof): Likewise.
25105         (sc_prohibit_magic_number_exit): Likewise.
25106         (sc_error_exit_success): Likewise.
25107         (sc_file_system): Likewise.
25108         (sc_prohibit_have_config_h): Likewise.
25109         (sc_require_config_h): Likewise.
25110         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25111         (sc_obsolete_symbols): Likewise.
25112         (sc_changelog): Likewise.
25113         (sc_program_name): Likewise.
25114         (sc_the_the): Likewise.
25115         (sc_trailing_blank): Likewise.
25116         (sc_two_space_separator_in_usage): Likewise.
25117         (sc_useless_cpp_parens): Likewise.
25118         (sc_GPL_version): Likewise.
25119         (sc_GFDL_version): Likewise.
25120         (sc_texinfo_acronym): Likewise.
25121         (sc_prohibit_cvs_keyword): Likewise.
25122         (sc_prohibit_stat_st_blocks): Likewise.
25123         (sc_prohibit_S_IS_definition): Likewise.
25124         (sc_redundant_const): Likewise.
25125         (sc_makefile_TAB_only_indentation): Likewise.
25126         (sc_m4_quote_check): Likewise.
25127         (sc_makefile_path_separator_check): Likewise.
25128         (sc_copyright_check): Likewise.
25129         (sc_Wundef_boolean): Likewise.
25130         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25131
25132         maint.mk: match 0 or more whitespace-before-function-call '('
25133         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25134         that have zero or two-and-more spaces between the function name
25135         and the open parenthesis.
25136         (sc_error_message_warn_fatal): Likewise.
25137         (sc_error_message_uppercase): Likewise.
25138         (sc_error_message_period): Likewise.
25139
25140 2010-03-31  Eric Blake  <eblake@redhat.com>
25141
25142         maint.mk: check for [ as well as test
25143         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25144         Based on a libvirt report by Matthias Bolte.
25145
25146         gnumakefile: don't squelch _version output
25147         * top/GNUmakefile (_version): Create one-shot dependency rather
25148         than using $(shell) when version must be regenerated.
25149         (_autoreconf): Run verbosely, by default.
25150
25151         sys_time: avoid compiler warnings
25152         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25153         unconditional, fixing regression from 2010-03-29.
25154         Reported by Simon Josefsson.
25155
25156 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25157
25158         maint.mk: s/_header_without_use/_sc_header_without_use/
25159         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25160         (sc_prohibit_assert_without_use): Use the new name.
25161         (sc_prohibit_close_stream_without_use): Likewise.
25162         (sc_prohibit_getopt_without_use): Likewise.
25163         (sc_prohibit_quotearg_without_use): Likewise.
25164         (sc_prohibit_quote_without_use): Likewise.
25165         (sc_prohibit_long_options_without_use): Likewise.
25166         (sc_prohibit_inttostr_without_use): Likewise.
25167         (sc_prohibit_ignore_value_without_use): Likewise.
25168         (sc_prohibit_error_without_use): Likewise.
25169         (sc_prohibit_xalloc_without_use): Likewise.
25170         (sc_prohibit_hash_without_use): Likewise.
25171         (sc_prohibit_hash_pjw_without_use): Likewise.
25172         (sc_prohibit_safe_read_without_use): Likewise.
25173         (sc_prohibit_argmatch_without_use): Likewise.
25174         (sc_prohibit_canonicalize_without_use): Likewise.
25175         (sc_prohibit_root_dev_ino_without_use): Likewise.
25176         (sc_prohibit_openat_without_use): Likewise.
25177         (sc_prohibit_c_ctype_without_use): Likewise.
25178         (sc_prohibit_signal_without_use): Likewise.
25179         (sc_prohibit_intprops_without_use): Likewise.
25180
25181 2010-03-30  Eric Blake  <eblake@redhat.com>
25182
25183         maint: improve module indicators
25184         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25185         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25186         columns, and avoid extra macro expansion.
25187
25188         fdopendir: work around FreeBSD bug
25189         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25190         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25191         * modules/dirent (Makefile.am): Substitute it.
25192         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25193         declaration.
25194         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25195         fix.
25196         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25197
25198 2010-03-29  Bruno Haible  <bruno@clisp.org>
25199
25200         Emit #pragma system_header after the inclusion guard, not before.
25201         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25202         guard that spans the entire file, not before. This enables an
25203         optimization in GCC's preprocessor.
25204         * lib/ctype.in.h: Likewise.
25205         * lib/dirent.in.h: Likewise.
25206         * lib/errno.in.h: Likewise.
25207         * lib/float.in.h: Likewise.
25208         * lib/getopt.in.h: Likewise.
25209         * lib/iconv.in.h: Likewise.
25210         * lib/langinfo.in.h: Likewise.
25211         * lib/locale.in.h: Likewise.
25212         * lib/math.in.h: Likewise.
25213         * lib/netdb.in.h: Likewise.
25214         * lib/netinet_in.in.h: Likewise.
25215         * lib/pty.in.h: Likewise.
25216         * lib/sched.in.h: Likewise.
25217         * lib/se-selinux.in.h: Likewise.
25218         * lib/search.in.h: Likewise.
25219         * lib/spawn.in.h: Likewise.
25220         * lib/stdarg.in.h: Likewise.
25221         * lib/stdint.in.h: Likewise.
25222         * lib/string.in.h: Likewise.
25223         * lib/strings.in.h: Likewise.
25224         * lib/sys_file.in.h: Likewise.
25225         * lib/sys_ioctl.in.h: Likewise.
25226         * lib/sys_time.in.h: Likewise.
25227         * lib/sys_times.in.h: Likewise.
25228         * lib/sys_utsname.in.h: Likewise.
25229         * lib/sys_wait.in.h: Likewise.
25230         * lib/sysexits.in.h: Likewise.
25231         * lib/wctype.in.h: Likewise.
25232
25233 2010-03-28  James Youngman  <jay@gnu.org>
25234
25235         save-cwd: don't leak a file descriptor when the caller execs.
25236         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25237         saved file descriptor.
25238         * modules/save-cwd (Depends-on): Depend on cloexec.
25239
25240 2010-03-29  Bruno Haible  <bruno@clisp.org>
25241
25242         Remove vestiges of fts-lgpl module.
25243         * lib/fts_.h: Assume GNULIB_FTS is 1.
25244         * lib/fts.c: Likewise.
25245         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25246
25247 2010-03-28  Bruno Haible  <bruno@clisp.org>
25248
25249         Fix definition of tests witness macro.
25250         * gnulib-tool (func_import): Fix definition of witness macro.
25251
25252 2010-03-28  Bruno Haible  <bruno@clisp.org>
25253
25254         Fix ioctl's protoype on glibc systems.
25255         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25256         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25257         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25258         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25259         signature. If not, arrange to replace the ioctl function.
25260         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25261         REPLACE_IOCTL.
25262         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25263         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25264         Reported by Ludovic Courtès <ludo@gnu.org>.
25265
25266 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25267
25268         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25269         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25270         made it so grep -r --include=GLOB* ... did not work.
25271
25272 2010-03-26  Jim Meyering  <meyering@redhat.com>
25273             Eric Blake  <eblake@redhat.com>
25274
25275         maint.mk: prohibit use of test's -o and -a operators
25276         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25277
25278 2010-03-28  Bruno Haible  <bruno@clisp.org>
25279
25280         Remove unused GNULIB_XYZ macro definitions.
25281         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25282         invocation.
25283
25284 2010-03-28  Bruno Haible  <bruno@clisp.org>
25285
25286         Mark privileged tests modules.
25287         * modules/idpriv-drop-tests (Status): New section.
25288         * modules/idpriv-droptemp-tests (Status): New section.
25289
25290 2010-03-28  Bruno Haible  <bruno@clisp.org>
25291
25292         Split C++ tests into separate tests modules.
25293         * modules/dirent-c++-tests: New file, extracted from
25294         modules/dirent-tests.
25295         * modules/dirent-tests: Depend on it.
25296         * modules/fcntl-h-c++-tests: New file, extracted from
25297         modules/fcntl-h-tests.
25298         * modules/fcntl-h-tests: Depend on it.
25299         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25300         * modules/glob-tests: Depend on it.
25301         * modules/iconv-h-c++-tests: New file, extracted from
25302         modules/iconv-h-tests.
25303         * modules/iconv-h-tests: Depend on it.
25304         * modules/langinfo-c++-tests: New file, extracted from
25305         modules/langinfo-tests.
25306         * modules/langinfo-tests: Depend on it.
25307         * modules/locale-c++-tests: New file, extracted from
25308         modules/locale-tests.
25309         * modules/locale-tests: Depend on it.
25310         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25311         * modules/math-tests: Depend on it.
25312         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25313         * modules/pty-tests: Depend on it.
25314         * modules/search-c++-tests: New file, extracted from
25315         modules/search-tests.
25316         * modules/search-tests: Depend on it.
25317         * modules/signal-c++-tests: New file, extracted from
25318         modules/signal-tests.
25319         * modules/signal-tests: Depend on it.
25320         * modules/spawn-c++-tests: New file, extracted from
25321         modules/spawn-tests.
25322         * modules/spawn-tests: Depend on it.
25323         * modules/stdio-c++-tests: New file, extracted from
25324         modules/stdio-tests.
25325         * modules/stdio-tests: Depend on it.
25326         * modules/stdlib-c++-tests: New file, extracted from
25327         modules/stdlib-tests.
25328         * modules/stdlib-tests: Depend on it.
25329         * modules/string-c++-tests: New file, extracted from
25330         modules/string-tests.
25331         * modules/string-tests: Depend on it.
25332         * modules/sys_ioctl-c++-tests: New file, extracted from
25333         modules/sys_ioctl-tests.
25334         * modules/sys_ioctl-tests: Depend on it.
25335         * modules/sys_select-c++-tests: New file, extracted from
25336         modules/sys_select-tests.
25337         * modules/sys_select-tests: Depend on it.
25338         * modules/sys_socket-c++-tests: New file, extracted from
25339         modules/sys_socket-tests.
25340         * modules/sys_socket-tests: Depend on it.
25341         * modules/sys_stat-c++-tests: New file, extracted from
25342         modules/sys_stat-tests.
25343         * modules/sys_stat-tests: Depend on it.
25344         * modules/sys_time-c++-tests: New file, extracted from
25345         modules/sys_time-tests.
25346         * modules/sys_time-tests: Depend on it.
25347         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25348         * modules/time-tests: Depend on it.
25349         * modules/unistd-c++-tests: New file, extracted from
25350         modules/unistd-tests.
25351         * modules/unistd-tests: Depend on it.
25352         * modules/wchar-c++-tests: New file, extracted from
25353         modules/wchar-tests.
25354         * modules/wchar-tests: Depend on it.
25355         * modules/wctype-c++-tests: New file, extracted from
25356         modules/wctype-tests.
25357         * modules/wctype-tests: Depend on it.
25358         Reported by Simon Josefsson.
25359
25360 2010-03-28  Bruno Haible  <bruno@clisp.org>
25361
25362         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25363         * gnulib-tool (func_exists_module): New function, extracted from
25364         func_verify_module.
25365         (func_verify_module): Use it.
25366         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25367         'foo' only if 'foo' exists.
25368         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25369         module.
25370
25371 2010-03-28  Bruno Haible  <bruno@clisp.org>
25372
25373         gnulib-tool: Add support for special categories of tests.
25374         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25375         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25376         (func_usage): Document them.
25377         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25378         inc_unportable_tests, inc_all_tests): New variables.
25379         (func_acceptable): Consider these variables.
25380         (func_modules_transitive_closure): Make it work when the 'Status' field
25381         consists of multiple words.
25382         (func_import): Store and restore the values of inc_cxx_tests,
25383         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25384         inc_all_tests in gnulib-comp.m4.
25385         (func_create_testdir): Set inc_all_tests to true.
25386         * doc/gnulib.texi (Extra tests modules): New section.
25387         Suggested by Jim Meyering.
25388
25389 2010-03-28  Bruno Haible  <bruno@clisp.org>
25390
25391         ansi-c++-opt: Allow turning off the C++ build by default.
25392         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25393         gl_CXX_CHOICE_DEFAULT_NO is defined.
25394         Requested by Eric Blake.
25395
25396 2010-03-28  Bruno Haible  <bruno@clisp.org>
25397
25398         unistd: Avoid #define replacements in C++ mode.
25399         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25400         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25401         setsockopt, shutdown, select): In C++, attach a warning to the function
25402         if possible, rather than #defining the symbol to a dysfunctional alias.
25403         Reported by John W. Eaton <jwe@gnu.org>.
25404
25405 2010-03-28  Bruno Haible  <bruno@clisp.org>
25406
25407         Fix link errors on mingw.
25408         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25409         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25410         $(LIBSOCKET).
25411         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25412         $(LIBSOCKET).
25413
25414 2010-03-28  Bruno Haible  <bruno@clisp.org>
25415             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25416
25417         lib-ignore: Determine different options for different compilers.
25418         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25419         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25420         Add comments.
25421         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25422         * NEWS: Mention the change.
25423
25424 2010-03-27  Bruno Haible  <bruno@clisp.org>
25425
25426         Remove unused GNULIB_XYZ macro definitions.
25427         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25428         * modules/fseek (configure.ac): Likewise.
25429         * modules/ioctl (configure.ac): Likewise.
25430         * modules/open (configure.ac): Likewise.
25431         * modules/stdlib-safer (configure.ac): Likewise.
25432
25433 2010-03-27  Bruno Haible  <bruno@clisp.org>
25434
25435         Add a remark about certain modules.
25436         * modules/malloc (Comment): New section.
25437         * modules/realloc (Comment): Likewise.
25438         * modules/sigpipe (Comment): Likewise.
25439
25440 2010-03-27  Bruno Haible  <bruno@clisp.org>
25441
25442         Resolve conflict between the two kinds of module indicators.
25443         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25444         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25445         * modules/canonicalize (configure.ac): Invoke
25446         gl_MODULE_INDICATOR_FOR_TESTS.
25447         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25448         GNULIB_XYZ.
25449         * tests/test-dirent-c++.cc: Likewise.
25450         * tests/test-dirent-safer.c: Likewise.
25451         * tests/test-dup2.c: Likewise.
25452         * tests/test-fchdir.c: Likewise.
25453         * tests/test-fcntl-h-c++.cc: Likewise.
25454         * tests/test-getopt.c: Likewise.
25455         * tests/test-getopt.h: Likewise.
25456         * tests/test-langinfo-c++.cc: Likewise.
25457         * tests/test-locale-c++.cc: Likewise.
25458         * tests/test-math-c++.cc: Likewise.
25459         * tests/test-pty-c++.cc: Likewise.
25460         * tests/test-search-c++.cc: Likewise.
25461         * tests/test-signal-c++.cc: Likewise.
25462         * tests/test-spawn-c++.cc: Likewise.
25463         * tests/test-stdio-c++.cc: Likewise.
25464         * tests/test-stdlib-c++.cc: Likewise.
25465         * tests/test-string-c++.cc: Likewise.
25466         * tests/test-sys_ioctl-c++.cc: Likewise.
25467         * tests/test-sys_select-c++.cc: Likewise.
25468         * tests/test-sys_socket-c++.cc: Likewise.
25469         * tests/test-sys_stat-c++.cc: Likewise.
25470         * tests/test-sys_time-c++.cc: Likewise.
25471         * tests/test-time-c++.cc: Likewise.
25472         * tests/test-unistd-c++.cc: Likewise.
25473         * tests/test-wchar-c++.cc: Likewise.
25474         * tests/uninorm/test-u8-nfc.c: Likewise.
25475         * tests/uninorm/test-u8-nfd.c: Likewise.
25476         * tests/uninorm/test-u8-nfkc.c: Likewise.
25477         * tests/uninorm/test-u8-nfkd.c: Likewise.
25478         * tests/uninorm/test-u16-nfc.c: Likewise.
25479         * tests/uninorm/test-u16-nfd.c: Likewise.
25480         * tests/uninorm/test-u16-nfkc.c: Likewise.
25481         * tests/uninorm/test-u16-nfkd.c: Likewise.
25482         * tests/uninorm/test-u32-nfc.c: Likewise.
25483         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25484         * tests/uninorm/test-u32-nfd.c: Likewise.
25485         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25486         * tests/uninorm/test-u32-nfkc.c: Likewise.
25487         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25488         * tests/uninorm/test-u32-nfkd.c: Likewise.
25489         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25490         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25491
25492 2010-03-27  Bruno Haible  <bruno@clisp.org>
25493
25494         Distinguish two kinds of module indicators.
25495         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25496         gl_MODULE_INDICATOR.
25497         (gl_MODULE_INDICATOR): New macro.
25498         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25499         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25500         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25501         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25502         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25503         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25504         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25505         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25506         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25507         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25508         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25509         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25510         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25511         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25512         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25513         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25514         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25515         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25516         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25517         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25518         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25519         * modules/cloexec (configure.ac): Likewise.
25520         * modules/getopt-gnu (configure.ac): Likewise.
25521         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25522         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25523         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25524         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25525
25526 2010-03-27  Bruno Haible  <bruno@clisp.org>
25527
25528         New module description field 'Comment'.
25529         * gnulib-tool: New option --extract-comment.
25530         (func_usage): Document it.
25531         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25532         (func_get_comment): New function.
25533         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25534
25535 2010-03-27  Bruno Haible  <bruno@clisp.org>
25536
25537         Addendum to 2010-02-07 commit.
25538         * gnulib-tool (func_usage): Document --extract-applicability option.
25539
25540 2010-03-27  Bruno Haible  <bruno@clisp.org>
25541
25542         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25543         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25544         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25545         rather than link errors.
25546
25547 2010-03-27  Bruno Haible  <bruno@clisp.org>
25548
25549         Avoid side effects from tests-related modules on the compilation of lib.
25550         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25551         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25552         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25553         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25554         macro.
25555         (func_import): Define a witness macro. Assign it a value that depends
25556         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25557         tests-related modules.
25558         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25559         Reported by Jim Meyering.
25560
25561 2010-03-27  Bruno Haible  <bruno@clisp.org>
25562
25563         Factorize common .m4 code.
25564         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25565         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25566         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25567         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25568         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25569         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25570         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25571         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25572         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25573         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25574         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25575         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25576         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25577         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25578         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25579         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25580         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25581         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25582         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25583         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25584         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25585         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25586         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25587         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25588         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25589         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25590         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25591         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25592         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25593         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25594         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25595         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25596
25597 2010-03-27  Bruno Haible  <bruno@clisp.org>
25598
25599         Fix a compilation error on Cygwin with g++ >= 4.3.
25600         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25601         if it is undefined or if we alias it to chmod.
25602         (lstat): Don't warn about the use of this function if it is undefined
25603         or if we alias it to stat.
25604         Reported by Simon Josefsson.
25605
25606 2010-03-27  Bruno Haible  <bruno@clisp.org>
25607
25608         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25609         * modules/getlogin (configure.ac): Update.
25610
25611         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25612         * modules/getlogin_r (configure.ac): Update.
25613
25614         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25615         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25616         * modules/inet_ntop (configure.ac): Update.
25617
25618         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25619         * modules/inet_pton (configure.ac): Update.
25620
25621         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25622         * modules/mbslen (configure.ac): Update.
25623
25624         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25625         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25626         * modules/forkpty (configure.ac): Update.
25627         * modules/openpty (configure.ac): Update.
25628
25629 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25630
25631         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25632         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25633
25634 2010-03-25  Eric Blake  <eblake@redhat.com>
25635
25636         maint: use pragma consistently across replacement headers
25637         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25638         * lib/dirent.in.h (system_header): Likewise.
25639         * lib/errno.in.h (system_header): Likewise.
25640         * lib/float.in.h (system_header): Likewise.
25641         * lib/getopt.in.h (system_header): Likewise.
25642         * lib/iconv.in.h (system_header): Likewise.
25643         * lib/inttypes.in.h (system_header): Likewise.
25644         * lib/langinfo.in.h (system_header): Likewise.
25645         * lib/locale.in.h (system_header): Likewise.
25646         * lib/math.in.h (system_header): Likewise.
25647         * lib/netdb.in.h (system_header): Likewise.
25648         * lib/netinet_in.in.h (system_header): Likewise.
25649         * lib/pty.in.h (system_header): Likewise.
25650         * lib/sched.in.h (system_header): Likewise.
25651         * lib/se-selinux.in.h (system_header): Likewise.
25652         * lib/search.in.h (system_header): Likewise.
25653         * lib/spawn.in.h (system_header): Likewise.
25654         * lib/stdarg.in.h (system_header): Likewise.
25655         * lib/stdint.in.h (system_header): Likewise.
25656         * lib/string.in.h (system_header): Likewise.
25657         * lib/strings.in.h (system_header): Likewise.
25658         * lib/sys_file.in.h (system_header): Likewise.
25659         * lib/sys_ioctl.in.h (system_header): Likewise.
25660         * lib/sys_socket.in.h (system_header): Likewise.
25661         * lib/sys_times.in.h (system_header): Likewise.
25662         * lib/sys_utsname.in.h (system_header): Likewise.
25663         * lib/sys_wait.in.h (system_header): Likewise.
25664         * lib/sysexits.in.h (system_header): Likewise.
25665         * lib/unistd.in.h (system_header): Likewise.
25666         * lib/wctype.in.h (system_header): Likewise.
25667
25668         arpa/inet: fix mingw compilation warning
25669         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25670         Reported by Matthew Bolte.
25671
25672 2010-03-25  Bruno Haible  <bruno@clisp.org>
25673
25674         Avoid collision between gnulib wrapper and libintl wrapper.
25675         * lib/printf.c (printf): Don't define if a printf wrapper is already
25676         defined in intl/printf.c.
25677         Reported by Michel Boaventura <michel@michelboaventura.com>.
25678
25679 2010-03-25  Bruno Haible  <bruno@clisp.org>
25680
25681         Use ANSI C.
25682         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25683
25684 2010-03-25  Bruno Haible  <bruno@clisp.org>
25685
25686         Minor formatting changes.
25687         * lib/acosl.c: Insert space before function argument list.
25688         * lib/argz.c: Likewise.
25689         * lib/asinl.c: Likewise.
25690         * lib/expl.c: Likewise.
25691         * lib/gen-uni-tables.c: Likewise.
25692         * lib/gettext.h: Likewise.
25693         * lib/glthread/lock.h: Likewise.
25694         * lib/tanl.c: Likewise.
25695         * lib/uniname/uniname.c: Likewise.
25696         * tests/test-idpriv-drop.c: Likewise.
25697         * tests/test-idpriv-droptemp.c: Likewise.
25698         * tests/test-lock.c: Likewise.
25699         * tests/test-tls.c: Likewise.
25700         * lib/argp-help.c: Insert space before function-like macro argument
25701         list.
25702         * lib/memcmp.c: Likewise.
25703         * tests/test-base64.c: Likewise.
25704         * lib/localename.c: Insert space before sizeof's argument list.
25705         * lib/safe-alloc.h: Likewise.
25706         * lib/file-set.h: Insert space before macro argument list.
25707         * tests/test-argp.c: Likewise.
25708         * lib/argp-namefrob.h: Insert space before function parameter list.
25709         * lib/getaddrinfo.c: Likewise.
25710         * lib/netdb.in.h: Likewise.
25711         * lib/parse-duration.h: Likewise.
25712         * lib/parse-duration.c: Likewise.
25713         * lib/poll.c: Likewise.
25714         * lib/select.c: Likewise.
25715         * lib/trim.h: Likewise.
25716         * tests/test-usleep.c: Likewise.
25717         * lib/ldexpl.c: Insert space before function parameter list and before
25718         function argument list.
25719         * lib/logl.c: Likewise.
25720         * lib/sqrtl.c: Likewise.
25721         * lib/trim.c: Likewise.
25722         * lib/cosl.c: Use GNU style indentation. Insert space before function
25723         argument list.
25724         * lib/sinl.c: Likewise.
25725         * lib/tsearch.c: Insert space after 'for'.
25726         Reported by Jim Meyering.
25727
25728 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25729
25730         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25731         config header before grepping, as it's not present before
25732         autoreconf/configure are run.  Reported by Simon Josefsson.
25733
25734 2010-03-23  Bruno Haible  <bruno@clisp.org>
25735
25736         pt_chown: Make it work with automake < 1.11.
25737         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25738         Reported by Simon Josefsson.
25739
25740 2010-03-23  Bruno Haible  <bruno@clisp.org>
25741
25742         pt_chown: Don't depend on GPLed modules.
25743         * lib/pt_chown.c: Don't include idpriv.h.
25744         (main): Don't drop privileges.
25745         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25746         Reported by Simon Josefsson.
25747
25748 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25749
25750         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25751         suggestions from karl@freefriends.org (Karl Berry).
25752
25753 2010-03-22  Eric Blake  <eblake@redhat.com>
25754
25755         gethostname: further tweaks
25756         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25757         are overriding gethostname.
25758         Suggested by Bruno Haible.
25759
25760 2010-03-21  Bruno Haible  <bruno@clisp.org>
25761
25762         Fix comments.
25763         * lib/forkpty.c (rpl_forkpty): Fix comment.
25764         * lib/openpty.c (rpl_openpty): Likewise.
25765         Reported by Eric Blake.
25766
25767 2010-03-22  Eric Blake  <eblake@redhat.com>
25768
25769         gethostname: fix build on mingw
25770         * lib/unistd.in.h (includes): Work around fact that mingw
25771         <winsock2.h> re-includes <unistd.h>, by avoiding any
25772         redeclarations if we are being included by <winsock2.h>.
25773         Reported by Matthias Bolte.
25774
25775 2010-03-21  Bruno Haible  <bruno@clisp.org>
25776
25777         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25778         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25779         modifications.
25780         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25781         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25782         provide the replacement.
25783         * modules/forkpty (Depends-on): Add openpty, login_tty.
25784         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25785         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25786         * doc/glibc-functions/forkpty.texi: More supported platforms.
25787         * config/srclist.txt: Add forkpty.c (commented).
25788
25789 2010-03-21  Bruno Haible  <bruno@clisp.org>
25790
25791         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25792         (Makefile.am): Verify that PTY_LIB is defined.
25793
25794         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25795
25796 2010-03-21  Bruno Haible  <bruno@clisp.org>
25797
25798         Tests for module 'login_tty'.
25799         * modules/login_tty-tests: New file.
25800         * tests/test-login_tty.c: New file.
25801
25802         New module 'login_tty'.
25803         * lib/login_tty.c: New file.
25804         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25805         * modules/login_tty: New file.
25806         * doc/glibc-functions/login_tty.texi: Mention the new module.
25807
25808 2010-03-21  Bruno Haible  <bruno@clisp.org>
25809
25810         login_tty: Documentation.
25811         * doc/glibc-functions/login_tty.texi: New file.
25812         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25813
25814 2010-03-21  Bruno Haible  <bruno@clisp.org>
25815
25816         pty: Consistent macro naming.
25817         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25818         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25819         * modules/pty (configure.ac): Update.
25820
25821 2010-03-21  Bruno Haible  <bruno@clisp.org>
25822
25823         Tests for openpty: Make stricter.
25824         * tests/test-openpty.c (main): Add test of canonical processing and
25825         erase.
25826         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25827
25828         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25829         * lib/openpty.c (openpty): New replacement function.
25830         * lib/pty.in.h: Include <termios.h>.
25831         (openpty): Update declaration. Add comments.
25832         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25833         is not declared, arrange to provide the replacement. Check for _getpty
25834         and posix_openpt.
25835         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25836         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25837         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25838         * modules/pty-tests (test_pty_c___LDADD): New variable.
25839         * doc/glibc-functions/openpty.texi: More supported platforms.
25840
25841 2010-03-21  Bruno Haible  <bruno@clisp.org>
25842
25843         setenv: Tweaks.
25844         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25845         the test program.
25846         * doc/posix-functions/setenv.texi: Update platforms list.
25847
25848 2010-03-21  Bruno Haible  <bruno@clisp.org>
25849
25850         New module 'unlockpt'.
25851         * lib/unlockpt.c: New file, from glibc with modifications.
25852         * m4/unlockpt.m4: New file.
25853         * modules/unlockpt: New file.
25854         * lib/stdlib.in.h (unlockpt): New declaration.
25855         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25856         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25857         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25858         HAVE_UNLOCKPT.
25859         * doc/posix-functions/unlockpt.texi: Mention the new module.
25860         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25861         * config/srclist.txt: Add unlockpt.c (commented).
25862
25863 2010-03-21  Jim Meyering  <meyering@redhat.com>
25864
25865         maint.mk: prohibit inclusion of "intprops.h" without use
25866         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25867
25868 2010-03-21  Bruno Haible  <bruno@clisp.org>
25869
25870         New module 'grantpt'.
25871         * lib/grantpt.c: New file, from glibc with modifications.
25872         * m4/grantpt.m4: New file.
25873         * modules/grantpt: New file.
25874         * lib/stdlib.in.h (grantpt): New declaration.
25875         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25876         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25877         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25878         HAVE_GRANTPT.
25879         * doc/posix-functions/grantpt.texi: Mention the new module.
25880         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25881         * config/srclist.txt: Add grantpt.c (commented).
25882
25883 2010-03-21  Bruno Haible  <bruno@clisp.org>
25884
25885         New module 'pt_chown'.
25886         * lib/pt_chown.c: New file, from glibc with modifications.
25887         * lib/pty-private.h: New file, from glibc with modifications.
25888         * modules/pt_chown: New file.
25889         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25890
25891 2010-03-21  Bruno Haible  <bruno@clisp.org>
25892
25893         Tests for module 'ptsname'.
25894         * modules/ptsname-tests: New file.
25895         * tests/test-ptsname.c: New file.
25896
25897         New module 'ptsname'.
25898         * lib/ptsname.c: New file, from glibc with modifications.
25899         * m4/ptsname.m4: New file.
25900         * modules/ptsname: New file.
25901         * lib/stdlib.in.h (ptsname): New declaration.
25902         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25903         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25904         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25905         HAVE_PTSNAME.
25906         * doc/posix-functions/ptsname.texi: Mention the new module.
25907         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25908         * config/srclist.txt: Add ptsname.c (commented).
25909
25910 2010-03-21  Bruno Haible  <bruno@clisp.org>
25911
25912         Tests for module 'ttyname_r'.
25913         * modules/ttyname_r-tests: New file.
25914         * tests/test-ttyname_r.c: New file.
25915
25916         New module 'ttyname_r'.
25917         * lib/ttyname_r.c: New file.
25918         * m4/ttyname_r.m4: New file.
25919         * modules/ttyname_r: New file.
25920         * lib/unistd.in.h (ttyname_r): New declaration.
25921         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25922         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25923         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25924         HAVE_TTYNAME_R.
25925         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25926         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25927
25928 2010-03-20  Bruno Haible  <bruno@clisp.org>
25929
25930         signal: Undefine macro definitions in C++ mode.
25931         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25932         sigfillset): Undefine macro definitions from the system header in C++
25933         mode.
25934         Reported by John W. Eaton <jwe@gnu.org>.
25935
25936 2010-03-20  Bruno Haible  <bruno@clisp.org>
25937
25938         Ensure no #include statements inside extern "C" { ... }.
25939         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25940         contain #include statements.
25941         * lib/time.in.h: Likewise.
25942
25943 2010-03-20  Bruno Haible  <bruno@clisp.org>
25944
25945         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25946         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25947         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25948         Reported by John W. Eaton <jwe@gnu.org>.
25949
25950 2010-03-20  Bruno Haible  <bruno@clisp.org>
25951
25952         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25953         Reported by Jim Meyering.
25954
25955 2010-03-20  Bruno Haible  <bruno@clisp.org>
25956
25957         pipe: Set errno upon failure.
25958         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25959         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25960         errno value in error message.
25961
25962 2010-03-20  Bruno Haible  <bruno@clisp.org>
25963             Jim Meyering  <meyering@redhat.com>
25964
25965         lchown: Avoid "unused variable" warning.
25966         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25967
25968 2010-03-20  Bruno Haible  <bruno@clisp.org>
25969
25970         Work around unlink() bug on MacOS X 10.5.6.
25971         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25972         attempting to unlink a parent directory.
25973         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25974         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25975         activate for the replacement function.
25976         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25977
25978 2010-03-20  Bruno Haible  <bruno@clisp.org>
25979
25980         Fix link errors on Solaris 8.
25981         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25982         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25983
25984 2010-03-19  Jim Meyering  <meyering@redhat.com>
25985
25986         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25987         The _LIBC implementation of build_range_exp correctly honors the
25988         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25989         However, the non-_LIBC implementation would ignore that syntax-bit
25990         flag and return REG_ERANGE unconditionally.
25991         This change makes it honor that flag.
25992         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25993         Make two pointer parameters "const".
25994         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25995         (parse_bracket_exp): Update caller.
25996
25997         regex.m4: correct the reversed range endpoint ([b-a]) test
25998         * m4/regex.m4: When requiring that [b-a] evoke failure,
25999         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26000         test pass once again for x86-based systems.
26001
26002 2010-03-19  Bruno Haible  <bruno@clisp.org>
26003
26004         scandir: Fix link error on Solaris 8.
26005         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26006         macros.
26007
26008 2010-03-19  Bruno Haible  <bruno@clisp.org>
26009
26010         getusershell: Fix documentation.
26011         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26012         module.
26013         * doc/glibc-functions/setusershell.texi: Likewise.
26014
26015         getusershell: Provide declaration, missing on Solaris 9.
26016         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26017         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26018         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26019         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26021         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26022         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26023         HAVE_GETUSERSHELL.
26024         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26025
26026 2010-03-19  Bruno Haible  <bruno@clisp.org>
26027
26028         wctype: Provide iswblank function.
26029         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26030         exists and is fine.
26031         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26032         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26033         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26034         * doc/posix-functions/iswblank.texi: Update.
26035
26036 2010-03-19  Bruno Haible  <bruno@clisp.org>
26037
26038         Tests of module 'pty' in C++ mode.
26039         * modules/pty-tests: New file.
26040         * tests/test-pty-c++.cc: New file.
26041         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26042
26043 2010-03-19  Eric Blake  <eblake@redhat.com>
26044
26045         logb: fix documentation
26046         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26047         1.5 declaration bug.
26048
26049         forkpty, openpty: prefer glibc's const-safe prototype
26050         * lib/forkpty.c (rpl_forkpty): New file.
26051         * lib/openpty.c (rpl_openpty): Likewise.
26052         * modules/forkpty (Files): Distribute it.
26053         * modules/openpty (Files): Likewise.
26054         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26055         check...
26056         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26057         replacement for for non-const BSD signature.
26058         * modules/pty (Makefile.am): Substitute witnesses.
26059         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26060         * tests/test-forkpty.c: Update signature check.
26061         * tests/test-openpty.c: Likewise.
26062         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26063         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26064
26065         forkpty, openpty: split functions into new modules
26066         * modules/pty (Makefile.am): Substitute new witnesses.
26067         (Libraries): Move library detection...
26068         * modules/forkpty: ...into new module.
26069         * modules/openpty: Another new module.
26070         * modules/pty-tests: Rename and split...
26071         * modules/forkpty-tests: ...to this...
26072         * modules/openpty-tests: ...and this.
26073         * tests/test-pty.c: Rename and split...
26074         * tests/test-forkpty.c: ...to this...
26075         * tests/test-openpty.c: ...and this.
26076         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26077         (gl_PTY): Split library searching...
26078         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26079         (gl_FORKPTY, gl_OPENPTY): New macros.
26080         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26081         * NEWS: Mention the split.
26082         * MODULES.html.sh (Misc): Document the modules.
26083         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26084         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26085
26086         pty: improve replacement header
26087         * lib/pty.in.h: New file.
26088         * modules/pty (Files): Ship it.
26089         (Makefile.am): Always build replacement.
26090         * m4/pty.m4: Rename...
26091         * m4/pty_h.m4: ...to this.
26092         (gl_PTY): Modernize setting of witness macros; update check of
26093         forkpty to take proper advantage of cache.
26094         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26095
26096         getopt: avoid compiler warning
26097         * lib/getopt.c (attribute_hidden): Remove unused macro.
26098
26099 2010-03-18  Bruno Haible  <bruno@clisp.org>
26100
26101         Fix link errors on Solaris 8.
26102         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26103         * modules/search-tests (test_search_c___LDADD): Likewise.
26104         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26105         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26106         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26107         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26108         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26109         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26110         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26111
26112 2010-03-18  Bruno Haible  <bruno@clisp.org>
26113
26114         Fix bug introduced on 2010-03-14.
26115         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26116         (gl_SPAWN_H): Require it.
26117         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26118         Reported by Simon Josefsson.
26119
26120 2010-03-18  Bruno Haible  <bruno@clisp.org>
26121
26122         Fix typo introduced on 2009-12-31.
26123         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26124         posix_spawn_file_actions_adddup2.
26125
26126 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26127         and Eric Blake  <eblake@redhat.com>
26128
26129         test-vc-list-files-git: make more robust
26130         * tests/test-vc-list-files-git.sh: Unset problematic environment
26131         variables.  Chain commands together.
26132
26133 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26134
26135         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26136         `AC_CHECK_DECL' invocation.
26137
26138 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26139
26140         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26141         appears before executable statements. Suggested by Petr Sumbera
26142         <Petr.Sumbera@Sun.COM>.
26143
26144 2010-03-14  Bruno Haible  <bruno@clisp.org>
26145
26146         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26147         portability problems. Instead use a simpler test.
26148         (main): Check that invalid arguments are rejected only on Linux.
26149
26150 2010-03-14  Bruno Haible  <bruno@clisp.org>
26151
26152         Fix bug introduced on 2009-12-31.
26153         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26154         gl_PREREQ_SYS_H_WINSOCK2 always.
26155         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26156         SYS_SOCKET_H variable.
26157         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26158         Update comments.
26159         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26160         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26161         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26162         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26163         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26164
26165 2010-03-14  Bruno Haible  <bruno@clisp.org>
26166
26167         Fix values returned by sinl, cosl.
26168         * lib/trigl.h: Add specification comments.
26169         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26170         that combines the values from the precomputed table with the values of
26171         the Chebyshev polynomials.
26172
26173 2010-03-14  Bruno Haible  <bruno@clisp.org>
26174
26175         Fix compilation error when modules 'posix_spawn[p]' are not used.
26176         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26177         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26178
26179 2010-03-14  Bruno Haible  <bruno@clisp.org>
26180
26181         Fix compilation error on mingw when module 'time_r' is not used.
26182         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26183         is 1.
26184         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26185         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26186         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26187         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26188
26189 2010-03-14  Bruno Haible  <bruno@clisp.org>
26190
26191         Fix compilation error with Sun C.
26192         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26193         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26194         instead of GCC specific ULONG_LONG_MAX.
26195         * lib/xstrtoll.c: Likewise.
26196         * lib/xstrtoull.c: Likewise.
26197
26198 2010-03-13  Bruno Haible  <bruno@clisp.org>
26199
26200         Allow the user to disable C++ code and tests.
26201         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26202         (gl_PROG_ANSI_CXX): Require it.
26203
26204 2010-03-13  Bruno Haible  <bruno@clisp.org>
26205
26206         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26207         cases.
26208
26209 2010-03-13  Bruno Haible  <bruno@clisp.org>
26210
26211         Test that gnulib does not break the standard C++ headers.
26212         * tests/test-locale-c++2.cc: New file.
26213         * modules/locale-tests (Files): Add it.
26214         (Makefile.am): Compile it for test-locale-c++.
26215         * tests/test-math-c++2.cc: New file.
26216         * modules/math-tests (Files): Add it.
26217         (Makefile.am): Compile it for test-math-c++.
26218         * tests/test-signal-c++2.cc: New file.
26219         * modules/signal-tests (Files): Add it.
26220         (Makefile.am): Compile it for test-signal-c++.
26221         * tests/test-stdio-c++2.cc: New file.
26222         * modules/stdio-tests (Files): Add it.
26223         (Makefile.am): Compile it for test-stdio-c++.
26224         * tests/test-stdlib-c++2.cc: New file.
26225         * modules/stdlib-tests (Files): Add it.
26226         (Makefile.am): Compile it for test-stdlib-c++.
26227         * tests/test-string-c++2.cc: New file.
26228         * modules/string-tests (Files): Add it.
26229         (Makefile.am): Compile it for test-string-c++.
26230         * tests/test-time-c++2.cc: New file.
26231         * modules/time-tests (Files): Add it.
26232         (Makefile.am): Compile it for test-time-c++.
26233         Reported by John W. Eaton <jwe@gnu.org>.
26234
26235 2010-03-13  Bruno Haible  <bruno@clisp.org>
26236
26237         * gnulib-tool (func_usage): Clarify which options are available for
26238         --create-testdir and --create-megatestdir.
26239
26240 2010-03-13  Bruno Haible  <bruno@clisp.org>
26241
26242         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26243         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26244         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26245         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26246         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26247         when appropriate.
26248         Reported by Jim Meyering.
26249
26250 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26251
26252         * gnulib-tool (func_import): Explain origin of code.
26253
26254 2010-03-12  Bruno Haible  <bruno@clisp.org>
26255
26256         Fix problem with automake's definition of CXXLINK.
26257         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26258         Reported by Simon Josefsson and Ludovic Courtès.
26259
26260 2010-03-12  Bruno Haible  <bruno@clisp.org>
26261
26262         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26263         stable releases.
26264
26265 2010-03-11  Bruno Haible  <bruno@clisp.org>
26266
26267         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26268         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26269         whether the system provides one variant or multiple variants of the
26270         function.
26271         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26272         C++ compilers.
26273         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26274         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26275         Reported by Jim Meyering.
26276
26277 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26278
26279         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26280
26281 2010-03-08  Bruno Haible  <bruno@clisp.org>
26282
26283         gnulib-tool: Add support for --libtool in --create-testdir.
26284         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26285         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26286
26287 2010-03-08  Eric Blake  <eblake@redhat.com>
26288
26289         gnulib-tool.texi: mention possibility of git submodule
26290         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26291         submodules.
26292         * doc/.gitignore: Ignore another generated file.
26293
26294 2010-03-08  Karl Berry  <karl@gnu.org>
26295
26296         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26297         of committing gnulib files while skipping others.
26298
26299 2010-03-07  Bruno Haible  <bruno@clisp.org>
26300
26301         Tests of module 'wctype' in C++ mode.
26302         * tests/test-wctype-c++.cc: New file.
26303         * modules/wctype-tests (Files): Add it and tests/signature.h.
26304         (Depends-on): Add ansi-c++-opt.
26305         (Makefile.am): Arrange to compile and run test-wctype-c++.
26306
26307         Tests of module 'wchar' in C++ mode.
26308         * tests/test-wchar-c++.cc: New file.
26309         * modules/wchar-tests (Files): Add it and tests/signature.h.
26310         (Depends-on): Add ansi-c++-opt.
26311         (Makefile.am): Arrange to compile and run test-wchar-c++.
26312         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26313         gl_MODULE_INDICATOR.
26314
26315         Tests of module 'unistd' in C++ mode.
26316         * tests/test-unistd-c++.cc: New file.
26317         * modules/unistd-tests (Files): Add it and tests/signature.h.
26318         (Depends-on): Add ansi-c++-opt.
26319         (Makefile.am): Arrange to compile and run test-unistd-c++.
26320         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26321         gl_MODULE_INDICATOR.
26322
26323         Tests of module 'time' in C++ mode.
26324         * tests/test-time-c++.cc: New file.
26325         * modules/time-tests (Files): Add it and tests/signature.h.
26326         (Depends-on): Add ansi-c++-opt.
26327         (Makefile.am): Arrange to compile and run test-time-c++.
26328         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26329
26330         Tests of module 'sys_time' in C++ mode.
26331         * tests/test-sys_time-c++.cc: New file.
26332         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26333         (Depends-on): Add ansi-c++-opt.
26334         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26335         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26336         gl_MODULE_INDICATOR.
26337
26338         Tests of module 'sys_stat' in C++ mode.
26339         * tests/test-sys_stat-c++.cc: New file.
26340         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26341         (Depends-on): Add ansi-c++-opt.
26342         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26343         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26344         gl_MODULE_INDICATOR.
26345
26346         Tests of module 'sys_socket' in C++ mode.
26347         * tests/test-sys_socket-c++.cc: New file.
26348         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26349         (Depends-on): Add ansi-c++-opt.
26350         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26351         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26352         gl_MODULE_INDICATOR.
26353
26354         Tests of module 'sys_select' in C++ mode.
26355         * tests/test-sys_select-c++.cc: New file.
26356         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26357         (Depends-on): Add ansi-c++-opt.
26358         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26359         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26360         gl_MODULE_INDICATOR.
26361
26362         Tests of module 'sys_ioctl' in C++ mode.
26363         * tests/test-sys_ioctl-c++.cc: New file.
26364         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26365         (Depends-on): Add ansi-c++-opt.
26366         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26367         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26368         gl_MODULE_INDICATOR.
26369
26370         Tests of module 'string' in C++ mode.
26371         * tests/test-string-c++.cc: New file.
26372         * modules/string-tests (Files): Add it and tests/signature.h.
26373         (Depends-on): Add ansi-c++-opt.
26374         (Makefile.am): Arrange to compile and run test-string-c++.
26375         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26376         gl_MODULE_INDICATOR.
26377
26378         Tests of module 'stdlib' in C++ mode.
26379         * tests/test-stdlib-c++.cc: New file.
26380         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26381         (Depends-on): Add ansi-c++-opt.
26382         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26383         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26384         gl_MODULE_INDICATOR.
26385
26386         Tests of module 'stdio' in C++ mode.
26387         * tests/test-stdio-c++.cc: New file.
26388         * modules/stdio-tests (Files): Add it and tests/signature.h.
26389         (Depends-on): Add ansi-c++-opt.
26390         (Makefile.am): Arrange to compile and run test-stdio-c++.
26391         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26392         gl_MODULE_INDICATOR.
26393
26394         Tests of module 'spawn' in C++ mode.
26395         * tests/test-spawn-c++.cc: New file.
26396         * modules/spawn-tests (Files): Add it and tests/signature.h.
26397         (Depends-on): Add ansi-c++-opt.
26398         (Makefile.am): Arrange to compile and run test-spawn-c++.
26399         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26400         gl_MODULE_INDICATOR.
26401
26402         Tests of module 'signal' in C++ mode.
26403         * tests/test-signal-c++.cc: New file.
26404         * modules/signal-tests (Files): Add it and tests/signature.h.
26405         (Depends-on): Add ansi-c++-opt.
26406         (Makefile.am): Arrange to compile and run test-signal-c++.
26407         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26408         gl_MODULE_INDICATOR.
26409
26410         Tests of module 'search' in C++ mode.
26411         * tests/test-search-c++.cc: New file.
26412         * modules/search-tests (Files): Add it and tests/signature.h.
26413         (Depends-on): Add ansi-c++-opt.
26414         (Makefile.am): Arrange to compile and run test-search-c++.
26415         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26416         gl_MODULE_INDICATOR.
26417
26418         Tests of module 'math' in C++ mode.
26419         * tests/test-math-c++.cc: New file.
26420         * modules/math-tests (Files): Add it and tests/signature.h.
26421         (Depends-on): Add ansi-c++-opt.
26422         (Makefile.am): Arrange to compile and run test-math-c++.
26423         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26424
26425         Tests of module 'locale' in C++ mode.
26426         * tests/test-locale-c++.cc: New file.
26427         * modules/locale-tests (Files): Add it and tests/signature.h.
26428         (Depends-on): Add ansi-c++-opt.
26429         (Makefile.am): Arrange to compile and run test-locale-c++.
26430         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26431         gl_MODULE_INDICATOR.
26432
26433         Tests of module 'langinfo' in C++ mode.
26434         * tests/test-langinfo-c++.cc: New file.
26435         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26436         (Depends-on): Add ansi-c++-opt.
26437         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26438         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26439         gl_MODULE_INDICATOR.
26440
26441         Tests of module 'iconv-h' in C++ mode.
26442         * tests/test-iconv-h-c++.cc: New file.
26443         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26444         (Depends-on): Add ansi-c++-opt.
26445         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26446
26447         Tests of module 'glob' in C++ mode.
26448         * tests/test-glob-c++.cc: New file.
26449         * modules/glob-tests (Files): Add it.
26450         (Depends-on): Add ansi-c++-opt.
26451         (Makefile.am): Arrange to compile and run test-glob-c++.
26452
26453         Tests of module 'fcntl-h' in C++ mode.
26454         * tests/test-fcntl-h-c++.cc: New file.
26455         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26456         (Depends-on): Add ansi-c++-opt.
26457         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26458         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26459         gl_MODULE_INDICATOR.
26460
26461         Tests of module 'dirent' in C++ mode.
26462         * tests/test-dirent-c++.cc: New file.
26463         * modules/dirent-tests (Files): Add it and tests/signature.h.
26464         (Depends-on): Add ansi-c++-opt.
26465         (Makefile.am): Arrange to compile and run test-dirent-c++.
26466         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26467         gl_MODULE_INDICATOR.
26468
26469         New module 'ansi-c++-opt'.
26470         * modules/ansi-c++-opt: New file.
26471         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26472
26473         Document C++ namespace mode.
26474         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26475
26476         wctype: Avoid #define replacements in C++ mode.
26477         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26478         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26479         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26480         In C++, define a namespaced alias symbol.
26481         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26482         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26483         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26484         rule.
26485
26486         wchar: Avoid #define replacements in C++ mode.
26487         * lib/wchar.in.h: Include c++defs.h.
26488         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26489         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26490         symbol.
26491         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26492         * modules/wchar (Depends-on): Add c++defs.
26493         (Makefile.am): Update wchar.h rule.
26494
26495         unistd: Avoid #define replacements in C++ mode.
26496         * lib/unistd.in.h: Include c++defs.h.
26497         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26498         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26499         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26500         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26501         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26502         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26503         symbol.
26504         (environ): Update.
26505         * modules/unistd (Depends-on): Add c++defs.
26506         (Makefile.am): Update unistd.h rule.
26507
26508         time: Avoid #define replacements in C++ mode.
26509         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26510         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26511         define a namespaced alias symbol.
26512         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26513         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26514         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26515         * modules/time (Depends-on): Add c++defs, warn-on-use.
26516         (Makefile.am): Update time.h rule.
26517         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26518         * modules/nanosleep (configure.ac): Likewise.
26519         * modules/strptime (configure.ac): Likewise.
26520         * modules/timegm (configure.ac): Likewise.
26521
26522         sys_time: Avoid #define replacements in C++ mode.
26523         * lib/sys_time.in.h: Include c++defs.h.
26524         (gettimeofday): In C++, define a namespaced alias symbol.
26525         * modules/sys_time (Depends-on): Add c++defs.
26526         (Makefile.am): Update sys/time.h rule.
26527
26528         sys_stat: Avoid #define replacements in C++ mode.
26529         * lib/sys_stat.in.h: Include c++defs.h.
26530         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26531         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26532         namespaced alias symbol.
26533         In C++, define a namespaced alias symbol.
26534         * modules/sys_stat (Depends-on): Add c++defs.
26535         (Makefile.am): Update sys/stat.h rule.
26536
26537         sys_socket: Avoid #define replacements in C++ mode.
26538         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26539         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26540         definitions also when the system has a <sys/socket.h>.
26541         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26542         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26543         In C++, define a namespaced alias symbol.
26544         * modules/sys_socket (Depends-on): Add c++defs.
26545         (Makefile.am): Update sys/socket.h rule.
26546
26547         sys_select: Avoid #define replacements in C++ mode.
26548         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26549         definitions also when the system has a <sys/select.h>.
26550         (select): In C++, define a namespaced alias symbol.
26551         * modules/sys_select (Depends-on): Add c++defs.
26552         (Makefile.am): Update sys/select.h rule.
26553
26554         sys_ioctl: Avoid #define replacements in C++ mode.
26555         * lib/sys_ioctl.in.h: Include c++defs.h.
26556         (ioctl): In C++, define a namespaced alias symbol.
26557         * modules/sys_ioctl (Depends-on): Add c++defs.
26558         (Makefile.am): Update sys/ioctl.h rule.
26559
26560         string: Avoid #define replacements in C++ mode.
26561         * lib/string.in.h: Include c++defs.h.
26562         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26563         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26564         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26565         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26566         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26567         * modules/string (Depends-on): Add c++defs.
26568         (Makefile.am): Update string.h rule.
26569
26570         stdlib: Avoid #define replacements in C++ mode.
26571         * lib/stdlib.in.h: Include c++defs.h.
26572         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26573         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26574         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26575         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26576         symbol.
26577         * modules/stdlib (Depends-on): Add c++defs.
26578         (Makefile.am): Update stdlib.h rule.
26579
26580         stdio: Avoid #define replacements in C++ mode.
26581         * lib/stdio.in.h: Include c++defs.h.
26582         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26583         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26584         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26585         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26586         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26587         namespaced alias symbol.
26588         * modules/stdio (Depends-on): Add c++defs.
26589         (Makefile.am): Update stdio.h rule.
26590
26591         spawn: Avoid #define replacements in C++ mode.
26592         * lib/spawn.in.h: Include c++defs.h.
26593         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26594         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26595         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26596         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26597         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26598         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26599         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26600         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26601         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26602         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26603         In C++, define a namespaced alias symbol.
26604         * modules/spawn (Depends-on): Add c++defs.
26605         (Makefile.am): Update spawn.h rule.
26606
26607         signal: Avoid #define replacements in C++ mode.
26608         * lib/signal.in.h: Include c++defs.h.
26609         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26610         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26611         namespaced alias symbol.
26612         * modules/signal (Depends-on): Add c++defs.
26613         (Makefile.am): Update signal.h rule.
26614
26615         search: Avoid #define replacements in C++ mode.
26616         * lib/search.in.h: Include c++defs.h.
26617         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26618         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26619         symbol.
26620         * modules/search (Depends-on): Add c++defs.
26621         (Makefile.am): Update search.h rule.
26622
26623         math: Avoid #define replacements in C++ mode.
26624         * lib/math.in.h: Include c++defs.h.
26625         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26626         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26627         trunc, truncl): In C++, define a namespaced alias symbol.
26628         * modules/math (Depends-on): Add c++defs.
26629         (Makefile.am): Update math.h rule.
26630
26631         locale: Avoid #define replacements in C++ mode.
26632         * lib/locale.in.h: Include c++defs.h.
26633         (duplocale): In C++, define a namespaced alias symbol.
26634         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26635         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26636         * modules/locale (Depends-on): Add c++defs.
26637         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26638
26639         langinfo: Avoid #define replacements in C++ mode.
26640         * lib/langinfo.in.h: Include c++defs.h.
26641         (nl_langinfo): In C++, define a namespaced alias symbol.
26642         * modules/langinfo (Depends-on): Add c++defs.
26643         (Makefile.am): Update langinfo.h rule.
26644
26645         iconv-h: Avoid #define replacements in C++ mode.
26646         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26647         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26648         symbol.
26649         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26650         whenever iconv is present.
26651         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26652         (Makefile.am): Update iconv.h rule.
26653
26654         glob: Avoid #define replacements in C++ mode.
26655         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26656         (_gl_glob_errfunc_fn): New type.
26657         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26658         symbol.
26659         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26660         (Makefile.am): Update glob.h rule.
26661
26662         fcntl-h: Avoid #define replacements in C++ mode.
26663         * lib/fcntl.in.h: Include c++defs.h.
26664         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26665         * modules/fcntl-h (Depends-on): Add c++defs.
26666         (Makefile.am): Update fcntl.h rule.
26667
26668         dirent: Avoid #define replacements in C++ mode.
26669         * lib/dirent.in.h: Include c++defs.h.
26670         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26671         namespaced alias symbol.
26672         (dirfd): Update declaration.
26673         * modules/dirent (Depends-on): Add c++defs.
26674         (Makefile.am): Update dirent.h rule.
26675
26676         ctype: Make it usable in C++ code.
26677         * lib/ctype.in.h: Include c++defs.h.
26678         (isblank): Declare as extern "C".
26679         * modules/ctype (Depends-on): Add c++defs.
26680         (Makefile.am): Update ctype.h rule.
26681
26682         New module 'c++defs'.
26683         * modules/c++defs: New file.
26684         * build-aux/c++defs.h: New file.
26685         Reported by John W. Eaton <jwe@gnu.org>.
26686
26687 2010-03-07  Bruno Haible  <bruno@clisp.org>
26688
26689         logb: Provide missing declaration for Cygwin.
26690         * lib/math.in.h (logb): New declaration.
26691         * m4/logb.m4: New file.
26692         * modules/logb (Files): Add m4/logb.m4.
26693         (Depends-on): Add math.
26694         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26695         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26697         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26698         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26699
26700 2010-03-07  Bruno Haible  <bruno@clisp.org>
26701
26702         Fix test-cond link error.
26703         * tests/test-cond.c: Include <stdio.h>.
26704
26705 2010-03-07  Bruno Haible  <bruno@clisp.org>
26706
26707         Fix test-dirent-safer link error.
26708         * modules/dirent-safer-tests (Makefile.am): Define
26709         test_dirent_safer_LDADD.
26710
26711 2010-03-07  Bruno Haible  <bruno@clisp.org>
26712
26713         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26714         among default module list.
26715
26716 2010-03-07  Bruno Haible  <bruno@clisp.org>
26717
26718         Fix link error on platforms with GNU libiconv.
26719         * modules/unistr/u8-strcoll-tests (Makefile): Define
26720         test_u8_strcoll_LDADD.
26721         * modules/unistr/u16-strcoll-tests (Makefile): Define
26722         test_u16_strcoll_LDADD.
26723         * modules/unistr/u32-strcoll-tests (Makefile): Define
26724         test_u32_strcoll_LDADD.
26725
26726 2010-03-07  Bruno Haible  <bruno@clisp.org>
26727
26728         Use POSIX declarations for socket functions.
26729         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26730         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26731         rpl_sendto): Change declaration to match POSIX.
26732         * lib/connect.c (rpl_connect): Likewise.
26733         * lib/accept.c (rpl_accept): Likewise.
26734         * lib/bind.c (rpl_bind): Likewise.
26735         * lib/getpeername.c (rpl_getpeername): Likewise.
26736         * lib/getsockname.c (rpl_getsockname): Likewise.
26737         * lib/recv.c (rpl_recv): Likewise.
26738         * lib/send.c (rpl_send): Likewise.
26739         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26740         * lib/sendto.c (rpl_sendto): Likewise.
26741
26742 2010-03-06  Bruno Haible  <bruno@clisp.org>
26743
26744         Clarify access, euidaccess, faccessat.
26745         * doc/posix-functions/faccessat.texi: Mention security problem under
26746         "Other problems", not "Portability problems".
26747         * doc/posix-functions/access.texi: Likewise. Mention a related security
26748         problem.
26749         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26750         * lib/euidaccess.c: Add comments about platforms.
26751         * lib/unistd.in.h (access, euidaccess): Add warnings.
26752
26753 2010-03-07  Bruno Haible  <bruno@clisp.org>
26754
26755         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26756         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26757         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26758         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26759         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26760         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26761         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26762         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26763         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26764         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26765         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26766         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26767         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26768         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26769         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26770         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26771         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26772         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26773         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26774         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26775         Likewise.
26776         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26777         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26778         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26779         Likewise.
26780         * tests/test-spawn.c (main): Make it work when
26781         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26782
26783 2010-03-07  Bruno Haible  <bruno@clisp.org>
26784
26785         Fix incorrect Makefile.am generation in German locale.
26786         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26787         Execute sed command with character range in C locale.
26788
26789 2010-03-06  Bruno Haible  <bruno@clisp.org>
26790
26791         Tests for module 'iconv-h'.
26792         * modules/iconv-h-tests: New file.
26793         * tests/test-iconv-h.c: New file.
26794
26795         New module 'iconv-h'.
26796         * modules/iconv-h: New file.
26797         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26798         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26799         (configure.ac): Remove gl_ICONV_H.
26800         (Makefile.am): Remove rule for iconv.h.
26801
26802 2010-03-06  Bruno Haible  <bruno@clisp.org>
26803
26804         More consistent naming of *.m4 files.
26805         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26806         * modules/wctype (Files): Update.
26807
26808         More consistent naming of *.m4 files.
26809         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26810         * modules/wchar (Files): Update.
26811
26812 2010-03-06  Jim Meyering  <meyering@redhat.com>
26813
26814         euidaccess: relax license to LGPLv2+
26815         * modules/euidaccess (License): Relax to LGPLv2+.
26816
26817 2010-03-06  Bruno Haible  <bruno@clisp.org>
26818
26819         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26820         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26821         (Makefile.am): Augment lib_SOURCES instead.
26822
26823 2010-03-04  Jim Meyering  <meyering@redhat.com>
26824
26825         utime: remove obsolete module
26826         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26827         unnecessary for years, and has been marked as obsolete for 10 months.
26828         * modules/utime: Remove file.
26829         * lib/utime.c: Remove file.
26830         * m4/utime.m4: Remove file.
26831         * m4/utimes-null.m4: Remove file.
26832         * doc/posix-functions/utime.texi (utime): Remove reference to
26833         the module.  Move the sole "fixed by gnulib" item into the
26834         "problems not fixed by Gnulib" list.
26835         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26836
26837 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26838
26839         * modules/exit (License): Relax license to LGPLv2+.
26840         (Status): Mark as obsolete.
26841         * NEWS: Mention deprecated 'exit' module.
26842         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26843         of now obsolete 'exit'.
26844
26845 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26846
26847         fts-lgpl: remove unused module
26848         * modules/fts-lgpl: Remove.
26849         * MODULES.html.sh (func_all_modules): Adjust.
26850         * check-module (find_included_lib_files): Adjust.
26851         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26852
26853 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26854
26855         copy-acl: enhance Solaris ACL error handling
26856         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26857         * lib/set-mode-acl.c (qset_acl): Likewise.
26858
26859 2010-03-02  Bruno Haible  <bruno@clisp.org>
26860
26861         spawn: Don't override the system defined values on FreeBSD 8.
26862         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26863         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26864         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26865         if HAVE_POSIX_SPAWN is 1.
26866         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26867
26868 2010-03-01  Bruno Haible  <bruno@clisp.org>
26869
26870         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26871         regarding Automake.
26872
26873 2010-02-25  Bruno Haible  <bruno@clisp.org>
26874
26875         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26876         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26877         setting, not afterwards.
26878         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26879
26880 2010-02-24  Eric Blake  <eblake@redhat.com>
26881
26882         bootstrap, git-version-gen: use timestamp
26883         * build-aux/git-version-gen (scriptversion): Force UTC.
26884         * build-aux/bootstrap (scriptversion): New variable.
26885
26886         bootstrap: allow older git
26887         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26888         older than 1.6.4.  Requested by the libvirt project.
26889
26890 2010-02-23  Eric Blake  <eblake@redhat.com>
26891
26892         warn-on-use: work with old autoconf
26893         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26894         AS_VAR semantics of autoconf 2.60.
26895         Reported by Bruno Haible.
26896
26897         bootstrap: improve some comments
26898         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26899         clarification comments.
26900
26901         gettimeofday: provide correct function
26902         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26903         when replacement is declared, otherwise provide gettimeofday.
26904         Reported by Michael Goffioul.
26905
26906 2010-02-23  Jim Meyering  <meyering@redhat.com>
26907
26908         lib-ignore: relax license to "unlimited", not LGPLv2+
26909         * modules/lib-ignore (License): Relax to "unlimited".
26910
26911 2010-02-23  Jim Meyering  <meyering@redhat.com>
26912
26913         lib-ignore: relax license to LGPLv2+
26914         * modules/lib-ignore (License): Relax to LGPLv2+.
26915
26916 2010-02-22  Eric Blake  <eblake@redhat.com>
26917
26918         lseek: avoid bash 3.2 broken pipe bug
26919         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26920         warning from bash 3.2.
26921         Reported by Ben Pfaff, with analysis from Bruno Haible.
26922
26923         bootstrap: support non-FSF copyright holder
26924         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26925         bootstrap.conf override of COPYRIGHT_HOLDER.
26926         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26927
26928         bootstrap: interoperate with gettext 0.14.1
26929         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26930
26931         bootstrap: allow for alternate submodule location
26932         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26933         hardcoding submodule location.
26934         (gnulib_mk): Allow direct use of Makefile.am.
26935
26936         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26937         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26938         rather than reconfiguring where the submodule points.
26939
26940         gettimeofday: restore support for platforms that lack function
26941         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26942         replacement if function is missing.
26943         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26944         * modules/sys_time (Makefile.am): Substitute it.
26945         * lib/sys_time.in.h (gettimeofday): Check it.
26946         Reported by Michael Goffioul.
26947
26948 2010-02-21  Bruno Haible  <bruno@clisp.org>
26949
26950         * lib/stdio.in.h (obstack_printf): Fix typo.
26951
26952 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26953
26954         vc-list-files: use bzr ls's -R option
26955         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26956         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26957
26958 2010-02-21  Jim Meyering  <meyering@redhat.com>
26959
26960         init.sh: fix EXEEXT shims to work also for names like test-prog
26961         * tests/init.sh: Re-exec a better shell, when needed.
26962         If the current shell lacks support for posix $(...), an init.sh-using
26963         test will now try to find a shell that supports that.  If EXEEXT is
26964         nonempty, we also require support for hyphen-in-alias-name and shell
26965         substitutions like ${var#glob}.  Failure to find such a shell results
26966         in a skipped test.
26967
26968 2010-02-21  Bruno Haible  <bruno@clisp.org>
26969
26970         Really work around around "broken pipe" error message from bash 3.2.
26971         * gnulib-tool (func_reset_sigpipe): Remove function.
26972         (echo): In bash 3.2, define to a function that uses printf.
26973         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26974
26975 2010-02-20  Bruno Haible  <bruno@clisp.org>
26976
26977         Restore support for automake 1.9.6 with autoconf 2.61.
26978         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26979         Reported by James Youngman <jay@gnu.org>.
26980
26981 2010-02-20  Bruno Haible  <bruno@clisp.org>
26982
26983         Improve *printf warning condition.
26984         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26985         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26986         and the function is overridden due to SIGPIPE emulation.
26987
26988 2010-02-20  Bruno Haible  <bruno@clisp.org>
26989
26990         * lib/stdio.in.h: Tweak comments.
26991
26992 2010-02-19  Bruno Haible  <bruno@clisp.org>
26993
26994         Make it easier to find modules. New gnulib-tool option '--find'.
26995         * gnulib-tool: New option --find.
26996         (func_usage): Document it.
26997         (func_sanitize_modulelist): New function, extracted from
26998         func_all_modules.
26999         (func_all_modules): Invoke it.
27000         * doc/gnulib-tool.texi (Which modules?): New node.
27001
27002 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27003
27004         * lib/sys_select.in.h: Provide select replacement even if
27005         sys/select.h exists on a system, for Interix.
27006
27007 2010-02-18  Jim Meyering  <meyering@redhat.com>
27008
27009         init.sh: don't use $(...) just yet
27010         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27011         to accommodate e.g., Solaris' /bin/sh.
27012
27013 2010-02-17  Bruno Haible  <bruno@clisp.org>
27014
27015         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27016         Reported by Ludovic Courtès <ludo@gnu.org>.
27017
27018 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27019
27020         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27021         linking with -lintl.
27022
27023 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27024
27025         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27026         if not provided by the system's netdb.h.  Reported by
27027         ludo@gnu.org (Ludovic Courtès).
27028
27029 2010-02-15  Jim Meyering  <meyering@redhat.com>
27030
27031         init.sh: improve portability and efficiency
27032         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27033         "dummy" in a for loop.
27034         Use '!', not '^' to select the complement of a character set used
27035         in a "case" statement.
27036         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27037         Suggestions from Eric Blake.
27038
27039         init.sh: automatically accommodate programs with the .exe suffix
27040         Automatically arrange for an invocation of "prog" to execute the
27041         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27042         may use the simpler "prog", yet still work when built on a system
27043         that requires specifying the added suffix.
27044         Do this by constructing a function named "prog" that invokes
27045         "prog.exe" for each .exe file in selected directories.
27046         * tests/init.sh (find_exe_basenames_): New function.
27047         (create_exe_shim_functions_): New function.
27048         (path_prepend_): Use it.
27049
27050         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27051         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27052         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27053
27054 2010-02-14  Jim Meyering  <meyering@redhat.com>
27055
27056         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27057         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27058         (sc_prohibit_hash_pjw_without_use): New rule.
27059
27060         maint.mk: allow the default upload destination dir to be overridden
27061         * top/maint.mk (upload_dest_dir_): Define with a default that
27062         preserves the status quo.
27063         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27064         Reported by Peter Simons.
27065
27066         maint.mk: prohibit inclusion of "hash.h" without_use
27067         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27068
27069 2010-02-10  Jim Meyering  <meyering@redhat.com>
27070
27071         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27072         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27073
27074 2010-02-09  Eric Blake  <ebb9@byu.net>
27075         and Bruno Haible  <bruno@clisp.org>
27076
27077         obstack-printf-posix: ensure declaration
27078         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27079         extracted from gl_FUNC_OBSTACK_PRINTF.
27080         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27081         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27082         Likewise.
27083         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27084         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27085         0.
27086
27087 2010-02-08  Bruno Haible  <bruno@clisp.org>
27088
27089         gnulib-tool: Fix typo in 2010-02-07 commit.
27090         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27091         Reported by Eric Blake.
27092
27093 2010-02-07  Bruno Haible  <bruno@clisp.org>
27094
27095         gnulib-tool: Fix up caching patches.
27096         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27097         option --no-cache. Use associative arrays when supported by the shell.
27098         (sed_comments): New variable.
27099         (modcache): Renamed from do_cache.
27100         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27101         abbreviate unnecessarily.
27102         (have_associative): New variable.
27103         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27104         way also for ksh and zsh.
27105         (func_init_sed_convert_to_cache_statements): New function, extracted
27106         from func_cache_lookup_module. Add support for associative arrays.
27107         Don't set the c_MODULE_cached variable here. Ignore all lines before
27108         the first field header. Remove only the final newline, not all trailing
27109         newlines. Support empty fields correctly. Limit the use of 'eval' to
27110         assignments.
27111         (func_get_description, func_get_status, func_get_notice,
27112         func_get_applicability, func_get_filelist, func_get_dependencies,
27113         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27114         func_get_automake_snippet, func_get_include_directive,
27115         func_get_link_directive, func_get_license, func_get_maintainer):
27116         Update documentation. List the unoptimized code first. Add support for
27117         associative arrays. Limit the use of 'eval' to assignments.
27118         (func_get_applicability): Undo stylistic pessimisations.
27119         (func_get_automake_snippet, func_get_include_directive): Reduce code
27120         duplication.
27121         (func_modules_transitive_closure, func_modules_add_dummy,
27122         func_modules_notice, func_modules_to_filelist, func_add_file,
27123         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27124         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27125         func_create_testdir, func_create_megatestdir): Update documentation.
27126
27127 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27128
27129         * gnulib-tool (func_cache_lookup_module): Store the module name
27130         belonging to the cache variable; error out if two different
27131         module names map to the same cache variable name.
27132
27133 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27134
27135         gnulib-tool: Make caching optional.
27136         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27137         Update matching short versions of --no-changelog.
27138         (func_usage): Update.
27139         (sed_extract_cache_prog): Renamed from ...
27140         (sed_extract_prog): ... this; revert to old extraction script.
27141         (func_get_description, func_get_status)
27142         (func_get_notice, func_get_applicability, func_get_filelist)
27143         (func_get_dependencies, func_get_autoconf_early_snippet)
27144         (func_get_autoconf_snippet, func_get_automake_snippet)
27145         (func_get_include_directive, func_get_link_directive)
27146         (func_get_license, func_get_maintainer): If $do_cache is false,
27147         use old, non-caching extraction scripts.
27148         Suggestion by Bruno Haible.
27149
27150 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27151
27152         gnulib-tool: cache module metainformation.
27153         * gnulib-tool (sed_extract_prog): Match newline before each
27154         header, and rewrite header to a shell variable suffix.
27155         (func_cache_var, func_cache_lookup_module): New functions,
27156         to turn a module name into a cache variable prefix, and to
27157         look up and cache module metainformation.
27158         (func_get_description, func_get_status)
27159         (func_get_notice, func_get_applicability, func_get_filelist)
27160         (func_get_dependencies, func_get_autoconf_early_snippet)
27161         (func_get_autoconf_snippet, func_get_automake_snippet)
27162         (func_get_include_directive, func_get_link_directive)
27163         (func_get_license, func_get_maintainer): Use
27164         func_cache_lookup_module.
27165
27166 2010-02-07  Bruno Haible  <bruno@clisp.org>
27167
27168         fnctl: Fix missing dependency.
27169         * modules/fcntl (Depends-on): Add getdtablesize.
27170         Reported by John W. Eaton <jwe@gnu.org>.
27171
27172 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27173
27174         Argp: fix recognition of short alias options.
27175
27176         * lib/argp-parse.c (convert_options): Fix improper use of
27177         `|' between character values.
27178         * tests/test-argp.c (group1_option): New alias option
27179         --read (-r).
27180         (group1_parser): Special handling for 'r'.
27181         (test15): New test case.
27182         (test_fun): Add test15.
27183         * tests/test-argp-2.sh: Update expected --help and --usage
27184         outputs.
27185
27186 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27187
27188         * tests/test-argp.c: Fix indentation.
27189
27190 2010-02-04  Eric Blake  <ebb9@byu.net>
27191
27192         gettimeofday: expose type of second argument
27193         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27194         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27195         * tests/test-gettimeofday.c: Use it to silence warning.
27196         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27197         the issue.
27198
27199 2010-02-03  Jim Meyering  <meyering@redhat.com>
27200
27201         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27202         * lib/regcomp.c (TYPE_SIGNED): Define.
27203         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27204
27205         regcomp.c: avoid a new -Wshadow warning
27206         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27207
27208 2010-02-01  Jim Meyering  <meyering@redhat.com>
27209
27210         removing useless parentheses in cpp #define directives
27211         For motivation, see commit c0221df4, "define STREQ(a,b)
27212         consistently, removing useless parentheses"
27213         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27214         * lib/mountlist.c (MNT_IGNORE): Likewise.
27215         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27216
27217 2010-02-01  Eric Blake  <ebb9@byu.net>
27218
27219         sys_time: use link-warning
27220         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27221         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27222         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27223         * modules/sys_time (Depends-on): Add warn-on-use.
27224         (Makefile.am): Always build replacement.
27225         (configure.ac): Update substitutions.
27226         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27227         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27228         bother with SYS_TIME_H.
27229         * modules/gettimeofday (configure.ac): Declare indicator.
27230         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27231         in use.
27232
27233         closein-tests: silence compiler warning
27234         * tests/test-closein.c (main): Ignore fread result.
27235         * modules/closein-tests (Depends-on): Add ignore-value.
27236
27237         tests: silence warning about system return
27238         * tests/test-areadlink-with-size.c (main): Ignore system result.
27239         * tests/test-areadlink.c (main): Likewise.
27240         * tests/test-areadlinkat-with-size.c (main): Likewise.
27241         * tests/test-areadlinkat.c (main): Likewise.
27242         * tests/test-canonicalize-lgpl.c (main): Likewise.
27243         * tests/test-canonicalize.c (main): Likewise.
27244         * tests/test-chown.c (main): Likewise.
27245         * tests/test-fchownat.c (main): Likewise.
27246         * tests/test-fdutimensat.c (main): Likewise.
27247         * tests/test-fstatat.c (main): Likewise.
27248         * tests/test-futimens.c (main): Likewise.
27249         * tests/test-lchown.c (main): Likewise.
27250         * tests/test-link.c (main): Likewise.
27251         * tests/test-linkat.c (main): Likewise.
27252         * tests/test-lstat.c (main): Likewise.
27253         * tests/test-mkdir.c (main): Likewise.
27254         * tests/test-mkdirat.c (main): Likewise.
27255         * tests/test-mkfifo.c (main): Likewise.
27256         * tests/test-mkfifoat.c (main): Likewise.
27257         * tests/test-mknod.c (main): Likewise.
27258         * tests/test-readlink.c (main): Likewise.
27259         * tests/test-remove.c (main): Likewise.
27260         * tests/test-rename.c (main): Likewise.
27261         * tests/test-renameat.c (main): Likewise.
27262         * tests/test-rmdir.c (main): Likewise.
27263         * tests/test-symlink.c (main): Likewise.
27264         * tests/test-symlinkat.c (main): Likewise.
27265         * tests/test-unlink.c (main): Likewise.
27266         * tests/test-unlinkat.c (main): Likewise.
27267         * tests/test-utimens.c (main): Likewise.
27268         * tests/test-utimensat.c (main): Likewise.
27269         * modules/areadlink-tests (Depends-on): Add ignore-value.
27270         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27271         * modules/areadlinkat-tests (Depends-on): Likewise.
27272         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27273         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27274         * modules/canonicalize-tests (Depends-on): Likewise.
27275         * modules/chown-tests (Depends-on): Likewise.
27276         * modules/fdutimensat-tests (Depends-on): Likewise.
27277         * modules/futimens-tests (Depends-on): Likewise.
27278         * modules/lchown-tests (Depends-on): Likewise.
27279         * modules/link-tests (Depends-on): Likewise.
27280         * modules/linkat-tests (Depends-on): Likewise.
27281         * modules/lstat-tests (Depends-on): Likewise.
27282         * modules/mkdir-tests (Depends-on): Likewise.
27283         * modules/mkfifo-tests (Depends-on): Likewise.
27284         * modules/mkfifoat-tests (Depends-on): Likewise.
27285         * modules/mknod-tests (Depends-on): Likewise.
27286         * modules/openat-tests (Depends-on): Likewise.
27287         * modules/readlink-tests (Depends-on): Likewise.
27288         * modules/remove-tests (Depends-on): Likewise.
27289         * modules/rename-tests (Depends-on): Likewise.
27290         * modules/renameat-tests (Depends-on): Likewise.
27291         * modules/rmdir-tests (Depends-on): Likewise.
27292         * modules/symlink-tests (Depends-on): Likewise.
27293         * modules/symlinkat-tests (Depends-on): Likewise.
27294         * modules/unlink-tests (Depends-on): Likewise.
27295         * modules/utimens-tests (Depends-on): Likewise.
27296         * modules/utimensat-tests (Depends-on): Likewise.
27297
27298 2010-01-31  Bruno Haible  <bruno@clisp.org>
27299
27300         Perform the same test for many <math.h> functions.
27301         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27302         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27303         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27304         of gl_MATHFUNC.
27305         * modules/acos (configure.ac): Likewise.
27306         * modules/asin (configure.ac): Likewise.
27307         * modules/atan (configure.ac): Likewise.
27308         * modules/atan2 (configure.ac): Likewise.
27309         * modules/cbrt (configure.ac): Likewise.
27310         * modules/copysign (configure.ac): Likewise.
27311         * modules/cos (configure.ac): Likewise.
27312         * modules/cosh (configure.ac): Likewise.
27313         * modules/erf (configure.ac): Likewise.
27314         * modules/erfc (configure.ac): Likewise.
27315         * modules/exp (configure.ac): Likewise.
27316         * modules/fmod (configure.ac): Likewise.
27317         * modules/hypot (configure.ac): Likewise.
27318         * modules/j0 (configure.ac): Likewise.
27319         * modules/j1 (configure.ac): Likewise.
27320         * modules/jn (configure.ac): Likewise.
27321         * modules/lgamma (configure.ac): Likewise.
27322         * modules/log (configure.ac): Likewise.
27323         * modules/log10 (configure.ac): Likewise.
27324         * modules/log1p (configure.ac): Likewise.
27325         * modules/pow (configure.ac): Likewise.
27326         * modules/remainder (configure.ac): Likewise.
27327         * modules/sin (configure.ac): Likewise.
27328         * modules/sinh (configure.ac): Likewise.
27329         * modules/tan (configure.ac): Likewise.
27330         * modules/tanh (configure.ac): Likewise.
27331         * modules/y0 (configure.ac): Likewise.
27332         * modules/y1 (configure.ac): Likewise.
27333         * modules/yn (configure.ac): Likewise.
27334         Suggested by Paolo Bonzini.
27335
27336 2010-01-31  Bruno Haible  <bruno@clisp.org>
27337
27338         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27339
27340 2010-01-31  Bruno Haible  <bruno@clisp.org>
27341
27342         Work around getdelim() bug on FreeBSD 8.0.
27343         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27344         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27345         not work.
27346         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27347         is 1.
27348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27349         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27350         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27351         a non-zero size.
27352         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27353
27354 2010-01-31  Bruno Haible  <bruno@clisp.org>
27355
27356         Work around getline() bug on FreeBSD 8.0.
27357         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27358         and a non-zero size.
27359         * tests/test-getline.c (main): Likewise.
27360         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27361         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27362
27363 2010-01-28  Eric Blake  <ebb9@byu.net>
27364
27365         regex: fix build failure
27366         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27367         platforms.
27368
27369 2010-01-28  Jim Meyering  <meyering@redhat.com>
27370
27371         regex: do not ignore memory allocation failure
27372         * lib/regex_internal.c (create_cd_newstate): Detect
27373         re_node_set_init_copy failure.   Extracted from glibc commit
27374         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27375
27376         regex: sync more white-space changes from libc
27377         * lib/regex_internal.c: White-space only changes.
27378         * lib/regexec.c: Likewise.
27379
27380         regex: add many uses of __attribute_warn_unused_result__
27381         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27382         * lib/regexec.c: Likewise.
27383         Extracted from a messy glibc commit.
27384
27385         regcomp.c: spelling and merge-artifact from glibc
27386         * lib/regcomp.c: Merge remainder of glibc's
27387         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27388
27389         regcomp.c: sync white-space changes from glibc
27390         * lib/regcomp.c: Merge to accommodate white space
27391         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27392
27393         regcomp.c: do not ignore internal return values
27394         * lib/regcomp.c: Do not ignore internal return values.
27395         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27396         but without its white-space changes and spelling fixes.
27397
27398         regex_internal.h: define __attribute_warn_unused_result__
27399         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27400
27401         maint: add a syntax-check rule to check for vulnerable Makefile.in
27402         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27403
27404 2010-01-27  Jim Meyering  <meyering@redhat.com>
27405
27406         ncftpput-ftp: clean up spaces
27407         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27408         Remove trailing blanks.
27409
27410 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27411
27412         * build-aux/git-version-gen: Fix copyright statement.
27413         * build-aux/gnupload: Likewise.
27414         * tests/test-arcfour.c: Likewise.
27415         * tests/test-arctwo.c: Likewise.
27416         * tests/test-count-one-bits.c: Likewise.
27417         * tests/test-crc.c: Likewise.
27418         * tests/test-des.c: Likewise.
27419         * tests/test-gc-arcfour.c: Likewise.
27420         * tests/test-gc-arctwo.c: Likewise.
27421         * tests/test-gc-des.c: Likewise.
27422         * tests/test-gc-hmac-md5.c: Likewise.
27423         * tests/test-gc-hmac-sha1.c: Likewise.
27424         * tests/test-gc-md2.c: Likewise.
27425         * tests/test-gc-md4.c: Likewise.
27426         * tests/test-gc-md5.c: Likewise.
27427         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27428         * tests/test-gc-rijndael.c: Likewise.
27429         * tests/test-gc-sha1.c: Likewise.
27430         * tests/test-gc.c: Likewise.
27431         * tests/test-gethostname.c: Likewise.
27432         * tests/test-gettimeofday.c: Likewise.
27433         * tests/test-hash.c: Likewise.
27434         * tests/test-hmac-md5.c: Likewise.
27435         * tests/test-hmac-sha1.c: Likewise.
27436         * tests/test-md2.c: Likewise.
27437         * tests/test-md4.c: Likewise.
27438         * tests/test-md5.c: Likewise.
27439         * tests/test-memchr.c: Likewise.
27440         * tests/test-memchr2.c: Likewise.
27441         * tests/test-memcmp.c: Likewise.
27442         * tests/test-memmem.c: Likewise.
27443         * tests/test-memrchr.c: Likewise.
27444         * tests/test-rawmemchr.c: Likewise.
27445         * tests/test-read-file.c: Likewise.
27446         * tests/test-rijndael.c: Likewise.
27447         * tests/test-sockets.c: Likewise.
27448         * tests/test-strchrnul.c: Likewise.
27449         * tests/test-strstr.c: Likewise.
27450         * tests/test-strtod.c: Likewise.
27451         * build-aux/ncftpput-ftp: Likewise.
27452
27453 2010-01-26  Eric Blake  <ebb9@byu.net>
27454
27455         ignore-value: update recommended header name
27456         * modules/ignore-value (Include): Only use <> for headers that
27457         exist in glibc.
27458
27459 2010-01-26  Jim Meyering  <meyering@redhat.com>
27460
27461         test-userspec.c: avoid compiler warnings
27462         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27463         and "initialization discards qualifiers..." warnings.
27464         Put the first "uid" in its own scope, and make char* members "const".
27465
27466 2010-01-25  Bruno Haible  <bruno@clisp.org>
27467
27468         gnulib-tool: Make warning diagnostics consistent.
27469         * gnulib-tool (func_warning): New function.
27470         Use it everywhere where gnulib-tool produces output to stderr and it is
27471         not a fatal error.
27472
27473 2010-01-25  Bruno Haible  <bruno@clisp.org>
27474
27475         Fix test dependencies.
27476         * modules/xstrtol-tests (Depends-on): Add inttypes.
27477         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27478
27479 2010-01-25 Pádraig Brady <P@draigBrady.com>
27480
27481         syntax-check: detect incorrect boolean macro values in config.h
27482         * modules/maintainer-makefile (configure.ac): Parameterize the location
27483         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27484         The logic is from Eric Blake and the location indicated by Jim Meyering.
27485         Note the more natural CONFIG_HEADER name is prohibited by automake
27486         for backwards compatibility reasons.
27487         * top/maint.mk (sc_Wundef_boolean): New rule.
27488
27489 2010-01-25  Jim Meyering  <meyering@redhat.com>
27490
27491         bootstrap: detect MacOS 10.6's shasum, too
27492         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27493         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27494
27495 2010-01-23  Jim Meyering  <meyering@redhat.com>
27496
27497         xstrtoll: new module
27498         * modules/xstrtoll: New file.
27499         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27500         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27501         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27502         ./configure fails if you use this module and lack "long long".
27503         * modules/xstrtoll-tests: New module.
27504         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27505         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27506         new init.sh-based test framework.
27507
27508 2010-01-24  Bruno Haible  <bruno@clisp.org>
27509
27510         Tests for module 'yn'.
27511         * modules/yn-tests: New file.
27512         * tests/test-yn.c: New file.
27513
27514         Tests for module 'y1'.
27515         * modules/y1-tests: New file.
27516         * tests/test-y1.c: New file.
27517
27518         Tests for module 'y0'.
27519         * modules/y0-tests: New file.
27520         * tests/test-y0.c: New file.
27521
27522         Tests for module 'tanh'.
27523         * modules/tanh-tests: New file.
27524         * tests/test-tanh.c: New file.
27525
27526         Tests for module 'tan'.
27527         * modules/tan-tests: New file.
27528         * tests/test-tan.c: New file.
27529
27530         Tests for module 'sqrt'.
27531         * modules/sqrt-tests: New file.
27532         * tests/test-sqrt.c: New file.
27533
27534         Tests for module 'sinh'.
27535         * modules/sinh-tests: New file.
27536         * tests/test-sinh.c: New file.
27537
27538         Tests for module 'sin'.
27539         * modules/sin-tests: New file.
27540         * tests/test-sin.c: New file.
27541
27542         Tests for module 'rint'.
27543         * modules/rint-tests: New file.
27544         * tests/test-rint.c: New file.
27545
27546         Tests for module 'remainder'.
27547         * modules/remainder-tests: New file.
27548         * tests/test-remainder.c: New file.
27549
27550         Tests for module 'pow'.
27551         * modules/pow-tests: New file.
27552         * tests/test-pow.c: New file.
27553
27554         Tests for module 'nextafter'.
27555         * modules/nextafter-tests: New file.
27556         * tests/test-nextafter.c: New file.
27557
27558         Tests for module 'modf'.
27559         * modules/modf-tests: New file.
27560         * tests/test-modf.c: New file.
27561
27562         Tests for module 'logb'.
27563         * modules/logb-tests: New file.
27564         * tests/test-logb.c: New file.
27565
27566         Tests for module 'log1p'.
27567         * modules/log1p-tests: New file.
27568         * tests/test-log1p.c: New file.
27569
27570         Tests for module 'log10'.
27571         * modules/log10-tests: New file.
27572         * tests/test-log10.c: New file.
27573
27574         Tests for module 'log'.
27575         * modules/log-tests: New file.
27576         * tests/test-log.c: New file.
27577
27578         Tests for module 'lgamma'.
27579         * modules/lgamma-tests: New file.
27580         * tests/test-lgamma.c: New file.
27581
27582         Tests for module 'ldexp'.
27583         * modules/ldexp-tests: New file.
27584         * tests/test-ldexp.c: New file.
27585
27586         Tests for module 'jn'.
27587         * modules/jn-tests: New file.
27588         * tests/test-jn.c: New file.
27589
27590         Tests for module 'j1'.
27591         * modules/j1-tests: New file.
27592         * tests/test-j1.c: New file.
27593
27594         Tests for module 'j0'.
27595         * modules/j0-tests: New file.
27596         * tests/test-j0.c: New file.
27597
27598         Tests for module 'hypot'.
27599         * modules/hypot-tests: New file.
27600         * tests/test-hypot.c: New file.
27601
27602         Tests for module 'fmod'.
27603         * modules/fmod-tests: New file.
27604         * tests/test-fmod.c: New file.
27605
27606         Tests for module 'fabs'.
27607         * modules/fabs-tests: New file.
27608         * tests/test-fabs.c: New file.
27609
27610         Tests for module 'exp'.
27611         * modules/exp-tests: New file.
27612         * tests/test-exp.c: New file.
27613
27614         Tests for module 'erfc'.
27615         * modules/erfc-tests: New file.
27616         * tests/test-erfc.c: New file.
27617
27618         Tests for module 'erf'.
27619         * modules/erf-tests: New file.
27620         * tests/test-erf.c: New file.
27621
27622         Tests for module 'cosh'.
27623         * modules/cosh-tests: New file.
27624         * tests/test-cosh.c: New file.
27625
27626         Tests for module 'cos'.
27627         * modules/cos-tests: New file.
27628         * tests/test-cos.c: New file.
27629
27630         Tests for module 'copysign'.
27631         * modules/copysign-tests: New file.
27632         * tests/test-copysign.c: New file.
27633
27634         Tests for module 'cbrt'.
27635         * modules/cbrt-tests: New file.
27636         * tests/test-cbrt.c: New file.
27637
27638         Tests for module 'atan2'.
27639         * modules/atan2-tests: New file.
27640         * tests/test-atan2.c: New file.
27641
27642         Tests for module 'atan'.
27643         * modules/atan-tests: New file.
27644         * tests/test-atan.c: New file.
27645
27646         Tests for module 'asin'.
27647         * modules/asin-tests: New file.
27648         * tests/test-asin.c: New file.
27649
27650         Tests for module 'acos'.
27651         * modules/acos-tests: New file.
27652         * tests/test-acos.c: New file.
27653
27654 2010-01-24  Bruno Haible  <bruno@clisp.org>
27655
27656         Fix tests for common <math.h> functions.
27657         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27658         code snippet that references the function pointer, rather than merely
27659         calling the function. Substitute the FUNC_LIBM variable.
27660         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27661         * modules/acos (configure.ac): Likewise.
27662         * modules/asin (configure.ac): Likewise.
27663         * modules/atan (configure.ac): Likewise.
27664         * modules/atan2 (configure.ac): Likewise.
27665         * modules/cbrt (configure.ac): Likewise.
27666         * modules/copysign (configure.ac): Likewise.
27667         * modules/cos (configure.ac): Likewise.
27668         * modules/cosh (configure.ac): Likewise.
27669         * modules/erf (configure.ac): Likewise.
27670         * modules/erfc (configure.ac): Likewise.
27671         * modules/exp (configure.ac): Likewise.
27672         * modules/fabs (configure.ac): Likewise.
27673         * modules/fmod (configure.ac): Likewise.
27674         * modules/hypot (configure.ac): Likewise.
27675         * modules/j0 (configure.ac): Likewise.
27676         * modules/j1 (configure.ac): Likewise.
27677         * modules/jn (configure.ac): Likewise.
27678         * modules/ldexp (configure.ac): Likewise.
27679         * modules/lgamma (configure.ac): Likewise.
27680         * modules/log (configure.ac): Likewise.
27681         * modules/log10 (configure.ac): Likewise.
27682         * modules/log1p (configure.ac): Likewise.
27683         * modules/logb (configure.ac): Likewise.
27684         * modules/modf (configure.ac): Likewise.
27685         * modules/nextafter (configure.ac): Likewise.
27686         * modules/pow (configure.ac): Likewise.
27687         * modules/remainder (configure.ac): Likewise.
27688         * modules/rint (configure.ac): Likewise.
27689         * modules/sin (configure.ac): Likewise.
27690         * modules/sinh (configure.ac): Likewise.
27691         * modules/tan (configure.ac): Likewise.
27692         * modules/tanh (configure.ac): Likewise.
27693         * modules/y0 (configure.ac): Likewise.
27694         * modules/y1 (configure.ac): Likewise.
27695         * modules/yn (configure.ac): Likewise.
27696
27697 2010-01-24  Bruno Haible  <bruno@clisp.org>
27698
27699         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27700         * tests/test-acosl.c (x): New variable.
27701         (main): Store argument in x and fetch it from x.
27702         * tests/test-asinl.c (x): New variable.
27703         (main): Store argument in x and fetch it from x.
27704         * tests/test-atanl.c (x): New variable.
27705         (main): Store argument in x and fetch it from x.
27706         * tests/test-cosl.c (x): New variable.
27707         (main): Store argument in x and fetch it from x.
27708         * tests/test-expl.c (x): New variable.
27709         (main): Store argument in x and fetch it from x.
27710         * tests/test-logl.c (x): New variable.
27711         (main): Store argument in x and fetch it from x.
27712         * tests/test-sinl.c (x): New variable.
27713         (main): Store argument in x and fetch it from x.
27714         * tests/test-sqrtl.c (x): New variable.
27715         (main): Store argument in x and fetch it from x.
27716         * tests/test-tanl.c (x): New variable.
27717         (main): Store argument in x and fetch it from x.
27718
27719 2010-01-24  Bruno Haible  <bruno@clisp.org>
27720
27721         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27722         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27723         assignments to the initial TESTS_ENVIRONMENT.
27724         * doc/gnulib.texi (Unit test modules): Document it.
27725         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27726         TESTS_ENVIRONMENT.
27727         * modules/btowc-tests (Makefile.am): Likewise.
27728         * modules/c-stack-tests (Makefile.am): Likewise.
27729         * modules/c-strcase-tests (Makefile.am): Likewise.
27730         * modules/copy-file-tests (Makefile.am): Likewise.
27731         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27732         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27733         * modules/mbrtowc-tests (Makefile.am): Likewise.
27734         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27735         * modules/mbscasestr-tests (Makefile.am): Likewise.
27736         * modules/mbschr-tests (Makefile.am): Likewise.
27737         * modules/mbscspn-tests (Makefile.am): Likewise.
27738         * modules/mbsinit-tests (Makefile.am): Likewise.
27739         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27740         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27741         * modules/mbspbrk-tests (Makefile.am): Likewise.
27742         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27743         * modules/mbsrchr-tests (Makefile.am): Likewise.
27744         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27745         * modules/mbsspn-tests (Makefile.am): Likewise.
27746         * modules/mbsstr-tests (Makefile.am): Likewise.
27747         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27748         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27749         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27750         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27751         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27752         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27753         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27754         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27755         * modules/wcrtomb-tests (Makefile.am): Likewise.
27756         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27757         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27758         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27759         assignments from TESTS_ENVIRONMENT.
27760         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27761         augmentation.
27762         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27763         * modules/atexit-tests (Makefile.am): Likewise.
27764         * modules/binary-io-tests (Makefile.am): Likewise.
27765         * modules/closein-tests (Makefile.am): Likewise.
27766         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27767         * modules/exclude-tests (Makefile.am): Likewise.
27768         * modules/fflush-tests (Makefile.am): Likewise.
27769         * modules/fpending-tests (Makefile.am): Likewise.
27770         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27771         * modules/freadahead-tests (Makefile.am): Likewise.
27772         * modules/freadptr-tests (Makefile.am): Likewise.
27773         * modules/freadseek-tests (Makefile.am): Likewise.
27774         * modules/fseek-tests (Makefile.am): Likewise.
27775         * modules/fseeko-tests (Makefile.am): Likewise.
27776         * modules/ftell-tests (Makefile.am): Likewise.
27777         * modules/ftello-tests (Makefile.am): Likewise.
27778         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27779         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27780         * modules/lseek-tests (Makefile.am): Likewise.
27781         * modules/parse-duration-tests (Makefile.am): Likewise.
27782         * modules/perror-tests (Makefile.am): Likewise.
27783         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27784         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27785         * modules/pipe-tests (Makefile.am): Likewise.
27786         * modules/pread-tests (Makefile.am): Likewise.
27787         * modules/printf-posix-tests (Makefile.am): Likewise.
27788         * modules/select-tests (Makefile.am): Likewise.
27789         * modules/sigpipe-tests (Makefile.am): Likewise.
27790         * modules/tsearch-tests (Makefile.am): Likewise.
27791         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27792         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27793         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27794         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27795         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27796         * modules/version-etc-tests (Makefile.am): Likewise.
27797         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27798         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27799         * modules/xalloc-die-tests (Makefile.am): Likewise.
27800         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27801         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27802         * modules/xstrtol-tests (Makefile.am): Likewise.
27803         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27804         * modules/yesno-tests (Makefile.am): Likewise.
27805         Suggested by Jim Meyering.
27806
27807 2010-01-24  Bruno Haible  <bruno@clisp.org>
27808
27809         More documentation.
27810         * doc/gnulib.texi (Writing modules): New chapter.
27811         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27812         the new chapter.
27813
27814 2010-01-24  Jim Meyering  <meyering@redhat.com>
27815
27816         maint.mk: do not prepend "./" after filtering
27817         * top/maint.mk (_prepend_srcdir_prefix): New variable
27818         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27819         "./" when $(srcdir) is ".".
27820
27821         define STREQ(a,b) consistently, removing useless parentheses
27822         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27823         since the only risk is that "a" or "b" contains an unparenthesized
27824         comma, but if either did that, STREQ would have 3 or more arguments.
27825         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27826         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27827         * lib/hash-triple.c (STREQ): Likewise.
27828         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27829         * lib/getugroups.c (STREQ): Likewise.
27830
27831 2010-01-23  Jim Meyering  <meyering@redhat.com>
27832
27833         maint.mk: fix syntax-check in a non-srcdir build directory
27834         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27835         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27836
27837 2010-01-22  Jim Meyering  <meyering@redhat.com>
27838
27839         userspec: add unit tests
27840         * tests/test-userspec.c: New file.
27841         * modules/userspec-tests: Likewise.
27842
27843 2010-01-21  Jim Meyering  <meyering@redhat.com>
27844
27845         maint.mk: handle source file names containing "." robustly
27846         * top/maint.mk (_dot_escaped_srcdir): Define.
27847         (VC_LIST): Use it in LHS of sed substitution.
27848
27849 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27850
27851         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27852         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27853         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27854         from a non-srcdir build.
27855
27856 2010-01-20  Eric Blake  <ebb9@byu.net>
27857
27858         warn-on-use: use instead of link-warning
27859         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27860         * modules/unistd (Depends-on, Makefile.am): Likewise.
27861         * modules/arpa_inet (Depends-on): Replace link-warning with
27862         warn-on-use.
27863         (Makefile.am): Update rules accordingly.
27864         * modules/ctype (Depends-on, Makefile.am): Likewise.
27865         * modules/dirent (Depends-on, Makefile.am): Likewise.
27866         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27867         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27868         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27869         * modules/locale (Depends-on, Makefile.am): Likewise.
27870         * modules/math (Depends-on, Makefile.am): Likewise.
27871         * modules/search (Depends-on, Makefile.am): Likewise.
27872         * modules/signal (Depends-on, Makefile.am): Likewise.
27873         * modules/spawn (Depends-on, Makefile.am): Likewise.
27874         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27875         * modules/string (Depends-on, Makefile.am): Likewise.
27876         * modules/strings (Depends-on, Makefile.am): Likewise.
27877         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27878         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27879         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27880         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27881         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27882         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27883         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27884         * modules/wchar (Depends-on, Makefile.am): Likewise.
27885         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27886         should be poisoned.
27887         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27888         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27889         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27890         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27891         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27892         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27893         * m4/math_h.m4 (gl_MATH_H): Likewise.
27894         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27895         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27896         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27897         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27898         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27899         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27900         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27901         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27902         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27903         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27904         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27905         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27906         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27907         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27908         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27909         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27910         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27911         GL_LINK_WARNING.
27912         * lib/ctype.in.h: Likewise.
27913         * lib/dirent.in.h: Likewise.
27914         * lib/fcntl.in.h: Likewise.
27915         * lib/inttypes.in.h: Likewise.
27916         * lib/langinfo.in.h: Likewise.
27917         * lib/locale.in.h: Likewise.
27918         * lib/math.in.h: Likewise.
27919         * lib/search.in.h: Likewise.
27920         * lib/signal.in.h: Likewise.
27921         * lib/spawn.in.h: Likewise.
27922         * lib/stdio.in.h: Likewise.
27923         * lib/stdlib.in.h: Likewise.
27924         * lib/string.in.h: Likewise.
27925         * lib/strings.in.h: Likewise.
27926         * lib/sys_file.in.h: Likewise.
27927         * lib/sys_ioctl.in.h: Likewise.
27928         * lib/sys_select.in.h: Likewise.
27929         * lib/sys_socket.in.h: Likewise.
27930         * lib/sys_stat.in.h: Likewise.
27931         * lib/sys_times.in.h: Likewise.
27932         * lib/sys_utsname.in.h: Likewise.
27933         * lib/unistd.in.h: Likewise.
27934         * lib/wchar.in.h: Likewise.
27935
27936 2010-01-20  Bruno Haible  <bruno@clisp.org>
27937
27938         Avoid duplicate -lm.
27939         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27940         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27941         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27942         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27943         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27944         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27945         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27946         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27947         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27948         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27949         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27950         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27951         Reported by Paolo Bonzini.
27952
27953 2010-01-19  Bruno Haible  <bruno@clisp.org>
27954
27955         langinfo, nl_langinfo: Relicense under LGPLv2+.
27956         * modules/langinfo (License): Change to LGPLv2+.
27957         * modules/nl_langinfo (License): Likewise.
27958         Patch by David Lutterkort <lutter@redhat.com>.
27959
27960 2010-01-19  Bruno Haible  <bruno@clisp.org>
27961
27962         Avoid compilation error with cc on OSF/1 5.1.
27963         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27964         statement, not before.
27965         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27966
27967 2010-01-18  Bruno Haible  <bruno@clisp.org>
27968
27969         Avoid a link error due to the __printf__ symbol.
27970         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27971         and 2.6.x.
27972         (__format__, __printf__): Remove definitions.
27973         * lib/argp-fmtstream.h: Likewise.
27974         * lib/argp.h: Likewise.
27975         * lib/error.h: Likewise.
27976         * lib/vasnprintf.h: Likewise.
27977         * lib/xprintf.h: Likewise.
27978         * lib/xvasprintf.h: Likewise.
27979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27980
27981 2010-01-18  Bruno Haible  <bruno@clisp.org>
27982
27983         Tests for module 'tanl'.
27984         * modules/tanl-tests: New file.
27985         * tests/test-tanl.c: New file.
27986
27987         Tests for module 'sqrtl'.
27988         * modules/sqrtl-tests: New file.
27989         * tests/test-sqrtl.c: New file.
27990
27991         Tests for module 'sinl'.
27992         * modules/sinl-tests: New file.
27993         * tests/test-sinl.c: New file.
27994
27995         Tests for module 'logl'.
27996         * modules/logl-tests: New file.
27997         * tests/test-logl.c: New file.
27998
27999         Tests for module 'expl'.
28000         * modules/expl-tests: New file.
28001         * tests/test-expl.c: New file.
28002
28003         Tests for module 'cosl'.
28004         * modules/cosl-tests: New file.
28005         * tests/test-cosl.c: New file.
28006
28007         Tests for module 'atanl'.
28008         * modules/atanl-tests: New file.
28009         * tests/test-atanl.c: New file.
28010
28011         Tests for module 'asinl'.
28012         * modules/asinl-tests: New file.
28013         * tests/test-asinl.c: New file.
28014
28015         Tests for module 'acosl'.
28016         * modules/acosl-tests: New file.
28017         * tests/test-acosl.c: New file.
28018
28019         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28020         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28021         tanl): Use the standard gnulib idiom.
28022         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28023         * lib/sinl.c: Likewise.
28024         * lib/tanl.c: Don't include trigl.c.
28025         (kernel_tanl): Make static.
28026         * lib/sincosl.c: Include trigl.h first.
28027         * lib/trigl.c: Likewise.
28028         * m4/acosl.m4: New file.
28029         * m4/asinl.m4: New file.
28030         * m4/atanl.m4: New file.
28031         * m4/cosl.m4: New file.
28032         * m4/expl.m4: New file.
28033         * m4/logl.m4: New file.
28034         * m4/sinl.m4: New file.
28035         * m4/sqrtl.m4: New file.
28036         * m4/tanl.m4: New file.
28037         * m4/mathl.m4: Remove file.
28038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28039         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28040         Don't initialize GNULIB_MATHL.
28041         * modules/acosl: New file.
28042         * modules/asinl: New file.
28043         * modules/atanl: New file.
28044         * modules/cosl: New file.
28045         * modules/expl: New file.
28046         * modules/logl: New file.
28047         * modules/sinl: New file.
28048         * modules/sqrtl: New file.
28049         * modules/tanl: New file.
28050         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28051         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28052         substitute GNULIB_MATHL.
28053         * modules/mathl: Rewritten.
28054         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28055         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28056         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28057         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28058         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28059         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28060         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28061         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28062         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28063
28064 2010-01-18  Bruno Haible  <bruno@clisp.org>
28065
28066         sqrt: Make gl_FUNC_SQRT requirable.
28067         * m4/sqrt.m4: New file.
28068         * modules/sqrt (Files): Add it.
28069         (configure.ac): Invoke gl_FUNC_SQRT.
28070
28071 2010-01-18  Bruno Haible  <bruno@clisp.org>
28072
28073         New modules for common <math.h> functions.
28074         * m4/mathfunc.m4: New file.
28075         * modules/acos: New file.
28076         * modules/asin: New file.
28077         * modules/atan: New file.
28078         * modules/atan2: New file.
28079         * modules/cbrt: New file.
28080         * modules/copysign: New file.
28081         * modules/cos: New file.
28082         * modules/cosh: New file.
28083         * modules/erf: New file.
28084         * modules/erfc: New file.
28085         * modules/exp: New file.
28086         * modules/fabs: New file.
28087         * modules/fmod: New file.
28088         * modules/hypot: New file.
28089         * modules/j0: New file.
28090         * modules/j1: New file.
28091         * modules/jn: New file.
28092         * modules/ldexp: New file.
28093         * modules/lgamma: New file.
28094         * modules/log: New file.
28095         * modules/log10: New file.
28096         * modules/log1p: New file.
28097         * modules/logb: New file.
28098         * modules/modf: New file.
28099         * modules/nextafter: New file.
28100         * modules/pow: New file.
28101         * modules/remainder: New file.
28102         * modules/rint: New file.
28103         * modules/sin: New file.
28104         * modules/sinh: New file.
28105         * modules/sqrt: New file.
28106         * modules/tan: New file.
28107         * modules/tanh: New file.
28108         * modules/y0: New file.
28109         * modules/y1: New file.
28110         * modules/yn: New file.
28111         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28112         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28113         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28114         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28115         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28116         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28117         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28118         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28119         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28120         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28121         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28122         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28123         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28124         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28125         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28126         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28127         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28128         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28129         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28130         * doc/posix-functions/log.texi: Mention the 'log' module.
28131         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28132         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28133         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28134         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28135         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28136         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28137         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28138         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28139         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28140         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28141         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28142         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28143         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28144         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28145         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28146         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28147
28148 2010-01-18  Jim Meyering  <meyering@redhat.com>
28149
28150         ignore-value: relax license to LGPLv2+
28151         * modules/ignore-value (License): Relax to LGPLv2+.
28152
28153         getdate: don't leak when TZ contains two or more '"'s
28154         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28155         double quote in TZ after the first one.
28156
28157         readtokens: do not leak internal token_lengths buffer
28158         * lib/readtokens.c (readtokens): Free the local, lengths,
28159         when the supplied "token_lengths" parameter is NULL.
28160
28161 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28162
28163         Fix a couple of missing LIBTHREAD link failures on AIX.
28164         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28165         $(LIBTHREAD).
28166         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28167
28168         Link test-poll against INET_PTON_LIB.
28169         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28170         for inet_pton on Solaris 10.
28171
28172 2010-01-17  Bruno Haible  <bruno@clisp.org>
28173
28174         unistdio/*-sprintf: Fix typo in module description.
28175         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28176         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28177         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28178         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28179         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28180         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28181         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28182         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28183
28184 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28185
28186         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28187         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28188         variables in shell case patterns, for AIX and HP-UX ksh.
28189
28190         Split large sed scripts, for HP-UX sed.
28191         * modules/stdio: Split sed scripts around 50 sed commands,
28192         to avoid HP-UX limit of 99 commands, in the near future.
28193         * modules/string: Likewise.
28194         * modules/unistd: Likewise.
28195
28196         gnulib-tool: avoid writing in the current directory.
28197         * gnulib-tool (func_emit_lib_Makefile_am)
28198         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28199         not in the current directory, so concurrent gnulib-tool
28200         instances do not interfere.
28201
28202 2010-01-16  Jim Meyering  <meyering@redhat.com>
28203
28204         doc: update users.txt
28205         * users.txt: Add grep.
28206         (diffutils, gzip): Update URLs.
28207
28208 2010-01-12  Bruno Haible  <bruno@clisp.org>
28209
28210         posix_spawn: Avoid test failure on Cygwin.
28211         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28212         characters.
28213         Reported by Simon Josefsson.
28214
28215 2010-01-12  Bruno Haible  <bruno@clisp.org>
28216
28217         * tests/test-cond.c (main): When skipping the test, show the reason.
28218
28219 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28220
28221         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28222
28223 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28224
28225         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28226         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28227
28228 2010-01-12  Eric Blake  <ebb9@byu.net>
28229
28230         build: guarantee AS_VAR_IF
28231         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28232         (gl_AS_VAR_IF): Move...
28233         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28234         Reported by Simon Josefsson.
28235
28236 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28237
28238         * lib/stdio.in.h: Fix typo.
28239
28240 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28241
28242         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28243         libgpg-error.
28244
28245 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28246
28247         * tests/test-xalloc-die.sh: Use $EXEEXT.
28248
28249 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28250             Bruno Haible  <bruno@clisp.org>
28251
28252         getlogin, getlogin_r: Avoid test failure.
28253         * tests/test-getlogin.c: Include <stdio.h>.
28254         (main): Skip the test when the function fails because stdin is not a
28255         tty.
28256         * tests/test-getlogin_r.c: Include <stdio.h>.
28257         (main): Skip the test when the function fails because stdin is not a
28258         tty.
28259
28260 2010-01-11  Eric Blake  <ebb9@byu.net>
28261
28262         tests: avoid more large file warnings
28263         * tests/test-fflush.c: Avoid warning about ftell use.
28264         * tests/test-fseek.c: Avoid warning about fseek use.
28265
28266 2010-01-10  Bruno Haible  <bruno@clisp.org>
28267
28268         nproc: Work better on Linux when /proc and /sys are not mounted.
28269         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28270         as lower bound when, on glibc/Linux systems,
28271         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28272         Suggested by Pádraig Brady <P@draigbrady.com>.
28273         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28274
28275         nproc: Refactor.
28276         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28277         extracted from num_processors.
28278         (num_processors): Call it.
28279
28280 2010-01-11  Jim Meyering  <meyering@redhat.com>
28281
28282         utimecmp: avoid new warning from upcoming gcc-4.5.0
28283         * lib/utimecmp.c (BILLION): Define using #define rather than an
28284         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28285
28286 2010-01-11  Eric Blake  <ebb9@byu.net>
28287
28288         math: add portability warnings for classification macros
28289         * modules/math (Depends-on): Add warn-on-use.
28290         (Makefile.am): Provide new substitutions.
28291         * m4/math_h.m4 (gl_MATH_H): Require inline.
28292         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28293         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28294         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28295         implement warnings.
28296
28297         unistd: warn on use of environ without module
28298         * modules/unistd (Depends-on): Add warn-on-use.
28299         (Makefile.am): Provide new substitutions.
28300         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28301         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28302
28303         stdio: warn on suspicious uses
28304         * modules/stdio (Depends-on): Add warn-on-use.
28305         (Makefile.am): Provide new substitutions.
28306         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28307         fseeko.
28308         * lib/stdio.in.h (gets): Always warn on use.
28309         (fseek, ftell): Adjust when warnings are issued, and honor
28310         _GL_NO_LARGE_FILES as a way to silence the warning.
28311         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28312         any warning about large file offsets.
28313         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28314         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28315         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28316         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28317         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28318         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28319         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28320         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28321
28322         warn-on-use: new module
28323         * modules/warn-on-use: New file.
28324         * build-aux/warn-on-use.h: Likewise.
28325         * m4/warn-on-use.m4: Likewise.
28326         * MODULES.html.sh (Support for building): Mention it.
28327
28328 2010-01-10  Bruno Haible  <bruno@clisp.org>
28329
28330         Tests for module 'unistr/u32-strdup'.
28331         * modules/unistr/u32-strdup-tests: New file.
28332         * tests/unistr/test-u32-strdup.c: New file.
28333
28334         Tests for module 'unistr/u16-strdup'.
28335         * modules/unistr/u16-strdup-tests: New file.
28336         * tests/unistr/test-u16-strdup.c: New file.
28337
28338         Tests for module 'unistr/u8-strdup'.
28339         * modules/unistr/u8-strdup-tests: New file.
28340         * tests/unistr/test-u8-strdup.c: New file.
28341         * tests/unistr/test-strdup.h: New file.
28342
28343         Tests for module 'unistr/u32-strncmp'.
28344         * modules/unistr/u32-strncmp-tests: New file.
28345         * tests/unistr/test-u32-strncmp.c: New file.
28346
28347         Tests for module 'unistr/u16-strncmp'.
28348         * modules/unistr/u16-strncmp-tests: New file.
28349         * tests/unistr/test-u16-strncmp.c: New file.
28350
28351         Tests for module 'unistr/u8-strncmp'.
28352         * modules/unistr/u8-strncmp-tests: New file.
28353         * tests/unistr/test-u8-strncmp.c: New file.
28354         * tests/unistr/test-strncmp.h: New file.
28355
28356         Tests for module 'unistr/u32-strcoll'.
28357         * modules/unistr/u32-strcoll-tests: New file.
28358         * tests/unistr/test-u32-strcoll.c: New file.
28359
28360         Tests for module 'unistr/u16-strcoll'.
28361         * modules/unistr/u16-strcoll-tests: New file.
28362         * tests/unistr/test-u16-strcoll.c: New file.
28363
28364         Tests for module 'unistr/u8-strcoll'.
28365         * modules/unistr/u8-strcoll-tests: New file.
28366         * tests/unistr/test-u8-strcoll.c: New file.
28367
28368         Tests for module 'unistr/u32-strcmp'.
28369         * modules/unistr/u32-strcmp-tests: New file.
28370         * tests/unistr/test-u32-strcmp.c: New file.
28371         * tests/unistr/test-u32-strcmp.h: New file.
28372
28373         Tests for module 'unistr/u16-strcmp'.
28374         * modules/unistr/u16-strcmp-tests: New file.
28375         * tests/unistr/test-u16-strcmp.c: New file.
28376         * tests/unistr/test-u16-strcmp.h: New file.
28377
28378         Tests for module 'unistr/u8-strcmp'.
28379         * modules/unistr/u8-strcmp-tests: New file.
28380         * tests/unistr/test-u8-strcmp.c: New file.
28381         * tests/unistr/test-u8-strcmp.h: New file.
28382         * tests/unistr/test-strcmp.h: New file.
28383
28384         Tests for module 'unistr/u32-strncat'.
28385         * modules/unistr/u32-strncat-tests: New file.
28386         * tests/unistr/test-u32-strncat.c: New file.
28387
28388         Tests for module 'unistr/u16-strncat'.
28389         * modules/unistr/u16-strncat-tests: New file.
28390         * tests/unistr/test-u16-strncat.c: New file.
28391
28392         Tests for module 'unistr/u8-strncat'.
28393         * modules/unistr/u8-strncat-tests: New file.
28394         * tests/unistr/test-u8-strncat.c: New file.
28395         * tests/unistr/test-strncat.h: New file.
28396
28397         Tests for module 'unistr/u32-strcat'.
28398         * modules/unistr/u32-strcat-tests: New file.
28399         * tests/unistr/test-u32-strcat.c: New file.
28400
28401         Tests for module 'unistr/u16-strcat'.
28402         * modules/unistr/u16-strcat-tests: New file.
28403         * tests/unistr/test-u16-strcat.c: New file.
28404
28405         Tests for module 'unistr/u8-strcat'.
28406         * modules/unistr/u8-strcat-tests: New file.
28407         * tests/unistr/test-u8-strcat.c: New file.
28408         * tests/unistr/test-strcat.h: New file.
28409
28410         Tests for module 'unistr/u32-stpncpy'.
28411         * modules/unistr/u32-stpncpy-tests: New file.
28412         * tests/unistr/test-u32-stpncpy.c: New file.
28413
28414         Tests for module 'unistr/u16-stpncpy'.
28415         * modules/unistr/u16-stpncpy-tests: New file.
28416         * tests/unistr/test-u16-stpncpy.c: New file.
28417
28418         Tests for module 'unistr/u8-stpncpy'.
28419         * modules/unistr/u8-stpncpy-tests: New file.
28420         * tests/unistr/test-u8-stpncpy.c: New file.
28421         * tests/unistr/test-stpncpy.h: New file.
28422
28423         Tests for module 'unistr/u32-strncpy'.
28424         * modules/unistr/u32-strncpy-tests: New file.
28425         * tests/unistr/test-u32-strncpy.c: New file.
28426
28427         Tests for module 'unistr/u16-strncpy'.
28428         * modules/unistr/u16-strncpy-tests: New file.
28429         * tests/unistr/test-u16-strncpy.c: New file.
28430
28431         Tests for module 'unistr/u8-strncpy'.
28432         * modules/unistr/u8-strncpy-tests: New file.
28433         * tests/unistr/test-u8-strncpy.c: New file.
28434         * tests/unistr/test-strncpy.h: New file.
28435
28436         Tests for module 'unistr/u32-stpcpy'.
28437         * modules/unistr/u32-stpcpy-tests: New file.
28438         * tests/unistr/test-u32-stpcpy.c: New file.
28439
28440         Tests for module 'unistr/u16-stpcpy'.
28441         * modules/unistr/u16-stpcpy-tests: New file.
28442         * tests/unistr/test-u16-stpcpy.c: New file.
28443
28444         Tests for module 'unistr/u8-stpcpy'.
28445         * modules/unistr/u8-stpcpy-tests: New file.
28446         * tests/unistr/test-u8-stpcpy.c: New file.
28447         * tests/unistr/test-stpcpy.h: New file.
28448
28449         Tests for module 'unistr/u32-strcpy'.
28450         * modules/unistr/u32-strcpy-tests: New file.
28451         * tests/unistr/test-u32-strcpy.c: New file.
28452
28453         Tests for module 'unistr/u16-strcpy'.
28454         * modules/unistr/u16-strcpy-tests: New file.
28455         * tests/unistr/test-u16-strcpy.c: New file.
28456
28457         Tests for module 'unistr/u8-strcpy'.
28458         * modules/unistr/u8-strcpy-tests: New file.
28459         * tests/unistr/test-u8-strcpy.c: New file.
28460         * tests/unistr/test-strcpy.h: New file.
28461
28462         Tests for module 'unistr/u32-strnlen'.
28463         * modules/unistr/u32-strnlen-tests: New file.
28464         * tests/unistr/test-u32-strnlen.c: New file.
28465
28466         Tests for module 'unistr/u16-strnlen'.
28467         * modules/unistr/u16-strnlen-tests: New file.
28468         * tests/unistr/test-u16-strnlen.c: New file.
28469
28470         Tests for module 'unistr/u8-strnlen'.
28471         * modules/unistr/u8-strnlen-tests: New file.
28472         * tests/unistr/test-u8-strnlen.c: New file.
28473         * tests/unistr/test-strnlen.h: New file.
28474
28475         Tests for module 'unistr/u32-strlen'.
28476         * modules/unistr/u32-strlen-tests: New file.
28477         * tests/unistr/test-u32-strlen.c: New file.
28478
28479         Tests for module 'unistr/u16-strlen'.
28480         * modules/unistr/u16-strlen-tests: New file.
28481         * tests/unistr/test-u16-strlen.c: New file.
28482
28483         Tests for module 'unistr/u8-strlen'.
28484         * modules/unistr/u8-strlen-tests: New file.
28485         * tests/unistr/test-u8-strlen.c: New file.
28486
28487         Tests for module 'unistr/u32-prev'.
28488         * modules/unistr/u32-prev-tests: New file.
28489         * tests/unistr/test-u32-prev.c: New file.
28490
28491         Tests for module 'unistr/u16-prev'.
28492         * modules/unistr/u16-prev-tests: New file.
28493         * tests/unistr/test-u16-prev.c: New file.
28494
28495         Tests for module 'unistr/u8-prev'.
28496         * modules/unistr/u8-prev-tests: New file.
28497         * tests/unistr/test-u8-prev.c: New file.
28498
28499         Tests for module 'unistr/u32-next'.
28500         * modules/unistr/u32-next-tests: New file.
28501         * tests/unistr/test-u32-next.c: New file.
28502
28503         Tests for module 'unistr/u16-next'.
28504         * modules/unistr/u16-next-tests: New file.
28505         * tests/unistr/test-u16-next.c: New file.
28506
28507         Tests for module 'unistr/u8-next'.
28508         * modules/unistr/u8-next-tests: New file.
28509         * tests/unistr/test-u8-next.c: New file.
28510
28511         Tests for module 'unistr/u32-strmbtouc'.
28512         * modules/unistr/u32-strmbtouc-tests: New file.
28513         * tests/unistr/test-u32-strmbtouc.c: New file.
28514
28515         Tests for module 'unistr/u16-strmbtouc'.
28516         * modules/unistr/u16-strmbtouc-tests: New file.
28517         * tests/unistr/test-u16-strmbtouc.c: New file.
28518
28519         Tests for module 'unistr/u8-strmbtouc'.
28520         * modules/unistr/u8-strmbtouc-tests: New file.
28521         * tests/unistr/test-u8-strmbtouc.c: New file.
28522
28523         Tests for module 'unistr/u32-strmblen'.
28524         * modules/unistr/u32-strmblen-tests: New file.
28525         * tests/unistr/test-u32-strmblen.c: New file.
28526
28527         Tests for module 'unistr/u16-strmblen'.
28528         * modules/unistr/u16-strmblen-tests: New file.
28529         * tests/unistr/test-u16-strmblen.c: New file.
28530
28531         Tests for module 'unistr/u8-strmblen'.
28532         * modules/unistr/u8-strmblen-tests: New file.
28533         * tests/unistr/test-u8-strmblen.c: New file.
28534
28535         Tests for module 'unistr/u32-cpy-alloc'.
28536         * modules/unistr/u32-cpy-alloc-tests: New file.
28537         * tests/unistr/test-u32-cpy-alloc.c: New file.
28538
28539         Tests for module 'unistr/u16-cpy-alloc'.
28540         * modules/unistr/u16-cpy-alloc-tests: New file.
28541         * tests/unistr/test-u16-cpy-alloc.c: New file.
28542
28543         Tests for module 'unistr/u8-cpy-alloc'.
28544         * modules/unistr/u8-cpy-alloc-tests: New file.
28545         * tests/unistr/test-u8-cpy-alloc.c: New file.
28546         * tests/unistr/test-cpy-alloc.h: New file.
28547
28548         Tests for module 'unistr/u32-mbsnlen'.
28549         * modules/unistr/u32-mbsnlen-tests: New file.
28550         * tests/unistr/test-u32-mbsnlen.c: New file.
28551
28552         Tests for module 'unistr/u16-mbsnlen'.
28553         * modules/unistr/u16-mbsnlen-tests: New file.
28554         * tests/unistr/test-u16-mbsnlen.c: New file.
28555
28556         Tests for module 'unistr/u8-mbsnlen'.
28557         * modules/unistr/u8-mbsnlen-tests: New file.
28558         * tests/unistr/test-u8-mbsnlen.c: New file.
28559
28560         Tests for module 'unistr/u32-chr'.
28561         * modules/unistr/u32-chr-tests: New file.
28562         * tests/unistr/test-u32-chr.c: New file.
28563
28564         Tests for module 'unistr/u16-chr'.
28565         * modules/unistr/u16-chr-tests: New file.
28566         * tests/unistr/test-u16-chr.c: New file.
28567
28568         Tests for module 'unistr/u8-chr'.
28569         * modules/unistr/u8-chr-tests: New file.
28570         * tests/unistr/test-u8-chr.c: New file.
28571         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28572
28573         Tests for module 'unistr/u32-cmp2'.
28574         * modules/unistr/u32-cmp2-tests: New file.
28575         * tests/unistr/test-u32-cmp2.c: New file.
28576
28577         Tests for module 'unistr/u16-cmp2'.
28578         * modules/unistr/u16-cmp2-tests: New file.
28579         * tests/unistr/test-u16-cmp2.c: New file.
28580
28581         Tests for module 'unistr/u8-cmp2'.
28582         * modules/unistr/u8-cmp2-tests: New file.
28583         * tests/unistr/test-u8-cmp2.c: New file.
28584         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28585
28586         Tests for module 'unistr/u32-cmp'.
28587         * modules/unistr/u32-cmp-tests: New file.
28588         * tests/unistr/test-u32-cmp.c: New file.
28589
28590         Tests for module 'unistr/u16-cmp'.
28591         * modules/unistr/u16-cmp-tests: New file.
28592         * tests/unistr/test-u16-cmp.c: New file.
28593
28594         Tests for module 'unistr/u8-cmp'.
28595         * modules/unistr/u8-cmp-tests: New file.
28596         * tests/unistr/test-u8-cmp.c: New file.
28597         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28598
28599         Tests for module 'unistr/u32-set'.
28600         * modules/unistr/u32-set-tests: New file.
28601         * tests/unistr/test-u32-set.c: New file.
28602
28603         Tests for module 'unistr/u16-set'.
28604         * modules/unistr/u16-set-tests: New file.
28605         * tests/unistr/test-u16-set.c: New file.
28606
28607         Tests for module 'unistr/u8-set'.
28608         * modules/unistr/u8-set-tests: New file.
28609         * tests/unistr/test-u8-set.c: New file.
28610         * tests/unistr/test-set.h: New file.
28611
28612         Tests for module 'unistr/u32-move'.
28613         * modules/unistr/u32-move-tests: New file.
28614         * tests/unistr/test-u32-move.c: New file.
28615
28616         Tests for module 'unistr/u16-move'.
28617         * modules/unistr/u16-move-tests: New file.
28618         * tests/unistr/test-u16-move.c: New file.
28619
28620         Tests for module 'unistr/u8-move'.
28621         * modules/unistr/u8-move-tests: New file.
28622         * tests/unistr/test-u8-move.c: New file.
28623         * tests/unistr/test-move.h: New file.
28624
28625         Tests for module 'unistr/u32-cpy'.
28626         * modules/unistr/u32-cpy-tests: New file.
28627         * tests/unistr/test-u32-cpy.c: New file.
28628
28629         Tests for module 'unistr/u16-cpy'.
28630         * modules/unistr/u16-cpy-tests: New file.
28631         * tests/unistr/test-u16-cpy.c: New file.
28632
28633         Tests for module 'unistr/u8-cpy'.
28634         * modules/unistr/u8-cpy-tests: New file.
28635         * tests/unistr/test-u8-cpy.c: New file.
28636         * tests/unistr/test-cpy.h: New file.
28637
28638 2010-01-09  Bruno Haible  <bruno@clisp.org>
28639
28640         Tests for module 'unistr/u32-uctomb'.
28641         * modules/unistr/u32-uctomb-tests: New file.
28642         * tests/unistr/test-u32-uctomb.c: New file.
28643
28644         Tests for module 'unistr/u16-uctomb'.
28645         * modules/unistr/u16-uctomb-tests: New file.
28646         * tests/unistr/test-u16-uctomb.c: New file.
28647
28648         Tests for module 'unistr/u8-uctomb'.
28649         * modules/unistr/u8-uctomb-tests: New file.
28650         * tests/unistr/test-u8-uctomb.c: New file.
28651
28652         Tests for module 'unistr/u32-mbtoucr'.
28653         * modules/unistr/u32-mbtoucr-tests: New file.
28654         * tests/unistr/test-u32-mbtoucr.c: New file.
28655
28656         Tests for module 'unistr/u16-mbtoucr'.
28657         * modules/unistr/u16-mbtoucr-tests: New file.
28658         * tests/unistr/test-u16-mbtoucr.c: New file.
28659
28660         Tests for module 'unistr/u8-mbtoucr'.
28661         * modules/unistr/u8-mbtoucr-tests: New file.
28662         * tests/unistr/test-u8-mbtoucr.c: New file.
28663
28664         Tests for module 'unistr/u32-mbtouc'.
28665         * modules/unistr/u32-mbtouc-tests: New file.
28666         * tests/unistr/test-u32-mbtouc.c: New file.
28667
28668         Tests for module 'unistr/u16-mbtouc'.
28669         * modules/unistr/u16-mbtouc-tests: New file.
28670         * tests/unistr/test-u16-mbtouc.c: New file.
28671
28672         Tests for module 'unistr/u8-mbtouc'.
28673         * modules/unistr/u8-mbtouc-tests: New file.
28674         * tests/unistr/test-u8-mbtouc.c: New file.
28675
28676         Tests for module 'unistr/u32-mbtouc-unsafe'.
28677         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28678         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28679         * tests/unistr/test-u32-mbtouc.h: New file.
28680
28681         Tests for module 'unistr/u16-mbtouc-unsafe'.
28682         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28683         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28684         * tests/unistr/test-u16-mbtouc.h: New file.
28685
28686         Tests for module 'unistr/u8-mbtouc-unsafe'.
28687         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28688         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28689         * tests/unistr/test-u8-mbtouc.h: New file.
28690
28691         Tests for module 'unistr/u32-mblen'.
28692         * modules/unistr/u32-mblen-tests: New file.
28693         * tests/unistr/test-u32-mblen.c: New file.
28694
28695         Tests for module 'unistr/u16-mblen'.
28696         * modules/unistr/u16-mblen-tests: New file.
28697         * tests/unistr/test-u16-mblen.c: New file.
28698
28699         Tests for module 'unistr/u8-mblen'.
28700         * modules/unistr/u8-mblen-tests: New file.
28701         * tests/unistr/test-u8-mblen.c: New file.
28702
28703         Tests for module 'unistr/u32-to-u16'.
28704         * modules/unistr/u32-to-u16-tests: New file.
28705         * tests/unistr/test-u32-to-u16.c: New file.
28706
28707         Tests for module 'unistr/u32-to-u8'.
28708         * modules/unistr/u32-to-u8-tests: New file.
28709         * tests/unistr/test-u32-to-u8.c: New file.
28710
28711         Tests for module 'unistr/u16-to-u32'.
28712         * modules/unistr/u16-to-u32-tests: New file.
28713         * tests/unistr/test-u16-to-u32.c: New file.
28714
28715         Tests for module 'unistr/u16-to-u8'.
28716         * modules/unistr/u16-to-u8-tests: New file.
28717         * tests/unistr/test-u16-to-u8.c: New file.
28718
28719         Tests for module 'unistr/u8-to-u32'.
28720         * modules/unistr/u8-to-u32-tests: New file.
28721         * tests/unistr/test-u8-to-u32.c: New file.
28722
28723         Tests for module 'unistr/u8-to-u16'.
28724         * modules/unistr/u8-to-u16-tests: New file.
28725         * tests/unistr/test-u8-to-u16.c: New file.
28726
28727         Tests for module 'unistr/u32-check'.
28728         * modules/unistr/u32-check-tests: New file.
28729         * tests/unistr/test-u32-check.c: New file.
28730
28731         Tests for module 'unistr/u16-check'.
28732         * modules/unistr/u16-check-tests: New file.
28733         * tests/unistr/test-u16-check.c: New file.
28734
28735         Tests for module 'unistr/u8-check'.
28736         * modules/unistr/u8-check-tests: New file.
28737         * tests/unistr/test-u8-check.c: New file.
28738
28739         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28740         (category_equals): New function.
28741         (main): Add more tests.
28742         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28743
28744         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28745
28746 2010-01-10  Bruno Haible  <bruno@clisp.org>
28747
28748         unistr/u*-strcoll: Try harder to distinguish different strings.
28749         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28750         compare s1 and s2 to see if they are different.
28751
28752 2010-01-10  Bruno Haible  <bruno@clisp.org>
28753
28754         unistr/u*-stpncpy: Fix the return value.
28755         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28756         description of the return value consistent with stpncpy in glibc.
28757         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28758         written non-NUL unit.
28759
28760 2010-01-10  Bruno Haible  <bruno@clisp.org>
28761
28762         unistr/u*-next: Add missing dependencies.
28763         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28764         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28765         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28766
28767 2010-01-10  Bruno Haible  <bruno@clisp.org>
28768
28769         unistr/u8-mbsnlen: Fix return value for incomplete character.
28770         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28771         u8_mblen.
28772         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28773         Remove unistr/u8-mblen.
28774         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28775         u16_mblen.
28776         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28777         Remove unistr/u16-mblen.
28778
28779 2010-01-10  Bruno Haible  <bruno@clisp.org>
28780
28781         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28782         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28783         Reported by Brian Gough <bjg@gnu.org> and
28784         Chris Clayton <chris2553@googlemail.com> via
28785         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28786
28787 2010-01-09  Bruno Haible  <bruno@clisp.org>
28788
28789         unistr/u16-to-u32: Reject invalid input.
28790         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28791         u16_mbtouc.
28792         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28793         Remove unistr/u16-mbtouc.
28794
28795         unistr/u16-to-u8: Reject invalid input.
28796         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28797         u16_mbtouc.
28798         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28799         Remove unistr/u16-mbtouc.
28800
28801         unistr/u8-to-u32: Reject invalid input.
28802         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28803         u8_mbtouc.
28804         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28805         Remove unistr/u8-mbtouc.
28806
28807         unistr/u8-to-u16: Reject invalid input.
28808         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28809         u8_mbtouc.
28810         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28811         Remove unistr/u8-mbtouc.
28812
28813 2010-01-09  Bruno Haible  <bruno@clisp.org>
28814
28815         Tests for module 'getlogin'.
28816         * modules/getlogin-tests: New file.
28817         * tests/test-getlogin.c: New file.
28818
28819         New module 'getlogin'.
28820         * lib/unistd.in.h (getlogin): New declaration.
28821         * lib/getlogin.c: New file.
28822         * m4/getlogin.m4: New file.
28823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28824         HAVE_GETLOGIN.
28825         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28826         HAVE_GETLOGIN.
28827         * modules/getlogin: New file.
28828         * doc/posix-functions/getlogin.texi: Mention the new module.
28829         Reported by John W. Eaton <jwe@gnu.org>.
28830
28831 2010-01-09  Bruno Haible  <bruno@clisp.org>
28832
28833         getlogin_r: Support for native Windows.
28834         * lib/getlogin_r.c: Include <windows.h>
28835         (getlogin_r): Implement for native Windows.
28836         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28837         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28838         via John W. Eaton <jwe@gnu.org>.
28839
28840 2010-01-09  Bruno Haible  <bruno@clisp.org>
28841
28842         getlogin_r: Small fixes.
28843         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28844         succeeds.
28845         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28846         before testing whether getlogin_r is declared. No need to set
28847         HAVE_DECL_GETLOGIN_R to 1.
28848         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28849
28850 2010-01-09  Bruno Haible  <bruno@clisp.org>
28851
28852         * lib/unistd.in.h (getlogin_r): Add comment.
28853
28854 2010-01-09  Bruno Haible  <bruno@clisp.org>
28855
28856         Tests for module 'getlogin_r'.
28857         * modules/getlogin_r-tests: New file.
28858         * tests/test-getlogin_r.c: New file.
28859
28860 2010-01-09  Jim Meyering  <meyering@redhat.com>
28861
28862         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28863         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28864         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28865
28866 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28867
28868         * lib/dup2.c (rpl_dup2): Improve comment.
28869
28870 2010-01-08  Eric Blake  <ebb9@byu.net>
28871
28872         maint.mk: allow packages to add makefile @@ exceptions
28873         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28874         (sc_makefile_check): Rename...
28875         (sc_makefile_at_at_check): ...to this, and use hook.
28876
28877         dup2: work around mingw bug
28878         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28879         Reported by Simon Josefsson.
28880
28881 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28882
28883         glob: Fix C++ compilation.
28884         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28885         C++.
28886
28887 2010-01-07  Bruno Haible  <bruno@clisp.org>
28888
28889         Fix indentation of wctype.in.h, broken since 2007-01-06.
28890         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28891
28892 2010-01-07  Bruno Haible  <bruno@clisp.org>
28893
28894         mbslen: Avoid collision with system function.
28895         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28896         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28897         * m4/mbslen.m4: New file.
28898         * modules/mbslen (Files): Add it.
28899         (configure.ac): Invoke gl_MBSLEN.
28900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28901         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28902         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28903         via Ian Beckwith <ianb@erislabs.net>.
28904
28905 2010-01-07  Bruno Haible  <bruno@clisp.org>
28906
28907         dirent: Document the last fix.
28908         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28909
28910 2010-01-07  Bruno Haible  <bruno@clisp.org>
28911
28912         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28913         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28914         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28915         va_list are defined.
28916         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28917         Reported by Eric Blake.
28918
28919 2010-01-07  Bruno Haible  <bruno@clisp.org>
28920
28921         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28922         * modules/xlist (Depends-on): Add 'list',
28923         * modules/xoset (Depends-on): Add 'oset'.
28924         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28925
28926 2010-01-07  Bruno Haible  <bruno@clisp.org>
28927
28928         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28929         * doc/posix-functions/strncasecmp.texi: Likewise.
28930
28931 2010-01-07  Bruno Haible  <bruno@clisp.org>
28932
28933         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28934
28935 2010-01-07  John W. Eaton  <jwe@octave.org>
28936
28937         wctype: allow C++ use
28938         * lib/wctype.in.h: Add extern "C" block for C++.
28939
28940 2010-01-06  Eric Blake  <ebb9@byu.net>
28941
28942         maint.mk: detect incorrect GFDL usage
28943         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28944
28945 2010-01-06  Jim Meyering  <meyering@redhat.com>
28946         and Eric Blake  <ebb9@byu.net>
28947
28948         maint.mk: ignore multi-line copyright in NEWS
28949         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28950
28951 2010-01-06  Eric Blake  <ebb9@byu.net>
28952
28953         select: add missing dependency
28954         * modules/select-tests (Depends-on): Move sockets dependency...
28955         * modules/select (Depends-on): ...here.
28956         Reported by Ian Beckwith.
28957
28958         doc: regenerate INSTALL
28959         * doc/INSTALL: Reflect recent autoconf update.
28960         * doc/INSTALL.ISO: Likewise.
28961         * doc/INSTALL.UTF-8: Likewise.
28962
28963         pread: fix compilation on glibc
28964         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28965         Reported by Ralf Wildenhues.
28966
28967         dirent: fix test failure
28968         * lib/dirent.in.h (includes): Guarantee ino_t.
28969         Reported by Ralf Wildenhues.
28970
28971 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28972
28973         linkat, renameat: avoid bad free
28974         * lib/at-func2.c (at_func2): Fix typo.
28975         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28976
28977 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28978
28979         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28980         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28981         to avoid failure of symlink test later.
28982
28983 2010-01-06  Eric Blake  <ebb9@byu.net>
28984
28985         stdio, unistd: guarantee ssize_t
28986         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28987         2008 are exposed when needed.
28988         * lib/stdio.in.h (includes): Likewise.
28989         Reported by Ralf Wildenhues.
28990
28991 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28992
28993         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28994         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28995         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28996
28997 2010-01-06  Jim Meyering  <meyering@redhat.com>
28998
28999         readtokens: this module *does* require xalloc.h
29000         It uses only functions that were omitted by the old syntax-check rule.
29001         * lib/readtokens.c: Include "xalloc.h" once again.
29002         * modules/readtokens (Depends-on): Add xalloc.
29003         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29004
29005 2010-01-05  Eric Blake  <ebb9@byu.net>
29006
29007         maint: support 'make announcement' from a VPATH build
29008         * top/maint.mk (announcement): Look for correct NEWS file.
29009
29010 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29011
29012         utimens (fdutimens): ignore a negative FD, per contract
29013         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29014         when we have a valid file descriptor.  Otherwise, using a brand
29015         new glibc (with just-patched futimens that now fails with EBADF)
29016         would cause this function to fail with ENOSYS.
29017         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29018         See also http://bugzilla.redhat.com/552320.
29019
29020 2010-01-05  Eric Blake  <ebb9@byu.net>
29021
29022         strcase: document what it provides
29023         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29024         gnulib module.
29025         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29026         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29027
29028 2010-01-05  Jim Meyering  <meyering@redhat.com>
29029
29030         maint: remove useless inclusions of "xalloc.h"
29031         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29032         * lib/readtokens.c: Likewise.
29033         * lib/same.c: Likewise.
29034         * modules/getloadavg (Depends-on): Remove xalloc.
29035         * modules/readtokens: Likewise.
29036         * modules/same: Likewise.
29037
29038         maint.mk: include 4 more function names in alloca.h-checking regexp
29039         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29040         regexp.  Before, we would give a false-positive (saying alloca.h
29041         is included unnecessarily) when the only uses involved omitted symbols.
29042
29043         xalloc.h: use consistent formatting
29044         * lib/xalloc.h: Move declarations to start in the first column.
29045
29046 2010-01-05  Eric Blake  <ebb9@byu.net>
29047
29048         mkdir: avoid xalloc
29049         * lib/mkdir.c (includes): Drop unused header.
29050         Reported by John W. Eaton.
29051
29052 2010-01-04  Jim Meyering  <meyering@redhat.com>
29053
29054         nl_langinfo: avoid configure-time syntax error
29055         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29056         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29057         the empty string.  Don't let that provoke a shell syntax error.
29058
29059         regcomp, regexec, fnmatch: avoid array bounds read error
29060         * lib/regcomp.c (build_equiv_class): From glibc:
29061         Use only the low 24 bits of a findidx return value as an index
29062         into the weights array.  Patch by Ulrich Drepper:
29063         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29064         * lib/regexec.c (check_node_accept_bytes): Likewise.
29065         * lib/fnmatch_loop.c (FCT): Likewise.
29066
29067         regcomp: skip collseq lookup when there are no rules
29068         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29069         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29070
29071         regcomp: recognize ill-formed { } expressions
29072         * lib/regcomp.c (parse_dup_op): From glibc:
29073         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29074
29075         regcomp: fix typo in comment
29076         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29077         s/satisfy/satisfies/.
29078
29079         regcomp: sync from glibc: remove dead store
29080         * lib/regcomp.c (duplicate_node_closure): Remove useless
29081         search_duplicated_node call and dead store.
29082
29083         regcomp: sync from glibc; always use nl_langinfo
29084         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29085         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29086         * modules/regex (Depends-on): Add nl_langinfo.
29087
29088 2010-01-04  Eric Blake  <ebb9@byu.net>
29089
29090         fdopendir: fix configure test
29091         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29092
29093 2010-01-01  Bruno Haible  <bruno@clisp.org>
29094
29095         wchar: Remove unused configure check.
29096         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29097
29098 2010-01-01  Eric Blake  <ebb9@byu.net>
29099
29100         headers: make check of system header explicit
29101         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29102         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29103         ourselves.
29104         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29105         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29106         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29107         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29108         internals.
29109         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29110         missing.
29111         Suggested by Bruno Haible.
29112
29113 2010-01-01  Jim Meyering  <meyering@redhat.com>
29114
29115         ChangeLog: tweak to eliminate unnecessary copyright line
29116         * ChangeLog: Remove a copyright line that was mistakenly updated
29117         by today's update-copyright run.  Reported by Eric Blake.
29118
29119         test-update-copyright: don't let envvar setting cause test failure
29120         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29121
29122 2010-01-01  Bruno Haible  <bruno@clisp.org>
29123
29124         localename: Avoid gcc warning.
29125         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29126         function if it is not used.
29127
29128 2010-01-01  Jim Meyering  <meyering@redhat.com>
29129
29130         update nearly all FSF copyright year lists to include 2010
29131         Use the same procedure as for 2009, outlined in
29132         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29133
29134         version-etc: set COPYRIGHT_YEAR to 2010
29135         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29136
29137 2009-12-31  Eric Blake  <ebb9@byu.net>
29138
29139         doc: correct availability of cygwin 1.5.x getopt
29140         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29141         variables.
29142         * doc/posix-functions/opterr.texi (opterr): Likewise.
29143         * doc/posix-functions/optind.texi (optind): Likewise.
29144         * doc/posix-functions/optopt.texi (optopt): Likewise.
29145         * doc/posix-functions/tzname.texi (tzname): Likewise.
29146
29147         openat: update maintainer
29148         * modules/openat (Maintainer): Add myself.
29149
29150         utimens: avoid shadowing warning
29151         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29152         buffers into one, to avoid shadowing, as well as avoiding a
29153         redundant stat.
29154         Reported by Jim Meyering.
29155
29156         test-dup2: avoid compiler warning
29157         * tests/test-dup2.c (is_inheritable): Only define if used.
29158
29159 2010-01-01  Bruno Haible  <bruno@clisp.org>
29160
29161         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29162         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29163         defined, use wctomb instead of wcrtomb.
29164
29165 2010-01-01  Bruno Haible  <bruno@clisp.org>
29166
29167         iconv: Reject native Solaris iconv.
29168         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29169         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29170
29171 2009-12-31  Bruno Haible  <bruno@clisp.org>
29172
29173         * tests/test-signal.c (main): Remove test of 'SIG'.
29174
29175 2009-12-31  Bruno Haible  <bruno@clisp.org>
29176
29177         spawn: Fix incomplete fix.
29178         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29179         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29180         warnings for GNULIB_POSIXCHECK again.
29181         Reported by Eric Blake.
29182
29183 2009-12-31  Bruno Haible  <bruno@clisp.org>
29184
29185         Avoid namespace pollution on glibc systems.
29186         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29187         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29188         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29189         glibc systems.
29190
29191 2009-12-31  Bruno Haible  <bruno@clisp.org>
29192
29193         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29194         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29195         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29196         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29197         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29198         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29199         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29200
29201 2009-12-31  Bruno Haible  <bruno@clisp.org>
29202
29203         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29204         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29205         afterwards.
29206
29207 2009-12-31  Bruno Haible  <bruno@clisp.org>
29208
29209         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29210         SYS_UTSNAME_H.
29211
29212 2009-12-31  Bruno Haible  <bruno@clisp.org>
29213
29214         spawn: Fix misapplied patch.
29215         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29216         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29217         warnings for GNULIB_POSIXCHECK.
29218
29219 2009-12-31  Bruno Haible  <bruno@clisp.org>
29220
29221         times: Update after sys_times changed.
29222         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29223         * modules/times (Files): Add it.
29224         (configure.ac): Invoke gl_FUNC_TIMES.
29225
29226 2009-12-31  Bruno Haible  <bruno@clisp.org>
29227
29228         Use AC_C_INLINE where necessary.
29229         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29230         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29231         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29232         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29233         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29234         * m4/mbiter.m4 (gl_MBITER): Likewise.
29235         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29236         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29237         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29238         * modules/u64 (configure.ac): Likewise.
29239
29240 2009-12-31  Bruno Haible  <bruno@clisp.org>
29241
29242         Use AC_C_INLINE instead of module 'inline' where possible.
29243         * modules/inline (Description): Clarify purpose.
29244         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29245         * modules/count-one-bits (Depends-on): Remove inline.
29246         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29247         * modules/openat (Depends-on): Remove inline.
29248         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29249         instead of depending on module 'inline'.
29250         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29251         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29252         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29253         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29254         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29255         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29256         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29257         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29258         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29259         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29260         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29261         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29262         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29263         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29264         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29265         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29266         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29267         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29268         Likewise.
29269         * modules/unictype/property-ascii-hex-digit (Depends-on,
29270         configure.ac): Likewise.
29271         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29272         configure.ac): Likewise.
29273         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29274         configure.ac): Likewise.
29275         * modules/unictype/property-bidi-block-separator (Depends-on,
29276         configure.ac): Likewise.
29277         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29278         configure.ac): Likewise.
29279         * modules/unictype/property-bidi-common-separator (Depends-on,
29280         configure.ac): Likewise.
29281         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29282         Likewise.
29283         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29284         configure.ac): Likewise.
29285         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29286         configure.ac): Likewise.
29287         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29288         configure.ac): Likewise.
29289         * modules/unictype/property-bidi-european-digit (Depends-on,
29290         configure.ac): Likewise.
29291         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29292         configure.ac): Likewise.
29293         * modules/unictype/property-bidi-left-to-right (Depends-on,
29294         configure.ac): Likewise.
29295         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29296         configure.ac): Likewise.
29297         * modules/unictype/property-bidi-other-neutral (Depends-on,
29298         configure.ac): Likewise.
29299         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29300         Likewise.
29301         * modules/unictype/property-bidi-segment-separator (Depends-on,
29302         configure.ac): Likewise.
29303         * modules/unictype/property-bidi-whitespace (Depends-on,
29304         configure.ac): Likewise.
29305         * modules/unictype/property-combining (Depends-on, configure.ac):
29306         Likewise.
29307         * modules/unictype/property-composite (Depends-on, configure.ac):
29308         Likewise.
29309         * modules/unictype/property-currency-symbol (Depends-on,
29310         configure.ac): Likewise.
29311         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29312         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29313         Likewise.
29314         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29315         configure.ac): Likewise.
29316         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29317         Likewise.
29318         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29319         Likewise.
29320         * modules/unictype/property-extender (Depends-on, configure.ac):
29321         Likewise.
29322         * modules/unictype/property-format-control (Depends-on, configure.ac):
29323         Likewise.
29324         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29325         Likewise.
29326         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29327         Likewise.
29328         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29329         Likewise.
29330         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29331         Likewise.
29332         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29333         Likewise.
29334         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29335         Likewise.
29336         * modules/unictype/property-id-start (Depends-on, configure.ac):
29337         Likewise.
29338         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29339         Likewise.
29340         * modules/unictype/property-ids-binary-operator (Depends-on,
29341         configure.ac): Likewise.
29342         * modules/unictype/property-ids-trinary-operator (Depends-on,
29343         configure.ac): Likewise.
29344         * modules/unictype/property-ignorable-control (Depends-on,
29345         configure.ac): Likewise.
29346         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29347         Likewise.
29348         * modules/unictype/property-join-control (Depends-on, configure.ac):
29349         Likewise.
29350         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29351         Likewise.
29352         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29353         Likewise.
29354         * modules/unictype/property-logical-order-exception (Depends-on,
29355         configure.ac): Likewise.
29356         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29357         Likewise.
29358         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29359         * modules/unictype/property-non-break (Depends-on, configure.ac):
29360         Likewise.
29361         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29362         Likewise.
29363         * modules/unictype/property-numeric (Depends-on, configure.ac):
29364         Likewise.
29365         * modules/unictype/property-other-alphabetic (Depends-on,
29366         configure.ac): Likewise.
29367         * modules/unictype/property-other-default-ignorable-code-point
29368         (Depends-on, configure.ac): Likewise.
29369         * modules/unictype/property-other-grapheme-extend (Depends-on,
29370         configure.ac): Likewise.
29371         * modules/unictype/property-other-id-continue (Depends-on,
29372         configure.ac): Likewise.
29373         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29374         Likewise.
29375         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29376         Likewise.
29377         * modules/unictype/property-other-math (Depends-on, configure.ac):
29378         Likewise.
29379         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29380         Likewise.
29381         * modules/unictype/property-paired-punctuation (Depends-on,
29382         configure.ac): Likewise.
29383         * modules/unictype/property-paragraph-separator (Depends-on,
29384         configure.ac): Likewise.
29385         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29386         Likewise.
29387         * modules/unictype/property-pattern-white-space (Depends-on,
29388         configure.ac): Likewise.
29389         * modules/unictype/property-private-use (Depends-on, configure.ac):
29390         Likewise.
29391         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29392         Likewise.
29393         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29394         Likewise.
29395         * modules/unictype/property-radical (Depends-on, configure.ac):
29396         Likewise.
29397         * modules/unictype/property-sentence-terminal (Depends-on,
29398         configure.ac): Likewise.
29399         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29400         Likewise.
29401         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29402         * modules/unictype/property-terminal-punctuation (Depends-on,
29403         configure.ac): Likewise.
29404         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29405         Likewise.
29406         * modules/unictype/property-unassigned-code-value (Depends-on,
29407         configure.ac): Likewise.
29408         * modules/unictype/property-unified-ideograph (Depends-on,
29409         configure.ac): Likewise.
29410         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29411         Likewise.
29412         * modules/unictype/property-variation-selector (Depends-on,
29413         configure.ac): Likewise.
29414         * modules/unictype/property-white-space (Depends-on, configure.ac):
29415         Likewise.
29416         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29417         Likewise.
29418         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29419         Likewise.
29420         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29421         Likewise.
29422         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29423         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29424         Likewise.
29425
29426 2009-12-31  Bruno Haible  <bruno@clisp.org>
29427
29428         Remove unnecessary AC_C_INLINE invocation.
29429         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29430         since 2009-08-21.
29431
29432 2009-12-31  Jim Meyering  <meyering@redhat.com>
29433
29434         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29435         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29436         With this change, we can all remove the gpg_key_ID = ... definition
29437         from our respective cfg.mk files.
29438
29439         maint.mk: create announcement template in ~/, not in /tmp
29440         * top/maint.mk (emit_upload_commands): Adjust.
29441         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29442         Remove temporary file, .ci-msg.
29443
29444 2009-12-31  Eric Blake  <ebb9@byu.net>
29445
29446         link-warning: always build headers with link warnings
29447         * modules/arpa_inet (Makefile.am): Always build replacement
29448         header.
29449         * modules/ctype (Makefile.am): Likewise.
29450         * modules/dirent (Makefile.am): Likewise.
29451         * modules/inttypes (Makefile.am): Likewise.
29452         * modules/langinfo (Makefile.am): Likewise.
29453         * modules/locale (Makefile.am): Likewise.
29454         * modules/spawn (Makefile.am): Likewise.
29455         * modules/sys_file (Makefile.am): Likewise.
29456         * modules/sys_ioctl (Makefile.am): Likewise.
29457         * modules/sys_select (Makefile.am): Likewise.
29458         * modules/sys_socket (Makefile.am): Likewise.
29459         * modules/sys_times (Makefile.am): Likewise.
29460         * modules/sys_utsname (Makefile.am): Likewise.
29461         * modules/sys_wait (Makefile.am): Likewise.
29462         * modules/wchar (Makefile.am): Likewise.
29463         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29464         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29465         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29466         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29467         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29468         Likewise.
29469         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29470         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29471         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29472         Likewise.
29473         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29474         Likewise.
29475         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29476         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29477         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29478         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29479         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29480         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29481         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29482         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29483         (gl_WCHAR_H_DEFAULTS): Likewise.
29484
29485 2009-12-31  Eric Blake  <ebb9@byu.net>
29486
29487         signal, spawn: use link warnings
29488         * lib/signal.in.h (sigset_t): Make unconditional.
29489         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29490         (sigpending, sigprocmask, sigaction): Add link warnings.
29491         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29492         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29493         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29494         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29495         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29496         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29497         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29498         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29499         (posix_spawn_file_actions_destroy)
29500         (posix_spawn_file_actions_addopen)
29501         (posix_spawn_file_actions_addclose)
29502         (posix_spawn_file_actions_adddup2): Likewise.
29503         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29504         * tests/test-signal.c (main): Enhance test.
29505
29506         spawn: improve wrapper support
29507         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29508         (gl_SPAWN_H_DEFAULTS): New defaults.
29509         * modules/spawn (Makefile.am): Substitute them.
29510         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29511         Only declare if missing or broken.
29512
29513         sys_times, sys_utsname: use include_next
29514         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29515         header.
29516         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29517         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29518         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29519         * modules/sys_times (Depends-on): Add include_next.
29520         (Makefile.am): Substitute additional values.
29521         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29522         * lib/sys_times.in.h (includes): Include native header, if
29523         available.
29524         * lib/sys_utsname.in.h (includes): Likewise.
29525         * tests/test-sys_times.c (main): Enhance test.
29526
29527         fdutimensat: revert prior patch
29528         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29529         utimens.h.
29530         Reported by Bruno Haible.
29531
29532 2009-12-30  Eric Blake  <ebb9@byu.net>
29533
29534         sys_wait: drop link-warning dependency
29535         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29536         link-warning efforts.
29537         * lib/sys_wait.in.h: Likewise.
29538
29539         fdutimensat: remove bogus dependency
29540         * modules/fdutimensat (Depends-on): Drop inline.
29541
29542         unistd: fix typo
29543         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29544
29545 2009-12-30  Bruno Haible  <bruno@clisp.org>
29546
29547         Fix compilation error with Solaris cc.
29548         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29549         * lib/unicase/u16-is-invariant.c: Likewise.
29550         * lib/unicase/u32-is-invariant.c: Likewise.
29551         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29552
29553 2009-12-30  Bruno Haible  <bruno@clisp.org>
29554
29555         Fix test crash.
29556         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29557         locales.
29558         Reported by Simon Josefsson <simon@josefsson.org>.
29559
29560 2009-12-30  Bruno Haible  <bruno@clisp.org>
29561
29562         Fix compilation error on most platforms.
29563         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29564         Reported by Simon Josefsson <simon@josefsson.org>
29565         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29566
29567 2009-12-30  Eric Blake  <ebb9@byu.net>
29568
29569         futimens, utimensat: work around ntfs-3g bug
29570         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29571         a ctime bug is present, and expand workaround to cover ntfs-3g.
29572         * lib/utimens.c (fdutimens, lutimens): Likewise.
29573         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29574         (validate_timespec): Adjust return value.
29575         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29576         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29577         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29578
29579 2009-12-29  Eric Blake  <ebb9@byu.net>
29580
29581         link-warning: make usage consistent
29582         * modules/ctype (Depends-on): Add link-warning.
29583         (Makefile.am): Update rules accordingly.
29584         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29585         * modules/locale (Depends-on, Makefile.am): Likewise.
29586         * modules/sys_file (Makefile.am): Likewise.
29587         * modules/getopt-posix (Makefile.am): Delete unused link warning
29588         efforts.
29589         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29590         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29591         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29592         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29593
29594         stdio: remove unused variables
29595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29596         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29597         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29598
29599         tests: test more substitute headers
29600         * modules/ctype-tests: New file.
29601         * modules/dirent-tests: Likewise.
29602         * modules/spawn-tests: Likewise.
29603         * modules/sys_file-tests: Likewise.
29604         * modules/sys_ioctl-tests: Likewise.
29605         * modules/sys_wait-tests: Likewise.
29606         * tests/test-ctype.c: Likewise.
29607         * tests/test-dirent.c: Likewise.
29608         * tests/test-spawn.c: Likewise.
29609         * tests/test-sys_file.c: Likewise.
29610         * tests/test-sys_ioctl.c: Likewise.
29611         * tests/test-sys_wait.c: Likewise.
29612         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29613         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29614         whether or not flock is in use.
29615
29616         tests: remove License section from module
29617         * modules/arpa_inet-tests: Remove unneeded section.
29618         * modules/byteswap-tests: Likewise.
29619         * modules/ceilf-tests: Likewise.
29620         * modules/ceill-tests: Likewise.
29621         * modules/crypto/des-tests: Likewise.
29622         * modules/crypto/gc-arcfour-tests: Likewise.
29623         * modules/crypto/gc-arctwo-tests: Likewise.
29624         * modules/crypto/gc-des-tests: Likewise.
29625         * modules/crypto/gc-hmac-md5-tests: Likewise.
29626         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29627         * modules/crypto/gc-md2-tests: Likewise.
29628         * modules/crypto/gc-md4-tests: Likewise.
29629         * modules/crypto/gc-md5-tests: Likewise.
29630         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29631         * modules/crypto/gc-rijndael-tests: Likewise.
29632         * modules/crypto/gc-sha1-tests: Likewise.
29633         * modules/crypto/gc-tests: Likewise.
29634         * modules/crypto/md2-tests: Likewise.
29635         * modules/crypto/md4-tests: Likewise.
29636         * modules/fcntl-h-tests: Likewise.
29637         * modules/floorf-tests: Likewise.
29638         * modules/floorl-tests: Likewise.
29639         * modules/frexp-nolibm-tests: Likewise.
29640         * modules/frexp-tests: Likewise.
29641         * modules/frexpl-nolibm-tests: Likewise.
29642         * modules/frexpl-tests: Likewise.
29643         * modules/getaddrinfo-tests: Likewise.
29644         * modules/inttypes-tests: Likewise.
29645         * modules/isfinite-tests: Likewise.
29646         * modules/isinf-tests: Likewise.
29647         * modules/ldexpl-tests: Likewise.
29648         * modules/locale-tests: Likewise.
29649         * modules/math-tests: Likewise.
29650         * modules/netdb-tests: Likewise.
29651         * modules/netinet_in-tests: Likewise.
29652         * modules/printf-frexp-tests: Likewise.
29653         * modules/printf-frexpl-tests: Likewise.
29654         * modules/priv-set-tests: Likewise.
29655         * modules/random_r-tests: Likewise.
29656         * modules/round-tests: Likewise.
29657         * modules/roundf-tests: Likewise.
29658         * modules/roundl-tests: Likewise.
29659         * modules/search-tests: Likewise.
29660         * modules/select-tests: Likewise.
29661         * modules/signal-tests: Likewise.
29662         * modules/stdbool-tests: Likewise.
29663         * modules/stddef-tests: Likewise.
29664         * modules/stdint-tests: Likewise.
29665         * modules/stdio-tests: Likewise.
29666         * modules/stdlib-tests: Likewise.
29667         * modules/string-tests: Likewise.
29668         * modules/strings-tests: Likewise.
29669         * modules/sys_select-tests: Likewise.
29670         * modules/sys_socket-tests: Likewise.
29671         * modules/sys_stat-tests: Likewise.
29672         * modules/sys_time-tests: Likewise.
29673         * modules/sys_utsname-tests: Likewise.
29674         * modules/sysexits-tests: Likewise.
29675         * modules/time-tests: Likewise.
29676         * modules/trunc-tests: Likewise.
29677         * modules/truncf-tests: Likewise.
29678         * modules/truncl-tests: Likewise.
29679         * modules/tsearch-tests: Likewise.
29680         * modules/unistd-tests: Likewise.
29681         * modules/wchar-tests: Likewise.
29682         * modules/wctype-tests: Likewise.
29683
29684         tests: fix license on several tests
29685         * tests/test-des.c: Update to GPLv3+.
29686         * tests/test-flock.c: Likewise.
29687         * tests/test-fsync.c: Likewise.
29688         * tests/test-futimens.h: Likewise.
29689         * tests/test-gc-arcfour.c: Likewise.
29690         * tests/test-gc-arctwo.c: Likewise.
29691         * tests/test-gc-des.c: Likewise.
29692         * tests/test-gc-hmac-md5.c: Likewise.
29693         * tests/test-gc-hmac-sha1.c: Likewise.
29694         * tests/test-gc-md2.c: Likewise.
29695         * tests/test-gc-md4.c: Likewise.
29696         * tests/test-gc-md5.c: Likewise.
29697         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29698         * tests/test-gc-rijndael.c: Likewise.
29699         * tests/test-gc-sha1.c: Likewise.
29700         * tests/test-gc.c: Likewise.
29701         * tests/test-getcwd.c: Likewise.
29702         * tests/test-link.c: Likewise.
29703         * tests/test-link.h: Likewise.
29704         * tests/test-lutimens.h: Likewise.
29705         * tests/test-md2.c: Likewise.
29706         * tests/test-md4.c: Likewise.
29707         * tests/test-mkdir.h: Likewise.
29708         * tests/test-rename.c: Likewise.
29709         * tests/test-rename.h: Likewise.
29710         * tests/test-safe-alloc.c: Likewise.
29711         * tests/test-utimens-common.h: Likewise.
29712         * tests/test-utimens.h: Likewise.
29713
29714         maint: sync license texts
29715         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29716         * doc/gpl-3.0.texi: Revert copyright year update.
29717         * doc/lgpl-3.0.texi: Likewise.
29718
29719 2009-12-29  Jim Meyering  <meyering@redhat.com>
29720
29721         update nearly all FSF copyright year lists to include 2009
29722         The files named by the following are exempted:
29723             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29724               test -f "$dst" && { echo "$dst"; continue; }
29725               test -d "$dst" || continue
29726               echo "$dst"/$(basename "$src")
29727             done > exempt
29728             git ls-files tests/unictype >> exempt
29729         In the remaining files, convert to all-interval notation if
29730         - there is already at least one year interval like 2000-2003
29731         - the file is maintained by me
29732         - the file is in lib/uni*/, where that style already prevails
29733         Otherwise, use update-copyright's default.
29734
29735 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29736         and Eric Blake  <ebb9@byu.net>
29737
29738         tests: don't require debug system() to pass
29739         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29740         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29741         * tests/test-unlink.h (test_unlink_func): Likewise.
29742         * tests/test-fstatat.c (main): ...into callers.
29743         * tests/test-lstat.c (main): Likewise.
29744         * tests/test-rmdir.c (main): Likewise.
29745         * tests/test-unlink.c (main): Likewise.
29746         * tests/test-unlinkat.c (main): Likewise.
29747         * tests/test-areadlink-with-size.c (main): Don't require a
29748         debug-only system call to pass, aiding cross-testing to mingw.
29749         * tests/test-areadlink.c (main): Likewise.
29750         * tests/test-areadlinkat-with-size.c (main): Likewise.
29751         * tests/test-areadlinkat.c (main): Likewise.
29752         * tests/test-canonicalize-lgpl.c (main): Likewise.
29753         * tests/test-canonicalize.c (main): Likewise.
29754         * tests/test-chown.c (main): Likewise.
29755         * tests/test-fchownat.c (main): Likewise.
29756         * tests/test-lchown.c (main): Likewise.
29757         * tests/test-fdutimensat.c (main): Likewise.
29758         * tests/test-futimens.c (main): Likewise.
29759         * tests/test-link.c (main): Likewise.
29760         * tests/test-linkat.c (main): Likewise.
29761         * tests/test-mkdir.c (main): Likewise.
29762         * tests/test-mkdirat.c (main): Likewise.
29763         * tests/test-mkfifo.c (main): Likewise.
29764         * tests/test-mkfifoat.c (main): Likewise.
29765         * tests/test-mknod.c (main): Likewise.
29766         * tests/test-readlink.c (main): Likewise.
29767         * tests/test-remove.c (main): Likewise.
29768         * tests/test-rename.c (main): Likewise.
29769         * tests/test-renameat.c (main): Likewise.
29770         * tests/test-symlink.c (main): Likewise.
29771         * tests/test-symlinkat.c (main): Likewise.
29772         * tests/test-utimens.c (main): Likewise.
29773         * tests/test-utimensat.c (main): Likewise.
29774
29775 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29776
29777         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29778         on $(UNUSED_PARAMETER_H) to avoid build failure.
29779
29780 2009-12-28  Jim Meyering  <meyering@redhat.com>
29781
29782         update-copyright: you may specify a max. line length other than 72
29783         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29784
29785         maint: use consistent FSF copyright line syntax
29786         * lib/posixtm.c: Add missing comma in FSF copyright line.
29787         * lib/posixtm.h: Likewise.
29788         * lib/getugroups.c: Add missing ", Inc.".
29789
29790         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29791         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29792         FSF copyright line.  Remove trailing blanks.
29793
29794 2009-12-28  Eric Blake  <ebb9@byu.net>
29795
29796         test-dup2: reduce dependencies
29797         * modules/cloexec (Configure.ac): Set witness.
29798         * modules/dup2-tests (Depends-on): Drop cloexec.
29799         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29800         not present.
29801         Suggested by Bruno Haible.
29802
29803 2009-12-26  Bruno Haible  <bruno@clisp.org>
29804
29805         Remove an unneeded dependency.
29806         * modules/fseterr (Depends-on): Remove dup2.
29807
29808 2009-12-26  Eric Blake  <ebb9@byu.net>
29809
29810         tests: use macros.h in more places
29811         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29812         (ASSERT_STREAM): Provide default of stderr.
29813         * tests/test-dirent-safer.c: Include macros.h, using alternate
29814         stream for assertions.
29815         * tests/test-dup-safer.c: Likewise.
29816         * tests/test-freopen-safer.c: Likewise.
29817         * tests/test-getopt.c: Likewise.
29818         * tests/test-openat-safer.c: Likewise.
29819         * tests/test-pipe.c: Likewise.
29820         * tests/test-popen-safer.c: Likewise.
29821         * modules/dirent-safer-tests (Files): Include macros.h.
29822         * modules/unistd-safer-tests (Files): Likewise.
29823         * modules/freopen-safer-tests (Files): Likewise.
29824         * modules/getopt-posix-tests (Files): Likewise.
29825         * modules/openat-safer-tests (Files): Likewise.
29826         * modules/pipe-tests (Files): Likewise.
29827
29828 2009-12-26  Bruno Haible  <bruno@clisp.org>
29829
29830         javacomp: Portability fix.
29831         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29832         that it also works on Solaris.
29833
29834 2009-12-26  Bruno Haible  <bruno@clisp.org>
29835
29836         localename: Fix storage allocation of gl_locale_name_thread's result.
29837         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29838         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29839         all platforms that have 'uselocale'.
29840         (gl_locale_name_thread_unsafe): New function, extracted from
29841         gl_locale_name_thread.
29842         (gl_locale_name_thread): Call struniq on all platforms that have
29843         'uselocale'.
29844         * tests/test-localename.c (test_locale_name_thread): Check that the
29845         resulting strings are permanently allocated.
29846         * modules/localename-tests (Depends-on): Add strdup.
29847
29848 2009-12-26  Bruno Haible  <bruno@clisp.org>
29849
29850         * tests/test-localename.c (categories): Fill in the strings.
29851
29852 2009-12-26  Jim Meyering  <meyering@redhat.com>
29853
29854         isdir: complete the removal of m4/isdir.m4
29855         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29856
29857         isdir: clean up, since at least grep still uses it
29858         * lib/isdir.c: Include "isdir.h".
29859         (S_ISDIR): Remove now-unneeded definition.
29860         * modules/isdir (Files): Add lib/isdir.h.
29861         * lib/isdir.h: New file, with declaration.
29862         * m4/isdir.m4: Remove file -- unneeded.
29863
29864 2009-12-25  Bruno Haible  <bruno@clisp.org>
29865
29866         selinux-h: Make generated .h files standalone.
29867         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29868         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29869         * lib/se-selinux.in.h: Likewise.
29870         * modules/selinux-h (Depends-on): Add unused-parameter.
29871         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29872         selinux/selinux.h and selinux/context.h.
29873         Suggested by Eric Blake.
29874
29875 2009-12-25  Bruno Haible  <bruno@clisp.org>
29876
29877         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29878         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29879         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29880         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29881         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29882
29883 2009-12-24  Bruno Haible  <bruno@clisp.org>
29884
29885         openat: Fix warning.
29886         * lib/openat-proc.c: Include <unistd.h>.
29887
29888 2009-12-24  Bruno Haible  <bruno@clisp.org>
29889
29890         New module 'unused-parameter'.
29891         * build-aux/unused-parameter.h: New file, extracted from earlier
29892         gnulib-common.m4.
29893         * modules/unused-parameter: New file.
29894         * lib/unistr.h: Include unused-parameter.h.
29895         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29896         _GL_UNUSED.
29897         * modules/unistr/base (Depends-on): Add unused-parameter.
29898
29899 2009-12-24  Bruno Haible  <bruno@clisp.org>
29900
29901         Add missing dependencies to 'extensions' module.
29902         * m4/extensions.m4: Add comment.
29903         * modules/accept4 (Depends-on): Add extensions.
29904         * modules/dup3 (Depends-on): Likewise.
29905         * modules/fcntl (Depends-on): Likewise.
29906         * modules/futimens (Depends-on): Likewise.
29907         * modules/mknod (Depends-on): Likewise.
29908         * modules/pipe2 (Depends-on): Likewise.
29909         * modules/stat-time (Depends-on): Likewise.
29910         * modules/strcasestr-simple (Depends-on): Likewise.
29911         * modules/strsignal (Depends-on): Likewise.
29912         * modules/utimensat (Depends-on): Likewise.
29913         * modules/localcharset (Depends-on): Likewise. Needed because of
29914         gl_FCNTL_O_FLAGS.
29915         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29916         AC_TYPE_MBSTATE_T.
29917         * modules/wcsnrtombs (Depends-on): Likewise.
29918         * modules/wcsrtombs (Depends-on): Likewise.
29919
29920 2009-12-24  Bruno Haible  <bruno@clisp.org>
29921
29922         binary-io: Avoid gcc warning due to SET_BINARY.
29923         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29924         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29925
29926 2009-12-24  Bruno Haible  <bruno@clisp.org>
29927
29928         Avoid future namespace pollution on glibc systems.
29929         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29930         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29931         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29932         glibc systems.
29933
29934 2009-12-24  Bruno Haible  <bruno@clisp.org>
29935
29936         Refactor common macros used in tests.
29937         * tests/macros.h: New file.
29938         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29939         and/or <stdlib.h>, if appropriate.
29940         (ASSERT, SIZEOF): Remove macros.
29941         * tests/test-areadlink-with-size.c: Likewise.
29942         * tests/test-areadlinkat.c: Likewise.
29943         * tests/test-areadlinkat-with-size.c: Likewise.
29944         * tests/test-argmatch.c: Likewise.
29945         * tests/test-argv-iter.c: Likewise.
29946         * tests/test-array-mergesort.c: Likewise.
29947         * tests/test-array_list.c: Likewise.
29948         * tests/test-array_oset.c: Likewise.
29949         * tests/test-avltree_list.c: Likewise.
29950         * tests/test-avltree_oset.c: Likewise.
29951         * tests/test-avltreehash_list.c: Likewise.
29952         * tests/test-base64.c: Likewise.
29953         * tests/test-binary-io.c: Likewise.
29954         * tests/test-bitrotate.c: Likewise.
29955         * tests/test-btowc.c: Likewise.
29956         * tests/test-byteswap.c: Likewise.
29957         * tests/test-c-ctype.c: Likewise.
29958         * tests/test-c-stack.c: Likewise.
29959         * tests/test-c-strcasecmp.c: Likewise.
29960         * tests/test-c-strcasestr.c: Likewise.
29961         * tests/test-c-strncasecmp.c: Likewise.
29962         * tests/test-c-strstr.c: Likewise.
29963         * tests/test-canonicalize-lgpl.c: Likewise.
29964         * tests/test-canonicalize.c: Likewise.
29965         * tests/test-carray_list.c: Likewise.
29966         * tests/test-ceilf1.c: Likewise.
29967         * tests/test-ceilf2.c: Likewise.
29968         * tests/test-ceill.c: Likewise.
29969         * tests/test-chown.c: Likewise.
29970         * tests/test-cloexec.c: Likewise.
29971         * tests/test-copy-acl.c: Likewise.
29972         * tests/test-copy-file.c: Likewise.
29973         * tests/test-count-one-bits.c: Likewise.
29974         * tests/test-dprintf-posix.c: Likewise.
29975         * tests/test-dup2.c: Likewise.
29976         * tests/test-dup3.c: Likewise.
29977         * tests/test-duplocale.c: Likewise.
29978         * tests/test-fbufmode.c: Likewise.
29979         * tests/test-fchdir.c: Likewise.
29980         * tests/test-fchownat.c: Likewise.
29981         * tests/test-fcntl-safer.c: Likewise.
29982         * tests/test-fcntl.c: Likewise.
29983         * tests/test-fdopendir.c: Likewise.
29984         * tests/test-fdutimensat.c: Likewise.
29985         * tests/test-fflush2.c: Likewise.
29986         * tests/test-file-has-acl.c: Likewise.
29987         * tests/test-filevercmp.c: Likewise.
29988         * tests/test-flock.c: Likewise.
29989         * tests/test-floorf1.c: Likewise.
29990         * tests/test-floorf2.c: Likewise.
29991         * tests/test-floorl.c: Likewise.
29992         * tests/test-fnmatch.c: Likewise.
29993         * tests/test-fopen.h: Likewise.
29994         * tests/test-fpending.c: Likewise.
29995         * tests/test-fprintf-posix.c: Likewise.
29996         * tests/test-fpurge.c: Likewise.
29997         * tests/test-freadable.c: Likewise.
29998         * tests/test-freadahead.c: Likewise.
29999         * tests/test-freading.c: Likewise.
30000         * tests/test-freadptr.c: Likewise.
30001         * tests/test-freadptr2.c: Likewise.
30002         * tests/test-freadseek.c: Likewise.
30003         * tests/test-freopen.c: Likewise.
30004         * tests/test-frexp.c: Likewise.
30005         * tests/test-frexpl.c: Likewise.
30006         * tests/test-fseek.c: Likewise.
30007         * tests/test-fseeko.c: Likewise.
30008         * tests/test-fstatat.c: Likewise.
30009         * tests/test-fstrcmp.c: Likewise.
30010         * tests/test-fsync.c: Likewise.
30011         * tests/test-ftell.c: Likewise.
30012         * tests/test-ftello.c: Likewise.
30013         * tests/test-func.c: Likewise.
30014         * tests/test-futimens.c: Likewise.
30015         * tests/test-fwritable.c: Likewise.
30016         * tests/test-fwriting.c: Likewise.
30017         * tests/test-getcwd.c: Likewise.
30018         * tests/test-getdate.c: Likewise.
30019         * tests/test-getdelim.c: Likewise.
30020         * tests/test-getdtablesize.c: Likewise.
30021         * tests/test-getgroups.c: Likewise.
30022         * tests/test-getline.c: Likewise.
30023         * tests/test-getndelim2.c: Likewise.
30024         * tests/test-glob.c: Likewise.
30025         * tests/test-hash.c: Likewise.
30026         * tests/test-i-ring.c: Likewise.
30027         * tests/test-iconv-utf.c: Likewise.
30028         * tests/test-iconv.c: Likewise.
30029         * tests/test-idpriv-drop.c: Likewise.
30030         * tests/test-idpriv-droptemp.c: Likewise.
30031         * tests/test-inet_ntop.c: Likewise.
30032         * tests/test-inet_pton.c: Likewise.
30033         * tests/test-isblank.c: Likewise.
30034         * tests/test-isfinite.c: Likewise.
30035         * tests/test-isinf.c: Likewise.
30036         * tests/test-isnan.c: Likewise.
30037         * tests/test-isnand.h: Likewise.
30038         * tests/test-isnanf.h: Likewise.
30039         * tests/test-isnanl.h: Likewise.
30040         * tests/test-lchown.c: Likewise.
30041         * tests/test-ldexpl.c: Likewise.
30042         * tests/test-link.c: Likewise.
30043         * tests/test-linkat.c: Likewise.
30044         * tests/test-linked_list.c: Likewise.
30045         * tests/test-linkedhash_list.c: Likewise.
30046         * tests/test-localename.c: Likewise.
30047         * tests/test-lseek.c: Likewise.
30048         * tests/test-lstat.c: Likewise.
30049         * tests/test-mbmemcasecmp.c: Likewise.
30050         * tests/test-mbmemcasecoll.c: Likewise.
30051         * tests/test-mbrtowc.c: Likewise.
30052         * tests/test-mbscasecmp.c: Likewise.
30053         * tests/test-mbscasestr1.c: Likewise.
30054         * tests/test-mbscasestr2.c: Likewise.
30055         * tests/test-mbscasestr3.c: Likewise.
30056         * tests/test-mbscasestr4.c: Likewise.
30057         * tests/test-mbschr.c: Likewise.
30058         * tests/test-mbscspn.c: Likewise.
30059         * tests/test-mbsinit.c: Likewise.
30060         * tests/test-mbsncasecmp.c: Likewise.
30061         * tests/test-mbsnrtowcs.c: Likewise.
30062         * tests/test-mbspbrk.c: Likewise.
30063         * tests/test-mbspcasecmp.c: Likewise.
30064         * tests/test-mbsrchr.c: Likewise.
30065         * tests/test-mbsrtowcs.c: Likewise.
30066         * tests/test-mbsspn.c: Likewise.
30067         * tests/test-mbsstr1.c: Likewise.
30068         * tests/test-mbsstr2.c: Likewise.
30069         * tests/test-mbsstr3.c: Likewise.
30070         * tests/test-memchr.c: Likewise.
30071         * tests/test-memchr2.c: Likewise.
30072         * tests/test-memcmp.c: Likewise.
30073         * tests/test-memmem.c: Likewise.
30074         * tests/test-memrchr.c: Likewise.
30075         * tests/test-mkdir.c: Likewise.
30076         * tests/test-mkdirat.c: Likewise.
30077         * tests/test-mkfifo.c: Likewise.
30078         * tests/test-mkfifoat.c: Likewise.
30079         * tests/test-mknod.c: Likewise.
30080         * tests/test-nanosleep.c: Likewise.
30081         * tests/test-nl_langinfo.c: Likewise.
30082         * tests/test-obstack-printf.c: Likewise.
30083         * tests/test-open.c: Likewise.
30084         * tests/test-openat.c: Likewise.
30085         * tests/test-pipe-filter-gi1.c: Likewise.
30086         * tests/test-pipe-filter-gi2-main.c: Likewise.
30087         * tests/test-pipe-filter-ii1.c: Likewise.
30088         * tests/test-pipe-filter-ii2-main.c: Likewise.
30089         * tests/test-pipe2.c: Likewise.
30090         * tests/test-popen.h: Likewise.
30091         * tests/test-posixtm.c: Likewise.
30092         * tests/test-pread.c: Likewise.
30093         * tests/test-printf-frexp.c: Likewise.
30094         * tests/test-printf-frexpl.c: Likewise.
30095         * tests/test-printf-posix.c: Likewise.
30096         * tests/test-priv-set.c: Likewise.
30097         * tests/test-quotearg.c: Likewise.
30098         * tests/test-random_r.c: Likewise.
30099         * tests/test-rawmemchr.c: Likewise.
30100         * tests/test-rbtree_list.c: Likewise.
30101         * tests/test-rbtree_oset.c: Likewise.
30102         * tests/test-rbtreehash_list.c: Likewise.
30103         * tests/test-readlink.c: Likewise.
30104         * tests/test-remove.c: Likewise.
30105         * tests/test-rename.c: Likewise.
30106         * tests/test-renameat.c: Likewise.
30107         * tests/test-rmdir.c: Likewise.
30108         * tests/test-round1.c: Likewise.
30109         * tests/test-roundf1.c: Likewise.
30110         * tests/test-roundl.c: Likewise.
30111         * tests/test-safe-alloc.c: Likewise.
30112         * tests/test-sameacls.c: Likewise.
30113         * tests/test-set-mode-acl.c: Likewise.
30114         * tests/test-setenv.c: Likewise.
30115         * tests/test-sigaction.c: Likewise.
30116         * tests/test-signbit.c: Likewise.
30117         * tests/test-sleep.c: Likewise.
30118         * tests/test-snprintf-posix.c: Likewise.
30119         * tests/test-snprintf.c: Likewise.
30120         * tests/test-sprintf-posix.c: Likewise.
30121         * tests/test-stat-time.c: Likewise.
30122         * tests/test-stat.c: Likewise.
30123         * tests/test-strcasestr.c: Likewise.
30124         * tests/test-strchrnul.c: Likewise.
30125         * tests/test-strerror.c: Likewise.
30126         * tests/test-striconv.c: Likewise.
30127         * tests/test-striconveh.c: Likewise.
30128         * tests/test-striconveha.c: Likewise.
30129         * tests/test-strsignal.c: Likewise.
30130         * tests/test-strstr.c: Likewise.
30131         * tests/test-strtod.c: Likewise.
30132         * tests/test-strverscmp.c: Likewise.
30133         * tests/test-symlink.c: Likewise.
30134         * tests/test-symlinkat.c: Likewise.
30135         * tests/test-trunc1.c: Likewise.
30136         * tests/test-trunc2.c: Likewise.
30137         * tests/test-truncf1.c: Likewise.
30138         * tests/test-truncf2.c: Likewise.
30139         * tests/test-truncl.c: Likewise.
30140         * tests/test-uname.c: Likewise.
30141         * tests/test-unlink.c: Likewise.
30142         * tests/test-unlinkat.c: Likewise.
30143         * tests/test-unsetenv.c: Likewise.
30144         * tests/test-usleep.c: Likewise.
30145         * tests/test-utimens.c: Likewise.
30146         * tests/test-utimensat.c: Likewise.
30147         * tests/test-vasnprintf-posix.c: Likewise.
30148         * tests/test-vasnprintf-posix2.c: Likewise.
30149         * tests/test-vasnprintf.c: Likewise.
30150         * tests/test-vasprintf-posix.c: Likewise.
30151         * tests/test-vasprintf.c: Likewise.
30152         * tests/test-vdprintf-posix.c: Likewise.
30153         * tests/test-vfprintf-posix.c: Likewise.
30154         * tests/test-vprintf-posix.c: Likewise.
30155         * tests/test-vsnprintf-posix.c: Likewise.
30156         * tests/test-vsnprintf.c: Likewise.
30157         * tests/test-vsprintf-posix.c: Likewise.
30158         * tests/test-wcrtomb.c: Likewise.
30159         * tests/test-wcsnrtombs.c: Likewise.
30160         * tests/test-wcsrtombs.c: Likewise.
30161         * tests/test-wctype.c: Likewise.
30162         * tests/test-wcwidth.c: Likewise.
30163         * tests/test-xfprintf-posix.c: Likewise.
30164         * tests/test-xmemdup0.c: Likewise.
30165         * tests/test-xprintf-posix.c: Likewise.
30166         * tests/test-xvasprintf.c: Likewise.
30167         * tests/unicase/test-locale-language.c: Likewise.
30168         * tests/unicase/test-mapping-part1.h: Likewise.
30169         * tests/unicase/test-predicate-part1.h: Likewise.
30170         * tests/unicase/test-u8-casecmp.c: Likewise.
30171         * tests/unicase/test-u8-casecoll.c: Likewise.
30172         * tests/unicase/test-u8-casefold.c: Likewise.
30173         * tests/unicase/test-u8-is-cased.c: Likewise.
30174         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30175         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30176         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30177         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30178         * tests/unicase/test-u8-tolower.c: Likewise.
30179         * tests/unicase/test-u8-totitle.c: Likewise.
30180         * tests/unicase/test-u8-toupper.c: Likewise.
30181         * tests/unicase/test-u16-casecmp.c: Likewise.
30182         * tests/unicase/test-u16-casecoll.c: Likewise.
30183         * tests/unicase/test-u16-casefold.c: Likewise.
30184         * tests/unicase/test-u16-is-cased.c: Likewise.
30185         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30186         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30187         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30188         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30189         * tests/unicase/test-u16-tolower.c: Likewise.
30190         * tests/unicase/test-u16-totitle.c: Likewise.
30191         * tests/unicase/test-u16-toupper.c: Likewise.
30192         * tests/unicase/test-u32-casecmp.c: Likewise.
30193         * tests/unicase/test-u32-casecoll.c: Likewise.
30194         * tests/unicase/test-u32-casefold.c: Likewise.
30195         * tests/unicase/test-u32-is-cased.c: Likewise.
30196         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30197         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30198         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30199         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30200         * tests/unicase/test-u32-tolower.c: Likewise.
30201         * tests/unicase/test-u32-totitle.c: Likewise.
30202         * tests/unicase/test-u32-toupper.c: Likewise.
30203         * tests/unicase/test-ulc-casecmp.c: Likewise.
30204         * tests/unicase/test-ulc-casecoll.c: Likewise.
30205         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30206         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30207         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30208         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30209         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30210         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30211         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30212         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30213         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30214         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30215         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30216         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30217         * tests/unictype/test-bidi_byname.c: Likewise.
30218         * tests/unictype/test-bidi_name.c: Likewise.
30219         * tests/unictype/test-bidi_of.c: Likewise.
30220         * tests/unictype/test-bidi_test.c: Likewise.
30221         * tests/unictype/test-block_list.c: Likewise.
30222         * tests/unictype/test-block_of.c: Likewise.
30223         * tests/unictype/test-block_test.c: Likewise.
30224         * tests/unictype/test-categ_and.c: Likewise.
30225         * tests/unictype/test-categ_and_not.c: Likewise.
30226         * tests/unictype/test-categ_byname.c: Likewise.
30227         * tests/unictype/test-categ_name.c: Likewise.
30228         * tests/unictype/test-categ_none.c: Likewise.
30229         * tests/unictype/test-categ_of.c: Likewise.
30230         * tests/unictype/test-categ_or.c: Likewise.
30231         * tests/unictype/test-categ_test_withtable.c: Likewise.
30232         * tests/unictype/test-combining.c: Likewise.
30233         * tests/unictype/test-decdigit.c: Likewise.
30234         * tests/unictype/test-digit.c: Likewise.
30235         * tests/unictype/test-mirror.c: Likewise.
30236         * tests/unictype/test-numeric.c: Likewise.
30237         * tests/unictype/test-pr_byname.c: Likewise.
30238         * tests/unictype/test-pr_test.c: Likewise.
30239         * tests/unictype/test-predicate-part1.h: Likewise.
30240         * tests/unictype/test-scripts.c: Likewise.
30241         * tests/unictype/test-sy_c_ident.c: Likewise.
30242         * tests/unictype/test-sy_java_ident.c: Likewise.
30243         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30244         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30245         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30246         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30247         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30248         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30249         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30250         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30251         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30252         * tests/uninorm/test-compat-decomposition.c: Likewise.
30253         * tests/uninorm/test-composition.c: Likewise.
30254         * tests/uninorm/test-decomposing-form.c: Likewise.
30255         * tests/uninorm/test-decomposition.c: Likewise.
30256         * tests/uninorm/test-u8-nfc.c: Likewise.
30257         * tests/uninorm/test-u8-nfd.c: Likewise.
30258         * tests/uninorm/test-u8-nfkc.c: Likewise.
30259         * tests/uninorm/test-u8-nfkd.c: Likewise.
30260         * tests/uninorm/test-u8-normcmp.c: Likewise.
30261         * tests/uninorm/test-u8-normcoll.c: Likewise.
30262         * tests/uninorm/test-u16-nfc.c: Likewise.
30263         * tests/uninorm/test-u16-nfd.c: Likewise.
30264         * tests/uninorm/test-u16-nfkc.c: Likewise.
30265         * tests/uninorm/test-u16-nfkd.c: Likewise.
30266         * tests/uninorm/test-u16-normcmp.c: Likewise.
30267         * tests/uninorm/test-u16-normcoll.c: Likewise.
30268         * tests/uninorm/test-u32-nfc.c: Likewise.
30269         * tests/uninorm/test-u32-nfd.c: Likewise.
30270         * tests/uninorm/test-u32-nfkc.c: Likewise.
30271         * tests/uninorm/test-u32-nfkd.c: Likewise.
30272         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30273         * tests/uninorm/test-u32-normcmp.c: Likewise.
30274         * tests/uninorm/test-u32-normcoll.c: Likewise.
30275         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30276         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30277         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30278         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30279         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30280         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30281         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30282         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30283         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30284         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30285         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30286         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30287         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30288         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30289         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30290         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30291         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30292         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30293         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30294         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30295         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30296         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30297         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30298         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30299         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30300         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30301         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30302         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30303         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30304         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30305         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30306         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30307         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30308         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30309         * tests/uniwidth/test-u8-width.c: Likewise.
30310         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30311         * tests/uniwidth/test-u16-width.c: Likewise.
30312         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30313         * tests/uniwidth/test-u32-width.c: Likewise.
30314         * tests/uniwidth/test-uc_width.c: Likewise.
30315         * tests/uniwidth/test-uc_width2.c: Likewise.
30316         * modules/acl-tests (Files): Add tests/macros.h.
30317         * modules/areadlink-tests (Files): Likewise.
30318         * modules/areadlink-with-size-tests (Files): Likewise.
30319         * modules/areadlinkat-tests (Files): Likewise.
30320         * modules/areadlinkat-with-size-tests (Files): Likewise.
30321         * modules/argmatch-tests (Files): Likewise.
30322         * modules/argv-iter-tests (Files): Likewise.
30323         * modules/array-list-tests (Files): Likewise.
30324         * modules/array-mergesort-tests (Files): Likewise.
30325         * modules/array-oset-tests (Files): Likewise.
30326         * modules/avltree-list-tests (Files): Likewise.
30327         * modules/avltree-oset-tests (Files): Likewise.
30328         * modules/avltreehash-list-tests (Files): Likewise.
30329         * modules/base64-tests (Files): Likewise.
30330         * modules/binary-io-tests (Files): Likewise.
30331         * modules/bitrotate-tests (Files): Likewise.
30332         * modules/btowc-tests (Files): Likewise.
30333         * modules/byteswap-tests (Files): Likewise.
30334         * modules/c-ctype-tests (Files): Likewise.
30335         * modules/c-stack-tests (Files): Likewise.
30336         * modules/c-strcase-tests (Files): Likewise.
30337         * modules/c-strcasestr-tests (Files): Likewise.
30338         * modules/c-strstr-tests (Files): Likewise.
30339         * modules/canonicalize-lgpl-tests (Files): Likewise.
30340         * modules/canonicalize-tests (Files): Likewise.
30341         * modules/carray-list-tests (Files): Likewise.
30342         * modules/ceilf-tests (Files): Likewise.
30343         * modules/ceill-tests (Files): Likewise.
30344         * modules/chown-tests (Files): Likewise.
30345         * modules/cloexec-tests (Files): Likewise.
30346         * modules/copy-file-tests (Files): Likewise.
30347         * modules/count-one-bits-tests (Files): Likewise.
30348         * modules/dprintf-posix-tests (Files): Likewise.
30349         * modules/dup2-tests (Files): Likewise.
30350         * modules/dup3-tests (Files): Likewise.
30351         * modules/duplocale-tests (Files): Likewise.
30352         * modules/fbufmode-tests (Files): Likewise.
30353         * modules/fchdir-tests (Files): Likewise.
30354         * modules/fcntl-safer-tests (Files): Likewise.
30355         * modules/fcntl-tests (Files): Likewise.
30356         * modules/fdopendir-tests (Files): Likewise.
30357         * modules/fdutimensat-tests (Files): Likewise.
30358         * modules/fflush-tests (Files): Likewise.
30359         * modules/filevercmp-tests (Files): Likewise.
30360         * modules/flock-tests (Files): Likewise.
30361         * modules/floorf-tests (Files): Likewise.
30362         * modules/floorl-tests (Files): Likewise.
30363         * modules/fnmatch-tests (Files): Likewise.
30364         * modules/fopen-safer-tests (Files): Likewise.
30365         * modules/fopen-tests (Files): Likewise.
30366         * modules/fpending-tests (Files): Likewise.
30367         * modules/fprintf-posix-tests (Files): Likewise.
30368         * modules/fpurge-tests (Files): Likewise.
30369         * modules/freadable-tests (Files): Likewise.
30370         * modules/freadahead-tests (Files): Likewise.
30371         * modules/freading-tests (Files): Likewise.
30372         * modules/freadptr-tests (Files): Likewise.
30373         * modules/freadseek-tests (Files): Likewise.
30374         * modules/freopen-tests (Files): Likewise.
30375         * modules/frexp-nolibm-tests (Files): Likewise.
30376         * modules/frexp-tests (Files): Likewise.
30377         * modules/frexpl-nolibm-tests (Files): Likewise.
30378         * modules/frexpl-tests (Files): Likewise.
30379         * modules/fseek-tests (Files): Likewise.
30380         * modules/fseeko-tests (Files): Likewise.
30381         * modules/fstrcmp-tests (Files): Likewise.
30382         * modules/fsync-tests (Files): Likewise.
30383         * modules/ftell-tests (Files): Likewise.
30384         * modules/ftello-tests (Files): Likewise.
30385         * modules/func-tests (Files): Likewise.
30386         * modules/futimens-tests (Files): Likewise.
30387         * modules/fwritable-tests (Files): Likewise.
30388         * modules/fwriting-tests (Files): Likewise.
30389         * modules/getcwd-tests (Files): Likewise.
30390         * modules/getdate-tests (Files): Likewise.
30391         * modules/getdelim-tests (Files): Likewise.
30392         * modules/getdtablesize-tests (Files): Likewise.
30393         * modules/getgroups-tests (Files): Likewise.
30394         * modules/getline-tests (Files): Likewise.
30395         * modules/getndelim2-tests (Files): Likewise.
30396         * modules/glob-tests (Files): Likewise.
30397         * modules/hash-tests (Files): Likewise.
30398         * modules/i-ring-tests (Files): Likewise.
30399         * modules/iconv-tests (Files): Likewise.
30400         * modules/iconv_open-utf-tests (Files): Likewise.
30401         * modules/idpriv-drop-tests (Files): Likewise.
30402         * modules/idpriv-droptemp-tests (Files): Likewise.
30403         * modules/inet_ntop-tests (Files): Likewise.
30404         * modules/inet_pton-tests (Files): Likewise.
30405         * modules/isblank-tests (Files): Likewise.
30406         * modules/isfinite-tests (Files): Likewise.
30407         * modules/isinf-tests (Files): Likewise.
30408         * modules/isnan-tests (Files): Likewise.
30409         * modules/isnand-nolibm-tests (Files): Likewise.
30410         * modules/isnand-tests (Files): Likewise.
30411         * modules/isnanf-nolibm-tests (Files): Likewise.
30412         * modules/isnanf-tests (Files): Likewise.
30413         * modules/isnanl-nolibm-tests (Files): Likewise.
30414         * modules/isnanl-tests (Files): Likewise.
30415         * modules/lchown-tests (Files): Likewise.
30416         * modules/ldexpl-tests (Files): Likewise.
30417         * modules/link-tests (Files): Likewise.
30418         * modules/linkat-tests (Files): Likewise.
30419         * modules/linked-list-tests (Files): Likewise.
30420         * modules/linkedhash-list-tests (Files): Likewise.
30421         * modules/localename-tests (Files): Likewise.
30422         * modules/lseek-tests (Files): Likewise.
30423         * modules/lstat-tests (Files): Likewise.
30424         * modules/mbmemcasecmp-tests (Files): Likewise.
30425         * modules/mbmemcasecoll-tests (Files): Likewise.
30426         * modules/mbrtowc-tests (Files): Likewise.
30427         * modules/mbscasecmp-tests (Files): Likewise.
30428         * modules/mbscasestr-tests (Files): Likewise.
30429         * modules/mbschr-tests (Files): Likewise.
30430         * modules/mbscspn-tests (Files): Likewise.
30431         * modules/mbsinit-tests (Files): Likewise.
30432         * modules/mbsncasecmp-tests (Files): Likewise.
30433         * modules/mbsnrtowcs-tests (Files): Likewise.
30434         * modules/mbspbrk-tests (Files): Likewise.
30435         * modules/mbspcasecmp-tests (Files): Likewise.
30436         * modules/mbsrchr-tests (Files): Likewise.
30437         * modules/mbsrtowcs-tests (Files): Likewise.
30438         * modules/mbsspn-tests (Files): Likewise.
30439         * modules/mbsstr-tests (Files): Likewise.
30440         * modules/memchr-tests (Files): Likewise.
30441         * modules/memchr2-tests (Files): Likewise.
30442         * modules/memcmp-tests (Files): Likewise.
30443         * modules/memmem-tests (Files): Likewise.
30444         * modules/memrchr-tests (Files): Likewise.
30445         * modules/mkdir-tests (Files): Likewise.
30446         * modules/mkfifo-tests (Files): Likewise.
30447         * modules/mkfifoat-tests (Files): Likewise.
30448         * modules/mknod-tests (Files): Likewise.
30449         * modules/nanosleep-tests (Files): Likewise.
30450         * modules/nl_langinfo-tests (Files): Likewise.
30451         * modules/obstack-printf-tests (Files): Likewise.
30452         * modules/open-tests (Files): Likewise.
30453         * modules/openat-tests (Files): Likewise.
30454         * modules/pipe-filter-gi-tests (Files): Likewise.
30455         * modules/pipe-filter-ii-tests (Files): Likewise.
30456         * modules/pipe2-tests (Files): Likewise.
30457         * modules/popen-safer-tests (Files): Likewise.
30458         * modules/popen-tests (Files): Likewise.
30459         * modules/posixtm-tests (Files): Likewise.
30460         * modules/pread-tests (Files): Likewise.
30461         * modules/printf-frexp-tests (Files): Likewise.
30462         * modules/printf-frexpl-tests (Files): Likewise.
30463         * modules/printf-posix-tests (Files): Likewise.
30464         * modules/priv-set-tests (Files): Likewise.
30465         * modules/quotearg-tests (Files): Likewise.
30466         * modules/random_r-tests (Files): Likewise.
30467         * modules/rawmemchr-tests (Files): Likewise.
30468         * modules/rbtree-list-tests (Files): Likewise.
30469         * modules/rbtree-oset-tests (Files): Likewise.
30470         * modules/rbtreehash-list-tests (Files): Likewise.
30471         * modules/readlink-tests (Files): Likewise.
30472         * modules/remove-tests (Files): Likewise.
30473         * modules/rename-tests (Files): Likewise.
30474         * modules/renameat-tests (Files): Likewise.
30475         * modules/rmdir-tests (Files): Likewise.
30476         * modules/round-tests (Files): Likewise.
30477         * modules/roundf-tests (Files): Likewise.
30478         * modules/roundl-tests (Files): Likewise.
30479         * modules/safe-alloc-tests (Files): Likewise.
30480         * modules/setenv-tests (Files): Likewise.
30481         * modules/sigaction-tests (Files): Likewise.
30482         * modules/signbit-tests (Files): Likewise.
30483         * modules/sleep-tests (Files): Likewise.
30484         * modules/snprintf-posix-tests (Files): Likewise.
30485         * modules/snprintf-tests (Files): Likewise.
30486         * modules/sprintf-posix-tests (Files): Likewise.
30487         * modules/stat-tests (Files): Likewise.
30488         * modules/stat-time-tests (Files): Likewise.
30489         * modules/strcasestr-tests (Files): Likewise.
30490         * modules/strchrnul-tests (Files): Likewise.
30491         * modules/strerror-tests (Files): Likewise.
30492         * modules/striconv-tests (Files): Likewise.
30493         * modules/striconveh-tests (Files): Likewise.
30494         * modules/striconveha-tests (Files): Likewise.
30495         * modules/strsignal-tests (Files): Likewise.
30496         * modules/strstr-tests (Files): Likewise.
30497         * modules/strtod-tests (Files): Likewise.
30498         * modules/strverscmp-tests (Files): Likewise.
30499         * modules/symlink-tests (Files): Likewise.
30500         * modules/symlinkat-tests (Files): Likewise.
30501         * modules/trunc-tests (Files): Likewise.
30502         * modules/truncf-tests (Files): Likewise.
30503         * modules/truncl-tests (Files): Likewise.
30504         * modules/uname-tests (Files): Likewise.
30505         * modules/unicase/cased-tests (Files): Likewise.
30506         * modules/unicase/ignorable-tests (Files): Likewise.
30507         * modules/unicase/locale-language-tests (Files): Likewise.
30508         * modules/unicase/tolower-tests (Files): Likewise.
30509         * modules/unicase/totitle-tests (Files): Likewise.
30510         * modules/unicase/toupper-tests (Files): Likewise.
30511         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30512         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30513         * modules/unicase/u8-casefold-tests (Files): Likewise.
30514         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30515         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30516         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30517         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30518         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30519         * modules/unicase/u8-tolower-tests (Files): Likewise.
30520         * modules/unicase/u8-totitle-tests (Files): Likewise.
30521         * modules/unicase/u8-toupper-tests (Files): Likewise.
30522         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30523         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30524         * modules/unicase/u16-casefold-tests (Files): Likewise.
30525         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30526         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30527         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30528         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30529         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30530         * modules/unicase/u16-tolower-tests (Files): Likewise.
30531         * modules/unicase/u16-totitle-tests (Files): Likewise.
30532         * modules/unicase/u16-toupper-tests (Files): Likewise.
30533         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30534         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30535         * modules/unicase/u32-casefold-tests (Files): Likewise.
30536         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30537         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30538         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30539         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30540         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30541         * modules/unicase/u32-tolower-tests (Files): Likewise.
30542         * modules/unicase/u32-totitle-tests (Files): Likewise.
30543         * modules/unicase/u32-toupper-tests (Files): Likewise.
30544         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30545         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30546         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30547         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30548         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30549         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30550         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30551         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30552         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30553         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30554         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30555         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30556         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30557         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30558         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30559         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30560         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30561         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30562         * modules/unictype/block-list-tests (Files): Likewise.
30563         * modules/unictype/block-of-tests (Files): Likewise.
30564         * modules/unictype/block-test-tests (Files): Likewise.
30565         * modules/unictype/category-C-tests (Files): Likewise.
30566         * modules/unictype/category-Cc-tests (Files): Likewise.
30567         * modules/unictype/category-Cf-tests (Files): Likewise.
30568         * modules/unictype/category-Cn-tests (Files): Likewise.
30569         * modules/unictype/category-Co-tests (Files): Likewise.
30570         * modules/unictype/category-Cs-tests (Files): Likewise.
30571         * modules/unictype/category-L-tests (Files): Likewise.
30572         * modules/unictype/category-Ll-tests (Files): Likewise.
30573         * modules/unictype/category-Lm-tests (Files): Likewise.
30574         * modules/unictype/category-Lo-tests (Files): Likewise.
30575         * modules/unictype/category-Lt-tests (Files): Likewise.
30576         * modules/unictype/category-Lu-tests (Files): Likewise.
30577         * modules/unictype/category-M-tests (Files): Likewise.
30578         * modules/unictype/category-Mc-tests (Files): Likewise.
30579         * modules/unictype/category-Me-tests (Files): Likewise.
30580         * modules/unictype/category-Mn-tests (Files): Likewise.
30581         * modules/unictype/category-N-tests (Files): Likewise.
30582         * modules/unictype/category-Nd-tests (Files): Likewise.
30583         * modules/unictype/category-Nl-tests (Files): Likewise.
30584         * modules/unictype/category-No-tests (Files): Likewise.
30585         * modules/unictype/category-P-tests (Files): Likewise.
30586         * modules/unictype/category-Pc-tests (Files): Likewise.
30587         * modules/unictype/category-Pd-tests (Files): Likewise.
30588         * modules/unictype/category-Pe-tests (Files): Likewise.
30589         * modules/unictype/category-Pf-tests (Files): Likewise.
30590         * modules/unictype/category-Pi-tests (Files): Likewise.
30591         * modules/unictype/category-Po-tests (Files): Likewise.
30592         * modules/unictype/category-Ps-tests (Files): Likewise.
30593         * modules/unictype/category-S-tests (Files): Likewise.
30594         * modules/unictype/category-Sc-tests (Files): Likewise.
30595         * modules/unictype/category-Sk-tests (Files): Likewise.
30596         * modules/unictype/category-Sm-tests (Files): Likewise.
30597         * modules/unictype/category-So-tests (Files): Likewise.
30598         * modules/unictype/category-Z-tests (Files): Likewise.
30599         * modules/unictype/category-Zl-tests (Files): Likewise.
30600         * modules/unictype/category-Zp-tests (Files): Likewise.
30601         * modules/unictype/category-Zs-tests (Files): Likewise.
30602         * modules/unictype/category-and-not-tests (Files): Likewise.
30603         * modules/unictype/category-and-tests (Files): Likewise.
30604         * modules/unictype/category-byname-tests (Files): Likewise.
30605         * modules/unictype/category-name-tests (Files): Likewise.
30606         * modules/unictype/category-none-tests (Files): Likewise.
30607         * modules/unictype/category-of-tests (Files): Likewise.
30608         * modules/unictype/category-or-tests (Files): Likewise.
30609         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30610         * modules/unictype/combining-class-tests (Files): Likewise.
30611         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30612         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30613         * modules/unictype/ctype-blank-tests (Files): Likewise.
30614         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30615         * modules/unictype/ctype-digit-tests (Files): Likewise.
30616         * modules/unictype/ctype-graph-tests (Files): Likewise.
30617         * modules/unictype/ctype-lower-tests (Files): Likewise.
30618         * modules/unictype/ctype-print-tests (Files): Likewise.
30619         * modules/unictype/ctype-punct-tests (Files): Likewise.
30620         * modules/unictype/ctype-space-tests (Files): Likewise.
30621         * modules/unictype/ctype-upper-tests (Files): Likewise.
30622         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30623         * modules/unictype/decimal-digit-tests (Files): Likewise.
30624         * modules/unictype/digit-tests (Files): Likewise.
30625         * modules/unictype/mirror-tests (Files): Likewise.
30626         * modules/unictype/numeric-tests (Files): Likewise.
30627         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30628         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30629         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30630         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30631         Likewise.
30632         * modules/unictype/property-bidi-block-separator-tests (Files):
30633         Likewise.
30634         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30635         Likewise.
30636         * modules/unictype/property-bidi-common-separator-tests (Files):
30637         Likewise.
30638         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30639         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30640         Likewise.
30641         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30642         Likewise.
30643         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30644         Likewise.
30645         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30646         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30647         Likewise.
30648         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30649         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30650         Likewise.
30651         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30652         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30653         * modules/unictype/property-bidi-segment-separator-tests (Files):
30654         Likewise.
30655         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30656         * modules/unictype/property-byname-tests (Files): Likewise.
30657         * modules/unictype/property-combining-tests (Files): Likewise.
30658         * modules/unictype/property-composite-tests (Files): Likewise.
30659         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30660         * modules/unictype/property-dash-tests (Files): Likewise.
30661         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30662         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30663         Likewise.
30664         * modules/unictype/property-deprecated-tests (Files): Likewise.
30665         * modules/unictype/property-diacritic-tests (Files): Likewise.
30666         * modules/unictype/property-extender-tests (Files): Likewise.
30667         * modules/unictype/property-format-control-tests (Files): Likewise.
30668         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30669         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30670         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30671         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30672         * modules/unictype/property-hyphen-tests (Files): Likewise.
30673         * modules/unictype/property-id-continue-tests (Files): Likewise.
30674         * modules/unictype/property-id-start-tests (Files): Likewise.
30675         * modules/unictype/property-ideographic-tests (Files): Likewise.
30676         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30677         * modules/unictype/property-ids-trinary-operator-tests (Files):
30678         Likewise.
30679         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30680         * modules/unictype/property-iso-control-tests (Files): Likewise.
30681         * modules/unictype/property-join-control-tests (Files): Likewise.
30682         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30683         * modules/unictype/property-line-separator-tests (Files): Likewise.
30684         * modules/unictype/property-logical-order-exception-tests (Files):
30685         Likewise.
30686         * modules/unictype/property-lowercase-tests (Files): Likewise.
30687         * modules/unictype/property-math-tests (Files): Likewise.
30688         * modules/unictype/property-non-break-tests (Files): Likewise.
30689         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30690         * modules/unictype/property-numeric-tests (Files): Likewise.
30691         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30692         * modules/unictype/property-other-default-ignorable-code-point-tests
30693         (Files): Likewise.
30694         * modules/unictype/property-other-grapheme-extend-tests (Files):
30695         Likewise.
30696         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30697         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30698         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30699         * modules/unictype/property-other-math-tests (Files): Likewise.
30700         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30701         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30702         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30703         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30704         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30705         * modules/unictype/property-private-use-tests (Files): Likewise.
30706         * modules/unictype/property-punctuation-tests (Files): Likewise.
30707         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30708         * modules/unictype/property-radical-tests (Files): Likewise.
30709         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30710         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30711         * modules/unictype/property-space-tests (Files): Likewise.
30712         * modules/unictype/property-terminal-punctuation-tests (Files):
30713         Likewise.
30714         * modules/unictype/property-test-tests (Files): Likewise.
30715         * modules/unictype/property-titlecase-tests (Files): Likewise.
30716         * modules/unictype/property-unassigned-code-value-tests (Files):
30717         Likewise.
30718         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30719         * modules/unictype/property-uppercase-tests (Files): Likewise.
30720         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30721         * modules/unictype/property-white-space-tests (Files): Likewise.
30722         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30723         * modules/unictype/property-xid-start-tests (Files): Likewise.
30724         * modules/unictype/property-zero-width-tests (Files): Likewise.
30725         * modules/unictype/scripts-tests (Files): Likewise.
30726         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30727         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30728         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30729         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30730         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30731         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30732         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30733         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30734         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30735         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30736         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30737         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30738         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30739         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30740         * modules/uninorm/composition-tests (Files): Likewise.
30741         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30742         * modules/uninorm/decomposition-tests (Files): Likewise.
30743         * modules/uninorm/filter-tests (Files): Likewise.
30744         * modules/uninorm/nfc-tests (Files): Likewise.
30745         * modules/uninorm/nfd-tests (Files): Likewise.
30746         * modules/uninorm/nfkc-tests (Files): Likewise.
30747         * modules/uninorm/nfkd-tests (Files): Likewise.
30748         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30749         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30750         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30751         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30752         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30753         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30754         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30755         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30756         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30757         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30758         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30759         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30760         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30761         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30762         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30763         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30764         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30765         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30766         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30767         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30768         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30769         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30770         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30771         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30772         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30773         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30774         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30775         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30776         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30777         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30778         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30779         * modules/uniwidth/u8-width-tests (Files): Likewise.
30780         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30781         * modules/uniwidth/u16-width-tests (Files): Likewise.
30782         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30783         * modules/uniwidth/u32-width-tests (Files): Likewise.
30784         * modules/uniwidth/width-tests (Files): Likewise.
30785         * modules/unlink-tests (Files): Likewise.
30786         * modules/unsetenv-tests (Files): Likewise.
30787         * modules/usleep-tests (Files): Likewise.
30788         * modules/utimens-tests (Files): Likewise.
30789         * modules/utimensat-tests (Files): Likewise.
30790         * modules/vasnprintf-posix-tests (Files): Likewise.
30791         * modules/vasnprintf-tests (Files): Likewise.
30792         * modules/vasprintf-posix-tests (Files): Likewise.
30793         * modules/vasprintf-tests (Files): Likewise.
30794         * modules/vdprintf-posix-tests (Files): Likewise.
30795         * modules/vfprintf-posix-tests (Files): Likewise.
30796         * modules/vprintf-posix-tests (Files): Likewise.
30797         * modules/vsnprintf-posix-tests (Files): Likewise.
30798         * modules/vsnprintf-tests (Files): Likewise.
30799         * modules/vsprintf-posix-tests (Files): Likewise.
30800         * modules/wcrtomb-tests (Files): Likewise.
30801         * modules/wcsnrtombs-tests (Files): Likewise.
30802         * modules/wcsrtombs-tests (Files): Likewise.
30803         * modules/wctype-tests (Files): Likewise.
30804         * modules/wcwidth-tests (Files): Likewise.
30805         * modules/xmemdup0-tests (Files): Likewise.
30806         * modules/xprintf-posix-tests (Files): Likewise.
30807         * modules/xvasprintf-tests (Files): Likewise.
30808
30809 2009-12-24  Eric Blake  <ebb9@byu.net>
30810
30811         test-nanosleep: fix typo
30812         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30813         patch.
30814         Reported by Bruno Haible.
30815
30816 2009-12-24  Bruno Haible  <bruno@clisp.org>
30817
30818         Reduce namespace pollution on glibc systems.
30819         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30820         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30821         systems.
30822         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30823         <getopt.h> on glibc systems.
30824         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30825         systems.
30826         * lib/fcntl.c: Include <unistd.h> here instead.
30827
30828 2009-12-24  Bruno Haible  <bruno@clisp.org>
30829
30830         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30831
30832 2009-12-24  Eric Blake  <ebb9@byu.net>
30833
30834         tests: add signature checks
30835         * tests/signature.h (SIGNATURE_CHECK): New file.
30836         * modules/atexit-tests (Files): Use it.
30837         * modules/btowc-tests (Files): Likewise.
30838         * modules/canonicalize-lgpl-tests (Files): Likewise.
30839         * modules/ceilf-tests (Files): Likewise.
30840         * modules/ceill-tests (Files): Likewise.
30841         * modules/chown-tests (Files): Likewise.
30842         * modules/dprintf-posix-tests (Files): Likewise.
30843         * modules/dup2-tests (Files): Likewise.
30844         * modules/dup3-tests (Files): Likewise.
30845         * modules/duplocale-tests (Files): Likewise.
30846         * modules/fchdir-tests (Files): Likewise.
30847         * modules/fcntl-tests (Files): Likewise.
30848         * modules/fdopendir-tests (Files): Likewise.
30849         * modules/fflush-tests (Files): Likewise.
30850         * modules/flock-tests (Files): Likewise.
30851         * modules/floorf-tests (Files): Likewise.
30852         * modules/floorl-tests (Files): Likewise.
30853         * modules/fnmatch-tests (Files): Likewise.
30854         * modules/fopen-tests (Files): Likewise.
30855         * modules/fprintf-posix-tests (Files): Likewise.
30856         * modules/freopen-tests (Files): Likewise.
30857         * modules/frexp-nolibm-tests (Files): Likewise.
30858         * modules/frexp-tests (Files): Likewise.
30859         * modules/frexpl-nolibm-tests (Files): Likewise.
30860         * modules/frexpl-tests (Files): Likewise.
30861         * modules/fseek-tests (Files): Likewise.
30862         * modules/fseeko-tests (Files): Likewise.
30863         * modules/fsync-tests (Files): Likewise.
30864         * modules/ftell-tests (Files): Likewise.
30865         * modules/ftello-tests (Files): Likewise.
30866         * modules/futimens-tests (Files): Likewise.
30867         * modules/getaddrinfo-tests (Files): Likewise.
30868         * modules/getcwd-tests (Files): Likewise.
30869         * modules/getdelim-tests (Files): Likewise.
30870         * modules/getdtablesize-tests (Files): Likewise.
30871         * modules/getgroups-tests (Files): Likewise.
30872         * modules/gethostname-tests (Files): Likewise.
30873         * modules/getline-tests (Files): Likewise.
30874         * modules/getopt-posix-tests (Files): Likewise.
30875         * modules/gettimeofday-tests (Files): Likewise.
30876         * modules/glob-tests (Files): Likewise.
30877         * modules/iconv-tests (Files): Likewise.
30878         * modules/inet_ntop-tests (Files): Likewise.
30879         * modules/inet_pton-tests (Files): Likewise.
30880         * modules/isblank-tests (Files): Likewise.
30881         * modules/lchown-tests (Files): Likewise.
30882         * modules/ldexpl-tests (Files): Likewise.
30883         * modules/link-tests (Files): Likewise.
30884         * modules/linkat-tests (Files): Likewise.
30885         * modules/lseek-tests (Files): Likewise.
30886         * modules/lstat-tests (Files): Likewise.
30887         * modules/mbrtowc-tests (Files): Likewise.
30888         * modules/mbsinit-tests (Files): Likewise.
30889         * modules/mbsnrtowcs-tests (Files): Likewise.
30890         * modules/mbsrtowcs-tests (Files): Likewise.
30891         * modules/memchr-tests (Files): Likewise.
30892         * modules/memcmp-tests (Files): Likewise.
30893         * modules/memmem-tests (Files): Likewise.
30894         * modules/memrchr-tests (Files): Likewise.
30895         * modules/mkdir-tests (Files): Likewise.
30896         * modules/mkfifo-tests (Files): Likewise.
30897         * modules/mkfifoat-tests (Files): Likewise.
30898         * modules/mknod-tests (Files): Likewise.
30899         * modules/nanosleep-tests (Files): Likewise.
30900         * modules/nl_langinfo-tests (Files): Likewise.
30901         * modules/obstack-printf-tests (Files): Likewise.
30902         * modules/open-tests (Files): Likewise.
30903         * modules/openat-tests (Files): Likewise.
30904         * modules/perror-tests (Files): Likewise.
30905         * modules/pipe2-tests (Files): Likewise.
30906         * modules/poll-tests (Files): Likewise.
30907         * modules/popen-tests (Files): Likewise.
30908         * modules/posix_spawn-tests (Files): Likewise.
30909         * modules/posix_spawnp-tests (Files): Likewise.
30910         * modules/pread-tests (Files): Likewise.
30911         * modules/printf-posix-tests (Files): Likewise.
30912         * modules/pty-tests (Files): Likewise.
30913         * modules/random_r-tests (Files): Likewise.
30914         * modules/rawmemchr-tests (Files): Likewise.
30915         * modules/readlink-tests (Files): Likewise.
30916         * modules/remove-tests (Files): Likewise.
30917         * modules/rename-tests (Files): Likewise.
30918         * modules/renameat-tests (Files): Likewise.
30919         * modules/rmdir-tests (Files): Likewise.
30920         * modules/round-tests (Files): Likewise.
30921         * modules/roundf-tests (Files): Likewise.
30922         * modules/roundl-tests (Files): Likewise.
30923         * modules/select-tests (Files): Likewise.
30924         * modules/setenv-tests (Files): Likewise.
30925         * modules/sigaction-tests (Files): Likewise.
30926         * modules/sleep-tests (Files): Likewise.
30927         * modules/snprintf-posix-tests (Files): Likewise.
30928         * modules/snprintf-tests (Files): Likewise.
30929         * modules/sprintf-posix-tests (Files): Likewise.
30930         * modules/stat-tests (Files): Likewise.
30931         * modules/strcasestr-tests (Files): Likewise.
30932         * modules/strchrnul-tests (Files): Likewise.
30933         * modules/strerror-tests (Files): Likewise.
30934         * modules/strsignal-tests (Files): Likewise.
30935         * modules/strstr-tests (Files): Likewise.
30936         * modules/strtod-tests (Files): Likewise.
30937         * modules/strverscmp-tests (Files): Likewise.
30938         * modules/symlink-tests (Files): Likewise.
30939         * modules/symlinkat-tests (Files): Likewise.
30940         * modules/times-tests (Files): Likewise.
30941         * modules/trunc-tests (Files): Likewise.
30942         * modules/truncf-tests (Files): Likewise.
30943         * modules/truncl-tests (Files): Likewise.
30944         * modules/tsearch-tests (Files): Likewise.
30945         * modules/uname-tests (Files): Likewise.
30946         * modules/unlink-tests (Files): Likewise.
30947         * modules/unsetenv-tests (Files): Likewise.
30948         * modules/usleep-tests (Files): Likewise.
30949         * modules/utimensat-tests (Files): Likewise.
30950         * modules/vasprintf-tests (Files): Likewise.
30951         * modules/vdprintf-posix-tests (Files): Likewise.
30952         * modules/vfprintf-posix-tests (Files): Likewise.
30953         * modules/vprintf-posix-tests (Files): Likewise.
30954         * modules/vsnprintf-posix-tests (Files): Likewise.
30955         * modules/vsnprintf-tests (Files): Likewise.
30956         * modules/vsprintf-posix-tests (Files): Likewise.
30957         * modules/wcrtomb-tests (Files): Likewise.
30958         * modules/wcsnrtombs-tests (Files): Likewise.
30959         * modules/wcsrtombs-tests (Files): Likewise.
30960         * modules/wcwidth-tests (Files): Likewise.
30961         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30962         * tests/test-isinf.c (isinf): Likewise.
30963         * tests/test-isnan.c (isnan): Likewise.
30964         * tests/test-signbit.c (signbit): Likewise.
30965         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30966         declaration, either as macro or with correct signature.
30967         (select): Ensure function under test is declared with correct
30968         signature in correct header.
30969         * tests/test-atexit.c (atexit): Likewise.
30970         * tests/test-btowc.c (btowc): Likewise.
30971         * tests/test-canonicalize-lgpl.c (realpath)
30972         (canonicalize_file_name): Likewise.
30973         * tests/test-ceilf1.c (ceilf): Likewise.
30974         * tests/test-ceill.c (ceill): Likewise.
30975         * tests/test-chown.c (chown): Likewise.
30976         * tests/test-dprintf-posix.c (dprintf): Likewise.
30977         * tests/test-dup2.c (dup2): Likewise.
30978         * tests/test-dup3.c (dup3): Likewise.
30979         * tests/test-duplocale.c (duplocale): Likewise.
30980         * tests/test-fchdir.c (fchdir): Likewise.
30981         * tests/test-fchownat.c (fchownat): Likewise.
30982         * tests/test-fcntl.c (fcntl): Likewise.
30983         * tests/test-fdopendir.c (fdopendir): Likewise.
30984         * tests/test-fflush.c (fflush): Likewise.
30985         * tests/test-flock.c (flock): Likewise.
30986         * tests/test-floorf1.c (floorf): Likewise.
30987         * tests/test-floorl.c (floorl): Likewise.
30988         * tests/test-fnmatch.c (fnmatch): Likewise.
30989         * tests/test-fopen.c (fopen): Likewise.
30990         * tests/test-fprintf-posix.c (fprintf): Likewise.
30991         * tests/test-freopen.c (freopen): Likewise.
30992         * tests/test-frexp.c (frexp): Likewise.
30993         * tests/test-frexpl.c (frexpl): Likewise.
30994         * tests/test-fseek.c (fseek): Likewise.
30995         * tests/test-fseeko.c (fseeko): Likewise.
30996         * tests/test-fstatat.c (fstatat): Likewise.
30997         * tests/test-fsync.c (fsync): Likewise.
30998         * tests/test-ftell.c (ftell): Likewise.
30999         * tests/test-ftello.c (ftello): Likewise.
31000         * tests/test-futimens.c (futimens): Likewise.
31001         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31002         (gai_strerror): Likewise.
31003         * tests/test-getcwd.c (getcwd): Likewise.
31004         * tests/test-getdelim.c (getdelim): Likewise.
31005         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31006         * tests/test-getgroups.c (getgroups): Likewise.
31007         * tests/test-gethostname.c (gethostname): Likewise.
31008         * tests/test-getline.c (getline): Likewise.
31009         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31010         Likewise.
31011         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31012         * tests/test-glob.c (glob, globfree): Likewise.
31013         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31014         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31015         * tests/test-inet_pton.c (inet_pton): Likewise.
31016         * tests/test-isblank.c (isblank): Likewise.
31017         * tests/test-lchown.c (lchown): Likewise.
31018         * tests/test-ldexpl.c (ldexpl): Likewise.
31019         * tests/test-link.c (link): Likewise.
31020         * tests/test-linkat.c (linkat): Likewise.
31021         * tests/test-lseek.c (lseek): Likewise.
31022         * tests/test-lstat.c (lstat): Likewise.
31023         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31024         * tests/test-mbsinit.c (mbsinit): Likewise.
31025         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31026         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31027         * tests/test-memchr.c (memchr): Likewise.
31028         * tests/test-memcmp.c (memcmp): Likewise.
31029         * tests/test-memmem.c (memmem): Likewise.
31030         * tests/test-memrchr.c (memrchr): Likewise.
31031         * tests/test-mkdir.c (mkdir): Likewise.
31032         * tests/test-mkdirat.c (mkdirat): Likewise.
31033         * tests/test-mkfifo.c (mkfifo): Likewise.
31034         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31035         * tests/test-mknod.c (mknod): Likewise.
31036         * tests/test-nanosleep.c (nanosleep): Likewise.
31037         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31038         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31039         Likewise.
31040         * tests/test-open.c (open): Likewise.
31041         * tests/test-openat.c (openat): Likewise.
31042         * tests/test-perror.c (perror): Likewise.
31043         * tests/test-pipe2.c (pipe2): Likewise.
31044         * tests/test-poll.c (poll): Likewise.
31045         * tests/test-popen.c (popen, pclose): Likewise.
31046         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31047         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31048         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31049         (posix_spawn_file_actions_destroy)
31050         (posix_spawn_file_actions_addclose)
31051         (posix_spawn_file_actions_addopen)
31052         (posix_spawn_file_actions_adddup2): Likewise.
31053         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31054         * tests/test-pread.c (pread): Likewise.
31055         * tests/test-printf-posix.c (printf): Likewise.
31056         * tests/test-pty.c (openpty, forkpty): Likewise.
31057         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31058         (random_r): Likewise.
31059         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31060         * tests/test-readlink.c (readlink): Likewise.
31061         * tests/test-remove.c (remove): Likewise.
31062         * tests/test-rename.c (rename): Likewise.
31063         * tests/test-renameat.c (renameat): Likewise.
31064         * tests/test-rmdir.c (rmdir): Likewise.
31065         * tests/test-round1.c (round): Likewise.
31066         * tests/test-roundf1.c (roundf): Likewise.
31067         * tests/test-roundl.c (roundl): Likewise.
31068         * tests/test-setenv.c (setenv): Likewise.
31069         * tests/test-sigaction.c (sigaction): Likewise.
31070         * tests/test-sleep.c (sleep): Likewise.
31071         * tests/test-snprintf.c (snprintf): Likewise.
31072         * tests/test-sprintf-posix.c (sprintf): Likewise.
31073         * tests/test-stat.c (stat): Likewise.
31074         * tests/test-stpncpy.c (stpncpy): Likewise.
31075         * tests/test-strcasestr.c (strcasestr): Likewise.
31076         * tests/test-strchrnul.c (strchrnul): Likewise.
31077         * tests/test-strerror.c (strerror): Likewise.
31078         * tests/test-strsignal.c (strsignal): Likewise.
31079         * tests/test-strstr.c (strstr): Likewise.
31080         * tests/test-strtod.c (strtod): Likewise.
31081         * tests/test-strverscmp.c (strverscmp): Likewise.
31082         * tests/test-symlink.c (symlink): Likewise.
31083         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31084         * tests/test-times.c (times): Likewise.
31085         * tests/test-trunc1.c (trunc): Likewise.
31086         * tests/test-truncf1.c (truncf): Likewise.
31087         * tests/test-truncl.c (truncl): Likewise.
31088         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31089         Likewise.
31090         * tests/test-uname.c (uname): Likewise.
31091         * tests/test-unlink.c (unlink): Likewise.
31092         * tests/test-unlinkat.c (unlinkat): Likewise.
31093         * tests/test-unsetenv.c (unsetenv): Likewise.
31094         * tests/test-usleep.c (usleep): Likewise.
31095         * tests/test-utimensat.c (utimensat): Likewise.
31096         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31097         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31098         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31099         * tests/test-vprintf-posix.c (vprintf): Likewise.
31100         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31101         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31102         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31103         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31104         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31105         * tests/test-wcwidth.c (wcwidth): Likewise.
31106
31107         build: pull in conditional headers during GNULIB_POSIXCHECK
31108         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31109         definitions from any conditionally-included headers.
31110         * lib/stdlib.in.h (includes): Likewise.
31111         * lib/unistd.in.h (includes): Likewise.
31112
31113 2009-12-24  Bruno Haible  <bruno@clisp.org>
31114
31115         * tests/test-argv-iter.c: Include header file being tested immediately
31116         after config.h.
31117         * tests/test-base64.c: Likewise.
31118         * tests/test-flock.c: Likewise.
31119         * tests/test-fsync.c: Likewise.
31120         * tests/test-getdate.c: Likewise.
31121         * tests/test-getndelim2.c: Likewise.
31122         * tests/test-isfinite.c: Likewise.
31123         * tests/test-isinf.c: Likewise.
31124         * tests/test-strerror.c: Likewise.
31125         * tests/test-strsignal.c: Likewise.
31126
31127 2009-12-23  Eric Blake  <ebb9@byu.net>
31128
31129         unistd: work around cygwin bug
31130         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31131         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31132         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31133
31134 2009-12-23  Bruno Haible  <bruno@clisp.org>
31135
31136         localename: More tests.
31137         * tests/test-localename.c (SIZEOF): New macro.
31138         (categories): New variable.
31139         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31140         test_locale_name_default): Add test w.r.t. thread locale.
31141         (test_locale_name_thread): New function.
31142         (main): Invoke it.
31143
31144         localename: Make aware of thread locale.
31145         * lib/localename.h (gl_locale_name_thread): New declaration.
31146         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31147         behaviour with respect to thread locale.
31148         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31149         <langinfo.h>, glthread/lock.h.
31150         (SIZE_BITS): New macro.
31151         (string_hash): New function.
31152         (struct hash_node): New type.
31153         (HASH_TABLE_SIZE): New macro.
31154         (struniq_hash_table, struniq_lock): New variables.
31155         (struniq): New function.
31156         (gl_locale_name_thread): New function.
31157         (gl_locale_name): Invoke it.
31158         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31159         * modules/localename (Depends-on): Add lock.
31160         Reported by Mike Gran <spk121@yahoo.com>.
31161
31162 2009-12-23  Eric Blake  <ebb9@byu.net>
31163
31164         va-args: new module
31165         * modules/va-args: New file.
31166         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31167         * MODULES.html.sh (Core language properties): Mention it.
31168
31169         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31170         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31171         named alias for __attribute__((__unused__)).
31172         * lib/chown.c: Update client.
31173         * lib/fchmodat.c: Likewise.
31174         * lib/fts.c: Likewise.
31175         * lib/getdate.y: Likewise.
31176         * lib/getgroups.c: Likewise.
31177         * lib/getopt.c: Likewise.
31178         * lib/getugroups.c: Likewise.
31179         * lib/mkdir.c: Likewise.
31180         * lib/mkfifo.c: Likewise.
31181         * lib/mkfifoat.c: Likewise.
31182         * lib/mknod.c: Likewise.
31183         * lib/mknodat.c: Likewise.
31184         * lib/readlink.c: Likewise.
31185         * lib/se-context.in.h: Likewise.
31186         * lib/se-selinux.in.h: Likewise.
31187         * lib/sockets.c: Likewise.
31188         * lib/symlink.c: Likewise.
31189         * lib/symlinkat.c: Likewise.
31190         * lib/unicodeio.c: Likewise.
31191         * lib/unistr.h: Likewise.
31192         * tests/test-areadlink.c: Likewise.
31193         * tests/test-areadlinkat.c: Likewise.
31194         * tests/test-filenamecat.c: Likewise.
31195         * tests/test-fseeko.c: Likewise.
31196         * tests/test-ftello.c: Likewise.
31197         * tests/test-getdate.c: Likewise.
31198         * tests/test-getgroups.c: Likewise.
31199         * tests/test-gethostname.c: Likewise.
31200         * tests/test-quotearg.c: Likewise.
31201         * tests/test-version-etc.c: Likewise.
31202         * tests/test-xalloc-die.c: Likewise.
31203         * tests/test-xfprintf-posix.c: Likewise.
31204         * tests/test-xprintf-posix.c: Likewise.
31205         * tests/test-xvasprintf.c: Likewise.
31206
31207         tests: avoid compiler warnings
31208         * tests/test-fcntl.c (main): Delete unused parameters.
31209         * tests/test-freopen-safer.c (main): Likewise.
31210         * tests/test-xalloc-die.c (main): Mark unused parameters.
31211         * tests/test-fseeko.c (main): Likewise.
31212         * tests/test-ftello.c (main): Likewise.
31213         * tests/test-nanosleep.c (main): Avoid declaration warning.
31214         * tests/test-sleep.c (main): Likewise.
31215         * tests/test-unsetenv.c (main): Silence warning about string
31216         literal.
31217         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31218
31219 2009-12-23  Bruno Haible  <bruno@clisp.org>
31220
31221         * tests/test-localename.c (test_locale_name): New function, extracted
31222         from main. Also test mixed situations.
31223         (test_locale_name_posix, test_locale_name_environ,
31224         test_locale_name_default): New functions.
31225         (main): Invoke them all.
31226         * modules/localename-tests (configure.ac): Test for newlocale.
31227
31228 2009-12-23  Bruno Haible  <bruno@clisp.org>
31229
31230         unistd: Ensure getcwd gets declared before being overridden.
31231         * lib/unistd.in.h: Conditionally include <io.h>.
31232
31233 2009-12-22  Bruno Haible  <bruno@clisp.org>
31234
31235         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31236         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31237         (gl_WCHAR_H): Invoke it.
31238         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31239         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31240         Reported by Karl Berry <karl@freefriends.org>.
31241
31242 2009-12-22  Eric Blake  <ebb9@byu.net>
31243
31244         math, unistd: avoid redundant includes
31245         * lib/math.in.h (isnan): No need to re-include <math.h>.
31246         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31247
31248         getsubopt: work around cygwin bug
31249         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31250         avoid conflicting with system getsubopt.
31251         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31252         bug.
31253
31254         getopt: synchronize from glibc
31255         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31256         parameter order.  Adjust all callers.
31257         (_getopt_internal_r, main): Adjust quoting in error messages.
31258         Drop considerations for outdated POSIX 1003.2 error message.
31259         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31260         callers.
31261         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31262
31263         test-getopt: test stderr behavior
31264         * modules/getopt-posix-tests (Depends-on): Add dup2.
31265         * tests/test-getopt.c (ASSERT): Avoid stderr.
31266         (main): Move stderr to a temporary file.
31267         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31268         Instead, add parameter to inform caller if output occurred.
31269         (test_getopt): Adjust all existing tests to expect silence, and
31270         add new tests of leading ":".
31271         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31272         glibc shortcomings with leading "-:" or "+:" in optstring.
31273         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31274         Likewise.
31275         * doc/posix-functions/getopt.texi (getopt): Likewise.
31276
31277         test-getopt: enhance test
31278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31279         supports optind=0.
31280         * tests/test-getopt.c (OPTIND_MIN): Move...
31281         * tests/test-getopt.h (OPTIND_MIN): ...here.
31282         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31283         Require that optind=0 works, since modern BSD supports it in
31284         addition to optreset, and since coreutils expects it.
31285         (test_getopt_long_only): New test.
31286         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31287         glibc shortcomings with 'W;', and enforcement of optind=0.
31288         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31289         Likewise.
31290
31291 2009-12-21  Bruno Haible  <bruno@clisp.org>
31292
31293         localename: Improvements for MacOS X and Cygwin.
31294         * lib/localename.h (gl_locale_name_environ): New declaration.
31295         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31296         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31297         (gl_locale_name_posix): Invoke it.
31298         (gl_locale_name_default): Add comments. Use Windows native API also on
31299         Cygwin.
31300
31301 2009-12-21  Bruno Haible  <bruno@clisp.org>
31302
31303         Update list of Win32 locale ids.
31304         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31305         (LANG_SAMI): Renamed from LANG_SAAMI.
31306         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31307         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31308         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31309         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31310         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31311         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31312         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31313         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31314         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31315         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31316         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31317         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31318         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31319         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31320         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31321         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31322         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31323         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31324         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31325         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31326         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31327         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31328         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31329         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31330         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31331         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31332         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31333         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31334         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31335         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31336         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31337         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31338         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31339         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31340         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31341         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31342         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31343         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31344         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31345         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31346         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31347         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31348         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31349         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31350         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31351         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31352         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31353         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31354         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31355         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31356         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31357         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31358         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31359         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31360         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31361         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31362         Add more languages and countries for Sami, Sorbian. Add more countries
31363         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31364         for Pashto. Change country for Syriac, Tswana.
31365
31366 2009-12-21  Eric Blake  <ebb9@byu.net>
31367
31368         test-utimens: avoid spurious failure
31369         * tests/test-chown.h (nap): Factor...
31370         * tests/nap.h: ...into new file.
31371         * tests/test-lchown.h (nap): Avoid duplication.
31372         * tests/test-utimens-common.h (nap): Use shared implementation,
31373         necessary on file systems with 1-second resolution.
31374         * modules/chown-tests (Files): Include new file.
31375         * modules/fdutimensat-tests (Files): Likewise.
31376         * modules/futimens-tests (Files): Likewise.
31377         * modules/lchown-tests (Files): Likewise.
31378         * modules/openat-tests (Files): Likewise.
31379         * modules/utimens-tests (Files): Likewise.
31380         * modules/utimensat-tests (Files): Likewise.
31381
31382 2009-12-19  Eric Blake  <ebb9@byu.net>
31383
31384         futimens, utimensat: work around Linux bug
31385         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31386         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31387         * lib/utimensat.c (rpl_utimensat): Work around it.
31388         * lib/futimens.c (rpl_futimens): Adjust comment.
31389
31390         utimens: work around Linux ctime bug
31391         * lib/utimens.c (detect_ctime_bug): New helper function.
31392         (update_timespec): Differentiate between workaround needed for
31393         this bug vs. what is needed for systems that lack utimensat.
31394         (fdutimens, lutimens): Work around bug.
31395
31396         utimens: check for ctime update
31397         * tests/test-utimens-common.h (check_ctime): Define.
31398         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31399         * tests/test-futimens.h (test_futimens): Likewise.
31400         * tests/test-lutimens.h (test_lutimens): Likewise.
31401         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31402         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31403
31404 2009-12-19  Bruno Haible  <bruno@clisp.org>
31405
31406         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31407         * tests/test-dprintf-posix2.sh: New file.
31408         * tests/test-dprintf-posix2.c: New file.
31409         * modules/dprintf-posix-tests (Files): Add them.
31410         (configure.ac): Check for getrlimit and setrlimit.
31411         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31412
31413 2009-12-19  Bruno Haible  <bruno@clisp.org>
31414
31415         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31416         * tests/test-fprintf-posix3.sh: New file.
31417         * tests/test-fprintf-posix3.c: New file.
31418         * modules/fprintf-posix-tests (Files): Add them.
31419         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31420
31421 2009-12-19  Eric Blake  <ebb9@byu.net>
31422
31423         dirfd: fix prototype
31424         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31425         * lib/dirfd.c (dirfd): Likewise.
31426
31427         canonicalize: reduce memory usage
31428         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31429         allocation to size.
31430         Reported by Solar Designer <solar@openwall.com>.
31431
31432 2009-12-19  Bruno Haible  <bruno@clisp.org>
31433
31434         New module attribute 'Applicability'.
31435         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31436         * gnulib-tool: New option --extract-applicability.
31437         (func_usage): Document it.
31438         (sed_extract_prog): Recognize it.
31439         (func_get_applicability): New function.
31440         (func_import): Generalize handling of 'link-warning' module.
31441         * modules/link-warning (Applicability): New section.
31442         * modules/arg-nonnull (Applicability): New section.
31443         Repoted by Simon Josefsson <simon@josefsson.org>.
31444
31445 2009-12-19  Bruno Haible  <bruno@clisp.org>
31446
31447         fflush: tweak
31448         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31449         * lib/fseeko.c (rpl_fseeko): Likewise.
31450
31451 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31452
31453         * lib/gl_list.h: Fix typo in comment.
31454
31455 2009-12-16  Eric Blake  <ebb9@byu.net>
31456
31457         fcntl: use to simplify other modules
31458         * modules/cloexec (Depends-on): Add fcntl.
31459         * modules/fchdir (Depends-on): Likewise.
31460         * modules/fd-safer-flag (Depends-on): Likewise.
31461         * modules/unistd-safer (Depends-on): Likewise.
31462         * modules/dup3 (configure.ac): Set module indicator.
31463         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31464         missing.
31465         * lib/fchdir.c (_gl_register_dup): Fix comment.
31466         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31467         * lib/dup-safer.c (dup_safer): Likewise.
31468         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31469         * lib/dup3.c (dup3): Likewise.
31470         * tests/test-fchdir.c (main): Enhance test.
31471         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31472
31473         fcntl: port portions of fcntl to mingw
31474         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31475         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31476         replacement for mingw.
31477         * modules/fcntl (Description): Update.
31478         (Depends-on): Add dup2.
31479         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31480         * modules/fcntl-h (Makefile.am): Substitute it.
31481         * lib/fcntl.in.h (fcntl): Update declaration.
31482         (F_DUPFD, F_GETFD): New macros, when needed.
31483         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31484         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31485         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31486         we now guarantee.
31487
31488         fcntl: work around cygwin bug in F_DUPFD
31489         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31490         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31491         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31492         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31493         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31494
31495         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31496         * modules/fcntl (Files): List new files.
31497         (configure.ac): Run a test.
31498         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31499         * lib/fcntl.c (rpl_fcntl): Likewise.
31500         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31501         (gl_FCNTL_H): Always replace fcntl.h.
31502         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31503         * lib/fcntl.in.h (fcntl): Declare replacement.
31504         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31505         needed, plus a witness.
31506         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31507         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31508         * tests/test-fcntl.c: New file.
31509         * modules/fcntl-tests: Likewise.
31510
31511         binary-io: avoid potential compilation warning
31512         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31513         directives.
31514
31515         fflush: avoid compilation error on NetBSD
31516         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31517         between off_t and fpos_t, since the latter is sometimes a struct.
31518         * lib/fseeko.c (rpl_fseeko): Likewise.
31519         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31520
31521 2009-12-15  Eric Blake  <ebb9@byu.net>
31522
31523         fcntl-h, stdio, sys_ioctl: fix declarations
31524         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31525         function must not take arguments.
31526         * lib/sys_ioctl.in.h (ioctl): Likewise.
31527         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31528         (open): Add a link warning.
31529
31530 2009-12-15  Jim Meyering  <meyering@redhat.com>
31531
31532         areadlink, areadlink-with-size: relax license to LGPLv2+
31533         * modules/areadlink (License): Relax to LGPLv2+.
31534         * modules/areadlink-with-size (License): Likewise.
31535
31536 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31537             Bruno Haible  <bruno@clisp.org>
31538
31539         *printf: Fix memory leak.
31540         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31541         * lib/vfprintf.c (vfprintf): Likewise.
31542         * lib/dprintf.c (dprintf): Likewise.
31543         * lib/vdprintf.c (vdprintf): Likewise.
31544
31545 2009-12-14  Eric Blake  <ebb9@byu.net>
31546
31547         accept4: adjust module dependencies
31548         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31549
31550         utimens: one more try at avoiding compiler warning
31551         * lib/utimens.c (lutimens): Lower scope of result.
31552
31553 2009-12-13  Bruno Haible  <bruno@clisp.org>
31554
31555         Move the malloc checking from module 'list' to new module 'xlist'.
31556         * modules/xlist: New file.
31557         * lib/gl_xlist.h: New file.
31558         * lib/gl_xlist.c: New file.
31559         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31560         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31561         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31562         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31563         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31564         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31565         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31566         gl_sortedlist_nx_add): New declarations.
31567         (struct gl_list_implementation): Rename and change methods accordingly.
31568         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31569         (gl_list_nx_create): Renamed from gl_list_create.
31570         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31571         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31572         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31573         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31574         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31575         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31576         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31577         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31578         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31579         gl_list_create_empty.
31580         (gl_list_nx_create): Renamed from gl_list_create.
31581         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31582         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31583         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31584         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31585         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31586         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31587         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31588         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31589         * lib/gl_array_list.c: Don't include xalloc.h.
31590         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31591         NULL upon out-of-memory.
31592         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31593         out-of-memory.
31594         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31595         Change return type to 'int'.
31596         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31597         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31598         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31599         upon out-of-memory.
31600         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31601         upon out-of-memory.
31602         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31603         upon out-of-memory.
31604         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31605         upon out-of-memory.
31606         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31607         out-of-memory.
31608         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31609         Update.
31610         (gl_array_list_implementation): Update.
31611         * lib/gl_carray_list.c: Don't include xalloc.h.
31612         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31613         Return NULL upon out-of-memory.
31614         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31615         out-of-memory.
31616         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31617         Change return type to 'int'.
31618         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31619         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31620         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31621         upon out-of-memory.
31622         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31623         upon out-of-memory.
31624         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31625         out-of-memory.
31626         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31627         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31628         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31629         Update.
31630         (gl_carray_list_implementation): Update.
31631         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31632         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31633         gl_linked_create_empty. Return NULL upon out-of-memory.
31634         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31635         out-of-memory.
31636         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31637         Change return type to 'int'. Return -1 upon out-of-memory.
31638         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31639         out-of-memory.
31640         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31641         upon out-of-memory.
31642         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31643         upon out-of-memory.
31644         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31645         NULL upon out-of-memory.
31646         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31647         upon out-of-memory.
31648         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31649         out-of-memory.
31650         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31651         Update.
31652         * lib/gl_linked_list.c: Don't include xalloc.h.
31653         (gl_linked_list_implementation): Update.
31654         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31655         (add_to_bucket): Change return type to 'int'.
31656         (gl_linkedhash_list_implementation): Update.
31657         * lib/gl_anytree_list1.h (free_subtree): New function.
31658         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31659         gl_tree_create_empty. Return NULL upon out-of-memory.
31660         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31661         Change return type to 'int'. Return -1 upon out-of-memory.
31662         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31663         out-of-memory.
31664         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31665         (gl_tree_remove_node): New function, moved here from
31666         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31667         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31668         Update.
31669         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31670         malloc, not xmalloc. Return NULL upon out-of-memory.
31671         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31672         out-of-memory.
31673         (gl_tree_remove_node_from_tree): New function, extracted from
31674         gl_tree_remove_node.
31675         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31676         upon out-of-memory.
31677         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31678         out-of-memory.
31679         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31680         upon out-of-memory.
31681         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31682         upon out-of-memory.
31683         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31684         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31685         not xmalloc. Return NULL upon out-of-memory.
31686         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31687         out-of-memory.
31688         (gl_tree_remove_node_from_tree): New function, extracted from
31689         gl_tree_remove_node.
31690         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31691         upon out-of-memory.
31692         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31693         out-of-memory.
31694         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31695         upon out-of-memory.
31696         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31697         upon out-of-memory.
31698         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31699         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31700         gl_anytree_list1.h before gl_anyavltree_list2.h.
31701         (gl_avltree_list_implementation): Update.
31702         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31703         gl_anytree_list1.h before gl_anyavltree_list2.h.
31704         (gl_rbtree_list_implementation): Update.
31705         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31706         Change return type to 'int'. Return -1 upon out-of-memory. Use
31707         __builtin_expect.
31708         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31709         (gl_avltreehash_list_implementation): Update.
31710         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31711         (gl_rbtreehash_list_implementation): Update.
31712         * modules/array-list (Depends-on): Remove xalloc.
31713         * modules/carray-list (Depends-on): Likewise.
31714         * modules/linked-list (Depends-on): Likewise.
31715         * modules/linkedhash-list (Depends-on): Likewise.
31716         * modules/avltree-list (Depends-on): Likewise.
31717         * modules/rbtree-list (Depends-on): Likewise.
31718         * modules/avltreehash-list (Depends-on): Likewise.
31719         * modules/rbtreehash-list (Depends-on): Likewise.
31720
31721         * modules/xsublist: New file.
31722         * lib/gl_xsublist.h: New file.
31723         * lib/gl_xsublist.c: New file.
31724         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31725         (gl_sublist_nx_create): New declaration.
31726         * lib/gl_sublist.c: Don't include xalloc.h.
31727         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31728         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31729         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31730         Change return type to 'int'. Return -1 upon out-of-memory.
31731         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31732         upon out-of-memory.
31733         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31734         NULL upon out-of-memory.
31735         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31736         upon out-of-memory.
31737         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31738         NULL upon out-of-memory.
31739         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31740         NULL upon out-of-memory.
31741         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31742         upon out-of-memory.
31743         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31744         (gl_sublist_list_implementation): Update.
31745         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31746         upon out-of-memory.
31747         * modules/sublist (Depends-on): Remove xalloc.
31748
31749         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31750         * tests/test-carray_list.c: Likewise.
31751         * tests/test-linked_list.c: Likewise.
31752         * tests/test-linkedhash_list.c: Likewise.
31753         * tests/test-avltree_list.c: Likewise.
31754         * tests/test-rbtree_list.c: Likewise.
31755         * tests/test-avltreehash_list.c: Likewise.
31756         * tests/test-rbtreehash_list.c: Likewise.
31757         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31758         * modules/carray-list-tests (Makefile.am): Likewise.
31759         * modules/linked-list-tests (Makefile.am): Likewise.
31760         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31761         * modules/avltree-list-tests (Makefile.am): Likewise.
31762         * modules/rbtree-list-tests (Makefile.am): Likewise.
31763         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31764         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31765
31766         * NEWS: Mention the changes.
31767
31768         * lib/clean-temp.c: Include gl_xlist.h.
31769         * modules/clean-temp (Depends-on): Add xlist.
31770
31771         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31772         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31773
31774         * tests/test-array_oset.c: Include gl_xlist.h.
31775         * modules/array-oset-tests (Depends-on): Add xlist.
31776
31777         Reported by José E. Marchesi <jemarch@gnu.org>.
31778
31779 2009-12-13  Bruno Haible  <bruno@clisp.org>
31780
31781         Move the malloc checking from module 'oset' to new module 'xoset'.
31782         * modules/xoset: New file.
31783         * lib/gl_xoset.h: New file.
31784         * lib/gl_xoset.c: New file.
31785         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31786         declarations.
31787         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31788         (struct gl_oset_implementation): Rename and change methods accordingly.
31789         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31790         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31791         'int'. Mark as __warn_unused_result__.
31792         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31793         gl_oset_create_empty.
31794         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31795         'int'.
31796         * lib/gl_array_oset.c: Don't include xalloc.h.
31797         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31798         malloc, not xmalloc.
31799         (grow): Change return type to 'int'. Don't call xalloc_die.
31800         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31801         to 'int'.
31802         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31803         'int'.
31804         (gl_array_oset_implementation): Update.
31805         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31806         gl_tree_create_empty.
31807         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31808         'int'.
31809         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31810         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31811         xmalloc.
31812         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31813         not xmalloc.
31814         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31815         xmalloc.
31816         (gl_avltree_oset_implementation): Update.
31817         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31818         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31819         xmalloc.
31820         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31821         not xmalloc.
31822         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31823         xmalloc.
31824         (gl_rbtree_oset_implementation): Update.
31825         * modules/array-oset (Depends-on): Remove xalloc.
31826         * modules/avltree-oset (Depends-on): Likewise.
31827         * modules/rbtree-oset (Depends-on): Likewise.
31828         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31829         * tests/test-avltree_oset.c: Likewise.
31830         * tests/test-rbtree_oset.c: Likewise.
31831         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31832         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31833         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31834         * NEWS: Mention the change.
31835
31836 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31837
31838         maint.mk: allow a project to override release-prep commands
31839         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31840         commands into a new rule.
31841         (release-prep): New rule.
31842         (release-prep-hook): New overridable variable.
31843
31844 2009-12-13  Bruno Haible  <bruno@clisp.org>
31845
31846         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31847
31848 2009-12-13  Jim Meyering  <meyering@redhat.com>
31849
31850         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31851         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31852
31853 2009-12-12  Bruno Haible  <bruno@clisp.org>
31854
31855         duplocale: Tweak.
31856         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31857
31858 2009-12-12  Karl Berry  <karl@gnu.org>
31859
31860         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31861
31862 2009-12-12  Bruno Haible  <bruno@clisp.org>
31863
31864         * m4/po.m4: Undo incorrect untabification.
31865
31866 2009-12-12  Bruno Haible  <bruno@clisp.org>
31867
31868         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31869         * modules/c-strtod (Depends-on): Add locale.
31870         * modules/c-strtold (Depends-on): Likewise.
31871
31872 2009-12-12  Bruno Haible  <bruno@clisp.org>
31873
31874         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31875
31876 2009-12-11  Eric Blake  <ebb9@byu.net>
31877
31878         setenv: relax requirement in light of POSIX ruling
31879         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31880         not NULL.
31881         * tests/test-setenv.c (main): Relax test.
31882         * tests/test-unsetenv.c (main): Likewise.
31883         * doc/posix-functions/setenv.texi (setenv): Document this.
31884         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31885
31886 2009-12-11  Bruno Haible  <bruno@clisp.org>
31887
31888         New module 'fd-safer-flag'.
31889         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31890         * lib/dup-safer.c (dup_safer_flag): Remove function.
31891         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31892         * lib/fd-safer.c (fd_safer_flag): Remove function.
31893         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31894         * modules/cloexec (configure.ac): Drop indicator macro.
31895         * modules/fd-safer-flag: New file.
31896         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31897         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31898         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31899
31900 2009-12-11  Bruno Haible  <bruno@clisp.org>
31901
31902         Tests for module 'nl_langinfo'.
31903         * modules/nl_langinfo-tests: New file.
31904         * tests/test-nl_langinfo.sh: New file.
31905         * tests/test-nl_langinfo.c: New file.
31906
31907         New module 'nl_langinfo'.
31908         * lib/nl_langinfo.c: New file.
31909         * m4/nl_langinfo.m4: New file.
31910         * modules/nl_langinfo: New file.
31911         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31912
31913 2009-12-11  Bruno Haible  <bruno@clisp.org>
31914
31915         Tests for module 'langinfo'.
31916         * modules/langinfo-tests: New file.
31917         * tests/test-langinfo.c: New file.
31918
31919         New module 'langinfo'.
31920         * lib/langinfo.in.h: New file.
31921         * m4/langinfo_h.m4: New file.
31922         * modules/langinfo: New file.
31923         * doc/posix-headers/langinfo.texi: Mention the new module.
31924
31925 2009-12-11  Bruno Haible  <bruno@clisp.org>
31926
31927         * lib/config.charset: Untabify.
31928
31929 2009-12-11  Bruno Haible  <bruno@clisp.org>
31930
31931         * modules/unistd-safer (configure.ac): Drop indicator macro.
31932
31933 2009-12-11  Bruno Haible  <bruno@clisp.org>
31934
31935         Move pipe2-safer code to its own file.
31936         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31937         * lib/pipe-safer.c (pipe2_safer): Remove function.
31938         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31939         (Makefile.am): Add it to lib_SOURCES.
31940
31941 2009-12-10  Bruno Haible  <bruno@clisp.org>
31942
31943         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31944
31945 2009-12-10  Bruno Haible  <bruno@clisp.org>
31946
31947         Declare which arguments expect non-NULL values, for GCC and clang.
31948         * build-aux/arg-nonnull.h: New file.
31949         * modules/arg-nonnull: New file.
31950         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31951         (inet_ntop, inet_pton): Use it.
31952         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31953         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31954         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31955         (open, openat): Use it.
31956         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31957         (fnmatch): Use it.
31958         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31959         (getopt, getopt_long, getopt_long_only): Use it.
31960         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31961         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31962         Use it.
31963         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31964         (iconv_open): Use it.
31965         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31966         (strtoimax, strtoumax): Use it.
31967         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31968         (duplocale): Use it.
31969         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31970         (frexp, frexpl): Use it.
31971         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31972         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31973         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31974         (tsearch, tfind, tdelete, twalk): Use it.
31975         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31976         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31977         sigpending): Use it.
31978         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31979         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31980         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31981         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31982         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31983         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31984         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31985         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31986         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31987         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31988         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31989         Use it.
31990         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31991         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31992         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31993         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31994         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31995         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31996         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31997         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31998         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31999         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32000         strtoull, unsetenv): Use it.
32001         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32002         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32003         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32004         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32005         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32006         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32007         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32008         (strcasecmp, strncasecmp): Use it.
32009         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32010         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32011         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32012         rpl_setsockopt): Use it.
32013         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32014         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32015         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32016         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32017         (gettimeofday): Use it.
32018         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32019         (times): Use it.
32020         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32021         (uname): Use it.
32022         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32023         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32024         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32025         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32026         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32027         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32028         unlinkat, write): Use it.
32029         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32030         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32031         * lib/argv-iter.h: Include arg-nonnull.h.
32032         (_ATTRIBUTE_NONNULL_): Remove macro.
32033         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32034         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32035         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32036         optimization.
32037         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32038         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32039         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32040         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32041         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32042         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32043         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32044         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32045         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32046         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32047         * modules/dirent (Depends-on): Add arg-nonnull.
32048         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32049         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32050         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32051         * modules/fnmatch (Depends-on): Add arg-nonnull.
32052         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32053         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32054         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32055         * modules/glob (Depends-on): Add arg-nonnull.
32056         (Makefile.am): Insert arg-nonnull.h into glob.h.
32057         * modules/iconv_open (Depends-on): Add arg-nonnull.
32058         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32059         * modules/inttypes (Depends-on): Add arg-nonnull.
32060         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32061         * modules/locale (Depends-on): Add arg-nonnull.
32062         (Makefile.am): Insert arg-nonnull.h into locale.h.
32063         * modules/math (Depends-on): Add arg-nonnull.
32064         (Makefile.am): Insert arg-nonnull.h into math.h.
32065         * modules/netdb (Depends-on): Add arg-nonnull.
32066         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32067         * modules/search (Depends-on): Add arg-nonnull.
32068         (Makefile.am): Insert arg-nonnull.h into search.h.
32069         * modules/signal (Depends-on): Add arg-nonnull.
32070         (Makefile.am): Insert arg-nonnull.h into signal.h.
32071         * modules/spawn (Depends-on): Add arg-nonnull.
32072         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32073         * modules/stdio (Depends-on): Add arg-nonnull.
32074         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32075         * modules/stdlib (Depends-on): Add arg-nonnull.
32076         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32077         * modules/string (Depends-on): Add arg-nonnull.
32078         (Makefile.am): Insert arg-nonnull.h into string.h.
32079         * modules/strings (Depends-on): Add arg-nonnull.
32080         (Makefile.am): Insert arg-nonnull.h into strings.h.
32081         * modules/sys_socket (Depends-on): Add arg-nonnull.
32082         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32083         * modules/sys_stat (Depends-on): Add arg-nonnull.
32084         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32085         * modules/sys_time (Depends-on): Add arg-nonnull.
32086         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32087         * modules/sys_times (Depends-on): Add arg-nonnull.
32088         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32089         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32090         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32091         * modules/time (Depends-on): Add arg-nonnull.
32092         (Makefile.am): Insert arg-nonnull.h into time.h.
32093         * modules/unistd (Depends-on): Add arg-nonnull.
32094         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32095         * modules/wchar (Depends-on): Add arg-nonnull.
32096         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32097         * modules/argv-iter (Depends-on): Add arg-nonnull.
32098         * tests/test-canonicalize.c (null_ptr): New function.
32099         (main): Use it.
32100         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32101         (main): Use it.
32102         * tests/test-memmem.c (null_ptr): New function.
32103         (main): Use it.
32104         Reported by Jim Meyering.
32105
32106 2009-12-10  Bruno Haible  <bruno@clisp.org>
32107
32108         Use spaces for indentation, not tabs.
32109         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32110         * m4/*.m4: Untabify.
32111         * build-aux/*.h: Untabify.
32112         * tests/**/*.[hc]: Untabify.
32113         * README: New section "Indent with spaces, not TABs", based on
32114         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32115         * NEWS: Mention the change.
32116
32117 2009-12-10  Bruno Haible  <bruno@clisp.org>
32118
32119         pty test: Fix link error.
32120         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32121         test_pty_LDADD.
32122
32123 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32124
32125         * modules/pty: New file.
32126         * modules/pty-tests: New file.
32127         * m4/pty.m4: New file.
32128         * tests/test-pty.c: New file.
32129         * doc/glibc-headers/pty.texi: Modified.
32130         * doc/glibc-functions/forkpty.texi: Modified.
32131         * doc/glibc-functions/openpty.texi: Modified.
32132
32133 2009-12-10  Bruno Haible  <bruno@clisp.org>
32134
32135         Avoid syntax error in C++ mode.
32136         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32137
32138 2009-12-10  Bruno Haible  <bruno@clisp.org>
32139
32140         Use sed with option -e.
32141         * gnulib-tool (func_version, func_emit_copyright_notice,
32142         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32143         option -e to sed.
32144         * modules/link-warning (Makefile.am): Likewise.
32145
32146 2009-12-10  Jim Meyering  <meyering@redhat.com>
32147
32148         mgetgroups: do not write bytes beyond end of malloc'd buffer
32149         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32150         username, we call getgroups with a one-element-shorter buffer,
32151         but still told it the length was original, max_n_groups.
32152
32153 2009-12-09  Eric Blake  <ebb9@byu.net>
32154
32155         cloexec: relax license
32156         * modules/cloexec (Maintainer): Add myself.
32157         (License): Use LGPL, not GPL.
32158
32159         link-warning: optimize generation
32160         * modules/link-warning (Makefile.am): Reduce process usage.
32161
32162 2009-12-09  Bruno Haible  <bruno@clisp.org>
32163
32164         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32165         workaround was added on 2009-11-17.
32166
32167 2009-12-09  Jim Meyering  <meyering@redhat.com>
32168             Bruno Haible  <bruno@clisp.org>
32169
32170         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32171         * modules/link-warning (Makefile.am): Make the comment-removing sed
32172         command more robust in the face of bootstrap-prepended comment lines.
32173
32174 2009-12-09  Bruno Haible  <bruno@clisp.org>
32175
32176         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32177         most one group.
32178
32179 2009-12-09  Simon Josefsson <simon@josefsson.org>
32180             Bruno Haible  <bruno@clisp.org>
32181
32182         * build-aux/link-warning.h: Add copyright notice.
32183         * modules/link-warning (Makefile.am): Generate link-warning.h from
32184         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32185         * NEWS: Mention change in link-warning module.
32186         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32187         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32188         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32189         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32190         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32191         * modules/math (Makefile.am): Add dependency to math.h.
32192         * modules/search (Makefile.am): Add dependency to search.h.
32193         * modules/signal (Makefile.am): Add dependency to signal.h.
32194         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32195         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32196         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32197         * modules/string (Makefile.am): Add dependency to string.h.
32198         * modules/strings (Makefile.am): Add dependency to strings.h.
32199         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32200         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32201         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32202         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32203         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32204         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32205         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32206         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32207         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32208
32209 2009-12-09  Bruno Haible  <bruno@clisp.org>
32210
32211         fchdir: Optimize away rpl_fstat when possible.
32212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32213         REPLACE_OPEN_DIRECTORY.
32214         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32215
32216 2009-12-09  Bruno Haible  <bruno@clisp.org>
32217
32218         * lib/fchdir.c: Update comment.
32219
32220 2009-12-09  Bruno Haible  <bruno@clisp.org>
32221
32222         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32223
32224 2009-12-08  Eric Blake  <ebb9@byu.net>
32225
32226         fchdir: avoid memory leak on re-registration.
32227         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32228
32229 2009-12-08  Jim Meyering  <meyering@redhat.com>
32230
32231         init.sh: avoid Solaris 10 /bin/sh portability problem
32232         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32233         sourced script:
32234           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32235           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32236           bar
32237         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32238         and two tests used that idiom.
32239         * tests/init.sh: Update suggested usage comments.
32240         (path_prepend_): New function, to be used in place
32241         of the --src-path=DIR option.
32242         (setup_): Move PATH-prepending code into path_prepend_.
32243         * tests/test-pread.sh: Adapt to new usage.
32244         * tests/test-xalloc-die.sh: Likewise.
32245
32246 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32247
32248         * doc/gnulib.texi (Glibc pty.h): Add.
32249         * doc/glibc-functions/forkpty.texi: Add.
32250         * doc/glibc-functions/openpty.texi: Add.
32251         Suggested by Bruno Haible.
32252
32253 2009-12-08  Eric Blake  <ebb9@byu.net>
32254
32255         fchdir: fix logic bugs
32256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32257         * tests/test-fchdir.c (main): Enhance test.
32258         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32259         is in use.
32260
32261         dup2: fix logic bugs
32262         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32263         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32264         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32265         exists.
32266         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32267
32268 2009-12-07  Eric Blake  <ebb9@byu.net>
32269
32270         unlink: fix m4 detection
32271         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32272
32273         unistd-safer: add unit test
32274         * modules/unistd-safer-tests: New file.
32275         * tests/test-dup-safer.c: Likewise.
32276         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32277         * tests/test-dup2.c (setmode): Likewise.
32278         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32279
32280         cloexec: preserve text vs. binary across dup_cloexec
32281         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32282         mode.
32283         * modules/dup2-tests (Depends-on): Add binary-io.
32284         * modules/cloexec-tests (Depends-on): Likewise.
32285         * tests/test-dup2.c (setmode, is_mode): New helpers.
32286         (main): Add tests that translation mode is preserved.
32287         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32288         Reported by Bruno Haible.
32289
32290         mgetgroups: reduce duplicate listings
32291         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32292         resulting array.
32293         * tests/test-chown.h (test_chown): Simplify client.
32294         * tests/test-lchown.h (test_lchown): Likewise.
32295
32296 2009-12-06  Bruno Haible  <bruno@clisp.org>
32297
32298         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32299         value.
32300
32301 2009-12-06  Bruno Haible  <bruno@clisp.org>
32302
32303         * lib/progname.c: Include stdio.h, stdlib.h.
32304         (set_program_name): Reject a NULL argument.
32305
32306 2009-12-05  Eric Blake  <ebb9@byu.net>
32307
32308         pipe2-safer: new module
32309         * modules/pipe2-safer: New file.
32310         * lib/unistd-safer.h (pipe2_safer): New prototype.
32311         * lib/unistd--.h (pipe2): New wrapper.
32312         * lib/pipe-safer.c (pipe2_safer): New function.
32313         * modules/pipe (Depends-on): Add pipe2-safer.
32314         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32315
32316         stdlib-safer: preserve cloexec flag for mkostemp[s]
32317         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32318         fd_safer_flag.
32319
32320         unistd-safer: allow preservation of cloexec status via flag
32321         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32322         prototypes.
32323         * lib/dup-safer.c (dup_safer_flag): New function.
32324         * lib/fd-safer.c (fd_safer_flag): Likewise.
32325         * modules/cloexec (configure.ac): Set witness.
32326
32327         test-dup2: enhance test
32328         * modules/dup2-tests (Depends-on): Add cloexec.
32329         * tests/test-dup2.c (main): Enhance test.
32330
32331         cloexec: add dup_cloexec
32332         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32333         header and comments.
32334         * lib/cloexec.c (set_cloexec_flag): Add comments.
32335         (dup_cloexec): New function, with mingw implementation borrowed
32336         from...
32337         * lib/w32spawn.h (dup_noinherit): ...here.
32338         * modules/execute (Depends-on): Add cloexec.
32339         * modules/pipe (Depends-on): Likewise.
32340         * modules/cloexec (Depends-on): Add dup2.
32341         * modules/cloexec-tests (Files): New file.
32342         * tests/test-cloexec.c: Likewise.
32343
32344         test-xalloc-die: fix test for mingw
32345         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32346         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32347         directory and .exe suffix off argv[0] output.
32348
32349         test-fseeko: fix test for mingw
32350         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32351         than undefining fseek, so test will pass on mingw.
32352
32353 2009-12-05  Bruno Haible  <bruno@clisp.org>
32354
32355         * lib/progname.h (set_program_name): Clarify specification.
32356         * lib/progname.c (set_program_name): Likewise.
32357         Reported by Jim Meyering.
32358
32359 2009-12-05  Jim Meyering  <meyering@redhat.com>
32360
32361         maint.mk: backslash-escape parens in default regexp
32362         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32363         backslash-escape the literal parentheses.
32364
32365         maint.mk: news-date-check: use grep -E
32366         * top/maint.mk (today): Define a Make variable, not a...
32367         (news-date-check): ...shell variable.
32368         (news-date-regexp): Use the Make variable.
32369         Use grep's -E option.  Change the failing diagnostic to mention
32370         the variable, $(news-date-regexp).
32371
32372 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32373
32374         maintainer-makefile: allow customization of NEWS entry format
32375         * top/maint.mk (news-date-regexp): New overridable variable.
32376         (news-date-check): Use it.
32377
32378 2009-12-04  Eric Blake  <ebb9@byu.net>
32379
32380         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32381         * lib/mgetgroups.h (xgetgroups): New prototype.
32382         * lib/mgetgroups.c (xgetgroups): New wrapper.
32383         (mgetgroups): Handle ENOSYS.
32384         * modules/mgetgroups (Depends-on): Add realloc.
32385         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32386
32387         mgetgroups: avoid argument promotion issues with -1
32388         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32389         for invalid gid_t.
32390         * tests/test-chown.h (getegid, test_chown): Likewise.
32391         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32392
32393 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32394
32395         exclude: Fix header file problems.
32396         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32397
32398 2009-12-01  Jim Meyering  <meyering@redhat.com>
32399
32400         fts: fts_open: do not let an empty string cause immediate failure
32401         This is required in support of GNU rm, for which the command
32402         "rm A '' B" must process and remove both A and B, in spite of
32403         the empty string argument.
32404         * lib/fts.c (fts_open): Do not let the presence of an empty string
32405         cause fts_open to fail immediately.  Most fts-using tools must be
32406         able to process all arguments, in order, and can be expected to
32407         diagnose such arguments themselves.
32408
32409 2009-11-30  Eric Blake  <ebb9@byu.net>
32410
32411         utimens: fix compilation error
32412         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32413         Declare variable at right scope.
32414
32415 2009-11-29  Jim Meyering  <meyering@redhat.com>
32416
32417         bootstrap: handle perl-5.11's changed --version output
32418         * build-aux/bootstrap (get_version): Handle perl separately,
32419         since perl-5.11's --version output is different.
32420
32421 2009-11-28  Jim Meyering  <meyering@redhat.com>
32422
32423         userspec: depend on the inttostr module, too
32424         * modules/userspec (Depends-on): Add inttostr.
32425
32426         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32427         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32428         number of MAXUID when it evaluates to (uid_t) -1.
32429         Likewise for group ID.  Reported by Matt McCutchen in
32430         <http://savannah.gnu.org/bugs/?28113>
32431
32432         userspec: reformat to use spaces, not TABs
32433         * lib/userspec.c: Expand TABs to spaces.
32434         Add Emacs' "indent-tabs-mode: nil" hint.
32435
32436 2009-11-27  Eric Blake  <ebb9@byu.net>
32437
32438         getopt-gnu: flush out another BSD bug
32439         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32440         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32441         flush out BSD bug.
32442         * tests/test-getopt.h (test_getopt): End lists with NULL.
32443         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32444         (test_getopt_long_posix): Enhance test.
32445         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32446         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32447         getopt-gnu.
32448         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32449         Likewise.
32450
32451 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32452
32453         * modules/idpriv-droptemp-tests (Notice): Fix text.
32454
32455 2009-11-27  Jim Meyering  <meyering@redhat.com>
32456
32457         test-xalloc-die: avoid spurious failure due to libtool argv difference
32458         In a libtool-enabled project, this test would fail due to a difference
32459         in the emitted program name, e.g.,
32460         -test-xalloc-die: memory exhausted
32461         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32462         Use program to avoid that.
32463         * modules/xalloc-die-tests (Depends-on): Add progname.
32464         * tests/test-xalloc-die.c: Include progname.h".
32465         (program_name): Remove decl.
32466         (main): Call set_program_name.
32467         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32468
32469 2009-11-26  Richard Jones  <rjones@redhat.com>
32470
32471         w32sock: leave win32 error in place.
32472         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32473
32474 2009-11-26  Eric Blake  <ebb9@byu.net>
32475
32476         init.sh: suggest to use skip_ and fail_ functions in comments
32477         * tests/init.sh: Add a sentence.
32478
32479 2009-11-25  Bruno Haible  <bruno@clisp.org>
32480
32481         init.sh: add documentation in comments
32482         * tests/init.sh: Add some developer and user documentation.
32483
32484 2009-11-26  Jim Meyering  <meyering@redhat.com>
32485
32486         init.sh: accommodate even those who specify bogus srcdir manually
32487         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32488         configure-time tests to be sanitized, so that there is no need to
32489         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32490         (with no double quotes) suffices.  However, since tests may be
32491         invoked manually, and since you may explicitly set srcdir to the
32492         name of a directory containing spaces, do quote its uses here.
32493         * tests/test-pread.sh: Likewise.
32494         Suggested by Bruno Haible.
32495
32496         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32497         * tests/test-pread.sh: Write no data into the pipe, because
32498         test-pread actually reads none.  This avoids a diagnostic,
32499         "bash: echo: write error: Broken pipe", that arises in the unusual
32500         event something is ignoring SIGPIPE, and might be interpreted
32501         as some sort of failure.  Reported by Bruno Haible.
32502
32503 2009-11-25  Jim Meyering  <meyering@redhat.com>
32504
32505         test-pread: cover failure with ESPIPE and EINVAL
32506         * tests/test-pread.c (main): Test for failure, too.
32507         * tests/test-pread.sh: Invoke with stdin on a pipe.
32508         Suggested by Eric Blake.
32509
32510         pread: improvement and fix
32511         * modules/pread (Depends-on): Depend on lseek, for portability to
32512         e.g., mingw.  Suggested by Eric Blake.
32513         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32514
32515         unistd.in.h: correct declaration of pread
32516         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32517         Reported by Richard W.M. Jones.
32518
32519         test-pread.sh: distribute the test script
32520         * modules/pread-tests (Files): Include test-pread.sh.
32521
32522         test-pread.sh: clean up
32523         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32524         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32525         That is unnecessary, since it's always ".".
32526         Suggestion from Eric Blake.
32527
32528         test-pread.sh: make executable
32529         * tests/test-pread.sh: Set executable bit.
32530         Reported by Eric Blake.
32531
32532         correct typo in test-pread.sh
32533         * tests/test-pread.sh: Add #! line.
32534
32535         test pread
32536         * tests/test-pread.c: New file.
32537         * tests/test-pread.sh: Likewise.
32538         * modules/pread-tests: Likewise.
32539
32540         pread: new module
32541         * modules/pread: New file.
32542         * lib/unistd.in.h (pread): Define/declare.
32543         * lib/pread.c (pread): New file.
32544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32545         * modules/unistd (Makefile.am): Substitute witnesses.
32546         * doc/posix-functions/pread.texi (pread): Update.
32547         * MODULES.html.sh: Add pread.
32548
32549 2009-11-25  Jim Meyering  <meyering@redhat.com>
32550
32551         tests/init.sh: new file to be used via most *.sh tests
32552         * tests/init.sh: New file.
32553
32554 2009-11-25  Eric Blake  <ebb9@byu.net>
32555
32556         utimens: work around older Linux failure with symlinks
32557         * lib/utimens.c (lutimensat_works_really): New variable.
32558         (fdutimens, lutimens): Use it to manage kernels that support
32559         nanosecond times on files, but not on symlinks.
32560         Reported by OndÅ™ej Vašík.
32561
32562         utimes: fix configure grammar
32563         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32564
32565 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32566
32567         regex: Fix fastmap for multibyte character ranges.
32568         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32569         characters when a multibyte character range is included.
32570
32571 2009-11-22  Andy Wingo  <wingo@pobox.com>
32572
32573         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32574         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32575
32576 2009-11-24  Bruno Haible  <bruno@clisp.org>
32577
32578         doc: Most *_l functions exist in MacOS X 10.5.
32579         * doc/posix-functions/duplocale.texi: Update platforms list.
32580         * doc/posix-functions/freelocale.texi: Likewise.
32581         * doc/posix-functions/newlocale.texi: Likewise.
32582         * doc/posix-functions/uselocale.texi: Likewise.
32583         * doc/posix-functions/isalnum_l.texi: Likewise.
32584         * doc/posix-functions/isalpha_l.texi: Likewise.
32585         * doc/posix-functions/isblank_l.texi: Likewise.
32586         * doc/posix-functions/iscntrl_l.texi: Likewise.
32587         * doc/posix-functions/isdigit_l.texi: Likewise.
32588         * doc/posix-functions/isgraph_l.texi: Likewise.
32589         * doc/posix-functions/islower_l.texi: Likewise.
32590         * doc/posix-functions/isprint_l.texi: Likewise.
32591         * doc/posix-functions/ispunct_l.texi: Likewise.
32592         * doc/posix-functions/isspace_l.texi: Likewise.
32593         * doc/posix-functions/isupper_l.texi: Likewise.
32594         * doc/posix-functions/iswalnum_l.texi: Likewise.
32595         * doc/posix-functions/iswalpha_l.texi: Likewise.
32596         * doc/posix-functions/iswblank_l.texi: Likewise.
32597         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32598         * doc/posix-functions/iswctype_l.texi: Likewise.
32599         * doc/posix-functions/iswdigit_l.texi: Likewise.
32600         * doc/posix-functions/iswgraph_l.texi: Likewise.
32601         * doc/posix-functions/iswlower_l.texi: Likewise.
32602         * doc/posix-functions/iswprint_l.texi: Likewise.
32603         * doc/posix-functions/iswpunct_l.texi: Likewise.
32604         * doc/posix-functions/iswspace_l.texi: Likewise.
32605         * doc/posix-functions/iswupper_l.texi: Likewise.
32606         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32607         * doc/posix-functions/isxdigit_l.texi: Likewise.
32608         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32609         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32610         * doc/posix-functions/strcoll_l.texi: Likewise.
32611         * doc/posix-functions/strfmon_l.texi: Likewise.
32612         * doc/posix-functions/strftime_l.texi: Likewise.
32613         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32614         * doc/posix-functions/strxfrm_l.texi: Likewise.
32615         * doc/posix-functions/tolower_l.texi: Likewise.
32616         * doc/posix-functions/toupper_l.texi: Likewise.
32617         * doc/posix-functions/towctrans_l.texi: Likewise.
32618         * doc/posix-functions/towlower_l.texi: Likewise.
32619         * doc/posix-functions/towupper_l.texi: Likewise.
32620         * doc/posix-functions/wcscoll_l.texi: Likewise.
32621         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32622         * doc/posix-functions/wctrans_l.texi: Likewise.
32623         * doc/posix-functions/wctype_l.texi: Likewise.
32624         * doc/glibc-functions/strptime_l.texi: Likewise.
32625         * doc/glibc-functions/strtod_l.texi: Likewise.
32626         * doc/glibc-functions/strtof_l.texi: Likewise.
32627         * doc/glibc-functions/strtol_l.texi: Likewise.
32628         * doc/glibc-functions/strtold_l.texi: Likewise.
32629         * doc/glibc-functions/strtoll_l.texi: Likewise.
32630         * doc/glibc-functions/strtoul_l.texi: Likewise.
32631         * doc/glibc-functions/strtoull_l.texi: Likewise.
32632         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32633         * doc/glibc-functions/wcstod_l.texi: Likewise.
32634         * doc/glibc-functions/wcstof_l.texi: Likewise.
32635         * doc/glibc-functions/wcstol_l.texi: Likewise.
32636         * doc/glibc-functions/wcstold_l.texi: Likewise.
32637         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32638         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32639         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32640
32641 2009-11-24  Bruno Haible  <bruno@clisp.org>
32642
32643         duplocale: Fix logic bug.
32644         * lib/duplocale.c: Don't include <langinfo.h>.
32645         (_NL_LOCALE_NAME): Remove macro.
32646         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32647         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32648
32649 2009-11-23  Jim Meyering  <meyering@redhat.com>
32650
32651         test-update-copyright: don't hard-code /usr/bin/perl
32652         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32653         perl to print the current year.  Gilles Espinasse reported that
32654         the replaced use of perl was hard-coded as /usr/bin/perl.
32655
32656 2009-11-23  Bruno Haible  <bruno@clisp.org>
32657
32658         duplocale: Add support for glibc 2.3.x.
32659         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32660
32661 2009-11-22  Bruno Haible  <bruno@clisp.org>
32662
32663         vasnprintf: Tiny optimization.
32664         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32665         MacOS X.
32666
32667 2009-11-22  Bruno Haible  <bruno@clisp.org>
32668
32669         Tests for module 'duplocale'.
32670         * modules/duplocale-tests: New file.
32671         * tests/test-duplocale.c: New file.
32672
32673         New module 'duplocale'.
32674         * m4/duplocale.m4: New file.
32675         * lib/locale.in.h (duplocale): New declaration.
32676         * lib/duplocale.c: New file.
32677         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32678         gl_LOCALE_H_DEFAULTS): New macros.
32679         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32680         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32681         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32682         REPLACE_DUPLOCALE.
32683         * modules/duplocale: New file.
32684         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32685
32686 2009-11-22  Bruno Haible  <bruno@clisp.org>
32687
32688         * modules/locale-tests (configure.ac): Test for newlocale function.
32689         * tests/test-locale.c: When the system has extended locale functions,
32690         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32691
32692         locale: Make locale_t available when possible.
32693         * lib/locale.in.h: Include <xlocale.h> when it exists.
32694         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32695         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32696         * modules/locale (Depends-on): Add extensions.
32697         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32698         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32699
32700 2009-11-22  Bruno Haible  <bruno@clisp.org>
32701
32702         Add comments.
32703         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32704         invocation.
32705         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32706         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32707         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32708
32709 2009-11-22  Bruno Haible  <bruno@clisp.org>
32710
32711         error: account for the possibility of freopen (stdout).
32712         * lib/error.c: Include <unistd.h>.
32713         (flush_stdout): New function, extracted from error and error_at_line.
32714         Determine stdout's fd dynamically.
32715         (error, error_at_line): Invoke flush_stdout.
32716         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32717         * modules/error (Depends-on): Add unistd.
32718
32719 2009-11-22  Bruno Haible  <bruno@clisp.org>
32720
32721         diffseq: Add comment.
32722         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32723
32724 2009-11-22  Jim Meyering  <meyering@redhat.com>
32725
32726         c-stack: avoid defining an unused static function
32727         * lib/c-stack.c (find_stack_direction): Do not define this function
32728         when it will not be used.
32729
32730         diffseq: avoid spurious gcc warnings
32731         * lib/diffseq.h (IF_LINT2): Define.
32732         (compareseq): Use it to initialize two members of "part".
32733         This avoids two used-uninitialized warnings.
32734
32735 2009-11-21  Jim Meyering  <meyering@redhat.com>
32736
32737         c-stack: avoid "ignoring return value of `write'" warning
32738         * lib/c-stack.c: Include "ignore-value.h".
32739         (die): Explicitly ignore each write return value.
32740         * modules/c-stack (Depends-on): Add ignore-value.
32741
32742 2009-11-21  Bruno Haible  <bruno@clisp.org>
32743
32744         diffseq: reduce scope of variable 'best'.
32745         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32746         variable, earlier used for two different purposes.
32747
32748 2009-11-21  Jim Meyering  <meyering@redhat.com>
32749
32750         diffseq: remove useless assignment to "best"
32751         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32752         assignment.  At that point "best" is already guaranteed to be zero.
32753
32754 2009-11-20  Eric Blake  <ebb9@byu.net>
32755
32756         build: mention ftp redirector in release announcements
32757         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32758         values that used to come from cfg.mk; mention FTP redirect URL.
32759         * build-aux/announce-gen: Mention the mirror list.
32760         Suggested by Karl Berry.
32761
32762         nanosleep: improve port to mingw
32763         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32764         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32765         LIB_NANOSLEEP, but only when needed.
32766         * modules/select (Link): Document LIBSOCKET.
32767         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32768         enough.
32769
32770         nanosleep: work around cygwin bug
32771         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32772         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32773         bug.
32774         (getnow): Delete, not needed.
32775         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32776         LIB_CLOCK_GETTIME.
32777         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32778         clock-time, gettime.
32779         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32780         bug.
32781         * modules/nanosleep-tests: New test.
32782         * tests/test-nanosleep.c: New file.
32783
32784         sleep: work around cygwin bug
32785         * lib/sleep.c (rpl_sleep): Work around the bug.
32786         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32787         (gl_PREREQ_SLEEP): Delete unused macro.
32788         * modules/sleep (Depends-on): Add verify.
32789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32790         * modules/unistd (Makefile.am): Substitute witness.
32791         * lib/unistd.in.h (sleep): Update prototype.
32792         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32793         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32794         * modules/sleep-tests (Depends-on): Check for alarm.
32795
32796 2009-11-20  Jim Meyering  <meyering@redhat.com>
32797
32798         maint.mk: improve sc_prohibit_magic_number_exit
32799         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32800         so it does not match uses like System.exit(1).
32801         Add comments showing how to correct all offenders.
32802
32803 2009-11-19  Eric Blake  <ebb9@byu.net>
32804
32805         xalloc-die-tests: add missing library
32806         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32807
32808         test-xvasprintf: silence compiler warnings
32809         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32810         empty string from gcc.
32811
32812 2009-11-19  Jim Meyering  <meyering@redhat.com>
32813
32814         xfreopen: new module, from coreutils
32815         * modules/xfreopen: New module.
32816         * lib/xfreopen.c: New file.
32817         * lib/xfreopen.h: New file.
32818         * MODULES.html.sh (File stream based Input/Output"): Add it.
32819
32820 2009-11-19  Eric Blake  <ebb9@byu.net>
32821
32822         manywarnings: depend on warnings
32823         * modules/manywarnings (Depends-on): Add warnings.
32824
32825         build: avoid compiler warnings
32826         * lib/select.c (rpl_select): Delete unused variable.
32827         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32828
32829 2009-11-18  Eric Blake  <ebb9@byu.net>
32830
32831         tests: avoid false negative with --with-packager
32832         * tests/test-version-etc.sh: Discard packager information.
32833         * tests/test-argp-version-etc-1.sh: Likewise.
32834         Reported by Mike Frysinger.
32835
32836         utimens: fix regression on Solaris
32837         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32838         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32839         can only change fd timestamps via futimesat.  Instead, use an
32840         additional witness macro to avoid BSD bug.
32841         Reported by Jim Meyering.
32842
32843 2009-11-17  Eric Blake  <ebb9@byu.net>
32844
32845         usleep: use it to simplify tests
32846         * modules/stat-time-tests (Depends-on): Add usleep.
32847         (configure.ac): Drop usleep check.
32848         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32849         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32850         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32851         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32852         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32853         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32854         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32855         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32856         Likewise.
32857         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32858         * tests/test-lchown.h (nap): Likewise.
32859         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32860         * tests/test-stat-time.c (nap): Likewise.
32861         * tests/test-utimens-common.h (nap): Update comments.
32862
32863         usleep: new module
32864         * modules/usleep: New file.
32865         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32866         * lib/usleep.c (usleep): Likewise.
32867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32868         * modules/unistd (Makefile.am): Substitute witnesses.
32869         * lib/unistd.in.h (usleep): Add declaration.
32870         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32871         * MODULES.html.sh (Date and time): Likewise.
32872         * modules/usleep-tests (Depends-on): New test.
32873         * tests/test-usleep.c: New file.
32874
32875         chown: work around OpenBSD bug
32876         * lib/chown.c (rpl_chown): Work around the bug.
32877         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32878         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32879         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32880         * modules/chown (Depends-on): Add stdbool.
32881         * modules/lchown (Depends-on): Likewise.
32882         * doc/posix-functions/chown.texi (chown): Document the bug.
32883         * doc/posix-functions/lchown.texi (lchown): Likewise.
32884         * tests/test-lchown.h (test_chown): Relax test.
32885
32886         mkstemp: avoid conflict with C++ keyword template
32887         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32888         * lib/mkostemp.c (mkostemp): Likewise.
32889         * lib/mkostemps.c (mkostemps): Likewise.
32890         * lib/mkstemp.c (mkstemp): Likewise.
32891         * lib/mkstemps.c (mkstemps): Likewise.
32892
32893         xalloc-die-tests: optimize
32894         * tests/test-xalloc-die.sh: Reduce number of processes.
32895
32896 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32897
32898         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32899         patch from ludo@gnu.org (Ludovic Courtès).
32900
32901 2009-11-17  Jim Meyering  <meyering@redhat.com>
32902
32903         version-etc: use proper license string
32904         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32905         * modules/version-etc-fsf: Likewise.
32906
32907 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32908
32909         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32910         printed to stdout.  Deal with EOL differences.
32911
32912 2009-11-17  Eric Blake  <ebb9@byu.net>
32913
32914         unsetenv: work around Solaris bug
32915         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32916         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32917         Reported by Jim Meyering.
32918
32919         vasnprintf: avoid compiler warnings
32920         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32921         variables.
32922         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32923
32924 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32925
32926         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32927         settings since xalloc-die is no longer the self test,
32928         xalloc-die.sh is.
32929
32930 2009-11-17  Jim Meyering  <meyering@redhat.com>
32931
32932         test-xalloc-die.sh: make the code agree with the commit log
32933         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32934         at the end, just in case you happen to have a test-xalloc-die
32935         program in some other PATH directory.
32936
32937         test-xalloc-die.sh: fix a portability bug
32938         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32939         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32940         Otherwise, argv[0] (as often seen in diagnostics) would be too
32941         system-dependent, sometimes with, and sometimes without the leading "./".
32942
32943         version-etc-fsf: relax license to LGPLv3+
32944         * modules/version-etc-fsf (License): Relax license.
32945
32946 2009-11-16  Eric Blake  <ebb9@byu.net>
32947
32948         xalloc-die-tests: avoid printing null pointer
32949         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32950         shell script.
32951         * tests/test-xalloc-die.c (program_name): Declare.
32952         * tests/test-xalloc-die.sh (tmpfiles): New file.
32953
32954         setenv, unsetenv: work around various bugs
32955         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32956         (setenv) [HAVE_SETENV]: Work around bugs.
32957         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32958         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32959         for bugs.
32960         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32961         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32963         * modules/stdlib (Makefile.am): Update substitutions.
32964         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32965         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32966         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32967         * modules/setenv-tests: New test.
32968         * modules/unsetenv-tests: Likewise.
32969         * tests/test-setenv.c: New file.
32970         * tests/test-unsetenv.c: Likewise.
32971
32972 2009-11-16  Jim Meyering  <meyering@redhat.com>
32973
32974         version-etc: relax license to LGPLv3+
32975         * modules/version-etc (License): Relax license.
32976
32977         better AC_REQUIRE expanded-before-required-warning avoidance
32978         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32979         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32980         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32981         which is no longer needed.
32982
32983 2009-11-16  Eric Blake  <ebb9@byu.net>
32984
32985         test-freading: clean up temporary file
32986         * tests/test-freading.c (main): Remove file on success, and use
32987         ASSERT more liberally.
32988         Reported by Jim Meyering.
32989
32990 2009-11-16  Jim Meyering  <meyering@redhat.com>
32991
32992         avoid new AC_REQUIRE expanded-before-required warnings
32993         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32994         merely using it.
32995         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32996         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32997
32998 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32999
33000         * tests/test-xalloc-die.c: New file.
33001         * modules/xalloc-die-tests: New file.
33002         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33003         XFAIL_TESTS so it can be appended by modules.
33004
33005 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33006
33007         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33008         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33009
33010 2009-11-14  Eric Blake  <ebb9@byu.net>
33011
33012         fnmatch: avoid compiler warning
33013         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33014         to silence compiler warning about mismatch signedness in ?:.
33015         Reported by Robert Millan.
33016
33017         intprops: add double-inclusion guard
33018         * lib/intprops.h: Allow idempotent includes.
33019         Suggested by Bruce Korb.
33020
33021         openat: detect Solaris fchownat bug
33022         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33023         penalizing glibc chownat when only lchownat is broken.
33024         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33025         trailing slash bugs.
33026         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33027         * modules/openat-tests (Files): Include more files.
33028         (Depends-on): Add mgetgroups, sleep, stat-time.
33029         (configure.ac): Add additional checks.
33030         (Makefile.am): Build new test.
33031         * tests/test-fchownat.c: New file.
33032
33033         lchown: detect Solaris and FreeBSD bug
33034         * lib/lchown.c (rpl_lchown): Work around bug.
33035         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33037         * modules/unistd (Makefile.am): Populate it.
33038         * lib/unistd.in.h (lchown): Update declaration.
33039         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33040         * modules/lchown-tests: New file.
33041         * tests/test-lchown.h (test_lchown): Likewise.
33042         * tests/test-lchown.c (main): Likewise.
33043
33044         chown: detect Solaris and FreeBSD bug
33045         * lib/chown.c (rpl_chown): Work around bug.
33046         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33047         (gl_PREREQ_CHOWN): Delete.
33048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33049         * modules/unistd (Makefile.am): Populate it.
33050         * lib/unistd.in.h (chown): Update declaration.
33051         * lib/lchown.c (chown): Update client.
33052         * modules/lchown (Depends-on): Add lstat.
33053         * doc/posix-functions/chown.texi (chown): Document the bug.
33054         * doc/posix-functions/getgroups.texi (getgroups): Document
33055         getgroups pitfall.
33056         * modules/chown-tests: New file.
33057         * tests/test-chown.h (test_chown): Likewise.
33058         * tests/test-chown.c (main): Likewise.
33059
33060 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33061
33062         gnulib-tool: correctly detect absence of m4 directories
33063         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33064
33065 2009-11-14  Jim Meyering  <meyering@redhat.com>
33066
33067         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33068         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33069
33070 2009-11-14  John W. Eaton  <jwe@gnu.org>
33071
33072         strftime.h: wrap funtion declaration in extern "C" block
33073         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33074
33075 2009-11-13  Eric Blake  <ebb9@byu.net>
33076
33077         getgroups: avoid compiler warning
33078         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33079
33080         getgroups: work around FreeBSD bug
33081         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33082         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33083         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33084         * tests/test-getgroups.c (main): Fix buffer overrun.
33085
33086         getgroups: avoid compilation failure
33087         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33088         * modules/getgroups (Depends-on): Add stdint.
33089
33090 2009-11-13  Jim Meyering  <meyering@redhat.com>
33091
33092         test-getgroups: avoid compilation failure
33093         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33094
33095 2009-11-13  Eric Blake  <ebb9@byu.net>
33096
33097         mgetgroups: new module, taken from coreutils
33098         * modules/mgetgroups: New file.
33099         * lib/mgetgroups.h: Likewise.
33100         * lib/mgetgroups.c (mgetgroups): Likewise.
33101         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33102         * MODULES.html.sh (Users and groups): Mention it.
33103
33104         getgroups: don't expose GETGROUPS_T to user
33105         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33106         an element at a time if GETGROUPS_T is wrong size.
33107         * lib/getugroups.h (getugroups): Change signature.
33108         * lib/unistd.in.h (getgroups): Likewise.
33109         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33110         signature needs fixing.
33111         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33112         AC_TYPE_GETGROUPS.
33113         * modules/group-member (Depends-on): Add getgroups.
33114         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33115         (group_member): Rely on getgroups replacement.
33116         * lib/getugroups.c (getugroups): Use gid_t.
33117         * tests/test-getgroups.c (main): Likewise.
33118         * NEWS: Mention the signature change.
33119         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33120         problem with signature.
33121         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33122         GETGROUPS_T is still useful for setgroups.
33123
33124         getgroups, getugroups: provide stubs for mingw
33125         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33126         * lib/getugroups.c (getugroups): Likewise.
33127         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33128         function.  Modernize replacement scheme.
33129         (gl_PREREQ_GETGROUPS): Delete.
33130         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33131         * modules/getgroups (configure.ac): Declare witness.
33132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33133         * modules/unistd (Depends-on): Substitute witness.
33134         * lib/unistd.in.h (getgroups): Declare replacement.
33135
33136         getgroups: avoid calling exit
33137         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33138         drop xalloc.
33139         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33140         dependencies.
33141         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33142         exiting, in the rare case of malloc failure.
33143
33144         getgroups: fix logic error
33145         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33146         has more than 20 groups.
33147         * modules/getgroups-tests: New test.
33148         * tests/test-getgroups.c: New file.
33149
33150 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33151
33152         * tests/test-base64.c: Improve.
33153
33154 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33155
33156         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33157         Blake <ebb9@byu.net>.
33158
33159 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33160
33161         * tests/test-xvasprintf.c: Add %s%s related checks.
33162
33163 2009-11-12  Eric Blake  <ebb9@byu.net>
33164
33165         version-etc: match standards.texi style
33166         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33167         and use <> only for URLs.
33168
33169 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33170
33171         fts: do not fail on a submount during traversal
33172         * lib/fts.c (fts_build): Read the stat info again after opening
33173         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33174         Original report at http://bugzilla.redhat.com/501848.
33175
33176 2009-11-12  Jim Meyering  <meyering@redhat.com>
33177
33178         bootstrap: sync from coreutils
33179         * build-aux/bootstrap (bootstrap_epilogue): New function.
33180         Use git_modules_config in one more place.  This make bootstrap's
33181         --gnulib-srcdir option more useful for testing.
33182
33183         bootstrap: generalize autoheader check
33184         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33185         AC_CONFIG_HEADERS.
33186
33187 2009-11-11  Eric Blake  <ebb9@byu.net>
33188
33189         mkfifoat: use new modules for Solaris and BSD bugs
33190         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33191         * lib/mkfifoat.c (mknodat): Split...
33192         * lib/mknodat.c (mknodat): ...into new file.
33193         * modules/mkfifoat (Files): Ship new file.
33194         (Depends-on): Add mkfifo, mknod.
33195         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33196         (Depends-on): Add symlink.
33197         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33198         redundant with test_mkfifo.h.
33199         (do_mkfifoat, do_mknodat): New helpers.
33200
33201         mknod: new module
33202         * modules/mknod: New file.
33203         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33204         * lib/mknod.c (mknod): Likewise.
33205         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33206         defaults.
33207         * modules/sys_stat (Makefile.am): Substitute them.
33208         * lib/sys_stat.in.h (mknod): Declare replacement.
33209         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33210         Document it.
33211         * doc/posix-functions/mknod.texi (mknod): Likewise.
33212         * modules/mknod-tests: New test.
33213         * tests/test-mknod.c: Likewise.
33214
33215         mkfifo: new module
33216         * modules/mkfifo: New file.
33217         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33218         * lib/mkfifo.c (mkfifo): Likewise.
33219         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33220         defaults.
33221         * modules/sys_stat (Makefile.am): Substitute them.
33222         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33223         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33224         Document it.
33225         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33226         * modules/mkfifo-tests: New test.
33227         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33228         from test-mkfifoat.c.
33229         * tests/test-mkfifo.c: New file.
33230
33231         readlink: detect FreeBSD bug
33232         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33233         slash on symlink.
33234         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33235         * tests/test-readlink.h (test_readlink): Enhance test.
33236
33237         symlink: detect FreeBSD bug
33238         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33239         slash on symlink.
33240         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33241         * tests/test-symlink.h (test_symlink): Enhance test.
33242
33243 2009-11-10  Eric Blake  <ebb9@byu.net>
33244
33245         link: detect FreeBSD bug
33246         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33247         symlink.
33248         * doc/posix-functions/link.texi (link): Document the bug.
33249         * tests/test-link.h (test_link): Enhance test.
33250         * tests/test-linkat.c (main): Update caller.
33251
33252         unlink, remove: detect FreeBSD bug
33253         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33254         slash on symlink.
33255         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33256         * doc/posix-functions/remove.texi (remove): Likewise.
33257         * tests/test-unlink.h (test_unlink): Enhance test.
33258         * tests/test-remove.c (main): Likewise.
33259
33260 2009-11-09  Eric Blake  <ebb9@byu.net>
33261
33262         rename: detect FreeBSD bug
33263         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33264         slash on symlink.
33265         * modules/renameat-tests (Depends-on): Add filenamecat.
33266         * tests/test-rename.h (test_rename): Allow one more errno.
33267         * tests/test-renameat.c (main): Likewise.
33268         * doc/posix-functions/rename.texi (rename): Document the bug.
33269
33270         open: detect FreeBSD bug
33271         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33272         symlink.
33273         * doc/posix-functions/open.texi (open): Document the bug.
33274         * doc/posix-functions/utimes.texi (utimes): Likewise.
33275         * tests/test-open.h (test_open): Add parameters, and test symlink
33276         handling.
33277         * tests/test-open.c (main): Adjust caller.
33278         * tests/test-fcntl-safer.c (main): Likewise.
33279         * modules/open-tests (Depends-on): Add stdbool, symlink.
33280         * modules/fcntl-safer-tests (Depends-on): Likewise.
33281         * tests/test-openat.c (main): Add test-open tests.
33282
33283         stat: detect FreeBSD bug
33284         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33285         symlink.
33286         * doc/posix-functions/stat.texi (stat): Document the bug.
33287         * tests/test-stat.h (test_stat_func): Add argument.
33288         * tests/test-stat.c (main): Adjust caller.
33289         * tests/test-fstatat.c (main): Likewise.
33290         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33291         Reported by Jim Meyering.
33292
33293 2009-11-09  James Youngman  <jay@gnu.org>
33294
33295         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33296         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33297
33298 2009-11-08  Jim Meyering  <meyering@redhat.com>
33299
33300         utimens: remove invalid futimesat call
33301         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33302         It used the file descriptor of the target file as the DIR_FD
33303         parameter and NULL as the file name.  That caused failure with
33304         errno == EFAULT on FreeBSD-8.0-rc2
33305
33306 2009-11-07  Eric Blake  <ebb9@byu.net>
33307
33308         fflush, freadseek: use fseeko, not fseek
33309         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33310         (clear_ungetc_buffer): Avoid potential problems on large files.
33311         * lib/freadseek.c (freadseek): Likewise.
33312         * modules/freadseek (Depends-on): Add fseeko.
33313         * modules/fseek (configure.ac): Set a witness.
33314         * tests/test-fflush.c (main): Use fseeko.
33315         * tests/test-fpurge.c (fseek): Disable link warning.
33316         * tests/test-freadable.c (fseek): Likewise.
33317         * tests/test-freading.c (fseek): Likewise.
33318         * tests/test-fseeko.c (fseek): Likewise.
33319         * tests/test-ftell.c (fseek): Likewise.
33320         * tests/test-ftello.c (fseek): Likewise.
33321         * tests/test-fwritable.c (fseek): Likewise.
33322         * tests/test-fwriting.c (fseek): Likewise.
33323
33324 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33325
33326         * modules/memchr (Depends-on): Drop getpagesize dependency.
33327
33328 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33329
33330         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33331         Reported by Ludovic Courtès.
33332         * build-aux/pmccabe2html: Improve example usage.
33333         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33334
33335 2009-11-06  Jim Meyering  <meyering@redhat.com>
33336
33337         do-release-commit-and-tag: New module.
33338         Automate the release-commit and tag process.
33339         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33340         * modules/do-release-commit-and-tag: New file.
33341         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33342
33343 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33344
33345         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33346         because test-select.c uses inet_pton.
33347
33348 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33349
33350         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33351         GETADDRINFO_LIB.  Bump serial number.
33352         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33353         Suggested by Eric Blake <ebb9@byu.net>.
33354
33355 2009-11-05  Eric Blake  <ebb9@byu.net>
33356
33357         strtod: detect darwin bug
33358         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33359         Reported by Leo Davis.
33360
33361         freopen-safer: new module
33362         * modules/freopen-safer: New module.
33363         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33364         * lib/freopen-safer.c (freopen_safer): New file.
33365         * lib/stdio-safer.h (freopen_safer): New declaration.
33366         * lib/stdio--.h (freopen): New override.
33367         * MODULES.html.sh (File stream based Input/Output): Mention it.
33368         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33369         freopen-safer module.
33370         * doc/posix-functions/stderr.texi (stderr): Likewise.
33371         * doc/posix-functions/stdin.texi (stdin): Likewise.
33372         * doc/posix-functions/stdout.texi (stdout): Likewise.
33373         * modules/freopen-safer-tests: New test.
33374         * tests/test-reopen-safer.c: New file.
33375
33376 2009-11-05  Jim Meyering  <meyering@redhat.com>
33377
33378         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33379         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33380
33381 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33382
33383         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33384
33385 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33386
33387         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33388
33389 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33390
33391         Fix link error.
33392         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33393         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33394
33395 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33396
33397         * tests/test-func.c: Also test value of __func__.
33398
33399 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33400
33401         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33402         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33403
33404 2009-11-05  Bruno Haible  <bruno@clisp.org>
33405
33406         Fix link error.
33407         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33408         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33409         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33410
33411 2009-11-05  Bruno Haible  <bruno@clisp.org>
33412
33413         Tests for module 'inet_pton'.
33414         * modules/inet_pton-tests: New file.
33415         * tests/test-inet_pton.c: New file.
33416
33417 2009-11-05  Bruno Haible  <bruno@clisp.org>
33418
33419         Tests for module 'inet_ntop'.
33420         * modules/inet_ntop-tests: New file.
33421         * tests/test-inet_ntop.c: New file.
33422
33423 2009-11-04  Eric Blake  <ebb9@byu.net>
33424
33425         stdlib-safer: wrap all mkstemp variants
33426         * modules/mkostemp (configure.ac): Set witness.
33427         * modules/mkostemps (configure.ac): Likewise.
33428         * modules/mkstemps (configure.ac): Likewise.
33429         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33430         (mkstemps_safer): Wrap more functions.
33431         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33432         wrapping.
33433         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33434         (mkstemps_safer): Implement the wrappers.
33435
33436         mkstemps, mkostemps: new modules
33437         * modules/mkostemps: New module.
33438         * modules/mkstemps: Likewise.
33439         * lib/mkostemps.c (mkostemps): New file.
33440         * lib/mkstemps.c (mkstemps): Likewise.
33441         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33442         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33444         * modules/stdlib (Makefile.am): Substitute them.
33445         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33446         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33447         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33448         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33449         * MODULES.html.sh (File system functions): Mention them.
33450
33451         tempname: resync from glibc
33452         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33453         same values for __GT_FILE as glibc.  Abort even when assertions
33454         are disabled.
33455         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33456         match its value otherwise.  Allow idempotent inclusion.
33457         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33458         * lib/mkostemp.c (mkostemp): Likewise.
33459         * lib/mkstemp.c (mkstemp): Likewise.
33460         * lib/tmpfile.c (tmpfile): Likewise.
33461         * NEWS: Document this.
33462
33463         utimens: fix use of futimens on older Linux
33464         * lib/utimens.c (fdutimens): Use updated, rather than original,
33465         timespec to avoid bug in older Linux kernel.
33466         Reported by Simon Josefsson.
33467
33468 2009-11-04  Bruno Haible  <bruno@clisp.org>
33469
33470         Make num_processors more flexible and consistent.
33471         * lib/nproc.h (enum nproc_query): New type.
33472         (num_processors): Add a 'query' argument.
33473         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33474         (num_processors): Add a 'query' argument. Test the value of the
33475         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33476         mingw, count the number of CPUs available for the current process.
33477         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33478         Check for sched_getaffinity and sched_getaffinity_np.
33479         * modules/nproc (Depends-on): Add c-ctype, extensions.
33480         * NEWS: Mention the change.
33481
33482 2009-11-03  Bruno Haible  <bruno@clisp.org>
33483
33484         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33485
33486 2009-11-03  Jim Meyering  <meyering@redhat.com>
33487
33488         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33489         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33490         if it is defined.
33491
33492 2009-11-02  Eric Blake  <ebb9@byu.net>
33493
33494         mktime, timegm: share common declaration
33495         * lib/mktime-internal.h: New file.
33496         * lib/mktime.c: Use it rather than open-coding a declaration.
33497         * lib/timegm.c: Likewise.
33498         * modules/mktime (Files): Ship it.
33499         * modules/timegm (Files): Likewise.
33500         Suggested by Bruno Haible.
33501
33502         test-update-copyright: update test to match script changes
33503         * tests/test-update-copyright.sh: Avoid hard-coding perl
33504         location.  Don't update *.bak created by earlier runs.
33505
33506 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33507             Simon Josefsson  <simon@josefsson.org>
33508             Bruno Haible  <bruno@clisp.org>
33509
33510         Fix link error on Solaris 8.
33511         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33512         also in libnsl. Define also INET_PTON_LIB.
33513         * modules/inet_pton (Link): New section.
33514
33515 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33516             Bruno Haible  <bruno@clisp.org>
33517
33518         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33519         * modules/inet_ntop (Link): New section.
33520         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33521
33522 2009-11-02  Eric Blake  <ebb9@byu.net>
33523
33524         maint: avoid compiler warnings in m4 macros
33525         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33526         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33527
33528 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33529
33530         * m4/pmccabe2html.m4: Remove file.
33531         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33532         function.  Change maintainer.
33533         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33534         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33535         Courtès).
33536
33537 2009-10-31  Eric Blake  <ebb9@byu.net>
33538
33539         fseeko: fix m4 regression
33540         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33541         regression from 2009-10-27.
33542         Reported by Ralf Wildenhues.
33543
33544 2009-10-31  Jim Meyering  <meyering@redhat.com>
33545
33546         inttostr: aesthetics and improved (compile-time) safety
33547         Define inttype_is_signed rather than inttype_is_unsigned,
33548         since the sole use is via "#if inttype_is_signed".
33549         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33550         inttype_is_unsigned.
33551         * lib/offtostr.c (inttype_is_signed): Likewise.
33552         * lib/uinttostr.c (inttype_is_signed): Likewise.
33553         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33554         * lib/inttostr.c (inttostr): Use verify to cross-check the
33555         inttype_is_signed value and the signedness of the actual type.
33556         * modules/inttostr (Depends-on): Add verify.
33557
33558 2009-10-30  Eric Blake  <ebb9@byu.net>
33559
33560         build: avoid compiler warnings
33561         * lib/fchmodat.c (lchmod): Mark unused variables.
33562         * lib/getopt.c (_getopt_initialize): Likewise.
33563         * lib/mktime.c (__mktime_internal): Provide prototype.
33564         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33565         older gcc that do not understand #pragma GCC diagnostic.
33566         * lib/uinttostr.c (inttype_is_unsigned): Define.
33567         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33568
33569 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33570
33571         stat: fix compilation on AIX
33572         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33573         only see struct stat64.
33574
33575 2009-10-30  Eric Blake  <ebb9@byu.net>
33576
33577         exclude: make more robust
33578         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33579         rather than masking a coding bug.
33580         Suggested by Bruno Haible.
33581
33582 2009-10-30  Jim Meyering  <meyering@redhat.com>
33583
33584         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33585         Rather than putting #!/usr/bin/perl on the first line,
33586         start with a variant of what's recommended by "man perlrun" that
33587         invokes the first "perl" program from your shell's search path.
33588         * build-aux/gitlog-to-changelog: Replace #!... as above.
33589         Add a "Local Variables" perl mode setting.
33590         Prompted by a patch from Ludovic Courtès.
33591         Improved by Eric Blake.
33592         * build-aux/useless-if-before-free: Likewise.
33593         * build-aux/announce-gen: Likewise.
33594         * build-aux/update-copyright: Likewise.
33595
33596 2009-10-29  Eric Blake  <ebb9@byu.net>
33597
33598         filenamecat-lgpl: adjust clients
33599         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33600         filenamecat.
33601         * modules/renameat (Depends-on): Likewise.
33602
33603         filenamecat: split into filenamecat-lgpl
33604         * modules/filenamecat-lgpl: New module.
33605         * modules/filenamecat (Files): Move library-safe files into
33606         filenamecat-lgpl.
33607         (Depends-on): Add filenamecat-lgpl.
33608         (configure.ac): Declare witness.
33609         * lib/filenamecat.h (file_name_concat): Only declare when using
33610         GPL module.
33611         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33612         Move...
33613         * lib/filenamecat-lgpl.c: ...into new file.
33614         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33615         (gl_FILE_NAME_CONCAT): Use it.
33616         * MODULES.html.sh (File system functions): Mention new module.
33617
33618         argp: avoid memory leak
33619         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33620         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33621         base_name, since the latter malloc()s and can call exit().
33622         Leak introduced 2006-07-03.
33623
33624         dirname-lgpl: adjust clients that don't need full dirname
33625         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33626         * modules/filenamecat (Depends-on): Likewise.
33627         * modules/linkat (Depends-on): Likewise.
33628         * modules/mkancesdirs (Depends-on): Likewise.
33629         * modules/mkdir (Depends-on): Likewise.
33630         * modules/openat (Depends-on): Likewise.
33631         * modules/savewd (Depends-on): Likewise.
33632         * modules/rename (Depends-on): Likewise.
33633         (License): Relax license.
33634         * modules/mkdir-tests (Depends-on): Drop progname.
33635         (Makefile.am): Delete unneeded LDADD.
33636         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33637
33638         dirname: split into dirname-lgpl
33639         * modules/dirname-lgpl: New module.
33640         * modules/dirname (Files): Move library-safe files into
33641         dirname-lgpl.
33642         (Depends-on): Add dirname-lgpl.
33643         (configure.ac): Declare witness.
33644         * modules/double-slash-root (License): Relax license.
33645         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33646         module.
33647         * lib/dirname.c (dir_len, mdir_name): Move...
33648         * lib/dirname-lgpl.c: ...into new file.
33649         * lib/basename.c (last_component, base_len): Move...
33650         * lib/basename-lgpl.c: ...into new file.
33651         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33652         (gl_DIRNAME): Use it.
33653         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33654         Mention new module.
33655         * modules/dirname-tests (Depends-on): Add progname.
33656         * tests/test-dirname.c (program_name): Delete.
33657
33658         mkdir: make safe for libraries
33659         * modules/mkdir (Depends-on): Drop xalloc.
33660         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33661         exit.
33662
33663         tests: avoid some compiler warnings
33664         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33665         literals.
33666         * tests/test-memchr.c (main): Avoid type mismatch.
33667         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33668         * tests/test-base64.c (main): Likewise.
33669         * tests/test-getdelim.c (main): Likewise.
33670         * tests/test-gethostname.c (main): Likewise.
33671         * tests/test-getline.c (main): Likewise.
33672         * tests/test-netinet_in.c (main): Likewise.
33673         * tests/test-select.c (open_server_socket, main): Likewise.
33674         * tests/test-select-stdin.c (main): Likewise.
33675         * tests/test-sockets.c (main): Likewise.
33676         * tests/test-strsignal.c (main): Likewise.
33677         * tests/test-sys_select.c (main): Likewise.
33678         * tests/test-sys_socket.c (main): Likewise.
33679         * tests/test-u64.c (main): Likewise.
33680         * tests/test-xfprintf-posix.c (main): Likewise.
33681         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33682
33683         sockets: avoid compiler warning
33684         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33685
33686         maint: detect usage(1) and other suspicious exits
33687         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33688
33689 2009-10-29  Jim Meyering  <meyering@redhat.com>
33690
33691         timespec: long-to-int truncation could make timespec_cmp malfunction
33692         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33693         a multiple of 2^32 nanoseconds as no difference.
33694
33695 2009-10-28  Jim Meyering  <meyering@redhat.com>
33696
33697         fprintftime: wrap macro code argument in "do {...} while(0)"
33698         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33699         cpy macro must be a statement that can be followed by a semicolon.
33700         Now that the else clause contains a comment and is hence longer
33701         than one line, I require curly braces.  That in turn requires
33702         that we wrap this code block in the standard do...while(0).
33703
33704         fprintftime: remove stray semicolon from previous change
33705         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33706
33707         fprintftime: avoid a warning about ignored fwrite return value
33708         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33709         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33710         that is unsafe.
33711         * modules/fprintftime (Depends-on): Add ignore-value.
33712
33713         exclude: avoid an unwarranted warning
33714         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33715
33716 2009-10-27  Eric Blake  <ebb9@byu.net>
33717
33718         fseek: avoid compilation failure when fflush is replaced
33719         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33720         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33721         module is in use.
33722         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33723         module is not in use; since REPLACE_FSEEK worked otherwise.
33724         (GNULIB_FTELLO): Likewise for ftell.
33725         Reported by Ian Beckwith and others.
33726
33727 2009-10-27  Bruno Haible  <bruno@clisp.org>
33728
33729         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33730         Reported by Jim Meyering.
33731
33732 2009-10-27  Jim Meyering  <jim@meyering.net>
33733             Bruno Haible  <bruno@clisp.org>
33734
33735         Avoid warning despite dropping the return value of fwrite.
33736         * lib/unicodeio.c: Include ignore-value.h.
33737         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33738         * modules/unicodeio (Depends-on): Add ignore-value.
33739
33740 2009-10-26  Eric Blake  <ebb9@byu.net>
33741
33742         areadlinkat: fix fallback path
33743         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33744         pointer and zero.
33745
33746 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33747
33748         Use a better IO block size for modern systems
33749         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33750         * lib/md2.c: Likewise.
33751         * lib/md4.c: Likewise.
33752         * lib/md5.c: Likewise.
33753         * lib/sha1.c: Likewise.
33754         * lib/sha256.c: Likewise.
33755         * lib/sha512.c: Likewise.
33756
33757 2009-10-22  Eric Blake  <ebb9@byu.net>
33758
33759         tests: avoid several compiler warnings
33760         * tests/test-getcwd.c (main): Avoid buffer underflow.
33761         * tests/test-getdate.c (main): String literals are not safe with
33762         putenv, so use setenv.  Declare unused argument.
33763         * modules/getdate-tests (Depends-on): Add setenv.
33764         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33765         problems with string literals in char *.
33766         * tests/test-hash.c (main): Avoid shadowing declaration.
33767         (insert_new): Treat string literals as char const *.
33768         * tests/test-getopt.h (test_getopt): Likewise.
33769         (getopt_loop): Alter types to minimize casting elsewhere.
33770         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33771         (test_getopt_long_posix): Likewise.
33772         (do_getopt_long): Add wrapper to minimize casting.
33773         * tests/test-atexit.c (clear_temp_file): Use void.
33774         * tests/test-areadlink-with-size.c (main): Declare unused
33775         arguments.
33776         * tests/test-areadlink.c (main): Likewise.
33777         * tests/test-areadlinkat-with-size.c (main): Likewise.
33778         * tests/test-areadlinkat.c (main): Likewise.
33779         * tests/test-canonicalize-lgpl.c (main): Likewise.
33780         * tests/test-canonicalize.c (main): Likewise.
33781         * tests/test-dirent-safer.c (main): Likewise.
33782         * tests/test-dirname.c (main): Likewise.
33783         * tests/test-dup2.c (main): Likewise.
33784         * tests/test-fchdir.c (main): Likewise.
33785         * tests/test-fcntl-h.c (main): Likewise.
33786         * tests/test-fcntl-safer.c (main): Likewise.
33787         * tests/test-fdopendir.c (main): Likewise.
33788         * tests/test-fdutimensat.c (main): Likewise.
33789         * tests/test-fflush.c (main): Likewise.
33790         * tests/test-filenamecat.c (main): Likewise.
33791         * tests/test-filevercmp.c (main): Likewise.
33792         * tests/test-fopen-safer.c (main): Likewise.
33793         * tests/test-fopen.c (main): Likewise.
33794         * tests/test-fpending.c (main): Likewise.
33795         * tests/test-fpurge.c (main): Likewise.
33796         * tests/test-freading.c (main): Likewise.
33797         * tests/test-fstatat.c (main): Likewise.
33798         * tests/test-fsync.c (main): Likewise.
33799         * tests/test-futimens.c (main): Likewise.
33800         * tests/test-getndelim2.c (main): Likewise.
33801         * tests/test-gettimeofday.c (main): Likewise.
33802         * tests/test-getopt.c (main): Likewise.
33803         * tests/test-i-ring.c (main): Likewise.
33804         * tests/test-inttypes.c (main): Likewise.
33805         * tests/test-link.c (main): Likewise.
33806         * tests/test-lstat.c (main): Likewise.
33807         * tests/test-math.c (main): Likewise.
33808         * tests/test-md5.c (main): Likewise.
33809         * tests/test-memchr2.c (main): Likewise.
33810         * tests/test-memrchr.c (main): Likewise.
33811         * tests/test-mkdir.c (main): Likewise.
33812         * tests/test-mkdirat.c (main): Likewise.
33813         * tests/test-mkfifoat.c (main): Likewise.
33814         * tests/test-open.c (main): Likewise.
33815         * tests/test-openat-safer.c (main): Likewise.
33816         * tests/test-openat.c (main): Likewise.
33817         * tests/test-quotearg.c (main): Likewise.
33818         * tests/test-rawmemchr.c (main): Likewise.
33819         * tests/test-readlink.c (main): Likewise.
33820         * tests/test-remove.c (main): Likewise.
33821         * tests/test-rename.c (main): Likewise.
33822         * tests/test-renameat.c (main): Likewise.
33823         * tests/test-rmdir.c (main): Likewise.
33824         * tests/test-sha1.c (main): Likewise.
33825         * tests/test-signal.c (main): Likewise.
33826         * tests/test-sigaction.c (main): Likewise.
33827         * tests/test-stat.c (main): Likewise.
33828         * tests/test-stat-time.c (main): Likewise.
33829         * tests/test-stddef.c (main): Likewise.
33830         * tests/test-stdint.c (main): Likewise.
33831         * tests/test-stdio.c (main): Likewise.
33832         * tests/test-stdlib.c (main): Likewise.
33833         * tests/test-strchrnul.c (main): Likewise.
33834         * tests/test-strerror.c (main): Likewise.
33835         * tests/test-string.c (main): Likewise.
33836         * tests/test-strtod.c (main): Likewise.
33837         * tests/test-strverscmp.c (main): Likewise.
33838         * tests/test-symlink.c (main): Likewise.
33839         * tests/test-symlinkat.c (main): Likewise.
33840         * tests/test-sys_stat.c (main): Likewise.
33841         * tests/test-sys_time.c (main): Likewise.
33842         * tests/test-time.c (main): Likewise.
33843         * tests/test-unistd.c (main): Likewise.
33844         * tests/test-unlink.c (main): Likewise.
33845         * tests/test-unlinkat.c (main): Likewise.
33846         * tests/test-utimens.c (main): Likewise.
33847         * tests/test-utimensat.c (main): Likewise.
33848         * tests/test-version-etc.c (main): Likewise.
33849         * tests/test-wchar.c (main): Likewise.
33850         * tests/test-wctype.c (main): Likewise.
33851         * tests/test-xprintf-posix.c (main): Likewise.
33852         * tests/test-posixtm.c (main): Likewise.
33853         (STREQ): Delete unused macro.
33854         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33855         shadowed variables.
33856         * tests/test-memchr.c (main): Likewise.
33857
33858 2009-10-21  Eric Blake  <ebb9@byu.net>
33859
33860         areadlinkat: avoid failure on older glibc
33861         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33862         rather than mis-comparing 0 against FUNC_RESULT of char*.
33863
33864 2009-10-21  Bruno Haible  <bruno@clisp.org>
33865
33866         * modules/stpncpy (License): Relicense under LGPLv2+.
33867         Reported by David Lutterkort <lutter@redhat.com>.
33868
33869 2009-10-20  Eric Blake  <ebb9@byu.net>
33870
33871         utimensat: work around Solaris 9 bug
33872         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33873         has trailing slash bugs.
33874         * tests/test-lutimens.h (test_lutimens): Enhance test.
33875         * tests/test-utimens.h (test_utimens): Likewise.
33876         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33877         * doc/posix-functions/utimes.texi (utimes): Likewise.
33878         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33879         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33880         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33881         * doc/posix-functions/futimens.texi (futimens): Likewise.
33882
33883         fdutimensat: new module
33884         * modules/fdutimensat: New file.
33885         * lib/fdutimensat.c (fdutimensat): Likewise.
33886         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33887         * MODULES.html.sh (File system functions): Mention module.
33888         * modules/fdutimensat-tests: New test.
33889         * tests/test-fdutimensat.c: Likewise.
33890
33891         doc: regenerate INSTALL
33892         * doc/INSTALL: Reflect recent autoconf update.
33893         * doc/INSTALL.ISO: Likewise.
33894         * doc/INSTALL.UTF-8: Likewise.
33895
33896 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33897
33898         acl: warn if ACL support is not detected
33899         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33900
33901 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33902
33903         * lib/nproc.h: Add extern "C" block for C++.
33904
33905 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33906             Bruno Haible  <bruno@clisp.org>
33907
33908         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33909         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33910         * doc/posix-functions/isalpha.texi: Likewise.
33911         * doc/posix-functions/isblank.texi: Likewise.
33912         * doc/posix-functions/iscntrl.texi: Likewise.
33913         * doc/posix-functions/isdigit.texi: Likewise.
33914         * doc/posix-functions/isgraph.texi: Likewise.
33915         * doc/posix-functions/islower.texi: Likewise.
33916         * doc/posix-functions/isprint.texi: Likewise.
33917         * doc/posix-functions/ispunct.texi: Likewise.
33918         * doc/posix-functions/isspace.texi: Likewise.
33919         * doc/posix-functions/isupper.texi: Likewise.
33920         * doc/posix-functions/isxdigit.texi: Likewise.
33921
33922 2009-10-18  Bruno Haible  <bruno@clisp.org>
33923
33924         Tests for module 'isblank'.
33925         * modules/isblank-tests: New file.
33926         * tests/test-isblank.c: New file.
33927
33928         New module 'isblank'.
33929         * lib/isblank.c: New file.
33930         * m4/isblank.m4: New file.
33931         * modules/isblank: New file.
33932         * doc/posix-functions/isblank.texi: Mention the new module.
33933
33934 2009-10-18  Bruno Haible  <bruno@clisp.org>
33935
33936         New module 'ctype'.
33937         * lib/ctype.in.h: New file.
33938         * m4/ctype.m4: New file.
33939         * modules/ctype: New file.
33940         * doc/posix-headers/ctype.texi: Mention the new module.
33941
33942 2009-10-18  Jim Meyering  <meyering@redhat.com>
33943
33944         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33945         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33946         right after its initialization, rather than farther down.
33947         Keeping these in close proximity makes it easier to ensure
33948         that each such variable is initialized.  E.g.,
33949
33950             LIB_CLOCK_GETTIME=
33951             AC_SUBST([LIB_CLOCK_GETTIME])
33952
33953         This change also increments these serial numbers.
33954         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33955         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33957
33958 2009-10-18  Bruno Haible  <bruno@clisp.org>
33959
33960         Don't let environment variables perturb build.
33961         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33962         (gl_PREREQ_GETHRXTIME): ... not here.
33963
33964 2009-10-18  Bruno Haible  <bruno@clisp.org>
33965
33966         Avoid symlink attack in localcharset module.
33967         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33968         (O_NOFOLLOW): Define fallback.
33969         (get_charset_aliases): Don't open the file if it is a symbolic link.
33970         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33971         gl_FCNTL_H.
33972         (gl_FCNTL_H): Require it.
33973         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33974         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33975         Reported by Fergal Glynn <fglynn@veracode.com>.
33976
33977 2009-10-18  Bruno Haible  <bruno@clisp.org>
33978
33979         Implement nproc for mingw.
33980         * lib/nproc.c: Include <windows.h>
33981         (num_processors): On native Windows platforms, try GetSystemInfo.
33982
33983 2009-10-18  Bruno Haible  <bruno@clisp.org>
33984
33985         Implement nproc for IRIX.
33986         * lib/nproc.c: Include <sys/sysmp.h>.
33987         (num_processors): On IRIX systems, try sysmp.
33988         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33989
33990 2009-10-18  Bruno Haible  <bruno@clisp.org>
33991
33992         Implement nproc for HP-UX.
33993         * lib/nproc.c: Include <sys/pstat.h>
33994         (num_processors): On HP-UX systems, try pstat_getdynamic.
33995         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33996         pstat_getdynamic.
33997
33998 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33999             Bruno Haible  <bruno@clisp.org>
34000
34001         Implement nproc for NetBSD, OpenBSD.
34002         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34003         (ARRAY_SIZE): New macro.
34004         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34005         * m4/nproc.m4: New file.
34006         * modules/nproc (Files): Add m4/nproc.m4.
34007         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34008         (Makefile.am): Instead, augment lib_SOURCES.
34009
34010 2009-10-18  Bruno Haible  <bruno@clisp.org>
34011
34012         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34013         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34014         sys/param.h.
34015
34016 2009-10-16  Eric Blake  <ebb9@byu.net>
34017
34018         utimensat: new module
34019         * modules/utimensat: New file.
34020         * lib/utimensat.c (utimensat): Likewise.
34021         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34022         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34023         so we can work around Linux bugs.
34024         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34025         * modules/sys_stat (Makefile.am): Substitute them.
34026         * lib/sys_stat.in.h (utimensat): Declare it.
34027         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34028         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34029         * modules/utimensat-tests: New test.
34030         * tests/test-utimensat.c: Likewise.
34031
34032         utimens: let lutimens work on non-symlinks
34033         * lib/utimens.c (lutimens): Fall back to utimens rather than
34034         failing with ENOSYS, when file is not a symlink.
34035         (utimens): Reduce redirection.
34036         * tests/test-lutimens.h (test_lutimens): Update test to cover
34037         non-symlinks.
34038         * tests/test-utimens.h (test_utimens): Update test to cover
34039         symlinks.
34040         * tests/test-utimens.c (main): Update caller.
34041
34042         utimens: cache whether utimensat syscall works
34043         * lib/utimens.c (utimensat_works_really): New cache variable.
34044         (fdutimens, lutimens): Use it to avoid failing syscall.
34045
34046         test-stat-time, test-utimens: improve portability
34047         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34048         ext4 on alpha, and for cygwin.
34049         * tests/test-utimens-common.h: New file.
34050         (nap): Factor delays into single function.
34051         * tests/test-lutimens.h (test_lutimens): Use new header.
34052         * tests/test-futimens.h (test_futimens): Likewise.
34053         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34054         timestamps to occur from same machine, as was done previously for
34055         test_utimens.
34056         * modules/utimens-tests (Files): Ship new file.
34057         * modules/futimens-tests (Files): Likewise.
34058         Reported in part by Jim Meyering.
34059
34060         sys_stat: sort replacement declarations
34061         * lib/sys_stat.in.h: Sort declarations.
34062         * lib/futimens.c (futimens): Fix typo.
34063
34064 2009-10-15  Jim Meyering  <meyering@redhat.com>
34065
34066         don't let environment settings perturb build
34067         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34068         could cause a configure-time and/or build-time malfunction.
34069         Typically, a configure-time function-in-library test is performed
34070         via code like this:
34071
34072           LIB_VAR=
34073           AC_SUBST([LIB_VAR])
34074           prefix_saved_LIBS=$LIBS
34075             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34076                        [test "$ac_cv_search_FUNC" = "none required" ||
34077                         LIB_VAR=$ac_cv_search_FUNC])
34078           LIBS=$prefix_saved_LIBS
34079
34080         However, in each of the files affected by this change, the LIB_VAR=
34081         initialization was omitted.  Thus, when set in the environment, its
34082         value would propagate into generated Makefiles when FUNC is not found
34083         in LIB_NAME.
34084         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34085         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34087
34088 2009-10-14  Eric Blake  <ebb9@byu.net>
34089
34090         fchdir: avoid infinite recursion in mingw
34091         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34092         recursing.
34093
34094         test-stat-time: port to mingw
34095         * tests/test-stat-time.c (force_unlink): Return a value.
34096         (test_ctime) [W32]: Fix compilation error.
34097         (nap): Don't call usleep with too large an argument.  Use
34098         force_unlink.
34099         * doc/pastposix-functions/usleep.texi (usleep): Document the
34100         portability issue.
34101
34102 2009-10-13  Jim Meyering  <meyering@redhat.com>
34103
34104         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34105         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34106         * modules/pipe-filter-ii: Likewise.
34107         * modules/sys_socket-tests: Likewise.
34108         * modules/tsearch-tests: Likewise.
34109         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34110         (check): Depend on it.
34111
34112 2009-10-12  Eric Blake  <ebb9@byu.net>
34113
34114         utimens-tests: port to NFS file systems
34115         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34116         comparisons to avoid spurious failures from timestamp drift
34117         between NFS machines.
34118
34119 2009-10-12  Eric Blake  <ebb9@byu.net>
34120
34121         stat-time-tests: minor cleanups
34122         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34123         * tests/test-stat-time.c (nap): Separate assignment from call.
34124         Suggested by Paolo Bonzini and Bruno Haible.
34125
34126         sys_stat: guarantee struct timespec
34127         * lib/sys_stat.in.h (includes): Always include <time.h>
34128         * modules/sys_stat (Depends-on): Add time.
34129         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34130         mode_t permission values.
34131         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34132         get at subsecond timestamps.
34133
34134 2009-10-10  Eric Blake  <ebb9@byu.net>
34135
34136         futimens: new module
34137         * modules/futimens: New file.
34138         * lib/futimens.c (futimens): Likewise.
34139         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34140         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34141         we can work around Linux bugs.
34142         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34143         * modules/sys_stat (Makefile.am): Substitute them.
34144         * lib/sys_stat.in.h (futimens): Declare it.
34145         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34146         * doc/posix-functions/futimens.texi (futimens): Likewise.
34147         * modules/futimens-tests: New test.
34148         * tests/test-futimens.c: Likewise.
34149
34150         utimens: introduce fdutimens
34151         * lib/utimens.h (fdutimens): New prototype.
34152         * lib/utimens.c (gl_futimens): Move guts...
34153         (fdutimens): ...to new interface.
34154         * tests/test-utimens.c (do_fdutimens): Use it.
34155
34156         utimens: add UTIME_NOW and UTIME_OMIT support
34157         * lib/utimens.c (validate_timespec, update_timespec): New helper
34158         functions.
34159         (gl_futimens, lutimens): Use them.
34160         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34161         stdbool, sys_stat.
34162         (Link): Mention resulting library dependency.
34163         * modules/utimecmp (Link): Likewise.
34164         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34165         (Makefile.am): Pick up library dependency.
34166         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34167         definition.
34168         * tests/test-sys_stat.c: Test the definitions.
34169         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34170         * NEWS: Document library dependency.
34171
34172         utimecmp: support symlink timestamps
34173         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34174         hashing when possible.  Use pathconf when available.
34175         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34176         * modules/utimecmp (Depends-on): Add lstat.
34177
34178         utimens: add lutimens interface
34179         * lib/utimens.c (lutimens): New function.
34180         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34181         * lib/utimens.h (lutimens): Declare new interface.
34182         * tests/test-utimens.c (main): Enhance test.
34183         * tests/test-lutimens.h (test_lutimens): New file.
34184         * modules/utimens-tests (Files): Distribute it.
34185         (Depends-on): Add symlink.
34186         (configure.ac): Check for usleep.
34187
34188         utimens: validate futimens usage
34189         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34190         fewer syscalls on failure later on.  Avoid compiler warning on
34191         mingw.
34192         * modules/utimens (Depends-on): Add dup2.
34193
34194         utimens: add test
34195         * modules/utimens-tests: New test.
34196         * tests/test-utimens.h: New file.
34197         * tests/test-futimens.h: Likewise.
34198         * tests/test-utimens.c: Likewise.
34199
34200         doc: mention timestamp portability issues
34201         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34202         instead.
34203         * doc/posix-functions/utime.texi (utime): Likewise.
34204         * doc/posix-functions/utimes.texi (utimes): Likewise.
34205         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34206         instead.
34207         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34208         module.
34209         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34210         Mention weakness with symlink timestamps.
34211         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34212         to utimensat/futimens instead.
34213         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34214
34215         test-dup2: enhance test
34216         * tests/test-dup2.c (main): Also check AT_FDCWD.
34217
34218         test-stat-time: avoid more spurious failures
34219         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34220         xfs; and avoid race if the two timestamps cross quantization edge.
34221
34222         relocatable: prefer 'file system' over 'filesystem'
34223         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34224         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34225         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34226         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34227         * lib/relocatable.c (compute_curr_prefix): Likewise.
34228
34229 2009-10-10  Jim Meyering  <meyering@redhat.com>
34230
34231         stat-time-tests: check for the usleep function
34232         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34233
34234 2009-10-10  Bruno Haible  <bruno@clisp.org>
34235
34236         * modules/xnanosleep: Put the Link section after the Include section.
34237
34238 2009-10-09  Eric Blake  <ebb9@byu.net>
34239
34240         dup2: work around FreeBSD 6.1 bug
34241         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34242         * doc/posix-functions/dup2.texi (dup2): Document it.
34243         Reported by Nelson H. F. Beebe and Jim Meyering.
34244
34245         test-stat-time: port to buggy NFS clients
34246         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34247         (test_ctime): Also skip test if mtime and ctime are skewed.
34248
34249         maint: prefer 'file system' over 'filesystem'
34250         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34251         * doc/posix-functions/lstat.texi (lstat): Likewise.
34252         * lib/file-has-acl.c (file_has_acl): Likewise.
34253         * lib/fwriteerror.c [TEST]: Likewise.
34254         * tests/test-areadlink.h (test_areadlink): Likewise.
34255         * tests/test-areadlinkat-with-size.c (main): Likewise.
34256         * tests/test-areadlinkat.c (main): Likewise.
34257         * tests/test-canonicalize-lgpl.c (main): Likewise.
34258         * tests/test-canonicalize.c (main): Likewise.
34259         * tests/test-fstatat.c (main): Likewise.
34260         * tests/test-linkat.c (main): Likewise.
34261         * tests/test-lstat.h (test_lstat_func): Likewise.
34262         * tests/test-mkdir.h (test_mkdir): Likewise.
34263         * tests/test-readlink.h (test_readlink): Likewise.
34264         * tests/test-remove.c (main): Likewise.
34265         * tests/test-rename.h (test_rename): Likewise.
34266         * tests/test-renameat.c (main): Likewise.
34267         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34268         * tests/test-symlink.h (test_symlink): Likewise.
34269         * tests/test-symlinkat.c (main): Likewise.
34270         * tests/test-unlink.h (test_unlink_func): Likewise.
34271         * tests/test-unlinkat.c (main): Likewise.
34272
34273         maint: make realtime library usage explicit
34274         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34275         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34276         * modules/settime (Link): Likewise.
34277         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34278
34279         test-stat-time: speed up execution
34280         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34281         warning on mingw.
34282         (nap): New helper function.
34283         (prepare_test): Use it to reduce sleep time.
34284         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34285         execution.
34286         * modules/stat-time-tests (configure.ac): Check for usleep.
34287
34288 2009-10-09  Jim Meyering  <meyering@redhat.com>
34289
34290         selinux-h: always use getfilecon wrappers
34291         * lib/getfilecon.c: New file.
34292         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34293         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34294         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34295         (fgetfilecon): Provide a stub.
34296         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34297         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34298         file unconditionally.
34299         When <selinux/selinux.h> is found, arrange to use wrappers.
34300         * modules/selinux-h (Files): Add getfilecon.c.
34301         (Makefile.am): Substitute include-next-related bits
34302         into the now-always-generated selinux/selinux.h file.
34303         * doc/glibc-functions/lgetfilecon.texi: New file.
34304         * doc/glibc-functions/fgetfilecon.texi: New file.
34305         * doc/glibc-functions/getfilecon.texi: New file.
34306         * doc/glibc-functions/getfilecon-desc.texi: New file.
34307         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34308         which to pull in the new files.
34309         * MODULES.html.sh (Misc): Add selinux-h.
34310
34311 2009-10-08  Jim Meyering  <meyering@redhat.com>
34312
34313         unistd: fix comment typo
34314         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34315
34316 2009-10-08  Eric Blake  <ebb9@byu.net>
34317
34318         areadlink: use SIZE_MAX consistently
34319         * modules/areadlink (Depends-on): Add stdint.
34320         * modules/areadlink-with-size (Depends-on): Likewise.
34321         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34322         gives NULL; drop sys/types, since unistd gives size_t; and add
34323         stdint for SIZE_MAX.
34324         (SIZE_MAX): Rely on headers.
34325         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34326         and add stdint.
34327         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34328         (SIZE_MAX): Likewise.
34329         (INITIAL_BUF_SIZE): Turn into enum.
34330         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34331
34332 2009-10-08  Jim Meyering  <meyering@redhat.com>
34333
34334         areadlinkat: avoid compilation failure
34335         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34336         Fix typo in comment.
34337
34338 2009-10-07  Eric Blake  <ebb9@byu.net>
34339
34340         areadlinkat-with-size: new module
34341         * modules/areadlinkat-with-size: New module.
34342         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34343         * lib/areadlink.h (areadlinkat): Declare it.
34344         * MODULES.html.sh (File system functions): Mention it.
34345         * modules/areadlinkat-with-size-tests: New test.
34346         * tests/test-areadlinkat-with-size.c: New file.
34347
34348         xreadlinkat: new module
34349         * modules/xreadlinkat: New module.
34350         * lib/xreadlinkat.c (xreadlinkat): New file.
34351         * lib/xreadlink.h (xreadlinkat): Declare it.
34352         * MODULES.html.sh (File system functions): Mention it.
34353
34354         areadlinkat: new module
34355         * lib/at-func.c (FUNC_FAIL): New define.
34356         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34357         * modules/areadlinkat: New module.
34358         * lib/linkat.c (areadlinkat): Move...
34359         * lib/areadlinkat.c (areadlinkat): ...to new file.
34360         * lib/areadlink.h (areadlinkat): Declare it.
34361         * modules/linkat (Depends-on): Add areadlinkat.
34362         * MODULES.html.sh (File system functions): Mention it.
34363         * modules/areadlinkat-tests: New test.
34364         * tests/test-areadlinkat.c: New file.
34365
34366         areadlink, areadlink-with-size: add tests
34367         * modules/areadlink-tests: New test.
34368         * modules/areadlink-with-size-tests: Likewise.
34369         * tests/test-areadlink.h: New file.
34370         * tests/test-areadlink.c: Likewise.
34371         * tests/test-areadlink-with-size.c: Likewise.
34372
34373         maint: minor cleanups
34374         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34375         _UNUSED_PARAMETER_ instead.
34376         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34377         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34378         * modules/linkat-tests (Files): Distribute test-link.h.
34379
34380         openat, utimens: whitespace cleanup
34381         * lib/openat.c: Prefer space throughout, rather than mix of 8
34382         spaces vs. tabs.
34383         * lib/at-func.c: Likewise.
34384         * lib/utimens.c: Likewise.
34385
34386         openat: avoid using wrong fd
34387         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34388         working directory chooses same fd.
34389         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34390
34391         mkdir, mkdirat: fix cygwin 1.5.x bug
34392         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34393         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34394         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34395         bug.
34396         (gl_PREREQ_MKDIR): Delete unused macro.
34397         * modules/mkdir (Files): Track file rename.
34398         (configure.ac): Update macro name.
34399         * modules/openat (Depends-on): Add mkdir.
34400         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34401
34402         mkdir, mkdirat: add tests
34403         * modules/mkdir-tests: New test.
34404         * tests/test-mkdir.h: New file.
34405         * tests/test-mkdir.c: Likewise.
34406         * tests/test-mkdirat.c: Likewise.
34407         * modules/openat-tests (Files): Add new files.
34408         (Makefile.am): Run new test.
34409
34410 2009-10-06  Eric Blake  <ebb9@byu.net>
34411
34412         doc: tweak *at function documentation
34413         * doc/posix-functions/faccessat.texi (faccessat): Mention
34414         known issue with replacement.
34415         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34416         * doc/posix-functions/linkat.texi (linkat): Likewise.
34417         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34418         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34419         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34420         * doc/posix-functions/renameat.texi (renameat): Likewise.
34421         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34422
34423         openat: fix GNU/Hurd bug in unlinkat
34424         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34425         broken.
34426         * doc/posix-functions/unlink.texi (unlink): Document this.
34427         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34428
34429         fdopendir: fix GNU/Hurd bug
34430         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34431         allowing non-directory fds.
34432         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34433         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34434         * modules/dirent (Makefile.am): Substitute it.
34435         * lib/dirent.in.h (fdopendir): Declare replacement.
34436         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34437         * tests/test-fdopendir.c (main): Test something other than
34438         /dev/null, since on Hurd that behaves like a directory.
34439
34440         test-symlink: port to GNU/Hurd
34441         * tests/test-symlink.h (test_symlink): Relax expected errno.
34442
34443         doc: tweak more cygwin information
34444         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34445         now compatible with glibc.
34446         * doc/posix-functions/getopt.texi (getopt): Likewise.
34447
34448         getopt-gnu: add another test
34449         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34450         guarantee behavior relied on by m4.
34451         * tests/test-getopt.c (main): Use it.
34452         * modules/getopt-posix-tests (Depends-on): Add setenv.
34453         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34454
34455         getopt: fix compilation on darwin
34456         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34457         include.
34458         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34459         Reported by Ludovic Courtès.
34460
34461 2009-10-06  Bruno Haible  <bruno@clisp.org>
34462
34463         * modules/size_max (Description): Discourage its use.
34464         Reported by Simon Josefsson.
34465
34466 2009-10-06  Jim Meyering  <meyering@redhat.com>
34467
34468         linkat: avoid compilation failure
34469         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34470
34471 2009-10-05  Eric Blake  <ebb9@byu.net>
34472
34473         linkat: support Linux 2.6.17
34474         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34475         linkat on Linux, but allow cache variable override.
34476         * lib/linkat.c (rpl_linkat): Define override.
34477         * modules/linkat (Depends-on): Add symlinkat.
34478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34479         * modules/unistd (Makefile.am): Substitute it.
34480         * lib/unistd.in.h (linkat): Declare replacement.
34481         Reported by Pádraig Brady.
34482
34483         quotearg: port test to systems with C.UTF-8 locale
34484         * tests/test-quotearg.c (struct result_strings): Add another
34485         member, differentiating between C.ASCII and C.UTF-8 handling.
34486         (compare_strings): Add parameter.
34487         (main): Adjust all callers.
34488
34489         getopt: avoid clash with FreeBSD _getopt_internal
34490         * lib/getopt.in.h (_getopt_internal): Override the name.
34491         * lib/getopt_int.h (includes): Pick up any overrides.
34492         Reported by Reuben Thomas.
34493
34494         hash: allow C89 compilation
34495         * lib/hash.c (check_tuning): Move declaration before statement.
34496         Reported by Reuben Thomas.
34497
34498 2009-10-05  Karl Berry  <karl@gnu.org>
34499
34500         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34501
34502 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34503             Bruno Haible  <bruno@clisp.org>
34504
34505         * lib/uname.c (uname): Use a table-driven algorithm to compute
34506         Windows NT versions.
34507
34508 2009-10-04  Bruno Haible  <bruno@clisp.org>
34509
34510         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34511         program_invocation_short_name.
34512         * modules/progname (configure.ac): Test for presence of
34513         program_invocation_short_name.
34514         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34515
34516 2009-10-04  Bruno Haible  <bruno@clisp.org>
34517
34518         * lib/progname.c (set_program_name): Fix comment.
34519         Reported by Jim Meyering.
34520
34521 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34522             Bruno Haible  <bruno@clisp.org>
34523
34524         * lib/uname.c: Include <string.h>.
34525         (uname): Do only one call to GetVersionEx in the common case.
34526
34527 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34528             Bruno Haible  <bruno@clisp.org>
34529
34530         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34531         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34532         (uname): Add support for Windows CE and various non-x86 CPU types.
34533
34534 2009-10-03  Bruno Haible  <bruno@clisp.org>
34535
34536         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34537         invocation to tests/configure.ac.
34538         Reported by Ian Beckwith <ianb@erislabs.net>.
34539
34540 2009-10-02  Eric Blake  <ebb9@byu.net>
34541
34542         fchdir: avoid compiler warning
34543         * lib/fchdir.c (canonicalize_file_name)
34544         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34545
34546         test-open: support mingw errno values
34547         * tests/test-open.h (test_open): Relax test.
34548         * tests/test-fopen.h (test_fopen): Likewise.
34549         * tests/test-openat-safer.c (main): Likewise.
34550
34551         open: fix opening directory on mingw
34552         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34553
34554         test-open: on GNU/Hurd, /dev/null is a directory
34555         * tests/test-fopen.h (main): Rename...
34556         (test_fopen): ...to this.  Use a guaranteed non-directory when
34557         confirming open behavior on trailing slash.
34558         * tests/test-openat-safer.c (main): Likewise.
34559         * tests/test-open.h (main): Likewise....
34560         (test_open): ...to this.
34561         * tests/test-fopen.c (main): Adjust caller.
34562         * tests/test-fopen-safer.c (main): Likewise.
34563         * tests/test-open.c (main): Likewise.
34564         * tests/test-fcntl-safer.c (main): Likewise.
34565         Reported by Samuel Thibault.
34566
34567         rename, fchdir: don't ignore chdir failure
34568         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34569         * lib/rename.c (rpl_rename) [W32]: Likewise.
34570         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34571         an empty destination directory if source cannot be renamed,
34572         although there is still possibility for failure.
34573         * doc/posix-functions/rename.texi (rename): Document the race.
34574         Reported by Jim Meyering.
34575
34576         maint: cleanup whitespace in recent commits
34577         * lib/rename.c (rpl_rename): Remove tabs.
34578         * tests/test-link.h (test_link): Likewise.
34579         * lib/fchdir.c (get_name): Likewise.
34580         Reported by Jim Meyering.
34581
34582 2009-10-02  Ben Pfaff  <blp@gnu.org>
34583
34584         relocatable-prog-wrapper: Add missing dependency on
34585         double-slash-root.
34586         * modules/relocatable-prog-wrapper: Add dependency.
34587         Reported by Ian Beckwith <ianb@erislabs.net>.
34588
34589 2009-10-02  Eric Blake  <ebb9@byu.net>
34590
34591         renameat: fix Solaris bugs
34592         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34593         needed fixing.
34594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34595         * modules/stdio (Makefile.am): Substitute it.
34596         * lib/stdio.in.h (renameat): Declare replacement.
34597         * lib/renameat.c (rpl_renameat): Implement fix.
34598
34599         renameat: new module
34600         * modules/renameat: New file.
34601         * lib/renameat.c (renameat): Likewise.
34602         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34604         * modules/stdio (Makefile.am): Substitute them.
34605         * lib/stdio.in.h (renameat): Declare it.
34606         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34607         * doc/posix-functions/renameat.texi (renameat): Likewise.
34608         * modules/renameat-tests: New test.
34609         * tests/test-renameat.c: Likewise.
34610
34611         rename: fix mingw bugs
34612         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34613         directory overwrite bugs.
34614
34615         rename: fix another cygwin 1.5 bug
34616         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34617         checks.
34618         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34619         unnecessary cygwin workarounds.  Also work around bug with moving
34620         full directory onto an empty one.
34621         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34622
34623         rename-dest-slash: merge into rename module
34624         * modules/rename-dest-slash (Status): Mark obsolete.
34625         (Depends-on): Add rename.
34626         (Files): Let rename do it all.
34627         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34628         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34629         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34630         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34631         * lib/rename.c (rpl_rename): Update comments.
34632
34633         rename: fix cygwin 1.5.x bugs
34634         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34635         * lib/rename.c (rpl_rename): Work around them.
34636         * modules/rename (Depends-on): Add same-inode.
34637
34638         rename: fix Solaris 10 bug
34639         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34640         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34641         was the only bug.
34642
34643         rename: fix Solaris 9 bug
34644         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34645         on non-directory.  Avoid calling exit.
34646         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34647         strdup.
34648         * modules/rename-tests (Depends-on): Drop lstat.
34649         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34650         (gl_PREREQ_RENAME): Delete unused macro.
34651
34652         rename-dest-slash: fix NetBSD bug
34653         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34654         links.
34655         * modules/rename-dest-slash (Depends-on): Add same-inode.
34656
34657         rename-tests: new test, exposes several platform bugs
34658         * modules/rename-tests: New file.
34659         * tests/test-rename.h: Likewise.
34660         * tests/test-rename.c: Likewise.
34661         * doc/posix-functions/rename.texi (rename): Improve documentation,
34662         including bugs that will eventually be fixed in gnulib.
34663
34664 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34665
34666         * lib/uname.c: Include <stdlib.h>
34667         (uname): Assume version info is available.
34668
34669 2009-10-02  Jim Meyering  <meyering@redhat.com>
34670
34671         gnu-web-doc-update: correct --help output
34672         * build-aux/gnu-web-doc-update: Make --help output relevant.
34673
34674         gnu-web-doc-update: add standard options
34675         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34676
34677         gnu-web-doc-update: New module.
34678         Use this script to automatically update the on-line web documentation
34679         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34680         * modules/gnu-web-doc-update: New file, from coreutils.
34681         * build-aux/gnu-web-doc-update: New script.
34682
34683 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34684
34685         link: LoadLibrary is not needed.
34686         * lib/link.c: Use GetModuleHandle.
34687
34688 2009-10-01  Eric Blake  <ebb9@byu.net>
34689
34690         getopt: bump serial number
34691         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34692         change.
34693
34694         tests: tighten link, rmdir, and remove tests
34695         * tests/test-link.h (includes): No need to use <config.h> here.
34696         Clean up if directory hard link was created, otherwise test for
34697         trailing '.'.
34698         * tests/test-linkat.c (main): Simplify.
34699         * tests/test-remove.c (main): Enhance test for trailing '.'.
34700         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34701
34702 2009-10-01  Jim Meyering  <meyering@redhat.com>
34703
34704         maint.mk: requiring "make major" was annoying, for a "minor" release.
34705         What is intended is "stable", to contrast with alpha and beta,
34706         so require "make stable", not "make major".
34707         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34708         (get_tool_versions): Likewise.
34709         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34710
34711 2009-09-30  Ben Pfaff  <blp@gnu.org>
34712
34713         Fix broken build of replacement for Windows tmpfile().
34714         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34715         flags argument added along with the 'mkostemp' module.
34716
34717 2009-09-28  Bruno Haible  <bruno@clisp.org>
34718
34719         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34720         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34721         to 'remove_elt'.
34722         (gl_list_remove): Update.
34723         * lib/gl_list.c (gl_list_remove): Update.
34724         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34725         to 'remove_elt'.
34726         (gl_oset_remove): Update.
34727         * lib/gl_list.c (gl_oset_remove): Update.
34728         Reported by Eric Blake.
34729
34730 2009-09-28  Eric Blake  <ebb9@byu.net>
34731
34732         doc: mention yet more cygwin 1.7 status
34733         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34734         cygwin.
34735         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34736         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34737
34738         argp: fix test failure
34739         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34740         that are not upper-case.  Pass correct range to tolower.
34741
34742 2009-09-27  Jim Meyering  <meyering@redhat.com>
34743
34744         test-yesno: work around sparc-dash here-document infelicity
34745         Without this change, the literal \177 byte in a here document
34746         would make dash 0.5.5.1-3 access uninitialized memory.
34747         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34748         Instead, use a marker, "@", and filter through tr to create the desired
34749         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34750
34751 2009-09-27  Bruno Haible  <bruno@clisp.org>
34752
34753         Disable untested support for new flavours of ACLs on AIX.
34754         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34755         progress.
34756         * lib/set-mode-acl.c (qset_acl): Likewise.
34757
34758 2008-12-07  Bruno Haible  <bruno@clisp.org>
34759
34760         Add support for new flavours of ACLs on AIX. (Untested.)
34761         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34762         (file_has_acl): Add support for newer AIX.
34763         * lib/set-mode-acl.c (qset_acl): Likewise.
34764         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34765         Rainer Tammer <tammer@tammer.net>.
34766
34767 2009-09-26  Eric Blake  <ebb9@byu.net>
34768
34769         argp: fix compilation of getopt
34770         * lib/getopt.in.h (includes): Use different guard than glibc.
34771         Reported by Sergey Poznyakoff.
34772
34773         doc: mention more cygwin 1.7 status
34774         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34775         bug.
34776         * doc/posix-functions/execl.texi (execl): Likewise.
34777         * doc/posix-functions/execle.texi (execle): Likewise.
34778         * doc/posix-functions/execlp.texi (execlp): Likewise.
34779         * doc/posix-functions/execv.texi (execv): Likewise.
34780         * doc/posix-functions/execve.texi (execve): Likewise.
34781         * doc/posix-functions/execvp.texi (execvp): Likewise.
34782         * doc/glibc-functions/canonicalize_file_name.texi
34783         (canonicalize_file_name): Cygwin 1.7 now provides this.
34784         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34785         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34786         on AT_SYMLINK_NOFOLLOW.
34787
34788 2009-09-24  Eric Blake  <ebb9@byu.net>
34789
34790         test-linkat: make test more robust
34791         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34792
34793         getopt: fix inclusion guards for cygwin
34794         * modules/getopt-posix (Depends-on): Add include-next.
34795         (Makefile.am): Substitute more items in replacement header.
34796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34797         <getopt.h>.
34798         * lib/getopt.in.h (includes): Use split inclusion guard, and
34799         prefer <getopt.h> over include <unistd.h> when one is present.
34800         (option): Also override name of 'struct option'.
34801
34802         same-inode: revert prior change; it is not yet ready
34803         * NEWS: Undo mention of this change.
34804         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34805         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34806         * lib/cycle-check.c (cycle_check): Likewise.
34807         * lib/same.c (same_name): Likewise.
34808         * lib/at-func2.c (at_func2): Likewise.
34809
34810 2009-09-23  Eric Blake  <ebb9@byu.net>
34811
34812         linkat: new module
34813         * modules/linkat: New file.
34814         * lib/at-func2.c (at_func2): Likewise.
34815         * lib/linkat.c (linkat): Likewise.
34816         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34817         * lib/openat-priv.h (at_func2): Add declaration.
34818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34819         * modules/unistd (Makefile.am): Substitute them.
34820         * lib/unistd.in.h (linkat): Declare it.
34821         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34822         * doc/posix-functions/linkat.texi (linkat): Likewise.
34823         * doc/posix-functions/link.texi (link): Tweak wording.
34824         * tests/test-link.c (main): Move guts...
34825         * tests/test-link.h (test_link): ...into new file.
34826         * modules/linkat-tests: New test.
34827         * tests/test-linkat.c: Likewise.
34828         * modules/link-tests (Files): Ship new file.
34829         (Depends-on): Add stdbool.
34830
34831         dirname: add library-safe mdir_name
34832         * lib/dirname.h (mdir_name): New prototype.
34833         * lib/dirname.c (dir_name): Move guts...
34834         (mdir_name): ...to new function that avoids xalloc_die.
34835
34836         fchdir: another mingw fix
34837         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34838         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34839         on mingw (where it has not yet been ported), and make it optional
34840         elsewhere.
34841         (_gl_register_fd): Use it.
34842
34843         same-inode: make SAME_INODE tri-state, to port to mingw
34844         * NEWS: Mention this change.
34845         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34846         st_ino always being 0.
34847         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34848         * lib/cycle-check.c (cycle_check): Likewise.
34849         * lib/same.c (same_name): Likewise.
34850
34851         lstat: avoid mingw compilation error
34852         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34853         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34854         lstat ourselves.
34855         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34856         was adequate.
34857         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34858         the checks for lstat.
34859         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34860
34861         link: fix test failure on Solaris 9
34862         * lib/link.c (rpl_link): Don't assume link will catch bogus
34863         trailing slash on source.
34864
34865         test-symlinkat: enhance test
34866         * tests/test-readlink.c (main): Move guts...
34867         * tests/test-readlink.h (test_readlink): ...into new file.
34868         * tests/test-symlink.c (main): Move guts...
34869         * tests/test-symlink.h (test_symlink): ...into new file.
34870         * tests/test-symlinkat.c (main): Use new files for further
34871         coverage.
34872         (do_symlink, do_readlink): New helper functions.
34873         * modules/symlink-tests (Files): Ship new file.
34874         (Depends-on): Add stdbool.
34875         * modules/readlink-tests (Files): Ship new file.
34876         (Depends-on): Add stdbool.
34877         * modules/symlinkat-tests (Files): Use new files.
34878
34879 2009-09-23  Eric Blake  <ebb9@byu.net>
34880
34881         readlink: document portability issue with symlink length
34882         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34883         systems have bogus st_size on symlinks, and mention the
34884         areadlink-with-size module.
34885         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34886         * doc/posix-functions/readlink.texi (readlink): Mention the
34887         areadlink module, and ERANGE failure.
34888         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34889         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34890
34891         readlink: fix Solaris 9 bug with trailing slash
34892         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34893         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34894         * doc/posix-functions/readlink.texi (readlink): Document this.
34895         * modules/readlink-tests: New test.
34896         * tests/test-readlink.c: Likewise.
34897
34898         readlink: fix cygwin 1.5.x bug with return type
34899         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34900         * lib/unistd.in.h (readlink): Use ssize_t.
34901         * lib/readlink.c (readlink): Likewise.
34902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34903         * modules/unistd (Makefile.am): Substitute it.
34904         * lib/unistd.in.h (readlink): Declare replacement.
34905         * doc/posix-functions/readlink.texi (readlink): Document this.
34906
34907         symlink: use throughout gnulib
34908         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34909         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34910         symlink is not used.
34911         * modules/symlinkat (Depends-on): Add symlink.
34912         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34913         * modules/canonicalize-tests (Depends-on): Likewise.
34914         * modules/lstat-tests (Depends-on): Likewise.
34915         * modules/openat-tests (Depends-on): Likewise.
34916         * modules/remove-tests (Depends-on): Likewise.
34917         * modules/rmdir-tests (Depends-on): Likewise.
34918         * modules/unlink-tests (Depends-on): Likewise.
34919         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34920         * tests/test-canonicalize.c (symlink): Likewise.
34921         * tests/test-fstatat.c (symlink): Likewise.
34922         * tests/test-lstat.c (symlink): Likewise.
34923         * tests/test-remove.c (symlink): Likewise.
34924         * tests/test-rmdir.c (symlink): Likewise.
34925         * tests/test-unlink.c (symlink): Likewise.
34926         * tests/test-unlinkat.c (symlink): Likewise.
34927
34928         symlink: new module, for Solaris 9 bug
34929         * modules/symlink: New file.
34930         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34931         * lib/symlink.c: Likewise.
34932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34933         * modules/unistd (Makefile.am): Substitute them.
34934         * lib/unistd.in.h (symlink): Declare replacement.
34935         * MODULES.html.sh (File system functions): Mention it.
34936         * doc/posix-functions/symlink.texi (symlink): Likewise.
34937         * modules/symlink-tests: New test.
34938         * tests/test-symlink.c: Likewise.
34939
34940 2009-09-23  Bruno Haible  <bruno@clisp.org>
34941
34942         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34943         when needed.
34944         Test case: gnulib-tool --import --with-tests atexit inttypes.
34945         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34946
34947 2009-09-23  Bruno Haible  <bruno@clisp.org>
34948
34949         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34950         subcommand, not in a subshell.
34951
34952 2009-09-22  Eric Blake  <ebb9@byu.net>
34953
34954         unistd: sort replacement declarations
34955         * lib/unistd.in.h: Sort declarations.
34956
34957         open, openat: minor optimization
34958         * lib/open.c (open): If open succeeded, len is non-zero.
34959         * lib/openat.c (rpl_openat): Likewise.
34960
34961         link-follow: ensure correct result
34962         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34963         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34964         distinguish between possible failures.
34965
34966 2009-09-21  Eric Blake  <ebb9@byu.net>
34967
34968         fts: avoid compiler warning
34969         * lib/fts.c (dirent_inode_sort_may_be_useful)
34970         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34971
34972 2009-09-19  Bruno Haible  <bruno@clisp.org>
34973
34974         * lib/progreloc.c (canonicalize_file_name): New declaration.
34975
34976 2009-09-19  Eric Blake  <ebb9@byu.net>
34977
34978         link: fix quoting
34979         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34980
34981         openat: fix openat bugs on Solaris 9
34982         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34983         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34984         * modules/openat (Depends-on): Add open.
34985         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34986         * modules/fcntl-h (Makefile.am): Substitute it.
34987         * lib/fcntl.in.h (openat): Declare replacement.
34988         * doc/posix-functions/openat.texi (openat): Document this.
34989
34990         openat: move fstatat and unlinkat into correct files
34991         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34992         compiled.
34993         * lib/openat.c (fstatat, unlinkat): Move...
34994         * lib/fstatat.c (fstatat): ...into correct files.
34995         * lib/unlinkat.c (unlinkat): Likewise.
34996
34997         openat: fix unlinkat bugs on Solaris 9
34998         * lib/unlinkat.c (unlinkat): New file.
34999         * modules/openat (Depends-on): Add unlink.
35000         (Files): Distribute it.
35001         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35002         trailing slash behavior is broken.
35003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35004         * modules/unistd (Makefile.am): Substitute it.
35005         * lib/unistd.in.h (unlinkat): Declare replacement.
35006         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35007
35008         openat: fix fstatat bugs on Solaris 9
35009         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35010         stat.
35011         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35012
35013         test-unlinkat: enhance test, to expose Solaris 9 bug
35014         * tests/test-unlink.c (main): Factor guts...
35015         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35016         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35017         * tests/test-rmdir.c (main): Adjust caller.
35018         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35019         (unlinker): New helper function.
35020         (rmdirat): Enhance check.
35021         * modules/rmdir-tests (Depends-on): Add stdbool.
35022         * modules/unlink-tests (Depends-on): Likewise.
35023         (Files): Add test-unlink.h.
35024         * modules/openat-tests (Files): Likewise.
35025         (Depends-on): Add unlinkdir.
35026
35027         test-fstatat: new test, to expose Solaris 9 bugs
35028         * tests/test-stat.c (main): Factor guts...
35029         * tests/test-stat.h (test_stat_func): ...into new file.
35030         * tests/test-lstat.c (main): Factor guts...
35031         * tests/test-lstat.h (test_lstat_func): ...into new file.
35032         * tests/test-fstatat.c: New file.
35033         * modules/stat-tests (Files): Add test-stat.h.
35034         * modules/lstat-tests (Files): Add test-lstat.h.
35035         (Depends-on): Add stdbool.
35036         * modules/openat-tests (Depends-on): Add pathmax.
35037         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35038         (Makefile.am): Run new test.
35039
35040         remove: new module, for mingw and Solaris 9 bugs
35041         * modules/remove: New file.
35042         * lib/remove.c: Likewise.
35043         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35045         * modules/stdio (Makefile.am): Use them.
35046         * lib/stdio.in.h (remove): Declare replacement.
35047         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35048         * doc/posix-functions/remove.texi (remove): Likewise.
35049         * modules/remove-tests: New test.
35050         * tests/test-remove.c: Likewise.
35051
35052         unlink: new module, for Solaris 9 bug
35053         * modules/unlink: New file.
35054         * lib/unlink.c: Likewise.
35055         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35057         * modules/unistd (Makefile.am): Use them.
35058         * lib/unistd.in.h (stat): Declare replacement.
35059         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35060         * doc/posix-functions/unlink.texi (unlink): Likewise.
35061         * modules/unlink-tests: New test.
35062         * tests/test-unlink.c: Likewise.
35063
35064         lstat: fix Solaris 9 bug
35065         * lib/lstat.c (lstat): Also check for trailing slash on
35066         non-symlink, non-directories.  Use stat module to simplify logic.
35067         * doc/posix-functions/lstat.texi (lstat): Document it.
35068         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35069         (configure.ac): Check for symlink.
35070         * tests/test-lstat.c (main): Add more tests.
35071
35072         stat: add as dependency to other modules
35073         * modules/chown (Depends-on): Add stat.
35074         * modules/euidaccess (Depends-on): Likewise.
35075         * modules/fchdir (Depends-on): Likewise.
35076         * modules/isdir (Depends-on): Likewise.
35077         * modules/link (Depends-on): Likewise.
35078         * modules/lstat (Depends-on): Likewise.
35079         * modules/mkdir-p (Depends-on): Likewise.
35080         * modules/modechange (Depends-on): Likewise.
35081         * modules/open (Depends-on): Likewise.
35082         * modules/readlink (Depends-on): Likewise.
35083         * modules/same (Depends-on): Likewise.
35084
35085         stat: fix Solaris 9 bug
35086         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35087         slash.
35088         * lib/stat.c (rpl_stat): Work around it.
35089         * doc/posix-functions/stat.texi (stat): Update documentation.
35090
35091         stat: new module, for mingw bug
35092         * modules/stat: New file.
35093         * lib/stat.c: Likewise.
35094         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35095         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35096         * modules/sys_stat (Makefile.am): Use them.
35097         * lib/sys_stat.in.h (stat): Declare replacement.
35098         * lib/openat.c (fstatat): Deal with lstat and stat being function
35099         macros.
35100         * modules/openat (Depends-on): Add inline.
35101         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35102         * doc/posix-functions/stat.texi (stat): Likewise.
35103         * modules/stat-tests: New test.
35104         * tests/test-stat.c: Likewise.
35105
35106 2009-09-19  Jim Meyering  <meyering@redhat.com>
35107
35108         syntax-check: detect unnecessary inclusion of canonicalize.h
35109         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35110
35111 2009-09-19  Eric Blake  <ebb9@byu.net>
35112
35113         canonicalize-lgpl: adjust clients to use correct header
35114         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35115         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35116         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35117         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35118         * lib/progreloc.c (includes): Likewise.
35119
35120 2009-09-19  Jim Meyering  <meyering@redhat.com>
35121
35122         test-posixtm.c: correct a comment
35123         * tests/test-posixtm.c: Correct first-line comment.
35124         Spotted by Eric Blake.
35125
35126 2009-09-16  Jim Meyering  <meyering@redhat.com>
35127
35128         posixtm-tests: make T const-correct; add a test case
35129         * tests/test-posixtm.c (T): Declare const.
35130         Add a test for -(2^31+1).
35131         Remove useless can-succeed-only-in-2002 test.
35132
35133         posixtm-tests: adjust the sole failing test
35134         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35135         expected output matches what mktime now produces.  Cross-checked via
35136         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35137
35138         posixtm: move #ifdef'd tests into a new module
35139         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35140         * tests/test-posixtm.c: ... this new file.
35141         * modules/posixtm-tests: New module.
35142
35143 2009-09-19  Eric Blake  <ebb9@byu.net>
35144
35145         openat: simplify use of at-func.c
35146         * lib/at-func.c (includes): Include prerequisites here, to
35147         simplify requirements on client files.
35148         * lib/openat-priv.h: Add double-inclusion guard.
35149         * lib/faccessat.c (includes): Simplify.
35150         * lib/fchmodat.c (includes): Likewise.
35151         * lib/fchownat.c (includes): Likewise.
35152         * lib/mkdirat.c (includes): Likewise.
35153         * lib/mkfifoat.c (includes): Likewise.
35154         * lib/symlinkat.c (includes): Likewise.
35155
35156         openat: allow return of fd 0
35157         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35158         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35159         unistd-safer.
35160         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35161         <fcntl.h>; this module does not leak fds.
35162         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35163         must be allowed to return 0, leaving openat_safer to add the
35164         safety.
35165         (openat_permissive): Avoid writing to just-opened fd 2 if
35166         restoring the current directory fails.
35167         * lib/openat-die.c (openat_restore_fail): Add comment.
35168         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35169         (save_cwd): Guarantee safe fd, but without use of open_safer.
35170         * tests/test-openat.c: New test.
35171         * modules/openat-tests (Files, Makefile.am): Distribute and build
35172         new file.
35173
35174         relocatable-prog-wrapper: fix build
35175         * modules/relocatable-prog-wrapper (Files): Update name of
35176         canonicalize m4 file, broken on 2009-09-17.
35177         Reported by emad hajjar <aleppos@hotmail.com>.
35178
35179 2009-09-19  Bruno Haible  <bruno@clisp.org>
35180
35181         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35182         * lib/safe-alloc.c: Likewise.
35183         Reported by Ian Beckwith <ianb@erislabs.net>.
35184
35185 2009-09-18  Bruno Haible  <bruno@clisp.org>
35186
35187         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35188         Reported by <erobles@sensacd.com.mx>.
35189
35190 2009-09-17  Eric Blake  <ebb9@byu.net>
35191
35192         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35193         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35194         slashes when checking if last component is missing.
35195         * tests/test-canonicalize.c (main): Test this.
35196
35197         canonicalize, canonicalize-lgpl: honor // if distinct from /
35198         * modules/canonicalize (Files): Add double-slash-root.m4.
35199         * modules/canonicalize-lgpl (Files): Likewise.
35200         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35201         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35202         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35203         fallback definition.
35204         (canonicalize_filename_mode): Use it to protect //.
35205         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35206         (__realpath): Likewise.
35207         * tests/test-canonicalize.c (main): Test this.
35208         * tests/test-canonicalize-lgpl.c (main): Likewise.
35209         * modules/canonicalize-tests (Depends-on): Add same-inode.
35210         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35211
35212         canonicalize-lgpl: fix glibc bug with trailing slash
35213         * m4/canonicalize-lgpl.m4: Move contents...
35214         * m4/canonicalize.m4: ...here.
35215         (gl_CANONICALIZE_LGPL): Factor realpath check...
35216         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35217         glibc 2.3.5 bug, fixed 2005-04-27.
35218         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35219         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35220         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35221         * modules/canonicalize-lgpl (Files): Manage file rename.
35222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35223         * modules/stdlib (Makefile.am): Substitute witness.
35224         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35225         is needed.
35226         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35227         replacement is required.
35228         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35229         * doc/glibc-functions/canonicalize_file_name.texi
35230         (canonicalize_file_name): Document this.
35231         * doc/posix-functions/realpath.texi (realpath): Likewise.
35232
35233         canonicalize-lgpl: reject non-directory with trailing slash
35234         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35235         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35236         catches failures in glibc 2.3.5.
35237         * tests/test-canonicalize.c (main): Likewise.
35238
35239         canonicalize-lgpl: use native realpath if it works
35240         * lib/canonicalize-lgpl.c (realpath): Guard with
35241         FUNC_REALPATH_WORKS.
35242         * lib/stdlib.in.h (realpath): Make declaration optional based on
35243         HAVE_REALPATH.
35244         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35245         native realpath works.
35246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35247         * modules/stdlib (Makefile.am): Substitute witness.
35248
35249         canonicalize, canonicalize-lgpl: use <stdlib.h>
35250         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35251         (Include): Mention <stdlib.h>.
35252         (configure.ac): Mention functions we provide.
35253         * modules/canonicalize (configure.ac): Likewise.
35254         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35255         realpath if canonicalize_file_name is missing.
35256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35257         * modules/stdlib (Makefile.am): Substitute witnesses.
35258         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35259         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35260         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35261         * NEWS: Document this.
35262         * doc/glibc-functions/canonicalize_file_name.texi
35263         (canonicalize_file_name): Likewise.
35264         * doc/posix-functions/realpath.texi (realpath): Likewise.
35265         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35266
35267         test-canonicalize: consolidate into single C program
35268         * tests/test-canonicalize.sh: Delete; move setup into...
35269         * tests/test-canonicalize.c (main): ...the program, making it
35270         easier to run in debugger.  Add some tests.
35271         * modules/canonicalize-tests (Files): Remove unused file.
35272         (Depends-on): Add progname.
35273         (configure.ac, Makefile.am): Simplify.
35274
35275         test-canonicalize-lgpl: consolidate into single C program
35276         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35277         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35278         easier to run in debugger.  Add some tests.
35279         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35280         (configure.ac, Makefile.am): Simplify.
35281
35282         canonicalize: avoid resolvepath
35283         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35284         unnecessary checks.
35285         * lib/canonicalize.c (includes): Simplify.
35286         (canonicalize_file_name): Drop resolvepath implementation.
35287         * modules/canonicalize (Depends-on): Drop filenamecat.
35288
35289         canonicalize: don't lose errno
35290         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35291         over calls to free.
35292
35293         canonicalize: simplify errno handling
35294         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35295         assignment.
35296
35297         canonicalize, canonicalize-lgpl: update module dependencies
35298         * modules/canonicalize (Depends-on): Add extensions, lstat,
35299         pathmax, stdlib.
35300         (Files): Drop pathmax.h.
35301         (configure.ac): Adjust macro name.
35302         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35303         lstat, stdlib, sys_stat.
35304         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35305         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35306         extensions.
35307         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35308         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35309         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35310         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35311         declaration, if available.
35312         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35313         we can rely on the readlink module.
35314         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35315         (includes): Use <unistd.h> unconditionally.
35316
35317 2009-09-17  Eric Blake  <ebb9@byu.net>
35318
35319         maint: make Include sections of modules consistent
35320         * modules/alloca: Use only header name; no need to list #include.
35321         * modules/alloca-opt: Likewise.
35322         * modules/arpa_inet: Likewise.
35323         * modules/canon-host: Likewise.
35324         * modules/configmake: Likewise.
35325         * modules/dirent: Likewise.
35326         * modules/eealloc: Likewise.
35327         * modules/environ: Likewise.
35328         * modules/fchdir: Likewise.
35329         * modules/fcntl: Likewise.
35330         * modules/fcntl-h: Likewise.
35331         * modules/gethrxtime: Likewise.
35332         * modules/gettime: Likewise.
35333         * modules/ignore-value: Likewise.
35334         * modules/inet_ntop: Likewise.
35335         * modules/inet_pton: Likewise.
35336         * modules/inttypes: Likewise.
35337         * modules/isnand-nolibm: Likewise.
35338         * modules/isnanf-nolibm: Likewise.
35339         * modules/mbchar: Likewise.
35340         * modules/mbfile: Likewise.
35341         * modules/mbiter: Likewise.
35342         * modules/mbuiter: Likewise.
35343         * modules/netdb: Likewise.
35344         * modules/netinet_in: Likewise.
35345         * modules/nproc: Likewise.
35346         * modules/pagealign_alloc: Likewise.
35347         * modules/poll: Likewise.
35348         * modules/printf-frexp: Likewise.
35349         * modules/pthread: Likewise.
35350         * modules/putenv: Likewise.
35351         * modules/random_r: Likewise.
35352         * modules/relocatable-prog: Likewise.
35353         * modules/search: Likewise.
35354         * modules/select: Likewise.
35355         * modules/selinux-h: Likewise.
35356         * modules/settime: Likewise.
35357         * modules/signal: Likewise.
35358         * modules/size_max: Likewise.
35359         * modules/socklen: Likewise.
35360         * modules/ssize_t: Likewise.
35361         * modules/stdarg: Likewise.
35362         * modules/stdbool: Likewise.
35363         * modules/stddef: Likewise.
35364         * modules/stdint: Likewise.
35365         * modules/stdio: Likewise.
35366         * modules/stdlib: Likewise.
35367         * modules/string: Likewise.
35368         * modules/strings: Likewise.
35369         * modules/sys_file: Likewise.
35370         * modules/sys_ioctl: Likewise.
35371         * modules/sys_select: Likewise.
35372         * modules/sys_socket: Likewise.
35373         * modules/sys_stat: Likewise.
35374         * modules/sys_time: Likewise.
35375         * modules/sys_times: Likewise.
35376         * modules/sys_utsname: Likewise.
35377         * modules/sys_wait: Likewise.
35378         * modules/sysexits: Likewise.
35379         * modules/time: Likewise.
35380         * modules/times: Likewise.
35381         * modules/tmpfile: Likewise.
35382         * modules/trim: Likewise.
35383         * modules/unistd: Likewise.
35384         * modules/wchar: Likewise.
35385         * modules/wctype: Likewise.
35386
35387 2009-09-17  Bruno Haible  <bruno@clisp.org>
35388
35389         Make getdate.y compile on QNX and NetBSD 5 / i386.
35390         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35391         TIME_T_FITS_IN_LONG_INT.
35392         * lib/getdate.y (long_time_t): New type.
35393         (relative_time): Change type of 'seconds' field to long_time_t.
35394         (get_date): Update types of local variables. Check against overflow
35395         during conversion from long_time_t to time_t.
35396         Reported by Matt Kraai <kraai@ftbfs.org>
35397         and Hasso Tepper <hasso@netbsd.org>.
35398
35399 2009-09-17  Bruno Haible  <bruno@clisp.org>
35400
35401         * modules/COPYING: Update copyright years.
35402         * modules/README: Likeiwse.
35403         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35404         Reported by Ian Beckwith <ianb@erislabs.net>.
35405
35406 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35407
35408         * users.txt: Update references for gnuit package.
35409
35410 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35411
35412         * m4/getdelim.m4: Fix typo in copyright line.
35413
35414 2009-09-17  Bruno Haible  <bruno@clisp.org>
35415
35416         * lib/atoll.c: Use the standard header with GPL copyright.
35417         * lib/argz.in.h: Likewise.
35418         * lib/glob.c: Likewise.
35419         * lib/glob-libc.h: Likewise.
35420         * lib/random_r.c: Likewise.
35421         * lib/siglist.h: Likewise.
35422         * lib/strsignal.c: Likewise.
35423         Reported by Ian Beckwith <ianb@erislabs.net>.
35424
35425 2009-09-17  Eric Blake  <ebb9@byu.net>
35426
35427         rmdir: ensure correct dependency order
35428         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35429
35430 2009-09-17  Bruno Haible  <bruno@clisp.org>
35431
35432         Disable assertion that fails on NetBSD 5 / i386.
35433         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35434         Reported by Sam Steingold <sds@gnu.org>
35435         and Hasso Tepper <hasso@netbsd.org>.
35436
35437 2009-09-16  Eric Blake  <ebb9@byu.net>
35438
35439         unlinkdir: port to mingw
35440         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35441         on which no one can unlink a directory.
35442
35443         stdlib: sort witness names
35444         * modules/stdlib (Makefile.am): Sort replacements.
35445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35446         * lib/stdlib.in.h: Likewise.
35447
35448         parse-duration-tests: avoid link failure
35449         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35450         LIBINTL.
35451         Reported by Tom G. Christensen.
35452
35453         openat-tests: ensure unlinkat behaves like rmdir
35454         * tests/test-rmdir.c (main): Factor guts...
35455         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35456         * modules/rmdir-tests (Files): Ship new file.
35457         * modules/openat-tests: New test.
35458         * tests/test-unlinkat.c: Likewise.
35459
35460         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35461         * modules/rmdir-errno (Status, Notice): Now obsolete.
35462
35463         rmdir: work around cygwin 1.5.x and mingw bugs
35464         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35465         * lib/rmdir.c (rmdir): Work around it.
35466         * modules/rmdir (Status, Notice): No longer obsolete.
35467         (Files): Add dos.m4.
35468         (Depends-on): Add unistd.
35469         (configure.ac): Set witnesses.
35470         (License): Relax to LGPLv2+.
35471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35472         * modules/unistd (Makefile.am): Substitute witnesses.
35473         * lib/unistd.in.h (rmdir): Declare replacement.
35474         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35475         * modules/rmdir-tests: New tests.
35476         * tests/test-rmdir.c: Likewise.
35477
35478 2009-09-15  Eric Blake  <ebb9@byu.net>
35479
35480         fchdir: improve use of replacement functions
35481         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35482         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35483         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35484         REPLACE_CLOSEDIR.
35485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35486         * modules/sys_stat (Makefile.am): Substitute correct witness.
35487         * modules/dirent (Makefile.am): Likewise.
35488         * modules/unistd (Makefile.am): Likewise.
35489         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35490         * lib/unistd.in.h (dup): Likewise.
35491         * lib/sys_stat.in.h (fstat): Likewise.
35492
35493         maint: ignore gnulib-tool temp files
35494         * .gitignore: Ignore files created during gnulib-tool --test.
35495
35496 2009-09-13  Jim Meyering  <meyering@redhat.com>
35497
35498         posixtm: don't reject a time that specify "60" as the number of seconds
35499         * lib/posixtm.c (posixtime): The code to reject invalid dates
35500         would also reject a time specified with the .60 suffix.
35501         But POSIX allows that, in order to accommodate leap seconds.
35502         So don't reject it.
35503         (main): Adjust tests accordingly.
35504         * modules/posixtm (Depends-on): Add stpcpy.
35505
35506 2009-09-11  Jim Meyering  <meyering@redhat.com>
35507
35508         announce-gen: include [$release_type] in emitted Subject:
35509         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35510         e.g., [stable] in the emitted Subject: line.
35511
35512 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35513
35514         Remove obsolete macros from several modules.
35515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35516         obsolete Autoconf macros with their modern counterparts.
35517         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35518         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35519         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35520         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35521         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35522         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35524         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35525         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35526         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35527         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35528         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35529         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35530         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35531         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35532         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35533         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35534         * m4/time_r.m4 (gl_TIME_R): Likewise.
35535         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35536         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35537         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35538
35539         Fix copyright header in build-aux scripts.
35540         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35541         recommendation.
35542         * build-aux/ncftpput-ftp: Likewise.
35543         * build-aux/update-copyright: Likewise.
35544
35545 2009-09-09  Eric Blake  <ebb9@byu.net>
35546
35547         test-link: allow Linux choice of errno
35548         * tests/test-link.c (main): Relax test for alternate error.
35549
35550         strndup: fix improper m4 caching
35551         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35552         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35553         (gl_PREREQ_STRNDUP): Delete.
35554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35555         * modules/string (Makefile.am): Substitute it.
35556         * lib/string.in.h (strndup): Modernize prototype.
35557
35558         getcwd: port to mingw
35559         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35560         different from the POSIX assumptions made throughout the getcwd
35561         module; fortunately, the mingw getcwd does not need replacement.
35562         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35563         * modules/getcwd-tests: New test.
35564         * tests/test-getcwd.c: Likewise.
35565
35566         link: fix platform bugs
35567         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35568         * lib/link.c (link): Work around them.  Fix related mingw bug.
35569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35570         * modules/unistd (Makefile.am): Substitute it.
35571         * lib/unistd.in.h (link): Declare replacement.
35572         * doc/posix-functions/link.texi (link): Document this.
35573         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35574
35575         test-link: consolidate into single C program, test more cases
35576         * tests/test-link.sh: Delete.
35577         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35578         at least Cygwin and Solaris.
35579         * modules/link-tests (Files): Remove unused file.
35580         (Depends-on): Add errno, sys_stat.
35581         (Makefile.am): Simplify.
35582
35583 2009-09-08  Bruno Haible  <bruno@clisp.org>
35584
35585         Work around towlower, towupper bug on mingw.
35586         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35587         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35588         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35589         * doc/posix-functions/towupper.texi: Likewise.
35590         Reported by Eric Blake.
35591
35592 2009-09-08  Jim Meyering  <meyering@redhat.com>
35593
35594         build: don't try to run autoheader if we don't use it
35595         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35596         is not used in configure.ac.
35597
35598 2009-09-08  Eric Blake  <ebb9@byu.net>
35599
35600         euidaccess: fix compilation error
35601         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35602
35603         rawmemchr: relax license
35604         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35605         okay.
35606         Reported by Jim Meyering.
35607
35608         mkfifoat: new module
35609         * modules/mkfifoat: New file.
35610         * lib/mkfifoat.c: Likewise.
35611         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35612         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35613         * modules/sys_stat (Makefile.am): Use them.
35614         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35615         * MODULES.html.sh (File system functions): Mention module.
35616         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35617         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35618         * modules/mkfifoat-tests: New test.
35619         * tests/test-mkfifoat.c: Likewise.
35620
35621         strchrnul: relax license
35622         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35623         okay.
35624         Reported by Jim Meyering.
35625
35626 2009-09-08  Eric Blake  <ebb9@byu.net>
35627
35628         fstatat: fix compilation on Solaris
35629         * lib/fstatat.c (includes): Add fcntl.h.
35630         Reported by Pádraig Brady.
35631
35632 2009-09-07  Eric Blake  <ebb9@byu.net>
35633
35634         rename: modernize replacement
35635         * modules/rename (Depends-on): Add stdio.
35636         (configure.ac): Declare witness.
35637         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35638         stdio take care of replacement.
35639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35640         * modules/stdio (Makefile.am): Substitute them.
35641         * lib/stdio.in.h (rename): Declare replacement.
35642         * lib/rename.c (includes): Allow cross-compilation to non-windows
35643         machines.
35644         * doc/posix-functions/rename.texi (rename): Improve
35645         documentation.
35646
35647         stdio: sort witness names
35648         * modules/stdio (Makefile.am): Sort replacements.
35649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35650         * lib/stdio.in.h: Likewise.
35651
35652         getcwd: minor cleanups
35653         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35654         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35655
35656         openat: provide more convenience names
35657         * modules/faccessat (configure.ac): Add C witness.
35658         * lib/unistd.in.h (readlinkat): Fix typo.
35659         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35660         convenience wrappers.
35661         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35662         wrappers in syntax checks.
35663
35664 2009-09-06  Eric Blake  <ebb9@byu.net>
35665
35666         doc: fix comments in recent patches
35667         * lib/faccessat.c: Mention correct function.
35668         * lib/fchmodat.c: Likewise.
35669         * lib/fchownat.c: Likewise.
35670         * lib/symlinkat.c: Likewise.
35671         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35672         constants.
35673
35674         faccessat, symlinkat: continue cleanup of previous patch
35675         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35676         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35677         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35679         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35680         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35681         set.
35682
35683 2009-09-06  Bruno Haible  <bruno@clisp.org>
35684
35685         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35686         (fstatat): Declare if GNULIB_FSTATAT is set.
35687         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35688         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35689         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35690         * modules/fcntl-h (Files): Remove m4/openat.m4.
35691         * modules/sys_stat (Files): Remove m4/openat.m4.
35692         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35693         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35694         * modules/unistd (Files): Remove m4/openat.m4.
35695         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35696         GNULIB_OPENAT.
35697         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35698         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35699         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35700         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35701         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35702         gl_OPENAT_DEFAULTS.
35703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35704         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35705         Don't require gl_OPENAT_DEFAULTS.
35706         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35707         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35708         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35709         (gl_OPENAT_DEFAULTS): Remove macro.
35710
35711 2009-09-06  Bruno Haible  <bruno@clisp.org>
35712
35713         * modules/openat (configure.ac): Remove unneeded witness.
35714
35715 2009-09-06  Bruno Haible  <bruno@clisp.org>
35716
35717         Set errno to ENOSYS when a function is entirely unsupported.
35718         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35719         EOPNOTSUPP.
35720         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35721         * modules/chown (Depends-on): Remove errno.
35722
35723 2009-09-06  Bruno Haible  <bruno@clisp.org>
35724
35725         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35726
35727 2009-09-06  Bruno Haible  <bruno@clisp.org>
35728
35729         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35730
35731 2009-09-06  Ben Pfaff  <blp@gnu.org>
35732             Bruno Haible  <bruno@clisp.org>
35733
35734         Work around a glibc bug in strtok_r.
35735         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35736         Undefine if UNDEFINE_STRTOK_R is set.
35737         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35739         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35740         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35741         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35742         UNDEFINE_STRTOK_R.
35743         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35744
35745 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35746
35747         exclude: minor fix
35748         * lib/exclude.c: Include wctype.h
35749
35750 2009-09-06  Akim Demaille  <demaille@gostai.com>
35751
35752         bootstrap: improve error message
35753         * build-aux/bootstrap (find_tool): Upon failure, report the list
35754         of candidates.
35755         Honor the initial value of the envvar.
35756
35757 2009-09-05  Eric Blake  <ebb9@byu.net>
35758
35759         symlinkat: new module
35760         * modules/symlinkat: New file.
35761         * lib/symlinkat.c: Likewise.
35762         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35764         * modules/unistd (Makefile.am): Use them.
35765         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35766         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35767         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35768         * MODULES.html.sh (File system functions): Mention module.
35769         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35770         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35771         * modules/symlinkat-tests: New test.
35772         * tests/test-symlinkat.c: Likewise.
35773
35774         test-openat-safer: add more checks
35775         * tests/test-openat-safer.c (main): Check more code paths.
35776
35777 2009-09-05  Jim Meyering  <meyering@redhat.com>
35778
35779         syntax-check: detect unnecessary inclusion of openat.h
35780         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35781
35782 2009-09-05  Bruno Haible  <bruno@clisp.org>
35783
35784         Support towlower, towupper.
35785         * doc/posix-functions/towlower.texi: Mention module wctype.
35786         * doc/posix-functions/towupper.texi: Likewise.
35787         * lib/wctype.in.h (towlower, towupper): New functions.
35788         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35789         (ASSERT): New macro.
35790         (e): New variable.
35791         (main): Test also towlower, towupper. Test WEOF argument.
35792         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35793
35794 2009-09-05  Bruno Haible  <bruno@clisp.org>
35795
35796         Fix conversion behaviour when the input is invalid.
35797         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35798         mark occurring in first pass of indirect conversion.
35799         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35800         input.
35801         Found by clang's static analyzer.
35802
35803 2009-09-05  Bruno Haible  <bruno@clisp.org>
35804
35805         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35806         where direct conversion is possible.
35807
35808 2009-09-04  Eric Blake  <ebb9@byu.net>
35809
35810         openat: fail with ENOENT on empty name
35811         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35812         buffer.
35813
35814         link-follow: fix logic bug in prior patch
35815         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35816         reversed sense of yes and no in prior patch.  Avoid confusing
35817         compilation failure with desired semantics.
35818
35819         link-follow: accomodate mingw and cross-compilation
35820         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35821         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35822         cross-compilation results to -1, to make linkat easier to
35823         implement when cross-compiling.  Trivially support mingw.
35824         * modules/link-follow (configure.ac): Call new name.
35825         * NEWS: Mention this.
35826
35827 2009-09-03  Eric Blake  <ebb9@byu.net>
35828
35829         faccessat: compile replacement
35830         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35831         needed.
35832
35833         fts: fix compilation error
35834         * lib/fts.c (includes): Re-add "openat.h", for
35835         openat_needs_fchdir.
35836
35837         faccessat: new module
35838         * modules/faccessat: New file.
35839         * lib/faccessat.c: Likewise.
35840         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35842         * modules/unistd (Makefile.am): Use it.
35843         * lib/unistd.in.h (faccessat): Declare it.
35844         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35845         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35846         * MODULES.html.sh (File system functions): Mention it.
35847         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35848         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35849
35850         euidaccess: prefer POSIX over non-standard implementation
35851         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35852         * lib/euidaccess.c (euidaccess): Use it if available.
35853
35854         openat: make template easier to use
35855         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35856         AT_FUNC_F2 to be undefined.
35857         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35858         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35859         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35860         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35861         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35862         Likewise.
35863         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35864         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35865         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35866         Likewise.
35867
35868         openat: declare in POSIX headers
35869         * NEWS: Mention this.
35870         * modules/openat (configure.ac): Declare witnesses.
35871         (Depends-on): Add fcntl-h, sys_stat, unistd.
35872         (Include): Mention correct headers.
35873         * modules/fcntl-h (Depends-on): Add link-warning.
35874         (Files): Add openat.m4.
35875         (Makefile.am): Substitute witnesses.
35876         * modules/sys_stat (Files, Makefile.am): Likewise.
35877         * modules/unistd (Files, Makefile.am): Likewise.
35878         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35879         (gl_OPENAT_DEFAULTS): New macro.
35880         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35882         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35883         (SYS_STAT_H): Remove unused variable.
35884         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35885         * lib/fcntl--.h (includes): Remove unneeded header.
35886         * lib/openat-safer.c (includes): Likewise.
35887         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35888         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35889         appropriate headers.
35890         (__OPENAT_PREFIX): Delete.
35891         * lib/fcntl.in.h (openat): Provide declaration.
35892         (AT_FDCWD): Fix Solaris bug.
35893         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35894         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35895         * lib/fchmodat.c (includes):  Adjust to find declaration.
35896         * lib/fchownat.c (includes): Likewise.
35897         * lib/mkdirat.c (includes): Likewise.
35898         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35899         still visible.
35900
35901 2009-09-02  Eric Blake  <ebb9@byu.net>
35902
35903         errno: use consistently
35904         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35905         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35906         * lib/canonicalize.c (ELOOP): Likewise.
35907         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35908         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35909         * lib/lchown.c (EOPNOTSUPP): Likewise.
35910         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35911         * lib/savewd.c (ESTALE): Likewise.
35912         * lib/settime.c (ENOSYS): Likewise.
35913         * lib/utimens.c (ENOSYS): Likewise.
35914         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35915         * lib/chdir-safer.c (ELOOP): Likewise.
35916         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35917         * modules/c-stack (Depends-on): Add errno.
35918         * modules/canonicalize (Depends-on): Likewise.
35919         * modules/chdir-safer (Depends-on): Likewise.
35920         * modules/fdopendir (Depends-on): Likewise.
35921         * modules/inet_ntop (Depends-on): Likewise.
35922         * modules/inet_pton (Depends-on): Likewise.
35923         * modules/lchown (Depends-on): Likewise.
35924         * modules/openat (Depends-on): Likewise.
35925         * modules/savewd (Depends-on): Likewise.
35926         * modules/settime (Depends-on): Likewise.
35927         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35928
35929         fts: avoid leaking fds
35930         * modules/fts (Depends-on): Add cloexec.
35931         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35932         flag.
35933
35934         fts: make directory fds more robust
35935         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35936         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35937
35938         backupfile, chdir-long, fts, savedir: make safer
35939         * lib/backupfile.c (includes): Use "dirent--.h", since
35940         numbered_backup can write to stderr during readdir.
35941         * lib/savedir.c (includes): Likewise.
35942         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35943         emulation can write to stderr on failure.
35944         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35945         * lib/getcwd.c: Document why opendir_safer is unused.
35946         * lib/glob.c: Likewise.
35947         * lib/scandir.c: Likewise.
35948         * lib/openat-proc.c: Likewise, for open_safer.
35949         * modules/backupfile (Depends-on): Add dirent-safer.
35950         * modules/savedir (Depends-on): Likewise.
35951         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35952         * modules/chdir-long (Depends-on): Add openat-safer.
35953
35954         openat-safer: new module
35955         * modules/openat-safer: New file.
35956         * lib/openat-safer.c: Likewise.
35957         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35958         * lib/fcntl-safer.h (openat_safer): Declare.
35959         * lib/fcntl--.h (openat): Override.
35960         * MODULES.html.sh (File descriptor based I/O): Mention it.
35961         * lib/openat.h: Add double-inclusion guards.
35962         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35963         "fcntl--.h", so we can implement openat.
35964         * modules/openat-safer-tests: New test.
35965         * tests/test-openat-safer.c: New file.
35966
35967         dirent-safer: new module
35968         * modules/dirent-safer: New file.
35969         * lib/dirent--.h: Likewise.
35970         * lib/dirent-safer.h: Likewise.
35971         * lib/opendir-safer.c: Likewise.
35972         * m4/dirent-safer.m4: Likewise.
35973         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35974         * modules/dirent-safer-tests: New test.
35975         * tests/test-dirent-safer.c: New file.
35976         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35977
35978         fdopendir: optimize on mingw
35979         * lib/unistd.in.h (_gl_directory_name): New prototype.
35980         * lib/fchdir.c (_gl_directory_name): Implement it.
35981         (fchdir): Use it to simplify implementation.
35982         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35983         fchdir, when available, to avoid calling [f]chdir().
35984
35985         fdopendir: split into its own module
35986         * lib/openat.c (fdopendir): Move...
35987         * lib/fdopendir.c: ...into new file.
35988         * modules/fdopendir: New module.
35989         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35990         * modules/openat (Depends-on): Add fdopendir.
35991         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35992         fdopendir here.
35993         * modules/savedir (Depends-on): Only need fdopendir, not full
35994         openat.
35995         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35996         * lib/openat.h (fdopendir): Drop prototype.
35997         * lib/dirent.in.h (fdopendir): Provide prototype.
35998         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35999         * modules/dirent (Makefile.am): Substitute them.
36000         * MODULES.html.sh (File system functions): Mention it.
36001         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36002         * modules/fdopendir-tests: New file.
36003         * tests/test-fdopendir.c: Likewise.
36004
36005         fchdir: use more consistent macro convention
36006         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36007         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36008         REPLACE_FCHDIR, rather than relying on config.h macros.
36009         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36010         inside a single make-time REPLACE_FCHDIR block, rather than using
36011         the config.h FCHDIR_REPLACEMENT.
36012         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36013         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36014         Manage fstat replacement.
36015         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36016         REPLACE_FCHDIR.
36017         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36018         (Makefile.am): Substitute REPLACE_FCHDIR.
36019         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36020         FCHDIR_REPLACEMENT.
36021         * lib/dup-safer.c (dup_safer): Likewise.
36022         * lib/dup2.c (rpl_dup2): Likewise.
36023         * lib/dup3.c (rpl_dup3): Likewise.
36024         * lib/open.c (rpl_open): Likewise.
36025
36026         fchdir: simplify error handling, and support dup3
36027         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36028         stdbool, malloc-posix, realloc-posix.
36029         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36030         (ensure_dirs_slot): Return false on allocation failure.
36031         (rpl_dup2): Delete.
36032         (_gl_register_dup): New function.
36033         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36034         (_gl_register_fd): Close fd on allocation failure.
36035         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36036         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36037         prototype.
36038         (rpl_dup2_fchdir): Delete prototype.
36039         * lib/open.c (open): Update caller.
36040         * lib/dup2.c (dup2): Track fchdir metadata.
36041         * lib/dup3.c (dup3): Likewise.
36042         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36044
36045 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36046
36047         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36048         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36049         don't pass arguments to AC_OUTPUT.
36050
36051 2009-09-02  Bruno Haible  <bruno@clisp.org>
36052
36053         * modules/mkdtemp (License): Relicense under LGPLv2+.
36054         Reported by Paolo Bonzini.
36055
36056 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36057
36058         Replace uses of obsolete autoconf macros in Jim's modules.
36059         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36060         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36061         can evoke a warning from autoconf when run with -Wobsolete
36062         enabled.  They were declared obsolete for good reasons (see
36063         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36064         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36065         should not continue using the deprecated macros.
36066         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36067         obsolete Autoconf macros with modern counterparts.
36068         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36069         * m4/dos.m4 (gl_AC_DOS): Likewise.
36070         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36071         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36072         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36073         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36074         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36075         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36076         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36077         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36078         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36079         Likewise.
36080         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36081         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36082         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36083         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36084         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36085         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36086
36087 2009-09-01  Eric Blake  <ebb9@byu.net>
36088
36089         fchdir: fix off-by-one bug in previous patch
36090         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36091         (_gl_unregister_fd): Delete useless if.
36092
36093 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36094
36095         maint.mk: sort the list of syntax-check rules
36096         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36097         easier to get a sense of progress when the rules are run sequentially
36098         and take a long time.
36099
36100 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36101
36102         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36103         * modules/netinet_in: Likewise.
36104         * modules/sys_file: Likewise.
36105         * modules/sys_ioctl: Likewise.
36106         * modules/sys_select: Likewise.
36107         * modules/sys_socket: Likewise.
36108         * modules/sys_stat: Likewise.
36109         * modules/sys_time: Likewise.
36110         * modules/sys_times: Likewise.
36111         * modules/sys_utsname: Likewise.
36112         * modules/sys_wait: Likewise.
36113
36114 2009-09-01  Jim Meyering  <meyering@redhat.com>
36115
36116         fts: help ensure that return values are not ignored
36117         * lib/fts_.h (__GNUC_PREREQ): Define.
36118         (__attribute_warn_unused_result__): Define.
36119         (fts_children, fts_close, fts_open, fts_read): Declare with
36120         __attribute_warn_unused_result__.
36121
36122         fts: fts_close now fails also when closing a dir file descriptor fails
36123         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36124         and propagate to caller, along with errno.
36125
36126         announce-gen: correct formatting in --help output
36127         * build-aux/announce-gen (usage): Move the one-line description in
36128         --help output "up", to where it belongs, just after Usage:.
36129
36130 2009-08-31  Eric Blake  <ebb9@byu.net>
36131
36132         fchdir: port to mingw
36133         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36134         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36135         opened, then use a substitute.
36136         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36137         replacement.
36138         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36139         (_gl_register_fd): No need to check stat if open already filters
36140         all directories.
36141         (fchdir): Fix error condition to match POSIX.
36142         * modules/fchdir (Depends-on): Add sys_stat.
36143         * doc/posix-functions/open.texi (open): Document the limitation.
36144         * modules/fchdir-tests: New file.
36145         * tests/test-fchdir.c: Likewise.
36146
36147         canonicalize: allow cross-testing from cygwin to mingw
36148         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36149         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36150         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36151         Likewise.
36152         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36153         target does not support symlinks.
36154         * tests/test-canonicalize-lgpl.sh: Likewise.
36155
36156         chown: avoid compilation warning on mingw
36157         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36158         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36159         mingw.
36160         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36161         * modules/chown (Depends-on): Add errno.
36162
36163 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36164
36165         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36166         command.
36167
36168 2009-08-31  Jim Meyering  <meyering@redhat.com>
36169
36170         canonicalize: remove useless initialization
36171         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36172         initialization of local, "end".
36173
36174 2009-08-30  Bruno Haible  <bruno@clisp.org>
36175
36176         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36177         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36178         ENOSYS.
36179
36180 2009-08-30  Bruno Haible  <bruno@clisp.org>
36181
36182         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36183         /usr/xpg4/bin/tr when it exists.
36184         * tests/test-pipe-filter-gi1.sh: Likewise.
36185
36186 2009-08-30  Bruno Haible  <bruno@clisp.org>
36187
36188         Work around deficient /usr/bin/id program on Solaris.
36189         * tests/test-file-has-acl.sh (ID): New variable.
36190         * tests/test-set-mode-acl.sh (ID): Likewise.
36191         * tests/test-copy-acl.sh (ID): Likewise.
36192         * tests/test-copy-file.sh (ID): Likewise.
36193
36194 2009-08-30  Bruno Haible  <bruno@clisp.org>
36195
36196         New module 'xstriconveh'.
36197         * lib/xstriconveh.h: New file.
36198         * lib/xstriconveh.c: New file.
36199         * modules/xstriconveh: New file.
36200
36201 2009-08-30  Bruno Haible  <bruno@clisp.org>
36202
36203         Make it easier to use mem_cd_iconveh.
36204         * lib/striconveh.h (iconveh_t): New type.
36205         (iconveh_open, iconveh_close): New declarations.
36206         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36207         with a single 'const iconveh_t *' argument.
36208         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36209         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36210         with a single 'const iconveh_t *' argument.
36211         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36212         * tests/test-striconveh.c (main): Update.
36213         * NEWS: Mention the change.
36214
36215 2009-08-30  Bruno Haible  <bruno@clisp.org>
36216
36217         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36218         problem.
36219
36220 2009-08-30  Bruno Haible  <bruno@clisp.org>
36221
36222         Work around iconv_open problem on Solaris.
36223         * lib/iconv_open-solaris.gperf: New file.
36224         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36225         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36226         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36227         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36228         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36229         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36230
36231 2009-08-29  Jim Meyering  <meyering@redhat.com>
36232
36233         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36234         * top/maint.mk (cvs-check): Remove target; it was just an alias
36235         to the better-named vc-diff-check.
36236         (maintainer-distcheck): Remove rule.  It was used only from
36237         the (alpha/beta/major) target, and all of its commands but one
36238         were coreutils-specific.
36239         (vc-dist): Remove rule.
36240         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36241         Run vc-diff-check, not vc-dist.
36242         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36243
36244 2009-08-27  Bruno Haible  <bruno@clisp.org>
36245
36246         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36247         of 0.
36248
36249 2009-08-27  Bruno Haible  <bruno@clisp.org>
36250
36251         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36252         compilers.
36253         * doc/func.texi: Document the SunPRO C bug.
36254
36255 2009-08-27  Bruno Haible  <bruno@clisp.org>
36256
36257         Fix link error on Solaris.
36258         * tests/test-parse-duration.c (xstrdup): Remove function.
36259
36260 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36261
36262         ignore-value: handle pointer types, too
36263         * lib/ignore-value.h (__attribute__): Remove definition.
36264         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36265         of a more concise and more-often effective "(void) i" statement.
36266         (ignore_ptr): New function to suppress warnings from functions that
36267         return pointers, and to make it explicit that one function doesn't
36268         handle all cases.
36269
36270 2009-08-25  Bruno Haible  <bruno@clisp.org>
36271
36272         dup2: work around a Linux bug.
36273         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36274         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36275         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36276         Reported by Simon Josefsson.
36277
36278 2009-08-25  Jim Meyering  <meyering@redhat.com>
36279
36280         libguestfs uses gnulib
36281         * users.txt: Add libguestfs.
36282
36283 2009-08-24  Eric Blake  <ebb9@byu.net>
36284
36285         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36286         * lib/pipe2.c (includes): Add binary-io.h.
36287         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36288
36289 2009-08-24  Bruno Haible  <bruno@clisp.org>
36290
36291         Tolerate declared but missing accept4 syscall.
36292         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36293         available.
36294         * lib/sys_socket.in.h (accept4): If the function is already present,
36295         override it.
36296         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36297         * modules/accept4 (Makefile.am): Compile accept4.c always.
36298         Reported by Paolo Bonzini and Eric Blake.
36299
36300 2009-08-23  Bruno Haible  <bruno@clisp.org>
36301
36302         New module 'accept4'.
36303         * lib/sys_socket.in.h (accept4): New declaration.
36304         * lib/accept4.c: New file.
36305         * m4/accept4.m4: New file.
36306         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36307         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36308         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36309         HAVE_ACCEPT4.
36310         * modules/accept4: New file.
36311         * doc/glibc-functions/accept4.texi: Mention the new module.
36312
36313 2009-08-24  Jim Meyering  <meyering@redhat.com>
36314
36315         progname: also set global program_invocation_name, when possible
36316         Before this change, a libtool-enabled program that calls glibc's
36317         error function would report the program name as
36318         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36319         * modules/progname (configure.ac): Check for a declaration of
36320         program_invocation_name.
36321         * lib/progname.c:  Include <errno.h>.
36322         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36323         Set program_invocation_name.
36324
36325 2009-08-23  Bruno Haible  <bruno@clisp.org>
36326
36327         * lib/dup3.c: Include <string.h>.
36328
36329 2009-08-23  Bruno Haible  <bruno@clisp.org>
36330
36331         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36332         * lib/pipe2.c (pipe2): Likewise.
36333         Suggested by Eric Blake.
36334
36335 2009-08-23  Bruno Haible  <bruno@clisp.org>
36336
36337         Tolerate declared but missing dup3 syscall.
36338         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36339         * lib/unistd.in.h (dup3): If the function is already present,
36340         override it.
36341         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36342         * modules/dup3 (Makefile.am): Compile dup3.c always.
36343         Reported by Paolo Bonzini.
36344
36345 2009-08-23  Bruno Haible  <bruno@clisp.org>
36346
36347         Tolerate declared but missing pipe2 syscall.
36348         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36349         available.
36350         * lib/unistd.in.h (pipe2): If the function is already present,
36351         override it.
36352         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36353         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36354         Reported by Paolo Bonzini.
36355
36356 2009-08-23  Bruno Haible  <bruno@clisp.org>
36357
36358         * lib/pipe2.c (pipe2): Move #ifs inside function.
36359
36360 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36361
36362         quotearg: document limitations of quote_these_too
36363         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36364         those limitations are created.
36365         * lib/quotearg.h (set_char_quoting): Document that digits and
36366         letters that are special after backslash are not permitted.
36367         (quotearg_char): Cross-reference set_char_quoting documentation.
36368
36369 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36370
36371         quotearg: implement custom_quoting_style
36372         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36373         right_quote fields.
36374         (set_custom_quoting): New public function.
36375         (quotearg_buffer_restyled): Add left_quote and right_quote
36376         arguments, handle them very much like locale quoting, and update
36377         all uses.
36378         (quotearg_n_custom): New public function.
36379         (quotearg_n_custom_mem): New public function.
36380         (quotearg_custom): New public function.
36381         (quotearg_custom_mem): New public function.
36382         * lib/quotearg.h: Prototype and document new public functions.
36383         (enum quoting_style): For escape_quoting_style and
36384         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36385         ignored even though they're otherwise like c_quoting_style.
36386         Add custom_quoting_style member and document with comparison to
36387         clocale_quoting_style.
36388         * tests/test-quotearg.c (custom_quotes): New array.
36389         (custom_results): New array.
36390         (main): Extend to test custom quoting.
36391
36392 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36393
36394         quotearg: fix right quote escaping when it's in quote_these_too
36395         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36396         quote, be sure to prepend only one backslash.
36397         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36398         (main): Test it.
36399
36400 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36401
36402         quotearg-tests: test escaping of embedded locale quotes
36403         * tests/test-quotearg.c (struct result_strings): Add member for
36404         new input.
36405         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36406         (inputs): Add new input.
36407         (results_g): Add expected results.
36408         (flag_results): Likewise.
36409         (locale_results): Likewise.
36410         (compare_strings): Check those.
36411
36412 2009-08-23  Bruno Haible  <bruno@clisp.org>
36413
36414         Tests for module 'dup3'.
36415         * modules/dup3-tests: New file.
36416         * tests/test-dup3.c: New file.
36417
36418         New module 'dup3'.
36419         * lib/unistd.in.h (dup3): New declaration.
36420         * lib/dup3.c: New file.
36421         * m4/dup3.m4: New file.
36422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36423         HAVE_DUP3.
36424         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36425         * modules/dup3: New file.
36426         * doc/glibc-functions/dup3.texi: Mention the new module.
36427
36428 2009-08-23  Bruno Haible  <bruno@clisp.org>
36429
36430         Tweak the dup2 test.
36431         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36432         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36433         the test file is still empty. Fix argument order of lseek.
36434
36435 2009-08-23  Bruno Haible  <bruno@clisp.org>
36436
36437         Avoid test link errors when the modules getopt-gnu, gettext are used.
36438         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36439         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36440
36441 2009-08-23  Bruno Haible  <bruno@clisp.org>
36442
36443         Fix getdtablesize() on mingw.
36444         * lib/getdtablesize.c (getdtablesize): Implement differently.
36445         * lib/unistd.in.h (getdtablesize): Improve comment.
36446
36447 2009-08-23  Bruno Haible  <bruno@clisp.org>
36448
36449         New module 'mkostemp'.
36450         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36451         * lib/stdlib.in.h (mksotemp): New declaration.
36452         * lib/mkostemp.c: New file, from glibc with modifications.
36453         * lib/tempname.h (GT_FILE): Remove outdated comment.
36454         (gen_tempname): Add flags argument.
36455         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36456         (__GT_FILE): Map to 1.
36457         (small_open, large_open): Remove macros.
36458         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36459         * lib/mkstemp.c (mkstemp): Update.
36460         * lib/mkdtemp.c (mkdtemp): Likewise.
36461         * m4/mkostemp.m4: New file.
36462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36463         HAVE_MKOSTEMP.
36464         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36465         HAVE_MKOSTEMP.
36466         * modules/mkostemp: New file, based on modules/mkstemp.
36467         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36468         * NEWS: Mention the change.
36469
36470 2009-08-23  Bruno Haible  <bruno@clisp.org>
36471
36472         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36473         Reported by Eric Blake.
36474
36475 2009-08-23  Bruno Haible  <bruno@clisp.org>
36476
36477         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36478         Reported by Eric Blake.
36479
36480 2009-08-23  Bruno Haible  <bruno@clisp.org>
36481
36482         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36483         * modules/pipe2 (Depends-on): Likewise.
36484
36485 2009-08-23  Eric Blake  <ebb9@byu.net>
36486
36487         fcntl-h: add O_TTY_INIT support
36488         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36489         * tests/test-fcntl-h.c (o): Test it.
36490         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36491
36492         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36493         * modules/fcntl: Move <fcntl.h> header replacement...
36494         * modules/fcntl-h: ...to new name, so as not to collide with
36495         like-named function.
36496         * tests/test-fcntl.c: Rename...
36497         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36498         * modules/fcntl-tests: Rename...
36499         * modules/fcntl-h-tests: ...to this.  Update test file name.
36500         * modules/chdir-long (Depends-on): Update clients.
36501         * modules/chdir-safer (Depends-on): Likewise.
36502         * modules/fcntl-safer (Depends-on): Likewise.
36503         * modules/fts (Depends-on): Likewise.
36504         * modules/mkancesdirs (Depends-on): Likewise.
36505         * modules/mkdir-p (Depends-on): Likewise.
36506         * modules/open (Depends-on): Likewise.
36507         * modules/savewd (Depends-on): Likewise.
36508         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36509         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36510
36511 2009-08-22  Bruno Haible  <bruno@clisp.org>
36512
36513         * modules/binary-io (License): Relicense under LGPL.
36514         * modules/pipe2 (License): Likewise.
36515
36516 2009-08-22  Bruno Haible  <bruno@clisp.org>
36517
36518         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36519         return value.
36520         * lib/pipe-filter-gi.c (filter_init): Likewise.
36521         Reported by Eric Blake.
36522
36523 2009-08-22  Bruno Haible  <bruno@clisp.org>
36524
36525         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36526         * modules/pipe (Depends-on): Add pipe2.
36527
36528 2009-08-22  Bruno Haible  <bruno@clisp.org>
36529
36530         Tests for module 'pipe2'.
36531         * modules/pipe2-tests: New file.
36532         * tests/test-pipe2.c: New file.
36533
36534         New module 'pipe2'.
36535         * lib/unistd.in.h (pipe2): New declaration.
36536         * lib/pipe2.c: New file.
36537         * m4/pipe2.m4: New file.
36538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36539         HAVE_PIPE2.
36540         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36541         * modules/pipe2: New file.
36542         * doc/glibc-functions/pipe2.texi: Mention the new module.
36543
36544 2009-08-22  Bruno Haible  <bruno@clisp.org>
36545
36546         Reference some new glibc functions.
36547         * doc/glibc-functions/accept4.texi: New file.
36548         * doc/glibc-functions/dup3.texi: New file.
36549         * doc/glibc-functions/mkostemp.texi: New file.
36550         * doc/glibc-functions/pipe2.texi: New file.
36551         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36552         (Glibc sys/socket.h): Refer to accept4.
36553         (Glibc unistd.h): Refer to dup3, pipe2.
36554         Reported by Eric Blake.
36555
36556 2009-08-22  Jim Meyering  <meyering@redhat.com>
36557             Bruno Haible  <bruno@clisp.org>
36558
36559         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36560         This makes it so packages using automake-1.11's silent-rules option
36561         can print e.g., a single "GEN    configmake.h" line, rather than
36562         the 30+ statements that perform the job.  If you want to see the
36563         actual commands, you can still run "make V=1".
36564         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36565         so that make output is abbreviated when those variables are defined
36566         appropriately.
36567         * modules/argz: Likewise.
36568         * modules/arpa_inet: Likewise.
36569         * modules/byteswap: Likewise.
36570         * modules/configmake: Likewise.
36571         * modules/dirent: Likewise.
36572         * modules/errno: Likewise.
36573         * modules/fcntl: Likewise.
36574         * modules/float: Likewise.
36575         * modules/fnmatch: Likewise.
36576         * modules/getopt-posix: Likewise.
36577         * modules/glob: Likewise.
36578         * modules/iconv_open: Likewise.
36579         * modules/inttypes: Likewise.
36580         * modules/localcharset: Likewise.
36581         * modules/locale: Likewise.
36582         * modules/math: Likewise.
36583         * modules/netdb: Likewise.
36584         * modules/netinet_in: Likewise.
36585         * modules/poll: Likewise.
36586         * modules/posix_spawnp-tests: Likewise.
36587         * modules/sched: Likewise.
36588         * modules/search: Likewise.
36589         * modules/selinux-h: Likewise.
36590         * modules/signal: Likewise.
36591         * modules/spawn: Likewise.
36592         * modules/stdarg: Likewise.
36593         * modules/stdbool: Likewise.
36594         * modules/stddef: Likewise.
36595         * modules/stdint: Likewise.
36596         * modules/stdio: Likewise.
36597         * modules/stdlib: Likewise.
36598         * modules/string: Likewise.
36599         * modules/strings: Likewise.
36600         * modules/sys_file: Likewise.
36601         * modules/sys_ioctl: Likewise.
36602         * modules/sys_select: Likewise.
36603         * modules/sys_socket: Likewise.
36604         * modules/sys_stat: Likewise.
36605         * modules/sys_time: Likewise.
36606         * modules/sys_times: Likewise.
36607         * modules/sys_utsname: Likewise.
36608         * modules/sys_wait: Likewise.
36609         * modules/sysexits: Likewise.
36610         * modules/time: Likewise.
36611         * modules/unistd: Likewise.
36612         * modules/wchar: Likewise.
36613         * modules/wctype: Likewise.
36614
36615 2009-08-22  Jim Meyering  <meyering@redhat.com>
36616
36617         announce-gen: detect write failure
36618         * build-aux/announce-gen: Add Coda at end.
36619         Remove equivalent-but-more-verbose block at top.
36620
36621 2009-08-19  Akim Demaille  <demaille@gostai.com>
36622
36623         bootstrap: --help to stdout.
36624         * bootstrap (usage): Don't send --help to stderr.
36625         Use a here doc instead of a long string.
36626
36627 2009-08-21  Eric Blake  <ebb9@byu.net>
36628
36629         test-popen-safer: split from test-popen
36630         * tests/test-popen.c (main): Move...
36631         * tests/test-popen.h: ...into new file.
36632         * tests/test-popen-safer2.c: New file.
36633         * modules/popen-tests (Files): Add test-popen.h.
36634         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36635         Suggested by Bruno Haible.
36636
36637         test-fcntl-safer: split from test-open
36638         * tests/test-open.c (main): Move...
36639         * tests/test-open.h: ...into new file.
36640         * tests/test-fcntl-safer.c: New file.
36641         * modules/open-tests (Files): Add test-open.h.
36642         * modules/fcntl-safer-tests: New file.
36643         Suggested by Bruno Haible.
36644
36645         test-fopen-safer: split from test-fopen
36646         * tests/test-fopen.c (main): Move...
36647         * tests/test-fopen.h: ...into new file.
36648         * tests/test-fopen-safer.c: New file.
36649         * modules/fopen-tests (Files): Add test-fopen.h.
36650         * modules/fopen-safer-tests: New file.
36651         Suggested by Bruno Haible.
36652
36653 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36654
36655         popen-safer: test O_CLOEXEC at run-time.
36656         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36657
36658 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36659
36660         fcntl: move more flags to the header
36661         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36662         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36663         * lib/fcntl.in.h: Do both things here.
36664
36665 2009-08-21  Jim Meyering  <meyering@redhat.com>
36666
36667         consistently remove $@-t before redirecting to it
36668         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36669         * modules/alloca-opt: Likewise.
36670         * modules/byteswap: Likewise.
36671         * modules/fnmatch: Likewise.
36672         * modules/getopt-posix: Likewise.
36673         * modules/glob: Likewise.
36674         * modules/poll: Likewise.
36675         * modules/posix_spawnp-tests: Likewise.
36676         * modules/sys_socket: Likewise.
36677         * modules/sysexits: Likewise.
36678
36679 2009-08-21  Eric Blake  <ebb9@byu.net>
36680
36681         popen: simplify access to original popen
36682         * lib/popen.c (rpl_popen): No need to worry about popen being a
36683         macro.
36684         Reported by Bruno Haible.
36685
36686 2009-08-20  Eric Blake  <ebb9@byu.net>
36687
36688         build: avoid some compiler warnings
36689         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36690         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36691         type.
36692         (new_exclude_segment, excluded_file_pattern_p)
36693         (excluded_file_name_p): Reduce scope.
36694         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36695         old-style declaration.
36696
36697 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36698
36699         * tests/test-exclude1.sh: Handle Windows EOL.
36700         * tests/test-exclude2.sh: Likewise.
36701         * tests/test-exclude3.sh: Likewise.
36702         * tests/test-exclude4.sh: Likewise.
36703         * tests/test-exclude5.sh: Likewise.
36704         * tests/test-exclude6.sh: Likewise.
36705         * tests/test-exclude7.sh: Likewise.
36706
36707 2009-08-19  Akim Demaille  <demaille@gostai.com>
36708
36709         bootstrap: find sha1sum when named gsha1sum.
36710         * bootstrap (find_tool): New.
36711         ($SHA1SUM): New.
36712         Use it.
36713
36714 2009-08-20  Jim Meyering  <meyering@redhat.com>
36715
36716         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36717         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36718         expression that converts "." in a file name to "\." in the resulting
36719         regexp.  Start with a dummy statement, so that prior shell variable
36720         definitions are expanded portably.  Reported by Simon Josefsson.
36721
36722 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36723
36724         Fix polling for writeability of a screen buffer.
36725         * lib/poll.c: Distinguish input and screen buffers for the
36726         Win32 implementation.
36727         * lib/select.c: Likewise.
36728
36729 2009-08-19  Eric Blake  <ebb9@byu.net>
36730
36731         popen-safer: prevent popen from clobbering std descriptors
36732         * modules/popen-safer: New file.
36733         * lib/popen-safer.c: Likewise.
36734         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36735         * lib/stdio--.h (popen): Provide override.
36736         * lib/stdio-safer.h (popen_safer): Provide declaration.
36737         * tests/test-popen.c (includes): Partially test this.
36738         * modules/popen-safer-tests: New file, for more tests.
36739         * tests/test-popen-safer.c: Likewise.
36740         * MODULES.html.sh (file stream based Input/Output): Mention it.
36741
36742         tests: test some of the *-safer modules
36743         * modules/fopen-safer (Depends-on): Add fopen.
36744         * modules/fcntl-safer (Depends-on): Add fcntl.
36745         * modules/stdlib-safer (Depends-on): Add stdlib.
36746         (configure.ac): Set indicator.
36747         * modules/unistd-safer (configure.ac): Likewise.
36748         * modules/tmpfile-safer (configure.ac): Likewise.
36749         (Depends-on): Add tmpfile.
36750         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36751         active.
36752         * tests/test-fopen.c (includes): Test safer versions when they are
36753         in use.
36754         * tests/test-open.c (includes): Likewise.
36755
36756         popen: fix cygwin 1.5 bug when stdin closed
36757         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36758         * modules/popen: New file.
36759         * modules/popen-tests: Likewise.
36760         * tests/test-popen.c: Likewise.
36761         * m4/popen.m4: Likewise.
36762         * lib/popen.c: Likewise.
36763         * lib/stdio.in.h (popen): New declaration.
36764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36765         * modules/stdio (Makefile.am): Likewise.
36766         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36767
36768 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36769
36770         maint.mk: give full control over update-copyright exclusions
36771         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36772         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36773         (update-copyright): Don't force inclusion of top-level
36774         ChangeLog.  Don't force exclusion of all COPYING files, but make
36775         them the default exclusion instead.
36776
36777 2009-08-16  Bruno Haible  <bruno@clisp.org>
36778
36779         Fix test failures on Solaris 10.
36780         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36781         tests when Solaris iconv() is used.
36782         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36783         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36784         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36785         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36786         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36787
36788 2009-08-16  Bruno Haible  <bruno@clisp.org>
36789
36790         Fix test failures on Solaris 10.
36791         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36792         'tr' program and pass it as first argument.
36793         * tests/test-pipe-filter-gi1.sh: Likewise.
36794         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36795         program as first argument.
36796         * tests/test-pipe-filter-gi1.c (main): Likewise.
36797
36798 2009-08-16  Eric Blake  <ebb9@byu.net>
36799
36800         fpurge: fix previous commits
36801         * modules/fpurge (Makefile.am): Make replacement conditional,
36802         partially reverting 2007-04-29 change; missed in previous
36803         attempt.
36804         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36805         is missing.
36806
36807 2009-08-16  Bruno Haible  <bruno@clisp.org>
36808
36809         Clarify fpurge's effect on the file position.
36810         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36811         * tests/test-fpurge.c (main): Make a second pass for checking the file
36812         position.
36813
36814 2009-08-16  Bruno Haible  <bruno@clisp.org>
36815
36816         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36817         declaration of fpurge is missing.
36818         * tests/test-fpurge.c (main): Check that the file has not more contents
36819         than expected. Close the file before removing it.
36820
36821 2009-08-15  Eric Blake  <ebb9@byu.net>
36822
36823         fpurge: don't wrap working cygwin implementation
36824         * lib/fpurge.c (fpurge): Fix comment typo.
36825         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36826         1.7 to avoid replacement.
36827         * tests/test-fpurge.c (main): Enhance test.
36828
36829 2009-08-15  Eric Blake  <ebb9@byu.net>
36830         and Jim Meyering  <meyering@redhat.com>
36831
36832         test-update-copyright: skip if perl is insufficient
36833         * tests/test-update-copyright.sh: Failure to run maintainer tool
36834         should not cause testsuite failure on cygwin 1.5.
36835
36836 2009-08-14  Eric Blake  <ebb9@byu.net>
36837
36838         doc: mention more functions added in cygwin 1.7.0
36839         * doc/posix-headers/limits.texi (limits.h): Update for recent
36840         cygwin additions.
36841         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36842         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36843         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36844         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36845         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36846
36847 2009-08-14  Eric Blake  <ebb9@byu.net>
36848
36849         maint.mk: simplify update-copyright rule
36850         * top/maint.mk (update-copyright-local): Delete, and document how
36851         to do it in cfg.mk instead.
36852         (update-copyright-exclude-regexp): Delete, and document how to do
36853         it in .x-update-copyright instead.
36854         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36855         exclude ChangeLog.
36856
36857 2009-08-14  Bruno Haible  <bruno@clisp.org>
36858
36859         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36860
36861 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36862
36863         maint.mk: support update-copyright-env
36864         * top/maint.mk (update-copyright-env): Define place-holder.
36865         (update-copyright): Expand $(update-copyright-env) before
36866         invoking update-copyright.
36867
36868 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36869
36870         update-copyright: implement forced reformatting
36871         * build-aux/update-copyright: Implement and document
36872         UPDATE_COPYRIGHT_FORCE.
36873         * tests/test-update-copyright.sh: Test it.
36874
36875 2009-08-14  Eric Blake  <ebb9@byu.net>
36876         and Bruno Haible  <bruno@clisp.org>
36877
36878         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36879         * tests/test-locale.c: Revert previous patch related to NULL.
36880         * tests/test-stdio.c: Likewise.
36881         * tests/test-stdlib.c: Likewise.
36882         * tests/test-string.c: Likewise.
36883         * tests/test-unistd.c: Likewise.
36884         * modules/time-tests (Depends-on): Add verify.
36885         * modules/wchar-tests (Depends-on): Likewise.
36886         * tests/test-time.c: Test for NULL compliance.
36887         * tests/test-wchar.c: Likewise.
36888         * modules/locale (Depends-on): Add stddef.
36889         * modules/stdio (Depends-on): Likewise.
36890         * modules/stdlib (Depends-on): Likewise.
36891         * modules/string (Depends-on): Likewise.
36892         * modules/time (Depends-on): Likewise.
36893         * modules/unistd (Depends-on): Likewise.
36894         * modules/wchar (Depends-on): Likewise.
36895         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36896         * lib/stdlib.in.h (includes): Likewise.
36897         * lib/string.in.h (includes): Likewise.
36898         * lib/time.in.h (includes): Likewise.
36899         * lib/unistd.in.h (includes): Likewise.
36900         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36901         replaced.
36902         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36903         * m4/stddef_h.m4: New file.
36904         * modules/stddef: Likewise.
36905         * lib/stddef.in.h: Likewise.
36906         * modules/stddef-tests: Likewise.
36907         * tests/test-stddef.c: Likewise.
36908         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36909         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36910         * doc/posix-headers/locale.texi (locale.h): Likewise.
36911         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36912         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36913         * doc/posix-headers/string.texi (string.h): Likewise.
36914         * doc/posix-headers/time.texi (time.h): Likewise.
36915         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36916         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36917
36918 2009-08-14  Eric Blake  <ebb9@byu.net>
36919
36920         doc: improve git diff of texinfo files
36921         * .gitattributes: Add rule for *.texi files, with hint on how to
36922         use it.
36923         Copied from m4, and based on a report by Bruno Haible.
36924
36925 2009-08-14  Bruno Haible  <bruno@clisp.org>
36926
36927         Disable multithread support by default on Cygwin 1.5.x for real.
36928         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36929
36930 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36931
36932         update-copyright: much ado about intervals
36933         * build-aux/update-copyright: Implement and document
36934         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36935         of copyright year intervals.
36936         Also, document UPDATE_COPYRIGHT_YEAR.
36937         * tests/test-update-copyright.sh: Test it.
36938
36939         update-copyright: convert 2-digit to 4-digit years
36940         * build-aux/update-copyright: Implement and document.
36941         * tests/test-update-copyright.sh: Update.
36942
36943 2009-08-14  Jim Meyering  <meyering@redhat.com>
36944
36945         test-exclude: avoid coreutils "make check" failure
36946         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36947         just as in test-argmatch.c.
36948
36949 2009-08-13  Eric Blake  <ebb9@byu.net>
36950
36951         test-dup2: fix bad assumption
36952         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36953         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36954
36955         test-version-etc: fix CRLF portability issue
36956         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36957         recognize \r.
36958         * tests/test-argp-version-etc-1.sh: Likewise.
36959
36960         getopt: update client modules
36961         * modules/argp (Depends-on): Use getopt-gnu.
36962         * modules/git-merge-changelog (Depends-on): Likewise.
36963         * modules/long-options (Depends-on): Likewise.
36964         * modules/xstrtol (Depends-on): Likewise.
36965
36966 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36967
36968         * tests/test-version-etc.sh: Don't fail on different
36969         project/version.  Don't fail on CRLF differences.  Rewrite to use
36970         multiple -e instead of multiple sed forks, suggested by Eric Blake
36971         <ebb9@byu.net>.
36972         * tests/test-argp-version-etc-1.sh: Likewise.
36973
36974 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36975
36976         * tests/test-version-etc.sh: Don't fail on different
36977         project/version.
36978
36979 2009-08-12  Bruno Haible  <bruno@clisp.org>
36980
36981         Tests for modules 'getopt-posix', 'getopt-gnu'.
36982         * modules/getopt-posix-tests: New file.
36983         * tests/test-getopt.c: New file.
36984         * tests/test-getopt.h: New file.
36985         * tests/test-getopt_long.h: New file.
36986
36987         New modules 'getopt-posix', 'getopt-gnu'.
36988         * modules/getopt-gnu: New file, renamed from modules/getopt.
36989         * modules/getopt-posix: New file.
36990         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36991         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36992         (gl_GETOPT): Remove macro.
36993         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36994         Disable the test against BSD systems that declare optreset. Test
36995         against mingw bug. Test against lack of support of optional arguments
36996         on many platforms.
36997         * doc/glibc-headers/getopt.texi: Update module name and list of
36998         relevant platforms.
36999         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37000         'getopt-gnu' and more portability problems.
37001         * NEWS: Mention the changes.
37002
37003 2009-08-12  Bruno Haible  <bruno@clisp.org>
37004
37005         Ensure that optarg etc. get declared by <unistd.h>.
37006         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37007         AC_USE_SYSTEM_EXTENSIONS.
37008         * modules/getopt (Depends-on): Add 'extensions'.
37009
37010 2009-08-12  Bruno Haible  <bruno@clisp.org>
37011
37012         Avoid test link errors.
37013         * modules/pipe-filter-ii-tests (Makefile.am): Define
37014         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37015         * modules/pipe-filter-gi-tests (Makefile.am): Define
37016         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37018
37019 2009-08-12  Bruno Haible  <bruno@clisp.org>
37020
37021         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37022         gl_GETOPT_SUBSTITUTE before.
37023         (gl_GETOPT): Use it.
37024         * m4/argp.m4 (gl_ARGP): Update.
37025         Reported by Sergey Poznyakoff.
37026
37027         * m4/getopt.m4: Reorder macros.
37028         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37029         (gl_GETOPT_SUBSTITUTE): Remove macro.
37030
37031 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37032
37033         Minor improvement in gitlog-to-changelog
37034
37035         * build-aux/gitlog-to-changelog: New option `--format' makes
37036         output format string configurable.
37037
37038 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37039
37040         Optimize exclude: use hash tables for non-wildcard patterns.
37041
37042         * lib/exclude.c: Include hash.h and mbuiter.h
37043         (struct exclude_pattern, exclude_segment): New data types.
37044         (struct exclude): Rewrite.
37045         (fnmatch_pattern_has_wildcards): New function.
37046         (new_exclude_segment, free_exclude_segment): New functions.
37047         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37048         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37049         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37050         * modules/exclude: Depend on hash and mbuiter.
37051
37052         * modules/exclude-tests: New file.
37053         * tests/test-exclude.c: New file.
37054         * tests/test-exclude1.sh: New file.
37055         * tests/test-exclude2.sh: New file.
37056         * tests/test-exclude3.sh: New file.
37057         * tests/test-exclude4.sh: New file.
37058         * tests/test-exclude5.sh: New file.
37059         * tests/test-exclude6.sh: New file.
37060         * tests/test-exclude7.sh: New file.
37061
37062 2009-08-12  Bruno Haible  <bruno@clisp.org>
37063
37064         Ensure that getopt() gets declared by <unistd.h>.
37065         * lib/unistd.in.h: Conditionally include getopt.h.
37066         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37067         Set GNULIB_UNISTD_H_GETOPT.
37068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37069         GNULIB_UNISTD_H_GETOPT.
37070         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37071
37072 2009-08-12  Bruno Haible  <bruno@clisp.org>
37073
37074         Clarify logic.
37075         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37076         gl_replace_getopt instead of GETOPT_H.
37077
37078 2009-08-12  Bruno Haible  <bruno@clisp.org>
37079
37080         * m4/getopt.m4: Add comments.
37081
37082 2009-08-12  Bruno Haible  <bruno@clisp.org>
37083
37084         Disable multithread support by default on Cygwin 1.5.x.
37085         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37086         set gl_use_threads=no if not specified otherwise.
37087
37088 2009-08-11  Bruno Haible  <bruno@clisp.org>
37089
37090         Avoid compilation error on NetBSD 5.0.
37091         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37092         * tests/test-stdio.c: Likewise.
37093         * tests/test-stdlib.c: Likewise.
37094         * tests/test-string.c: Likewise.
37095         * tests/test-unistd.c: Likewise.
37096         Reported by Greg Troxel <gdt@ir.bbn.com>
37097         at <https://savannah.gnu.org/support/?106973>.
37098
37099 2009-08-11  Bruno Haible  <bruno@clisp.org>
37100
37101         * modules/dup2-tests (Depends-on): Remove close.
37102
37103         Undo 2009-07-19 commit.
37104         * modules/acl-tests (Depends-on): Remove close.
37105         * modules/binary-io-tests (Depends-on): Likewise.
37106         * modules/closein-tests (Depends-on): Likewise.
37107         * modules/flock-tests (Depends-on): Likewise.
37108         * modules/fsync-tests (Depends-on): Likewise.
37109         * modules/lseek-tests (Depends-on): Likewise.
37110         * modules/pipe-tests (Depends-on): Likewise.
37111         * modules/posix_spawn-tests (Depends-on): Likewise.
37112         * modules/posix_spawnp-tests (Depends-on): Likewise.
37113         * modules/stat-time-tests (Depends-on): Likewise.
37114         * modules/yesno-tests (Depends-on): Likewise.
37115
37116 2009-08-10  Bruno Haible  <bruno@clisp.org>
37117
37118         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37119
37120 2009-08-10  Bruno Haible  <bruno@clisp.org>
37121
37122         Fix a gcc warning.
37123         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37124
37125 2009-08-10  Bruno Haible  <bruno@clisp.org>
37126
37127         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37128         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37129         not only the first time.
37130         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37131         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37132         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37133         is 1, not only the the first time.
37134
37135 2009-08-10  Bruno Haible  <bruno@clisp.org>
37136
37137         Make it possible to use module 'gethostname' without module 'close'.
37138         * lib/unistd.in.h (close): Evoke a link error only if
37139         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37141         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37142         * modules/unistd (Makefile.am): Substitute
37143         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37144         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37145         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37146         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37147         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37148         * modules/sys_ioctl (Makefile.am): Substitute
37149         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37150         * modules/socket (configure.ac): On native Windows, set
37151         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37152         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37153         Reported by Sam Steingold <sds@gnu.org>.
37154
37155 2009-08-10  Bruno Haible  <bruno@clisp.org>
37156
37157         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37158         * modules/ioctl (configure.ac): Likewise.
37159
37160 2009-08-10  Bruno Haible  <bruno@clisp.org>
37161
37162         Avoid collision between gnulib wrapper and libintl wrapper.
37163         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37164         already defined in intl/printf.c.
37165         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37166         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37167
37168 2009-08-09  Bruno Haible  <bruno@clisp.org>
37169
37170         Make <sys/select.h> really self-contained, also on Solaris 10.
37171         * lib/sys_select.in.h: Include <string.h>.
37172         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37173         Solaris 10 problem.
37174         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37175         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37176         Reported by Jim Meyering.
37177
37178 2009-08-09  Bruno Haible  <bruno@clisp.org>
37179
37180         Avoid warnings from 'aclocal' that are due to a use of macro name
37181         AM_XGETTEXT_OPTION that is not defined in automake.
37182         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37183         automake.
37184         * modules/error (configure.ac): Likewise.
37185         * modules/propername (configure.ac): Likewise.
37186         * modules/vasprintf (configure.ac): Likewise.
37187         * modules/verror (configure.ac): Likewise.
37188         * modules/xprintf (configure.ac): Likewise.
37189         * modules/xvasprintf (configure.ac): Likewise.
37190
37191 2009-08-08  Bruno Haible  <bruno@clisp.org>
37192
37193         Avoid compilation error in C++ mode.
37194         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37195         Reported by Sam Steingold <sds@gnu.org>.
37196
37197 2009-08-08  Bruno Haible  <bruno@clisp.org>
37198
37199         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37200         for the various Unix platforms.
37201         * doc/posix-headers/limits.texi: Update platforms list regarding
37202         HOST_NAME_MAX.
37203         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37204
37205 2009-08-07  Jim Meyering  <meyering@redhat.com>
37206
37207         selinux-at: fix typo in a comment
37208         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37209         Spotted by Paolo Bonzini.
37210
37211         selinux-at: remove redundant m4 code, add documentation
37212         * modules/selinux-at (configure.ac): Remove redundant code.
37213         LIB_SELINUX is already set via the dependent module, selinux-h.
37214         (Include): Add quotes around selinux-at.h.
37215         * lib/selinux-at.h: Add documentation.
37216         Reported by Bruno Haible in
37217         http://marc.info/?l=gnulib-bug&m=124958988300749
37218
37219 2009-08-07  Bruno Haible  <bruno@clisp.org>
37220
37221         Avoid link error on MacOS X 10.3 and 10.4.
37222         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37223         on non-ELF systems.
37224         * lib/argp-pv.c (argp_program_version): Likewise.
37225         Reported by Simon Josefsson.
37226
37227 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37228
37229         * tests/test-version-etc.sh: Use $EXEEXT.
37230
37231 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37232
37233         update-copyright: update documentation to point to maint.mk
37234         * build-aux/update-copyright: Here.
37235
37236 2009-08-06  Jim Meyering  <meyering@redhat.com>
37237
37238         maint.mk: support update-copyright-local
37239         * top/maint.mk (update-copyright-local): Define place-holder.
37240         (update-copyright): Depend on $(update-copyright-local).
37241
37242 2009-08-06  Jim Meyering  <meyering@redhat.com>
37243
37244         selinux-at: new module
37245         Initially written for coreutils, this module will soon be
37246         used by findutils, too.
37247         * MODULES.html.sh [Misc]: Add selinux-at.
37248         * lib/selinux-at.h: New file, from coreutils.
37249         * lib/selinux-at.c: Likewise.
37250         * modules/selinux-at: Likewise.
37251         (License): Change from LGPL to GPL, since it depends
37252         on the GPL'd openat module.
37253
37254         doc: update README
37255         * README: Remove references to cogito.
37256         Remove cvs-repo-updating instructions from 2007.
37257         Don't imply that CVS is better if you have limited disk space.
37258
37259 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37260
37261         update-copyright: support C-style comments
37262         * build-aux/update-copyright: Implement and document.
37263         * tests/test-update-copyright.sh: Test.
37264
37265 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37266
37267         update-copyright: support omitted "(C)"
37268         * build-aux/update-copyright: Implement and document.  Also,
37269         allow variable whitespace before "(C)".
37270         * tests/test-update-copyright.sh: Test.
37271
37272 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37273
37274         update-copyright: don't trip on non-FSF copyright statements
37275         * build-aux/update-copyright: Fix so that the first correctly
37276         formatted FSF copyright statement is recognized no matter what
37277         appears before it.  Update documentation.
37278         * tests/test-update-copyright.sh: Test that.
37279
37280 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37281
37282         update-copyright: clean up code a little
37283         * build-aux/update-copyright: Append "_re" to the name of any
37284         variable holding a regular expression.
37285         Replace "old" and "new" with "stmt" in variable names.
37286         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37287         handled correctly.
37288         Format code more consistently.
37289
37290 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37291
37292         update-copyright-tests: improve portability
37293         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37294         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37295
37296 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37297
37298         update-copyright: support @copyright{} and &copy;
37299         * build-aux/update-copyright: Implement and document.
37300         * tests/test-update-copyright.sh: Test.
37301
37302 2009-08-04  Jim Meyering  <meyering@redhat.com>
37303
37304         update-copyright-tests: correctly test EOL=\r\n handling
37305         * tests/test-update-copyright.sh: Put \r at the end of some lines
37306         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37307
37308         maint.mk: make update-copyright exclusion list more configurable
37309         * top/maint.mk (update-copyright): Default to excluding COPYING,
37310         but allow an override, in case someone does want to update that file.
37311
37312         maint.mk: don't update copyright date in COPYING
37313         * top/maint.mk (update-copyright): Exclude COPYING.
37314
37315         maint.mk: add a copyright-updating rule
37316         * top/maint.mk (update-copyright): New rule.
37317         Derived from coreutils/Makefile.am.
37318
37319         update-copyright: rename some variables
37320         * build-aux/update-copyright: Rename a few variables for clarity.
37321         Tweak syntax.  List Joel E. Denny as coauthor.
37322
37323 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37324
37325         update-copyright: fix bug for 2-digit last year and add tests
37326         * build-aux/update-copyright: Fix bug.
37327         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37328         specified.
37329         * modules/update-copyright-tests: New
37330         * tests/test-update-copyright.sh: New.
37331
37332 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37333
37334         update-copyright: handle leading tabs in line prefix
37335         * build-aux/update-copyright: Count leading tabs as 8 spaces
37336         when computing margin.  This helps with the formatting of
37337         ChangeLogs, for example.
37338         Fix documentation a little.
37339
37340 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37341
37342         update-copyright: support EOL=\r\n
37343         * build-aux/update-copyright: Implement that.
37344
37345 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37346
37347         update-copyright: automatically format copyright statements
37348         * build-aux/update-copyright: Implement that.
37349         Also, be a little more predictable and safer by always failing
37350         when the full copyright format is not perfectly recognized as an
37351         unbroken whole.  Discussed at
37352         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37353         Rewrite documentation.
37354
37355 2009-08-03  Bruno Haible  <bruno@clisp.org>
37356
37357         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37358
37359 2009-08-02  Bruno Haible  <bruno@clisp.org>
37360
37361         Tests for module 'uname'.
37362         * modules/uname-tests: New file.
37363         * tests/test-uname.c: New file.
37364
37365         New module 'uname'.
37366         * lib/uname.c: New file.
37367         * m4/uname.m4: New file.
37368         * modules/uname: New file.
37369         * doc/posix-functions/uname.texi: Mention the new module.
37370
37371 2009-08-02  Bruno Haible  <bruno@clisp.org>
37372
37373         Tests for module 'sys_utsname'.
37374         * modules/sys_utsname-tests: New file.
37375         * tests/test-sys_utsname.c: New file.
37376
37377         New module 'sys_utsname'.
37378         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37379         * m4/sys_utsname_h.m4: New file.
37380         * modules/sys_utsname: New file.
37381         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37382
37383 2009-08-02  Bruno Haible  <bruno@clisp.org>
37384
37385         Implicitly initialize the sockets library.
37386         * lib/gethostname.c: Include sockets.h.
37387         (rpl_gethostname): Invoke gl_sockets_startup.
37388         * lib/socket.c: Include sockets.h.
37389         (rpl_socket): Invoke gl_sockets_startup.
37390         * modules/gethostname (Depends-on): Add sockets.
37391         * modules/socket (Depends-on): Likewise.
37392         * tests/test-poll.c: Don't include sockets.h.
37393         (main): Don't invoke gl_sockets_startup.
37394         * tests/test-select.c: Don't include sockets.h.
37395         (main): Don't invoke gl_sockets_startup.
37396
37397 2009-08-02  Bruno Haible  <bruno@clisp.org>
37398
37399         Allow multiple calls to gl_sockets_startup.
37400         * lib/sockets.c (initialized_sockets_version): New variable.
37401         (gl_sockets_startup): Do nothing if already called for this or a higher
37402         version.
37403         (gl_sockets_cleanup): Reset initialized_sockets_version.
37404
37405 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37406
37407         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37408         different project/version.
37409
37410 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37411             Bruno Haible  <bruno@clisp.org>
37412
37413         Tests for module 'pipe-filter-gi'.
37414         * modules/pipe-filter-gi-tests: New file.
37415         * tests/test-pipe-filter-gi1.sh: New file.
37416         * tests/test-pipe-filter-gi1.c: New file.
37417         * tests/test-pipe-filter-gi2.sh: New file.
37418         * tests/test-pipe-filter-gi2-main.c: New file.
37419         * tests/test-pipe-filter-gi2-child.c: New file.
37420
37421         New module 'pipe-filter-gi'.
37422         * lib/pipe-filter-gi.c: New file.
37423         * modules/pipe-filter-gi: New file.
37424
37425 2009-08-02  Bruno Haible  <bruno@clisp.org>
37426             Paolo Bonzini  <bonzini@gnu.org>
37427
37428         Tests for module 'pipe-filter-ii'.
37429         * modules/pipe-filter-ii-tests: New file.
37430         * tests/test-pipe-filter-ii1.sh: New file.
37431         * tests/test-pipe-filter-ii1.c: New file.
37432         * tests/test-pipe-filter-ii2.sh: New file.
37433         * tests/test-pipe-filter-ii2-main.c: New file.
37434         * tests/test-pipe-filter-ii2-child.c: New file.
37435
37436         New module 'pipe-filter-ii'.
37437         * lib/pipe-filter.h: New file.
37438         * lib/pipe-filter-ii.c: New file.
37439         * lib/pipe-filter-aux.h: New file.
37440         * modules/pipe-filter-ii: New file.
37441
37442 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37443
37444         * lib/gc-libgcrypt.c: Change copyright to FSF.
37445         * lib/gc-gnulib.c: Likewise.
37446
37447 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37448
37449         * lib/gethostname.c: Include limits.h.
37450
37451 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37452             Bruno Haible  <bruno@clisp.org>
37453
37454         Ensure HOST_NAME_MAX as part of the gethostname module.
37455         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37456         define also HOST_NAME_MAX.
37457         * tests/test-gethostname.c: Include <limits.h>.
37458         (main): Check also HOST_NAME_MAX.
37459         * doc/posix-headers/limits.texi: Document the mingw problem.
37460
37461 2009-08-02  Bruno Haible  <bruno@clisp.org>
37462
37463         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37464         Add comments.
37465
37466 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37467
37468         * lib/gethostname.c: Add Windows wrapper.
37469         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37470         * modules/gethostname: Depend on sys_socket & errno, for also
37471         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37472         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37473
37474 2009-07-31  Jim Meyering  <meyering@redhat.com>
37475
37476         getloadavg: fix symbol name in comment
37477         * lib/getloadavg.c: Correct a typo I introduced when adding
37478         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37479         Matt Kraai spotted the problem.
37480
37481 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37482
37483         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37484         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37485         code also if ! defined N_NAME_POINTER.
37486         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37487         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37488         but the n_name member is a 12-byte array.
37489
37490 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37491
37492         update-copyright: generalize comment handling
37493         * build-aux/update-copyright: Handle copyright statements
37494         within more comment styles.
37495         Document usage.
37496         Report any file with an external copyright holder or parse failure.
37497
37498 2009-07-29  Jim Meyering  <meyering@redhat.com>
37499
37500         mktime: correct setting of REPLACE_MKTIME
37501         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37502
37503         update-copyright: new module
37504         * modules/update-copyright: New file.
37505         * build-aux/update-copyright: New file.
37506         * MODULES.html.sh (maint+release support): Add update-copyright.
37507
37508 2009-07-27  Bruno Haible  <bruno@clisp.org>
37509
37510         Fix compilation error when <ctime> is used and mktime is replaced.
37511         * lib/time.in.h (mktime): New declaration.
37512         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37513         REPLACE_MKTIME instead of defining mktime in config.h.
37514         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37515         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37516         Reported by Ross McFarland <rwmcfa1@neces.com>.
37517
37518 2009-07-27  Bruno Haible  <bruno@clisp.org>
37519
37520         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37521         Reported by Matt Kraai <mkraai@beckman.com>.
37522
37523 2009-07-25  Jim Meyering  <meyering@redhat.com>
37524
37525         maint.mk: avoid warnings about missing files
37526         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37527         diagnostic when .prev-version does not exist.
37528         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37529         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37530         nonexistent cfg.mk.
37531         Suggestions from Simon Josefsson.
37532
37533 2009-07-25  Bruno Haible  <bruno@clisp.org>
37534
37535         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37536         defined as macros. Needed on QNX 6.4.1.
37537         Reported by Matt Kraai <mkraai@beckman.com>.
37538
37539 2009-07-23  Jim Meyering  <meyering@redhat.com>
37540
37541         maint.mk: invoke "make dist" with a working value of XZ_OPT
37542         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37543
37544 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37545
37546         Make fseeko.c compile on QNX.
37547         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37548
37549 2009-07-22  Peter Simons  <simons@cryp.to>
37550
37551         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37552         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37553         * lib/md4.h: Likewise.
37554         * lib/md5.h: Likewise.
37555         * lib/sha1.h: Likewise.
37556         * lib/sha256.h: Likewise.
37557         * lib/sha512.h: Likewise.
37558
37559         tests-sha1: don't assign literal string to 'char *' variable
37560         * tests/test-sha1.c (main): Declare locals with "const" to match
37561         attributes of the right hand side.
37562
37563 2009-07-21  Eric Blake  <ebb9@byu.net>
37564
37565         dup2: fix more mingw problems
37566         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37567         fd to itself.
37568         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37569         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37570         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37571         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37572         care of mingw bugs.
37573
37574 2009-07-21  Jim Meyering  <meyering@redhat.com>
37575
37576         vc-list-files: avoid failure when /bin/sh is dash
37577         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37578         On some Debian based systems, /bin/sh is a symlink to dash, and running
37579         this command would omit the "/" following each 'tests' prefix:
37580           dash -x build-aux/vc-list-files -C . tests
37581         That is because bash and dash work differently:
37582           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37583           bash ok
37584           dash odd
37585
37586 2009-07-21  Eric Blake  <ebb9@byu.net>
37587
37588         dup2-tests: test previous patch
37589         * modules/dup2-tests: New file.
37590         * tests/test-dup2.c: Likewise.
37591         * tests/test-open.c (main): Avoid unspecified behavior.
37592         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37593         test.
37594
37595         dup2: work around mingw and cygwin 1.5 bug
37596         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37598         * modules/unistd (Makefile.am): Substitute it.
37599         * lib/unistd.in.h (dup2): Declare the replacement.
37600         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37601         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37602         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37603         * modules/execute (Depends-on): Add dup2.
37604         * modules/fseterr (Depends-on): Likewise.
37605         * modules/pipe (Depends-on): Likewise.
37606         * modules/posix_spawn-internal (Depends-on): Likewise.
37607
37608 2009-07-21  Bruno Haible  <bruno@clisp.org>
37609
37610         * modules/.gitattributes: New file.
37611
37612 2009-07-20  Bruno Haible  <bruno@clisp.org>
37613
37614         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37615         (main): Use it.
37616
37617 2009-07-20  Eric Blake  <ebb9@byu.net>
37618
37619         test-pipe: make a bit more robust.
37620         * tests/test-pipe.c (myerr): Allow error messages regardless of
37621         what we do to stderr.
37622         (test_pipe): Rearrange to avoid deadlock.
37623         (child_main): Try a larger read, to ensure we avoided deadlock.
37624         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37625         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37626         if misused.
37627
37628 2009-07-19  Jim Meyering  <meyering@redhat.com>
37629
37630         fts: avoid false-positive cycle-detection
37631         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37632         for each new command line argument.
37633
37634 2009-07-19  Bruno Haible  <bruno@clisp.org>
37635
37636         Fix build error on mingw with the modules sys_select and unistd.
37637         * modules/acl-tests (Depends-on): Add close.
37638         * modules/binary-io-tests (Depends-on): Likewise.
37639         * modules/closein-tests (Depends-on): Likewise.
37640         * modules/flock-tests (Depends-on): Likewise.
37641         * modules/fsync-tests (Depends-on): Likewise.
37642         * modules/lseek-tests (Depends-on): Likewise.
37643         * modules/pipe-tests (Depends-on): Likewise.
37644         * modules/posix_spawn-tests (Depends-on): Likewise.
37645         * modules/posix_spawnp-tests (Depends-on): Likewise.
37646         * modules/stat-time-tests (Depends-on): Likewise.
37647         * modules/yesno-tests (Depends-on): Likewise.
37648
37649 2009-07-19  Bruno Haible  <bruno@clisp.org>
37650
37651         Unify conditionals.
37652         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37653         macros, not at the compiler macros.
37654         * lib/pipe.c: Likewise.
37655         * lib/execute.c: Likewise.
37656         * lib/spawni.c: Likewise.
37657
37658 2009-07-19  Bruno Haible  <bruno@clisp.org>
37659
37660         Fix handling of closed stdin/stdout/stderr on mingw.
37661         * lib/w32spawn.h: Include unistd.h.
37662         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37663         file descriptor with O_NOINHERIT flag.
37664         (fd_safer_noinherit): New function, based on fd-safer.c.
37665         (dup_safer_noinherit): New function, based on dup-safer.c.
37666         (undup_safer_noinherit): New function.
37667         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37668         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37669         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37670         instead of fd_safer.
37671         * tests/test-pipe.c: Include <windows.h>.
37672         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37673         result.
37674
37675         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37676         from main.
37677         (test_pipe): Pass an extra argument for disambiguation.
37678         (main): Invoke parent_main or child_main.
37679
37680         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37681         consistently.
37682
37683 2009-07-18  Eric Blake  <ebb9@byu.net>
37684
37685         test-pipe: fix mingw build
37686         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37687
37688 2009-07-18  Bruno Haible  <bruno@clisp.org>
37689
37690         * modules/pipe-tests (Makefile.am): Fix typo.
37691
37692 2009-07-18  Eric Blake  <ebb9@byu.net>
37693
37694         error: fix mingw build
37695         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37696         Reported by Bruno Haible.
37697
37698         error: avoid undefined use of stdout
37699         * lib/error.c (error, error_at_line): Check that fd 1 is open
37700         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37701         is handling faults and the close_stdout module wants to report the
37702         detection of closed stdout as an error.
37703
37704 2009-07-17  Eric Blake  <ebb9@byu.net>
37705
37706         pipe: be robust in face of closed fds
37707         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37708         should cause child to misbehave.
37709         * modules/pipe-tests: New module.
37710         * tests/test-pipe.c: New file.
37711         * tests/test-pipe.sh: New file.
37712         Reported by Akim Demaille.
37713
37714 2009-07-14  Bruno Haible  <bruno@clisp.org>
37715
37716         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37717         Reported by anonymous kc.
37718
37719 2009-07-07  Jim Meyering  <meyering@redhat.com>
37720
37721         maint.mk: don't look for translatable strings in *.m4 or *.mk
37722         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37723         when searching for translatable strings.
37724
37725 2009-07-05  Jim Meyering  <meyering@redhat.com>
37726
37727         remove superfluous parentheses in STREQ definition
37728         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37729         * lib/getugroups.c (STREQ): Likewise.
37730         * lib/fnmatch.c (STREQ): Likewise.
37731         Spotted by Bruno Haible.
37732
37733 2009-07-04  Jim Meyering  <meyering@redhat.com>
37734
37735         argv-iter: new module
37736         * MODULES.html.sh: Add argv-iter.
37737         * lib/argv-iter.c, lib/argv-iter.h: New files.
37738         * modules/argv-iter: New file.
37739         * modules/argv-iter-tests: New file.
37740         * tests/test-argv-iter.c: Test it.
37741
37742 2009-07-04  Bruno Haible  <bruno@clisp.org>
37743
37744         Fix assertion.
37745         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37746         contains more exact copies of a given entry than file2, leave the extra
37747         copies unpaired rather than aborting.
37748         Reported by Eric Blake.
37749
37750 2009-07-02  Bruno Haible  <bruno@clisp.org>
37751
37752         Speedup git-merge-changelog for git cherry-pick.
37753         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37754         (entries_mapping_get): New function, extracted from compute_mapping.
37755         (entries_mapping_reverse_get): New function.
37756         (compute_mapping): Add a 'full' argument. Return the result in a
37757         'struct entries_mapping'.
37758         (main): Update. Access the mappings through entries_mapping_get.
37759         Reported by Eric Blake.
37760
37761 2009-07-02  Bruno Haible  <bruno@clisp.org>
37762
37763         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37764         best_i.
37765
37766 2009-07-02  Bruno Haible  <bruno@clisp.org>
37767
37768         Speed up approximate search for matching ChangeLog entries.
37769         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37770         argument. Call fstrcmp_bounded instead of fstrcmp.
37771         (compute_mapping, try_split_merged_entry, main): Update callers.
37772
37773 2009-07-02  Bruno Haible  <bruno@clisp.org>
37774
37775         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37776
37777 2009-06-30  Bruno Haible  <bruno@clisp.org>
37778
37779         Reduce the number of uc_is_cased calls.
37780         * lib/unicase.h (casing_suffix_context_t): Add
37781         'first_char_except_ignorable' field.
37782         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37783         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37784         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37785         Update initializer.
37786         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37787         case-ignorable characters.
37788         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37789         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37790         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37791         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37792         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37793
37794 2009-06-30  Bruno Haible  <bruno@clisp.org>
37795
37796         Tests for module 'unicase/ignorable'.
37797         * modules/unicase/ignorable-tests: New file.
37798         * tests/unicase/test-ignorable.c: New file, generated by
37799         gen-uni-tables.
37800
37801         Tests for module 'unicase/cased'.
37802         * modules/unicase/cased-tests: New file.
37803         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37804         * tests/unicase/test-predicate-part1.h: New file, derived from
37805         tests/unictype/test-predicate-part1.h.
37806         * tests/unicase/test-predicate-part2.h: New file, same as
37807         tests/unictype/test-predicate-part2.h.
37808
37809         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37810         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37811         (output_casing_properties): New function.
37812         (main): Call it.
37813         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37814         * lib/unicase/cased.c: Include unictype/bitmap.h.
37815         (uc_is_cased): Define through a bitmap lookup.
37816         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37817         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37818         (uc_is_case_ignorable): Define through a bitmap lookup.
37819         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37820         lib/unictype/bitmap.h.
37821         (Depends-on): Add inline. Clean up.
37822         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37823         lib/unictype/bitmap.h.
37824         (Depends-on): Add inline. Clean up.
37825         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37826         recognition.
37827         * tests/unicase/test-u16-tolower.c (main): Likewise.
37828         * tests/unicase/test-u32-tolower.c (main): Likewise.
37829
37830 2009-06-30  Bruno Haible  <bruno@clisp.org>
37831
37832         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37833         * lib/unicase/u16-casemap.c: Likewise.
37834         * lib/unicase/u32-casemap.c: Likewise.
37835
37836 2009-06-29  Bruno Haible  <bruno@clisp.org>
37837
37838         Define u32_casefold as a wrapper around u32_ct_casefold.
37839         * lib/unicase/u32-casefold.c: Update.
37840         * modules/unicase/u32-casefold (Depends-on): Add
37841         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37842         unicase/empty-suffix-context. Clean up.
37843
37844         Define u16_casefold as a wrapper around u16_ct_casefold.
37845         * lib/unicase/u16-casefold.c: Update.
37846         * modules/unicase/u16-casefold (Depends-on): Add
37847         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37848         unicase/empty-suffix-context. Clean up.
37849
37850         Define u8_casefold as a wrapper around u8_ct_casefold.
37851         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37852         * lib/unicase/u8-casefold.c: Update.
37853         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37854         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37855
37856         Define u32_totitle as a wrapper around u32_ct_totitle.
37857         * lib/unicase/u32-totitle.c: Update.
37858         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37859         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37860
37861         Define u16_totitle as a wrapper around u16_ct_totitle.
37862         * lib/unicase/u16-totitle.c: Update.
37863         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37864         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37865
37866         Define u8_totitle as a wrapper around u8_ct_totitle.
37867         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37868         functions.
37869         (FUNC): Delegate to U_CT_TOTITLE.
37870         * lib/unicase/u8-totitle.c: Update.
37871         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37872         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37873
37874         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37875         invocation.
37876         * modules/unicase/u32-tolower (Depends-on): Add
37877         unicase/empty-prefix-context, unicase/empty-suffix-context.
37878
37879         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37880         invocation.
37881         * modules/unicase/u16-tolower (Depends-on): Add
37882         unicase/empty-prefix-context, unicase/empty-suffix-context.
37883
37884         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37885         * modules/unicase/u8-tolower (Depends-on): Add
37886         unicase/empty-prefix-context, unicase/empty-suffix-context.
37887
37888         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37889         invocation.
37890         * modules/unicase/u32-toupper (Depends-on): Add
37891         unicase/empty-prefix-context, unicase/empty-suffix-context.
37892
37893         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37894         invocation.
37895         * modules/unicase/u16-toupper (Depends-on): Add
37896         unicase/empty-prefix-context, unicase/empty-suffix-context.
37897
37898         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37899         * modules/unicase/u8-toupper (Depends-on): Add
37900         unicase/empty-prefix-context, unicase/empty-suffix-context.
37901
37902         New module 'unicase/u32-ct-casefold'.
37903         * lib/unicase/u32-ct-casefold.c: New file.
37904         * modules/unicase/u32-ct-casefold: New file.
37905
37906         New module 'unicase/u16-ct-casefold'.
37907         * lib/unicase/u16-ct-casefold.c: New file.
37908         * modules/unicase/u16-ct-casefold: New file.
37909
37910         New module 'unicase/u8-ct-casefold'.
37911         * lib/unicase/u8-ct-casefold.c: New file.
37912         * lib/unicase/u-ct-casefold.h: New file, derived from
37913         lib/unicase/u-casefold.h.
37914         * modules/unicase/u8-ct-casefold: New file.
37915
37916         New module 'unicase/u32-ct-totitle'.
37917         * lib/unicase/u32-ct-totitle.c: New file.
37918         * modules/unicase/u32-ct-totitle: New file.
37919
37920         New module 'unicase/u16-ct-totitle'.
37921         * lib/unicase/u16-ct-totitle.c: New file.
37922         * modules/unicase/u16-ct-totitle: New file.
37923
37924         New module 'unicase/u8-ct-totitle'.
37925         * lib/unicase/u8-ct-totitle.c: New file.
37926         * lib/unicase/u-ct-totitle.h: New file, derived from
37927         lib/unicase/u-totitle.h.
37928         * modules/unicase/u8-ct-totitle: New file.
37929
37930         New module 'unicase/u32-ct-tolower'.
37931         * lib/unicase/u32-ct-tolower.c: New file.
37932         * modules/unicase/u32-ct-tolower: New file.
37933
37934         New module 'unicase/u16-ct-tolower'.
37935         * lib/unicase/u16-ct-tolower.c: New file.
37936         * modules/unicase/u16-ct-tolower: New file.
37937
37938         New module 'unicase/u8-ct-tolower'.
37939         * lib/unicase/u8-ct-tolower.c: New file.
37940         * modules/unicase/u8-ct-tolower: New file.
37941
37942         New module 'unicase/u32-ct-toupper'.
37943         * lib/unicase/u32-ct-toupper.c: New file.
37944         * modules/unicase/u32-ct-toupper: New file.
37945
37946         New module 'unicase/u16-ct-toupper'.
37947         * lib/unicase/u16-ct-toupper.c: New file.
37948         * modules/unicase/u16-ct-toupper: New file.
37949
37950         New module 'unicase/u8-ct-toupper'.
37951         * lib/unicase/u8-ct-toupper.c: New file.
37952         * modules/unicase/u8-ct-toupper: New file.
37953
37954         Add context arguments to u*_casemap functions.
37955         * lib/unicase/unicasemap.h: Include unicase.h.
37956         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37957         suffix_context arguments.
37958         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37959         functions.
37960         (FUNC): Add prefix_context and suffix_context arguments. Use
37961         uc_is_cased and uc_is_case_ignorable.
37962         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37963         * lib/unicase/u16-casemap.c: Likewise.
37964         * lib/unicase/u32-casemap.c: Likewise.
37965         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37966         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37967         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37968         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37969         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37970         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37971
37972         New module 'unicase/u32-suffix-context'.
37973         * lib/unicase/u32-suffix-context.c: New file.
37974         * modules/unicase/u32-suffix-context: New file.
37975
37976         New module 'unicase/u16-suffix-context'.
37977         * lib/unicase/u16-suffix-context.c: New file.
37978         * modules/unicase/u16-suffix-context: New file.
37979
37980         New module 'unicase/u8-suffix-context'.
37981         * lib/unicase/u8-suffix-context.c: New file.
37982         * lib/unicase/u-suffix-context.h: New file.
37983         * modules/unicase/u8-suffix-context: New file.
37984
37985         New module 'unicase/empty-suffix-context'.
37986         * lib/unicase/empty-suffix-context.c: New file.
37987         * modules/unicase/empty-suffix-context: New file.
37988
37989         New module 'unicase/u32-prefix-context'.
37990         * lib/unicase/u32-prefix-context.c: New file.
37991         * modules/unicase/u32-prefix-context: New file.
37992
37993         New module 'unicase/u16-prefix-context'.
37994         * lib/unicase/u16-prefix-context.c: New file.
37995         * modules/unicase/u16-prefix-context: New file.
37996
37997         New module 'unicase/u8-prefix-context'.
37998         * lib/unicase/u8-prefix-context.c: New file.
37999         * lib/unicase/u-prefix-context.h: New file.
38000         * lib/unicase/context.h: New file.
38001         * modules/unicase/u8-prefix-context: New file.
38002
38003         New module 'unicase/empty-prefix-context'.
38004         * lib/unicase/empty-prefix-context.c: New file.
38005         * modules/unicase/empty-prefix-context: New file.
38006
38007         New module 'unicase/ignorable'.
38008         * lib/unicase/ignorable.c: New file.
38009         * modules/unicase/ignorable: New file.
38010
38011         New module 'unicase/cased'.
38012         * lib/unicase/caseprop.h: New file.
38013         * lib/unicase/cased.c: New file.
38014         * modules/unicase/cased: New file.
38015
38016         New functions for case mapping of substrings.
38017         * lib/unicase.h (casing_prefix_context_t): New type.
38018         (unicase_empty_prefix_context): New variable.
38019         (u8_casing_prefix_context, u16_casing_prefix_context,
38020         u32_casing_prefix_context, u8_casing_prefixes_context,
38021         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38022         declarations.
38023         (casing_suffix_context_t): New type.
38024         (unicase_empty_suffix_context): New variable.
38025         (u8_casing_suffix_context, u16_casing_suffix_context,
38026         u32_casing_suffix_context, u8_casing_suffixes_context,
38027         u16_casing_suffixes_context, u32_casing_suffixes_context,
38028         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38029         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38030         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38031         declarations.
38032
38033 2009-06-28  Jim Meyering  <meyering@redhat.com>
38034
38035         boostrap: indent only with spaces
38036         * build-aux/bootstrap: Indent only with spaces, never TABs.
38037
38038         bootstrap: split long lines
38039         * build-aux/bootstrap: Keep line length < 80.
38040
38041         bootstrap: sync from coreutils
38042         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38043         just as autoreconf does.  Verify a list of prerequisite
38044         package-name,version-number pairs if defined in bootstrap.conf.
38045         Refer to README-prereq, if prerequisites are not satisfied.
38046
38047 2009-06-27  Eric Blake  <ebb9@byu.net>
38048
38049         tests: add test for bogus NULL definition
38050         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38051         * tests/test-stdlib.c: Likewise.
38052         * tests/test-string.c: Likewise.
38053         * tests/test-locale.c: Likewise.
38054         * tests/test-unistd.c: Likewise.
38055         * modules/stdio-tests (Depends-on): Add verify.
38056         * modules/stdlib-tests (Depends-on): Likewise.
38057         * modules/string-tests (Depends-on): Likewise.
38058         * modules/locale-tests (Depends-on): Likewise.
38059         * modules/unistd-tests (Depends-on): Likewise.
38060
38061 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38062
38063         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38064         self-explaining comment.
38065         * m4/selinux-selinux-h: Update serial.
38066         (gl_LIBSELINUX): New macro, adding a warning for missing development
38067         packages to code extracted from...
38068         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38069         Add warning for missing development packages here, too.
38070
38071 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38072
38073         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38074
38075 2009-06-25  Eric Blake  <ebb9@byu.net>
38076
38077         version-etc: fix regression
38078         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38079         gcc.
38080         (version_etc): Use it, to catch bugs with trailing NULL.
38081         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38082         (version_etc_va): Fix logic bug.
38083         * modules/version-etc-tests: Add test.
38084         * tests/test-version-etc.c: New file.
38085         * tests/test-version-etc.sh: Likewise.
38086
38087 2009-06-25  Sam Steingold  <sds@gnu.org>
38088
38089         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38090         mbtowc declaration.
38091
38092 2009-06-25  Eric Blake  <ebb9@byu.net>
38093
38094         fpurge: migrate into <stdio.h>
38095         * lib/fpurge.h: Delete...
38096         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38097         * lib/fpurge.c (fpurge): Change declaring header.
38098         * modules/fpurge (Files): Drop deleted file.
38099         (Depends-on): Add stdio.
38100         (configure.ac): Set witness.
38101         * modules/stdio (Makefile.am): Support fpurge macros.
38102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38103         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38104         * lib/fflush.c: Update client.
38105         * tests/test-fpurge.c: Likewise.
38106         * NEWS: Mention the change.
38107
38108 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38109
38110         * lib/argp-version-etc.c (program_authors): Add const
38111         qualifier.
38112         * lib/version-etc.c: Fix typos in the comments.
38113         * modules/argp-version-etc: Depends on version-etc.
38114
38115 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38116
38117         argp-version-etc: new module.
38118
38119         * lib/argp-version-etc.c: New file.
38120         * lib/argp-version-etc.h: New file.
38121         * modules/argp-version-etc: New file.
38122         * modules/argp-version-etc-tests: New file.
38123         * tests/test-argp-version-etc.c: New test.
38124         * tests/test-argp-version-etc-1.sh: New test.
38125
38126 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38127
38128         Provide additional interfaces and documentation for version-etc
38129         module.
38130
38131         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38132         interfaces.
38133         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38134         prototypes.
38135
38136 2009-06-24  Bruno Haible  <bruno@clisp.org>
38137
38138         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38139         HAVE_LIB${NAME} macro.
38140         Reported by Sam Steingold <sds@gnu.org>.
38141
38142 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38143
38144         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38145         needed.
38146
38147 2009-06-21  Bruno Haible  <bruno@clisp.org>
38148
38149         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38150         work.
38151         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38152         together with LIB${NAME}, LTLIB${NAME}.
38153         Reported by Sam Steingold <sds@gnu.org>.
38154
38155 2009-06-20  Jim Meyering  <meyering@redhat.com>
38156
38157         tests: make sc_require_test_exit_idiom more generic
38158         * top/maint.mk (Exit_witness_file): New overridable variable.
38159         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38160         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38161
38162 2009-06-19  Jim Meyering  <meyering@redhat.com>
38163
38164         hash: reverse order of src/dst parameters in an internal interface
38165         * lib/hash.c (transfer_entries): Reverse order of parameters to
38166         put DST before SRC.  Adjust callers.
38167
38168         tests: test-hash: avoid wholesale duplication
38169         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38170         Instead, use a loop and add a single conditional.
38171
38172         tests: test-hash: allow seed selection via a command line argument
38173         * tests/test-hash.c (get_seed): New function.
38174         (main): Use it.
38175
38176 2009-06-19  Eric Blake  <ebb9@byu.net>
38177
38178         hash: avoid memory leak on allocation failure
38179         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38180         failure.  Factor repeated algorithm...
38181         (transfer_entries): ...into new helper routine.
38182         (hash_delete): React to hash_rehash return value.
38183
38184         hash: reduce memory pressure in hash_rehash no-op case
38185         * lib/hash.c (next_prime): Avoid overflow.
38186         (hash_initialize): Factor bucket size computation...
38187         (compute_bucket_size): ...into new helper function.
38188         (hash_rehash): Use new function and open coding to reduce memory
38189         pressure, and avoid a memory leak in USE_OBSTACK code.
38190         Reported by Jim Meyering.
38191
38192 2009-06-18  Eric Blake  <ebb9@byu.net>
38193
38194         hash: make rotation more obvious
38195         * modules/hash (Depends-on): Add bitrotate and stdint.
38196         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38197         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38198         (SIZE_MAX): Rely on headers for definition.
38199         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38200         (raw_hasher): Use rotr_sz.
38201         Suggested by Jim Meyering.
38202
38203         hash: fix memory leak in last patch
38204         * lib/hash.c (hash_rehash): Avoid memory leak.
38205
38206         hash: avoid no-op rehashing
38207         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38208
38209         hash: provide default callback functions
38210         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38211         (hash_initialize): Use them as defaults.
38212         * tests/test-hash.c (main): Test this.
38213
38214         hash: minor optimization
38215         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38216         when possible.
38217         (hash_initialize): Document this promise.
38218         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38219         * tests/test-hash.c (hash_compare_strings): Test this.
38220
38221 2009-06-18  Bruno Haible  <bruno@clisp.org>
38222
38223         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38224         going to be replaced anyway.
38225
38226 2009-06-18  Bruno Haible  <bruno@clisp.org>
38227
38228         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38229         in one place.
38230         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38231         be replaced anyway.
38232
38233 2009-06-18  Eric Blake  <ebb9@byu.net>
38234
38235         hash: check for resize before insertion
38236         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38237         threshold before insertion, so that a pathological hash_rehash
38238         that fills every bucket can still trigger another rehash.
38239
38240 2009-06-18  Jim Meyering  <meyering@redhat.com>
38241
38242         hash-tests: add a loop around the small tests
38243         * tests/test-hash.c (main): Repeat small tests with selected
38244         small initial table sizes.
38245
38246 2009-06-17  Eric Blake  <ebb9@byu.net>
38247
38248         hash: minor cleanups
38249         * lib/hash.h (hash_entry): Make opaque, by moving...
38250         * lib/hash.c (hash_entry): ...here.
38251         (hash_insert): Clarify restrictions on what can be inserted.
38252         (hash_get_next): Clarify when it is safe to remove an element
38253         during traversal.
38254         (check_tuning): Skip verification when tuning is known safe.
38255         (hash_initialize): Clarify restrictions on tuning.
38256
38257 2009-06-17  Jim Meyering  <jim@meyering.net>
38258         and Eric Blake  <ebb9@byu.net>
38259
38260         hash-tests: new module
38261         * modules/hash-tests: New file.
38262         * tests/test-hash.c: New file.
38263
38264 2009-06-17  Eric Blake  <ebb9@byu.net>
38265
38266         strstr-simple: document new module
38267         * MODULES.html.sh: Document new module.
38268
38269         strstr, strcasestr: replace on platforms with broken memchr
38270         * modules/strstr: Split into...
38271         * modules/strstr-simple: ...new module that does not care about
38272         performance, but does care about glibc bug.
38273         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38274         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38275         if platform memchr is broken, per Debian bug 521737.
38276         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38277         memchr.
38278         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38279         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38280         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38281         * modules/mountlist (Depends-on): Add strstr-simple.
38282         * modules/gen-uni-tables (Depends-on): Likewise.
38283         * modules/argz (Depends-on): Add strstr.
38284
38285 2009-06-17  Bruno Haible  <bruno@clisp.org>
38286
38287         * modules/posix_spawn-internal (Depends-on): Add errno.
38288
38289 2009-06-17  Bruno Haible  <bruno@clisp.org>
38290
38291         Define missing ESTALE on Interix 3.5.
38292         * lib/errno.in.h (ESTALE): Assign a value if missing.
38293         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38294         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38295         missing.
38296         * doc/posix-headers/errno.texi: Mention the Interix bug.
38297         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38298
38299 2009-06-15  Eric Blake  <ebb9@byu.net>
38300
38301         memchr, memchr2: add valgrind exception
38302         * lib/memchr.valgrind: New file.
38303         * lib/memchr2.valgrind: New file.
38304         * modules/memchr (Files): Distribute valgrind file.
38305         * modules/memchr2 (Files): Likewise.
38306
38307         docs: memchr is no longer obsolete
38308         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38309         * lib/string.in.h (memchr): Simplify logic.
38310
38311 2009-06-14  Jim Meyering  <meyering@redhat.com>
38312
38313         link-follow: fix the "checking..." message to not mention trailing slash
38314         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38315         never considered trailing slashes.
38316
38317 2009-06-14  Bruno Haible  <bruno@clisp.org>
38318
38319         * m4/memchr.m4: Mention also the bug on IA-64.
38320         * doc/posix-functions/memchr.texi: Likewise.
38321
38322 2009-06-12  Eric Blake  <ebb9@byu.net>
38323
38324         memchr: detect broken x86_64 and alpha implementations
38325         * modules/memchr-tests (Depends-on): Move mmap detection...
38326         * modules/memchr (Depends-on): ...here.
38327         (configure.ac): Set indicator.
38328         * lib/string.in.h (memchr): Declare replacement.
38329         * modules/string (Makefile.am): Trigger replacement.
38330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38331         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38332         bugs.
38333         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38334         * modules/getpagesize (License): Relax license.
38335
38336 2009-06-11  Bruno Haible  <bruno@clisp.org>
38337
38338         * lib/idpriv.h: Add more references.
38339
38340 2009-06-08  Bruno Haible  <bruno@clisp.org>
38341
38342         Tests for module 'idpriv-droptemp'.
38343         * modules/idpriv-droptemp-tests: New file.
38344         * tests/test-idpriv-droptemp.sh: New file.
38345         * tests/test-idpriv-droptemp.su.sh: New file.
38346         * tests/test-idpriv-droptemp.c: New file.
38347
38348         New module 'idpriv-droptemp'.
38349         * lib/idpriv-droptemp.c: New file.
38350         * modules/idpriv-droptemp: New file.
38351
38352 2009-06-08  Bruno Haible  <bruno@clisp.org>
38353
38354         Tests for module 'idpriv-drop'.
38355         * modules/idpriv-drop-tests: New file.
38356         * tests/test-idpriv-drop.sh: New file.
38357         * tests/test-idpriv-drop.su.sh: New file.
38358         * tests/test-idpriv-drop.c: New file.
38359
38360         New module 'idpriv-drop'.
38361         * lib/idpriv.h: New file.
38362         * lib-idpriv-drop.c: New file.
38363         * m4/idpriv.m4: New file.
38364         * modules/idpriv-drop: New file.
38365
38366 2009-06-08  Bruno Haible  <bruno@clisp.org>
38367
38368         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38369         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38370         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38371         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38372         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38373         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38374         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38375
38376 2009-06-08  Eric Blake  <ebb9@byu.net>
38377
38378         test-strstr: use memory fence, when possible
38379         * tests/test-strstr.c (main): Use memory fence, in order to be
38380         more likely to trigger Debian bug 521737.
38381         * modules/strstr-tests (Files): Pull in additional files.
38382
38383         memchr: no longer obsolete, for wider field testing
38384         * modules/memchr (Status, Notice): Delete, this module is no
38385         longer obsolete.
38386         * modules/vasnprintf (Depends-on): Add memchr.
38387
38388 2009-06-07  Jim Meyering  <meyering@redhat.com>
38389
38390         hash: declare some functions with the warn_unused_result attribute
38391         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38392
38393 2009-06-07  Bruno Haible  <bruno@clisp.org>
38394
38395         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38396         Reported by Eric Blake.
38397
38398 2009-06-06  Eric Blake  <ebb9@byu.net>
38399
38400         test-alignof: fix typo with long double
38401         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38402         compiler error.
38403
38404 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38405
38406         Escape non-texinfo { and }s.
38407         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38408         markup error.
38409
38410 2009-06-04  Jim Meyering  <meyering@redhat.com>
38411
38412         gitlog-to-changelog: don't infloop on an empty commit log
38413         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38414         Reported by Boris Petersen <transacid@centerim.org>.
38415
38416 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38417
38418         version-etc: extend for packagers
38419         Add three new configure options, intended for packagers:
38420           --with-packager="packager name"
38421           --with-packager-version="packager-specific version"
38422           --with-packager-bug-reports="packager bug reporting"
38423         An example with coreutils:
38424           $ ./configure \
38425             --with-packager=Gentoo \
38426             --with-packager-bug-report=http://bugs.gentoo.org/ \
38427             --with-packager-version="patchset 1.6"
38428           $ ./src/ls --version | head -n2
38429           ls (GNU coreutils) 7.1-dirty
38430           Packaged by Gentoo (patchset 1.6)
38431         Note that the bug reporting info via --help doesn't show up because
38432         coreutils uses its own custom emit_bug_reporting_address() implementation
38433         in src/system.h.  If it didn't, it'd look like:
38434           $ ./src/ls --help | tail -n4
38435           Report bugs to <bug-coreutils@gnu.org>.
38436           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38437           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38438           General help using GNU software: <http://www.gnu.org/gethelp/>.
38439         * lib/version-etc.c: Print new information, if provided.
38440         * m4/version-etc.m4: New file.
38441         * modules/version-etc (Files): Add m4/version-etc.m4.
38442         (configure.ac): Add gl_VERSION_ETC.
38443
38444 2009-05-31  Bruno Haible  <bruno@clisp.org>
38445
38446         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38447         and 'int64_t'.
38448         * modules/alignof-tests (Dependencies): Add stdint.
38449         Reported by Eric Blake.
38450
38451 2009-05-31  Bruno Haible  <bruno@clisp.org>
38452
38453         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38454         restriction due to compiler bugs.
38455         Reported by Eric Blake.
38456
38457 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38458             Bruno Haible  <bruno@clisp.org>
38459
38460         Fix test-alignof failure.
38461         * lib/alignof.h (alignof_slot): New macro.
38462         (alignof_type): New macro, with the same semantics as the previous
38463         'alignof'.
38464         (alignof): Alias to alignof_slot.
38465         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38466         check that the results are usable as constant expressions.
38467
38468 2009-05-31  Bruno Haible  <bruno@clisp.org>
38469
38470         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38471         * tests/test-memchr.c (main): Check that memchr does not read past the
38472         first occurrence of the byte.
38473         * tests/test-strstr.c (main): Update comment.
38474         Suggested by Eric Blake.
38475
38476 2009-05-30  Bruno Haible  <bruno@clisp.org>
38477
38478         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38479         detail how to use dumpbin.
38480         Reported by David Byron <dbyron@dbyron.com>.
38481
38482 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38483
38484         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38485
38486 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38487
38488         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38489
38490 2009-05-28  Bruno Haible  <bruno@clisp.org>
38491
38492         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38493         build-aux/ files.
38494
38495 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38496
38497         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38498
38499 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38500
38501         * gnulib-tool (sed_transform_main_lib_file)
38502         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38503         regexps.
38504
38505 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38506
38507         * tests/test-strstr.c: Add another self-test.
38508         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38509         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38510
38511 2009-05-23  Bruno Haible  <bruno@clisp.org>
38512
38513         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38514         change.
38515
38516 2009-05-21  Bruno Haible  <bruno@clisp.org>
38517
38518         Simplify use of mode_t varargs.
38519         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38520         uses 'mode_t' or 'int'.
38521         * lib/openat.c (openat): Likewise.
38522         * lib/open-safer.c (open_safer): Likewise.
38523         * m4/mode_t.m4: New file.
38524         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38525         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38526         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38527         * modules/open (Files): Add m4/mode_t.m4.
38528         * modules/openat (Files): Likewise.
38529         * modules/fcntl-safer (Files): Likewise.
38530         Suggested by Eric Blake.
38531
38532 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38533
38534         * doc/glibc-functions/fallocate.texi: New file.
38535         * doc/gnulib.texi: Include it.
38536
38537 2009-05-21  Eric Blake  <ebb9@byu.net>
38538             Bruno Haible  <bruno@clisp.org>
38539
38540         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38541         invocations.
38542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38543
38544 2009-05-21  Eric Blake  <ebb9@byu.net>
38545             Bruno Haible  <bruno@clisp.org>
38546
38547         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38548         include_next. Fix of 2008-11-20 commit.
38549         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38550         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38551         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38552         NEXT_MATH_H.
38553         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38554         instead of NEXT_MATH_H.
38555
38556 2009-05-21  Bruno Haible  <bruno@clisp.org>
38557
38558         Avoid redefinition warnings for SIZE_MAX.
38559         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38560         Reported by Simon Josefsson.
38561
38562 2009-05-21  Bruno Haible  <bruno@clisp.org>
38563
38564         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38565         AC_CACHE_VAL.
38566
38567 2009-05-20  Bruno Haible  <bruno@clisp.org>
38568
38569         Make zeroptr.h work on mingw.
38570         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38571         mprotect.
38572         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38573         * modules/memchr2-tests (configure.ac): Likewise.
38574         * modules/memcmp-tests (configure.ac): Likewise.
38575         * modules/memmem-tests (configure.ac): Likewise.
38576         * modules/memrchr-tests (configure.ac): Likewise.
38577         Reported by Simon Josefsson.
38578
38579 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38580
38581         * tests/test-glob.c: Include string.h for strcmp prototype.
38582
38583 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38584
38585         * modules/getdelim (Depends-on): Add explicit stdint, although it
38586         was implicitly already pulled in via realloc-posix.
38587         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38588
38589 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38590
38591         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38592         G. Christensen" <tgc@jupiterrise.com>.
38593         * m4/sys_socket_h.m4: Check for sa_family_t.
38594         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38595         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38596         * tests/test-sys_socket.c: Check that sa_family_t works.
38597
38598 2009-05-18  Eric Blake  <ebb9@byu.net>
38599
38600         maint.mk: allow gnulib_dir in VPATH build
38601         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38602
38603 2009-05-15  Jim Meyering  <meyering@redhat.com>
38604
38605         maint.mk: Give gnulib_dir a default definition.
38606         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38607         Thus, most packages no longer need to specify this variable in cfg.mk
38608
38609 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38610
38611         rename.m4: fix typos that would make non-mingw cross-configure fail
38612         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38613
38614 2009-05-13  Eric Blake  <ebb9@byu.net>
38615
38616         mmap-anon: avoid out-of-order autoconf expansion
38617         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38618         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38619         * modules/memchr-tests (Depends-on): Add extensions.
38620         * modules/memchr2-tests (Depends-on): Add extensions.
38621         * modules/memcmp-tests (Depends-on): Add extensions.
38622         * modules/memmem-tests (Depends-on): Add extensions.
38623         * modules/memrchr-tests (Depends-on): Add extensions.
38624
38625 2009-05-13  Bruno Haible  <bruno@clisp.org>
38626
38627         Make some tests ISO C 99 compliant.
38628         * tests/zerosize-ptr.h: New file.
38629         * tests/test-memchr.c: Include zerosize-ptr.h.
38630         (main): Use a zero-size object pointer instead of NULL.
38631         * tests/test-memchr2.c: Include zerosize-ptr.h.
38632         (main): Use a zero-size object pointer instead of NULL.
38633         * tests/test-memcmp.c: Include zerosize-ptr.h.
38634         (main): Use a zero-size object pointer instead of NULL.
38635         * tests/test-memmem.c: Include zerosize-ptr.h.
38636         (main): Use a zero-size object pointer instead of NULL.
38637         * tests/test-memrchr.c: Include zerosize-ptr.h.
38638         (main): Use a zero-size object pointer instead of NULL.
38639         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38640         m4/mmap-anon.m4.
38641         (Depends-on): Add getpagesize.
38642         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38643         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38644         m4/mmap-anon.m4.
38645         (Depends-on): Add getpagesize.
38646         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38647         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38648         m4/mmap-anon.m4.
38649         (Depends-on): Add getpagesize.
38650         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38651         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38652         m4/mmap-anon.m4.
38653         (Depends-on): Add getpagesize.
38654         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38655         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38656         m4/mmap-anon.m4.
38657         (Depends-on): Add getpagesize.
38658         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38659
38660 2009-05-12  Bruno Haible  <bruno@clisp.org>
38661
38662         Tests for module 'alignof'.
38663         * modules/alignof-tests: New file.
38664         * tests/test-alignof.c: New file.
38665
38666 2009-05-12  Bruno Haible  <bruno@clisp.org>
38667
38668         Fix alignof macro.
38669         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38670         vendor compilers that are always correct.
38671
38672 2009-05-12  Bruno Haible  <bruno@clisp.org>
38673
38674         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38675         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38676         not whether its fully works.
38677
38678 2009-05-12  Bruno Haible  <bruno@clisp.org>
38679
38680         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38681
38682 2009-05-12  Jim Meyering  <meyering@redhat.com>
38683
38684         * top/maint.mk: Adjust backslash alignment.
38685
38686 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38687
38688         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38689
38690 2009-05-11  Eric Blake  <ebb9@byu.net>
38691
38692         argp: avoid undefined behavior
38693         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38694         macros.
38695
38696 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38697
38698         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38699         user.name to prevent git commit from complaining.
38700
38701 2009-05-10  Bruno Haible  <bruno@clisp.org>
38702
38703         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38704         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38705         it rewrites every file name only once.
38706         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38707
38708 2009-05-08  Bruno Haible  <bruno@clisp.org>
38709
38710         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38711         instead of 'max'.
38712
38713 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38714
38715         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38716         sockaddr_storage test.
38717
38718 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38719
38720         * modules/sys_socket (Makefile.am): Substitute
38721         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38722         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38723         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38724         * tests/test-sys_socket.c: Check sockaddr_storage.
38725
38726 2009-05-08  Bruno Haible  <bruno@clisp.org>
38727
38728         New module 'alignof'.
38729         * lib/alignof.h: New file.
38730         * modules/alignof: New file.
38731
38732 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38733             Bruno Haible  <bruno@clisp.org>
38734
38735         Fix test-file-has-acl on FreeBSD.
38736         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38737         mask is implicitly added.
38738         * tests/test-file-has-acl.c: Include <signal.h>.
38739         (main): Terminate the test after 5 seconds.
38740         * modules/acl-tests (configure.ac): Check for alarm function.
38741
38742 2009-05-04  Bruno Haible  <bruno@clisp.org>
38743
38744         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38745         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38746         * modules/errno (configure.ac): Drop AC_REQUIRE.
38747         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38748         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38749
38750 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38751
38752         * modules/glob-tests: New module.
38753         * tests/test-glob.c: Add.
38754
38755 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38756
38757         * modules/fnmatch-tests: New module.
38758         * tests/test-fnmatch.c: Add.
38759
38760 2009-05-04  Eric Blake  <ebb9@byu.net>
38761
38762         maint: make the new no-submodule-changes rule VPATH-safe
38763         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38764
38765 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38766             Bruno Haible  <bruno@clisp.org>
38767
38768         acl: Fix infinite loop on FreeBSD.
38769         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38770         of return value from acl_get_entry.
38771         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38772         Likewise.
38773
38774 2009-05-03  Bruno Haible  <bruno@clisp.org>
38775
38776         * lib/acl-internal.h (acl_entries): Clarify return value.
38777         * lib/acl_entries.c (acl_entries): Likewise.
38778
38779 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38780
38781         Bug fix in acl module.
38782         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38783
38784 2009-05-03  Bruno Haible  <bruno@clisp.org>
38785
38786         Create gperf-generated file in the source dir, not in the build dir.
38787         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38788         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38789         * modules/unicase/locale-language (unicase/locale-languages.h):
38790         Likewise.
38791         * modules/unicase/special-casing (unicase/special-casing-table.h):
38792         Likewise.
38793         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38794         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38795         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38796         Reported by Ralf Wildenhues.
38797
38798 2009-05-03  Bruno Haible  <bruno@clisp.org>
38799
38800         * modules/fnmatch (Description, configure.ac): Taken from
38801         fnmatch-posix.
38802         * modules/fnmatch-posix: Turn into a symbolic reference to the
38803         'fnmatch' module, and deprecate.
38804         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38805
38806 2009-05-03  Bruno Haible  <bruno@clisp.org>
38807
38808         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38809         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38810         Reported by Ralf Wildenhues.
38811
38812 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38813
38814         * m4/fnmatch.m4: Fix fnmatch re-define.
38815
38816 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38817
38818         priv-set: new module and tests; adapt write-any-file
38819         * lib/priv-set.c: New file.
38820         * lib/priv-set.h: New file.
38821         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38822         * lib/write-any-file.c: Simplify by using priv-set module.
38823         * m4/priv-set.m4: New file.
38824         * modules/priv-set: New file.
38825         * modules/unlinkdir: Add dependency on priv-set module.
38826         * modules/write-any-file: Likewise.
38827
38828         Tests for module 'priv-set'.
38829         * modules/priv-set-tests: New file.
38830         * tests/test-priv-set.c: New file.
38831
38832 2009-05-03  Jim Meyering  <meyering@redhat.com>
38833             Bruno Haible  <bruno@clisp.org>
38834
38835         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38836         use the converted UTF-8 variant of the name instead.
38837
38838 2009-05-03  Jim Meyering  <meyering@redhat.com>
38839
38840         tests: tighten some getdate tests
38841         * tests/test-getdate.c (main): Tighten tests: require equality,
38842         not just greater than.  Set TZ envvar to UTC0.
38843
38844 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38845
38846         getdate: correctly interpret "next monday" when run on a Monday
38847         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38848         that e.g., "next tues" (when run on a tuesday) results in a date
38849         that is one week in the future, and not today's date.
38850         I.e., add a week when the wday is the same as the current one.
38851         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38852         and earlier by Martin Bernreuther and Jan Minář.
38853         * tests/test-getdate.c (main): Check that "next DAY" is always in
38854         the future and that "last DAY" is always in the past.
38855
38856 2009-05-02  Jim Meyering  <meyering@redhat.com>
38857
38858         build: ensure that a release build fails when a submodule is unclean
38859         * top/maint.mk (no-submodule-changes): New rule.
38860         (alpha beta major): Depend on it.
38861
38862 2009-05-02  Bruno Haible  <bruno@clisp.org>
38863
38864         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38865         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38866         shell variable gl_fnmatch_required to detect which variant is
38867         requested.
38868         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38869         gl_FUNC_FNMATCH_POSIX.
38870         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38871         exclude fnmatch-posix.
38872
38873 2009-05-02  Bruno Haible  <bruno@clisp.org>
38874
38875         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38876         * modules/mbsrtowcs (License): Change to LGPLv2+.
38877         * modules/strnlen1 (License): Likewise.
38878         Reported by Simon Josefsson.
38879
38880 2009-05-02  Bruno Haible  <bruno@clisp.org>
38881
38882         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38883         "cross".
38884         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38885         gnulib-tool was called with option --source-base=lib.
38886
38887 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38888
38889         Use automake *-local hooks without commands, for extensibility.
38890         * modules/localcharset (Makefile.am): Rename install-exec-local
38891         rule to install-exec-localcharset, and make it a prerequisite of
38892         install-exec-local.  Likewise, rename the uninstall-local rule to
38893         uninstall-localcharset, and make it a prerequisite of the former.
38894
38895 2009-05-01  Bruno Haible  <bruno@clisp.org>
38896
38897         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38898         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38899         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38900         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38901         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38902         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38903         m4/locale-zh.m4, m4/codeset.m4.
38904
38905         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38906         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38907         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38908         m4/locale-zh.m4.
38909
38910         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38911         REPLACE_WCRTOMB if mbstate_t must be replaced.
38912         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38913         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38914
38915 2009-05-01  Bruno Haible  <bruno@clisp.org>
38916
38917         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38918         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38919         dngettext, dcngettext, textdomain, bindtextdomain,
38920         bind_textdomain_codeset): Undefine before redefining.
38921
38922 2009-04-30  Bruno Haible  <bruno@clisp.org>
38923
38924         Fix bug introduced on 2009-04-25.
38925         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38926         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38927         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38928         is defined.
38929         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38930         is defined.
38931         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38932         is defined.
38933         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38934
38935 2009-04-28  Bruno Haible  <bruno@clisp.org>
38936
38937         Comment tweaks.
38938         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38939         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38940         * lib/unicase.h (u*_casexfrm): Likewise.
38941         Reported by Paolo Bonzini.
38942
38943 2009-04-28  Bruno Haible  <bruno@clisp.org>
38944
38945         Fix a compilation error.
38946         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38947         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38948         Reported by Jim Meyering.
38949
38950 2009-04-27  Bruno Haible  <bruno@clisp.org>
38951
38952         New module 'libunistring'.
38953         * modules/libunistring: New file.
38954         * m4/libunistring.m4: New file.
38955         * MODULES.html.sh (Unicode string functions): Add it.
38956
38957 2009-04-27  Eric Blake  <ebb9@byu.net>
38958
38959         maint.mk: allow package-specific header to provide <config.h>
38960         * top/maint.mk (sc_require_config_h): New variable.
38961         (sc_require_config_h, sc_require_config_h_first): Use it.
38962
38963 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38964
38965         * top/maint.mk (sc_avoid_if_before_free): Except
38966         useless-if-before-free script.
38967
38968 2009-04-27  Eric Blake  <ebb9@byu.net>
38969
38970         maintainer-makefile: depend on all required helper scripts
38971         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38972         useless-if-before-free.
38973         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38974         version, rather than assuming gnulib checkout is available.
38975         Reported by Simen Josefsson.
38976
38977 2009-04-26  Bruno Haible  <bruno@clisp.org>
38978
38979         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38980         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38981         "../" or "..".
38982
38983 2009-04-26  Bruno Haible  <bruno@clisp.org>
38984
38985         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38986         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38987         AC_LIB_HAVE_LINKFLAGS.
38988
38989 2009-04-26  Bruno Haible  <bruno@clisp.org>
38990
38991         Simplify calling convention of u*_conv_from_encoding.
38992         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38993         u32_conv_from_encoding): Expect a resultbuf argument and return the
38994         result directly as a pointer.
38995         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38996         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38997         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38998         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38999         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39000         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39001         Update.
39002         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39003         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39004         * lib/vasnprintf.c (VASNPRINTF): Update.
39005         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39006         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39007         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39008         * NEWS: Mention the change.
39009
39010 2009-04-26  Bruno Haible  <bruno@clisp.org>
39011
39012         Simplify calling convention of u*_conv_to_encoding.
39013         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39014         u32_conv_to_encoding): Expect a resultbuf argument and return the
39015         result directly as a pointer.
39016         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39017         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39018         freeing scaled_offsets if mem_iconveha failed.
39019         * lib/unicase/u-casexfrm.h (FUNC): Update.
39020         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39021         * lib/vasnprintf.c (VASNPRINTF): Update.
39022         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39023         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39024         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39025         * NEWS: Mention the change.
39026
39027 2009-04-26  Bruno Haible  <bruno@clisp.org>
39028
39029         Avoid test failures on AIX and OSF/1.
39030         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39031         malloc(0).
39032         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39033         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39034         Likewise.
39035         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39036         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39037         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39038         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39039         * doc/posix-functions/malloc.texi: Document the portability problem
39040         related to malloc(0).
39041
39042 2009-04-26  Bruno Haible  <bruno@clisp.org>
39043
39044         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39045         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39046         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39047
39048 2009-04-25  Bruno Haible  <bruno@clisp.org>
39049
39050         Avoid link error when creating a namespace clean library.
39051         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39052         as macro with arguments if already defined as an alias.
39053         * lib/signbitf.c (gl_signbitf): Don't undefine.
39054         * lib/signbitd.c (gl_signbitd): Don't undefine.
39055         * lib/signbitl.c (gl_signbitl): Don't undefine.
39056
39057 2009-04-25  Jim Meyering  <meyering@redhat.com>
39058
39059         vc-list-files: fix another quoting bug
39060         * build-aux/vc-list-files: Avoid sed backslash expansion
39061         of pathological directory names.
39062
39063 2009-04-25  Eric Blake  <ebb9@byu.net>
39064
39065         vc-list-files: fix shell quoting error
39066         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39067         timestamp.
39068
39069 2009-04-25  Jim Meyering  <meyering@redhat.com>
39070
39071         vc-list-files: restore lost functionality with subdir argument
39072         * build-aux/vc-list-files: When given a non-"." sub-directory
39073         argument, substitute the $dir/ prefix back onto each resulting name.
39074         Otherwise, coreutils' root_tests check would fail.
39075
39076 2009-04-24  Eric Blake  <ebb9@byu.net>
39077
39078         vc-list-files: ignore git symlinks
39079         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39080         than ls-files, to ignore git symlinks.
39081
39082         maint.mk: import improvements from m4
39083         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39084         (move_if_change): Delete unused macro.
39085         (news-date-check, vc-diff-check): Support VPATH builds.
39086         (announcement): Likewise.  Split --bootstrap-tools list...
39087         (boostrap-tools): ...into separate list, which can be overridden
39088         in cfg.mk.
39089         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39090         requiring dependency on useless-if-before-free module.
39091         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39092         Support VPATH builds.
39093
39094 2009-04-24  Jim Meyering  <meyering@redhat.com>
39095
39096         maint.mk: remove coreutils-specific rules and variables
39097         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39098         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39099         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39100
39101         maint.mk: remove obsolete rule
39102         * top/maint.mk (rel-check): Remove rule.
39103         (WGET, WGETFLAGS): Remove now-unused variables.
39104
39105 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39106
39107         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39108         consistency.
39109
39110         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39111         '$(PATH_SEPARATOR)' instead of ':'.
39112
39113 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39114
39115         * lib/getopt1.c (main): Use 'const' for static array.
39116
39117 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39118
39119         * top/maint.mk: Sync with coreutils.
39120         * NEWS: Explain incompatibilities.
39121
39122 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39123             Bruno Haible  <bruno@clisp.org>
39124
39125         Fix cross-compilation results.
39126         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39127         statement, as third argument of AC_TRY_RUN.
39128         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39129         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39130         Likewise.
39131         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39132         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39133         Likewise.
39134         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39135         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39136         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39137
39138 2009-04-20  Bruno Haible  <bruno@clisp.org>
39139
39140         Avoid test failure on mingw.
39141         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39142
39143 2009-04-20  Bruno Haible  <bruno@clisp.org>
39144
39145         Avoid compilation error on mingw.
39146         * modules/localename-tests (Depends-on): Add locale.
39147
39148 2009-04-19  Bruno Haible  <bruno@clisp.org>
39149
39150         Support for building a shared library on Windows platforms.
39151         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39152         (main): Test the presence of UNINORM_NFC here.
39153         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39154         (main): Test the presence of UNINORM_NFD here.
39155         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39156         (main): Test the presence of UNINORM_NFKC here.
39157         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39158         (main): Test the presence of UNINORM_NFKD here.
39159
39160 2009-04-19  Bruno Haible  <bruno@clisp.org>
39161
39162         Avoid a compiler warning.
39163         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39164         Change type of variable 'sequence'.
39165
39166 2009-04-19  Bruno Haible  <bruno@clisp.org>
39167
39168         * modules/configmake (Makefile.am): When the contents of configmake.h
39169         does not change, arrange to preserve its modification time.
39170
39171 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39172
39173         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39174         gettext domain.
39175
39176 2009-04-16  Jim Meyering  <meyering@redhat.com>
39177
39178         useless-if-before-free: improve conversion code
39179         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39180         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39181
39182 2009-04-14  Bruno Haible  <bruno@clisp.org>
39183
39184         * modules/fcntl (Depends-on): Add extensions.
39185         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39186
39187 2009-04-12  Ben Pfaff  <blp@gnu.org>
39188
39189         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39190         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39191
39192 2009-03-20  Ben Pfaff  <blp@gnu.org>
39193
39194         Make rename replace existing destinations on Windows.
39195         * m4/rename.m4: Add test for Mingw.
39196         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39197         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39198         * doc/posix-functions/rename.texi: Document.
39199
39200 2009-04-10  Bruno Haible  <bruno@clisp.org>
39201
39202         New include file "iconveh.h".
39203         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39204         * lib/striconveh.h: Include it.
39205         (enum iconv_ilseq_handler): Remove definition.
39206         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39207         striconveh.h.
39208         * lib/striconveha.c: Include striconveh.h.
39209         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39210         * modules/striconveh (Files): Add lib/iconveh.h.
39211         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39212         lib/striconveh.h.
39213
39214 2009-04-10  Bruno Haible  <bruno@clisp.org>
39215
39216         * lib/uniconv.h: Update comment.
39217
39218 2009-04-10  Bruno Haible  <bruno@clisp.org>
39219
39220         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39221         always.
39222         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39223         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39224         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39225         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39226         "unistring-notinline.h", so that the function gets defined always.
39227         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39228         * lib/unistr/u8-uctomb.c: Likewise.
39229         * lib/unistr/u16-mbtouc.c: Likewise.
39230         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39231         * lib/unistr/u16-uctomb.c: Likewise.
39232         * lib/unistr/u32-mbtouc.c: Likewise.
39233         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39234         * lib/unistr/u32-uctomb.c: Likewise.
39235
39236 2009-04-10  Bruno Haible  <bruno@clisp.org>
39237
39238         Mark 'utime' obsolete.
39239         * modules/utime (Status, Notice): New sections.
39240         Suggested by Jim Meyering.
39241
39242         Fix cross-compile guess for utime test.
39243         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39244         autoconf.
39245         * doc/posix-functions/utime.texi: Give more precisions.
39246         Reported by Jan <ipif@ymail.com>.
39247
39248 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39249
39250         filevercmp: correct today's change
39251         * lib/filevercmp.c: Also handle coreutils' test inputs.
39252         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39253
39254         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39255         for reporting it.
39256         * lib/filevercmp.c: Special handle for "", "." and "..".
39257         * tests/test-filevercmp.c: Enlarge the set suite.
39258
39259 2009-04-07  Jim Meyering  <meyering@redhat.com>
39260
39261         useless-if-before-free: show how to remove braced useless free, too
39262         * build-aux/useless-if-before-free: still only in a comment, though.
39263
39264 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39265
39266         maint.mk: import changes to syntax-check macros from coreutils
39267         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39268         Use them in the relevant macros.
39269
39270 2009-04-06  Bruno Haible  <bruno@clisp.org>
39271
39272         Fix unportable use of bit-fields.
39273         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39274         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39275         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39276
39277 2009-04-06  Bruno Haible  <bruno@clisp.org>
39278
39279         Avoid test failures on AIX and OSF/1.
39280         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39281         that malloc(0) = NULL.
39282         * tests/unicase/test-u8-tolower.c (check): Likewise.
39283         * tests/unicase/test-u8-totitle.c (check): Likewise.
39284         * tests/unicase/test-u8-toupper.c (check): Likewise.
39285         * tests/unicase/test-u16-casefold.c (check): Likewise.
39286         * tests/unicase/test-u16-tolower.c (check): Likewise.
39287         * tests/unicase/test-u16-totitle.c (check): Likewise.
39288         * tests/unicase/test-u16-toupper.c (check): Likewise.
39289         * tests/unicase/test-u32-casefold.c (check): Likewise.
39290         * tests/unicase/test-u32-tolower.c (check): Likewise.
39291         * tests/unicase/test-u32-totitle.c (check): Likewise.
39292         * tests/unicase/test-u32-toupper.c (check): Likewise.
39293         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39294         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39295         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39296         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39297         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39298         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39299         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39300         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39301         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39302         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39303         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39304         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39305
39306 2009-04-05  Bruno Haible  <bruno@clisp.org>
39307
39308         Work around an autoconf limitation.
39309         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39310         comment line if it would be longer than 3 KB.
39311
39312 2009-04-05  Bruno Haible  <bruno@clisp.org>
39313
39314         Avoid test failure with libiconv-1.13.
39315         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39316         of the expected test results.
39317
39318 2009-04-05  Bruno Haible  <bruno@clisp.org>
39319
39320         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39321         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39322         that it should be installed.
39323
39324 2009-04-05  Bruno Haible  <bruno@clisp.org>
39325
39326         * gnulib-tool: New option --copy-file.
39327         (func_usage): Document it.
39328         (func_dest_tmpfilename): Moved out of func_import.
39329         (func_add_file, func_update_file): New functions, extracted from
39330         func_import.
39331         (func_import): Update.
39332
39333 2009-04-05  Karl Berry  <karl@gnu.org>
39334
39335         * README: prominently mention gnulib-tool.
39336         Rearrange sections so getting the code is near the top.
39337
39338 2009-04-05  Bruno Haible  <bruno@clisp.org>
39339
39340         * lib/unicase.h: Mention u*_cmp2.
39341         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39342         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39343         * lib/unicase/ulc-casecmp.c: Likewise.
39344         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39345         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39346         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39347         unistr/u8-cmp.
39348         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39349         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39350         unistr/u16-cmp.
39351         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39352         unistr/u32-cmp.
39353
39354         * lib/uninorm.h: Mention u*_cmp2.
39355         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39356         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39357         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39358         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39359         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39360         unistr/u8-cmp.
39361         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39362         unistr/u16-cmp.
39363         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39364         unistr/u32-cmp.
39365
39366         New module 'unistr/u32-cmp2'.
39367         * lib/unistr/u32-cmp2.c: New file.
39368         * modules/unistr/u32-cmp2: New file.
39369
39370         New module 'unistr/u16-cmp2'.
39371         * lib/unistr/u16-cmp2.c: New file.
39372         * modules/unistr/u16-cmp2: New file.
39373
39374         New module 'unistr/u8-cmp2'.
39375         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39376         * lib/unistr/u8-cmp2.c: New file.
39377         * lib/unistr/u-cmp2.h: New file.
39378         * modules/unistr/u8-cmp2: New file.
39379
39380 2009-04-05  Bruno Haible  <bruno@clisp.org>
39381
39382         * lib/unictype.h (uc_property_is_valid): New macro.
39383         * tests/unictype/test-pr_byname.c (main): Use it.
39384
39385         * lib/unistr.h: Doc fixes.
39386         * lib/uniconv.h: Doc fixes.
39387         * lib/unictype.h: Doc fixes.
39388
39389 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39390
39391         Port coreutils 7.2 to Solaris 8.
39392
39393         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39394         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39395         for Solaris 8.  This is a bit of a hack, as it means it's the
39396         caller's responsibility to add -lnsl if needed, but most likely it
39397         won't be needed since only getaddrinfo uses this and getaddrinfo
39398         isn't needed on Solaris 8.
39399
39400         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39401         problem to Solaris 8 encountered with coreutils 7.2, which
39402         resulted in a message "fnmatch.c:292: warning: passing argument 4
39403         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39404         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39405
39406 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39407
39408         * m4/ld-version-script.m4: Add FIXME comment.
39409
39410 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39411
39412         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39413         SOVERSION variable.
39414
39415 2009-04-02  Bruno Haible  <bruno@clisp.org>
39416
39417         * Makefile (info, html, dvi, pdf): Combine the rules.
39418         Suggested by Jim Meyering.
39419
39420 2009-04-01  Bruno Haible  <bruno@clisp.org>
39421
39422         * Makefile (info, html, dvi, pdf): New targets.
39423         Reported by Reuben Thomas <rrt@sc3d.org>.
39424
39425 2009-04-01  Bruno Haible  <bruno@clisp.org>
39426
39427         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39428         can be put into PATH.
39429         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39430
39431 2009-04-01  Bruno Haible  <bruno@clisp.org>
39432
39433         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39434
39435 2009-04-01  Bruno Haible  <bruno@clisp.org>
39436
39437         Rename module 'visibility'.
39438         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39439         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39440         * doc/gnulib.texi: Update.
39441         * MODULES.html.sh (Misc): Update.
39442         * NEWS: Mention the change.
39443
39444 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39445
39446         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39447         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39448         Eric Blake <ebb9@byu.net> for review.
39449         * MODULES.html.sh: Add lib-msvc-compat.
39450         * doc/gnulib.texi: Link to new section.
39451         * m4/ld-output-def.m4: New file.
39452         * doc/ld-output-def.texi: New file.
39453
39454 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39455
39456         Rename ld-version-script to lib-symbol-versions.  Suggested by
39457         Bruno Haible <bruno@clisp.org>.
39458         * modules/ld-version-script: Renamed to lib-symbol-versions.
39459         * doc/ld-version-script.texi: Fix module name.
39460         * MODULES.html.sh: Add lib-symbol-versions.
39461
39462 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39463
39464         * modules/u64-tests: New file.
39465         * tests/test-u64.c: New file.
39466
39467 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39468
39469         * MODULES.html.sh: Mention u64.
39470         * modules/u64: New module.
39471         * modules/crypto/sha512: Depend on u64 module instead of providing
39472         u64.h.
39473
39474 2009-03-27  Eric Blake  <ebb9@byu.net>
39475
39476         test-strerror: make debugging EAI_SYSTEM easier
39477         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39478         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39479         failure was EAI_SYSTEM.
39480
39481 2009-03-25  Bruno Haible  <bruno@clisp.org>
39482
39483         Fix a problem with --enable-relocatable on Solaris 7.
39484         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39485         since 2008-02-24.
39486
39487 2009-03-25  Eric Blake  <ebb9@byu.net>
39488
39489         test-sockets: avoid gcc warning
39490         * tests/test-sockets.c (main): Silence compiler warning.
39491
39492 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39493
39494         New modules nproc, pthread, contributed by Glen Lenker.
39495
39496         * MODULES.html.sh: Add pthread, nproc.
39497         * lib/nproc.c: New file.
39498         * lib/nproc.h: New file.
39499         * lib/pthread.in.h: New file.
39500         * m4/pthread.m4: New file.
39501         * modules/nproc: New file.
39502         * modules/pthread: New file.
39503
39504 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39505
39506         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39507         New variable.
39508
39509 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39510
39511         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39512         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39513         * tests/test-filevercmp.c: Add tests for backup suffixes.
39514
39515 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39516
39517         * modules/stdlib (Depends-on): Add stdint, needed when defining
39518         struct random_data on, for example, HP-UX 10.20.  Reported by
39519         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39520
39521 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39522
39523         * lib/readline.c (readline): Call fflush on stdout after printing
39524         prompt.
39525
39526 2009-03-20  Bruno Haible  <bruno@clisp.org>
39527
39528         Remove dependency from 'close' module to -lws2_32 on native Windows.
39529         * lib/close-hook.h: New file.
39530         * lib/close-hook.c: New file.
39531         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39532         w32sock.h.
39533         (_gl_close_fd_maybe_socket): Remove function.
39534         (rpl_close): Invoke execute_all_close_hooks instead of
39535         _gl_close_fd_maybe_socket.
39536         * lib/sockets.c: Include close-hook.h, w32sock.h.
39537         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39538         (close_sockets_hook): New variable.
39539         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39540         (gl_sockets_cleanup): Unregister it.
39541         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39542         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39543         * modules/close-hook: New file.
39544         * modules/close (Files): Remove lib/w32sock.h.
39545         (Depends-on): Add close-hook.
39546         (Link): Remove section.
39547         * modules/sockets (Files): Add lib/w32sock.h.
39548         (Depends-on): Add close-hook.
39549         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39550         invocation.
39551         * NEWS: Mention that LIB_CLOSE is gone.
39552
39553 2009-03-23  Eric Blake  <ebb9@byu.net>
39554
39555         signal-tests: test previous patch
39556         * tests/test-signal.c: New file.
39557         * modules/signal-tests: Likewise.
39558
39559         signal.h: always support 'volatile sig_atomic_t'
39560         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39561         (gl_SIGNAL_H_DEFAULTS): Add a default.
39562         * modules/signal (Makefile.am): Substitute if needed.
39563         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39564         users can blindly add volatile.
39565         * doc/posix-headers/signal.texi (signal.h): Document it.
39566         Reported by Matthew Woehlke.
39567
39568 2009-03-23  Jim Meyering  <meyering@redhat.com>
39569
39570         pathmax: PATH_MAX: use pathconf only when available
39571         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39572         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39573         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39574         This avoids a link failure in a PSP cross-compilation environment
39575         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39576
39577         * lib/vasnprintf.c (divide): Fix typo in comment.
39578
39579 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39580
39581         * gnulib-tool (func_filter_filelist): Fix comment.
39582
39583 2009-03-20  Bruno Haible  <bruno@clisp.org>
39584
39585         Make sockets.h self-contained.
39586         * lib/sockets.c: Include sockets.h first.
39587         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39588
39589 2009-03-19  Eric Blake  <ebb9@byu.net>
39590
39591         doc: mention more functions added in cygwin 1.7.0
39592         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39593         addition.
39594         * doc/posix-functions/log2f.texi: Likewise.
39595
39596 2009-03-19  Jim Meyering  <meyering@redhat.com>
39597
39598         fsusage: avoid syntax error due to statement-before-declaration
39599         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39600         after all declarations.  Reported by Matthew Woehlke in
39601         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39602
39603 2009-03-18  Eric Blake  <ebb9@byu.net>
39604
39605         build-aux/compile: sync from automake
39606         * build-aux/compile: New file, from automake.
39607         * config/srclist.txt: Mention build-aux/compile.
39608
39609 2009-03-17  Bruno Haible  <bruno@clisp.org>
39610
39611         * lib/git-merge-changelog.c: Fix typo in comment.
39612         Reported by Reuben Thomas <rrt@sc3d.org>.
39613
39614 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39615
39616         * m4/regex.m4: update and improve help for
39617         --without-included-regex.
39618
39619 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39620
39621         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39622         failure on missing include files.
39623
39624 2009-03-17  Eric Blake  <ebb9@byu.net>
39625
39626         doc: mention more functions added in cygwin 1.7.0
39627         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39628         addition.
39629         * doc/posix-functions/fwscanf.texi: Likewise.
39630         * doc/posix-functions/swprintf.texi: Likewise.
39631         * doc/posix-functions/swscanf.texi: Likewise.
39632         * doc/posix-functions/vfwprintf.texi: Likewise.
39633         * doc/posix-functions/vfwscanf.texi: Likewise.
39634         * doc/posix-functions/vswprintf.texi: Likewise.
39635         * doc/posix-functions/vswscanf.texi: Likewise.
39636         * doc/posix-functions/vwprintf.texi: Likewise.
39637         * doc/posix-functions/vwscanf.texi: Likewise.
39638         * doc/posix-functions/wcscasecmp.texi: Likewise.
39639         * doc/posix-functions/wcsdup.texi: Likewise.
39640         * doc/posix-functions/wcsftime.texi: Likewise.
39641         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39642         * doc/posix-functions/wprintf.texi: Likewise.
39643         * doc/posix-functions/wscanf.texi: Likewise.
39644         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39645
39646 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39647
39648         maint.mk: really add $(AM_MAKEFLAGS)
39649         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39650         was inadvertently omitted in the last commit.
39651         Spotted by Bruno Haible.
39652
39653         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39654         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39655         $(AM_MAKEFLAGS)' rather than plain `make'.
39656
39657         gnulib-tool: execute $MAKE not make
39658         * gnulib-tool: Default $MAKE to 'make'.
39659         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39660         than make.  Initialize $MAKE in the do-autobuild script.
39661
39662         gnulib-tool: use $MAKE not make in generated files
39663         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39664         make, in generated files.  Initialize $MAKE in the do-autobuild
39665         script.
39666
39667         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39668
39669         GNUmakefile: disable parallelism only for multiple, recursive targets
39670         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39671         additions in the Makefile.
39672         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39673         by Automake.
39674         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39675         are listed on the command line and at least one of them is
39676         listed in $(ALL_RECURSIVE_TARGETS).
39677
39678 2009-03-14  Bruno Haible  <bruno@clisp.org>
39679
39680         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39681         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39682         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39683         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39684         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39685         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39686         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39687         unistr/u8-uctomb.
39688         * modules/unistr/u8-strchr (Depends-on): Likewise.
39689         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39690         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39691         unistr/u16-uctomb.
39692         * modules/unistr/u16-strchr (Depends-on): Likewise.
39693         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39694
39695 2009-03-12  Bruno Haible  <bruno@clisp.org>
39696
39697         Work around select() bug on Interix 3.5.
39698         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39699         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39700         * m4/select.m4: New file.
39701         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39702         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39703         * modules/select (Files): Add m4/select.m4.
39704         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39705         * modules/nanosleep (Depends-on): Add select.
39706         * modules/poll (Depends-on): Likewise.
39707         * doc/posix-functions/select.texi: Mention the Interix bug.
39708         Reported by Markus Duft <mduft@gentoo.org>.
39709
39710         * lib/select.c: Renamed from lib/winsock-select.c.
39711         * modules/select (Files): Add lib/select.c, remove
39712         lib/winsock-select.c.
39713         (configure.ac): Update.
39714
39715 2009-03-12  Jim Meyering  <meyering@redhat.com>
39716
39717         avoid gcc warnings about unused macro definitions
39718         * lib/readtokens.c (STREQ): Remove unused definition.
39719         * lib/xmalloc.c (SIZE_MAX): Likewise.
39720         * lib/openat-die.c (N_): Likewise.
39721         * lib/mountlist.c (SIZE_MAX): Remove definition.
39722         Instead, include <stdint.h>.
39723         * lib/readutmp.c: Likewise.
39724         * modules/readutmp (Depends-on): Add stdint.
39725         * modules/mountlist (Depends-on): Add stdint.
39726         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39727
39728 2009-03-10  Bruno Haible  <bruno@clisp.org>
39729
39730         Tests for module 'mbmemcasecoll'.
39731         * modules/mbmemcasecoll-tests: New file.
39732         * tests/test-mbmemcasecoll1.sh: New file.
39733         * tests/test-mbmemcasecoll2.sh: New file.
39734         * tests/test-mbmemcasecoll3.sh: New file.
39735         * tests/test-mbmemcasecoll.c: New file.
39736
39737         New module 'mbmemcasecoll'.
39738         * lib/mbmemcasecoll.h: New file.
39739         * lib/mbmemcasecoll.c: New file.
39740         * modules/mbmemcasecoll: New file.
39741
39742         * tests/test-mbmemcasecmp.h: New file, extracted from
39743         tests/test-mbmemcasecmp.c.
39744         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39745         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39746         (main): Update.
39747         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39748
39749 2009-03-09  Bruno Haible  <bruno@clisp.org>
39750
39751         Tests for module 'mbmemcasecmp'.
39752         * modules/mbmemcasecmp-tests: New file.
39753         * tests/test-mbmemcasecmp1.sh: New file.
39754         * tests/test-mbmemcasecmp2.sh: New file.
39755         * tests/test-mbmemcasecmp3.sh: New file.
39756         * tests/test-mbmemcasecmp.c: New file.
39757
39758         New module 'mbmemcasecmp'.
39759         * lib/mbmemcasecmp.h: New file.
39760         * lib/mbmemcasecmp.c: New file.
39761         * modules/mbmemcasecmp: New file.
39762
39763 2009-03-09  Bruno Haible  <bruno@clisp.org>
39764
39765         Tests for module 'unicase/ulc-casecoll'.
39766         * modules/unicase/ulc-casecoll-tests: New file.
39767         * tests/unicase/test-ulc-casecoll1.sh: New file.
39768         * tests/unicase/test-ulc-casecoll2.sh: New file.
39769         * tests/unicase/test-ulc-casecoll.c: New file.
39770
39771         New module 'unicase/ulc-casecoll'.
39772         * lib/unicase.h (ulc_casecoll): New declaration.
39773         * lib/unicase/ulc-casecoll.c: New file.
39774         * modules/unicase/ulc-casecoll: New file.
39775
39776         New module 'unicase/ulc-casexfrm'.
39777         * lib/unicase.h (ulc_casexfrm): New declaration.
39778         * lib/unicase/ulc-casexfrm.c: New file.
39779         * modules/unicase/ulc-casexfrm: New file.
39780
39781 2009-03-09  Bruno Haible  <bruno@clisp.org>
39782
39783         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39784         invocations.
39785
39786         * m4/mbscasecmp.m4: Remove file.
39787         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39788         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39789
39790         * m4/mbscasestr.m4: Remove file.
39791         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39792         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39793
39794         * m4/mbschr.m4: Remove file.
39795         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39796         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39797
39798         * m4/mbscspn.m4: Remove file.
39799         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39800         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39801
39802         * m4/mbslen.m4: Remove file.
39803         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39804         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39805
39806         * m4/mbsncasecmp.m4: Remove file.
39807         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39808         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39809
39810         * m4/mbsnlen.m4: Remove file.
39811         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39812         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39813
39814         * m4/mbspbrk.m4: Remove file.
39815         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39816         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39817
39818         * m4/mbspcasecmp.m4: Remove file.
39819         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39820         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39821
39822         * m4/mbsrchr.m4: Remove file.
39823         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39824         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39825
39826         * m4/mbssep.m4: Remove file.
39827         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39828         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39829
39830         * m4/mbsspn.m4: Remove file.
39831         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39832         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39833
39834         * m4/mbsstr.m4: Remove file.
39835         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39836         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39837
39838         * m4/mbstok_r.m4: Remove file.
39839         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39840         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39841
39842         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39843
39844         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39845         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39846
39847         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39848
39849 2009-03-08  Bruno Haible  <bruno@clisp.org>
39850
39851         Tests for module 'unicase/ulc-casecmp'.
39852         * modules/unicase/ulc-casecmp-tests: New file.
39853         * tests/unicase/test-ulc-casecmp1.sh: New file.
39854         * tests/unicase/test-ulc-casecmp2.sh: New file.
39855         * tests/unicase/test-ulc-casecmp.c: New file.
39856
39857         New module 'unicase/ulc-casecmp'.
39858         * lib/unicase.h (ulc_casecmp): New declaration.
39859         * lib/unicase/ulc-casecmp.c: New file.
39860         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39861         'const SRC_UNIT *'.
39862         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39863         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39864         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39865         * modules/unicase/ulc-casecmp: New file.
39866
39867         Tests for module 'unicase/u32-is-cased'.
39868         * modules/unicase/u32-is-cased-tests: New file.
39869         * tests/unicase/test-u32-is-cased.c: New file.
39870
39871         Tests for module 'unicase/u16-is-cased'.
39872         * modules/unicase/u16-is-cased-tests: New file.
39873         * tests/unicase/test-u16-is-cased.c: New file.
39874
39875         Tests for module 'unicase/u8-is-cased'.
39876         * modules/unicase/u8-is-cased-tests: New file.
39877         * tests/unicase/test-u8-is-cased.c: New file.
39878         * tests/unicase/test-is-cased.h: New file.
39879
39880         New module 'unicase/u32-is-cased'.
39881         * lib/unicase/u32-is-cased.c: New file.
39882         * modules/unicase/u32-is-cased: New file.
39883
39884         New module 'unicase/u16-is-cased'.
39885         * lib/unicase/u16-is-cased.c: New file.
39886         * modules/unicase/u16-is-cased: New file.
39887
39888         New module 'unicase/u8-is-cased'.
39889         * lib/unicase/u8-is-cased.c: New file.
39890         * lib/unicase/u-is-cased.h: New file.
39891         * modules/unicase/u8-is-cased: New file.
39892
39893         Tests for module 'unicase/u32-is-casefolded'.
39894         * modules/unicase/u32-is-casefolded-tests: New file.
39895         * tests/unicase/test-u32-is-casefolded.c: New file.
39896
39897         Tests for module 'unicase/u16-is-casefolded'.
39898         * modules/unicase/u16-is-casefolded-tests: New file.
39899         * tests/unicase/test-u16-is-casefolded.c: New file.
39900
39901         Tests for module 'unicase/u8-is-casefolded'.
39902         * modules/unicase/u8-is-casefolded-tests: New file.
39903         * tests/unicase/test-u8-is-casefolded.c: New file.
39904         * tests/unicase/test-is-casefolded.h: New file.
39905
39906         New module 'unicase/u32-is-casefolded'.
39907         * lib/unicase/u32-is-casefolded.c: New file.
39908         * modules/unicase/u32-is-casefolded: New file.
39909
39910         New module 'unicase/u16-is-casefolded'.
39911         * lib/unicase/u16-is-casefolded.c: New file.
39912         * modules/unicase/u16-is-casefolded: New file.
39913
39914         New module 'unicase/u8-is-casefolded'.
39915         * lib/unicase/u8-is-casefolded.c: New file.
39916         * modules/unicase/u8-is-casefolded: New file.
39917
39918         Tests for module 'unicase/u32-is-titlecase'.
39919         * modules/unicase/u32-is-titlecase-tests: New file.
39920         * tests/unicase/test-u32-is-titlecase.c: New file.
39921
39922         Tests for module 'unicase/u16-is-titlecase'.
39923         * modules/unicase/u16-is-titlecase-tests: New file.
39924         * tests/unicase/test-u16-is-titlecase.c: New file.
39925
39926         Tests for module 'unicase/u8-is-titlecase'.
39927         * modules/unicase/u8-is-titlecase-tests: New file.
39928         * tests/unicase/test-u8-is-titlecase.c: New file.
39929         * tests/unicase/test-is-titlecase.h: New file.
39930
39931         New module 'unicase/u32-is-titlecase'.
39932         * lib/unicase/u32-is-titlecase.c: New file.
39933         * modules/unicase/u32-is-titlecase: New file.
39934
39935         New module 'unicase/u16-is-titlecase'.
39936         * lib/unicase/u16-is-titlecase.c: New file.
39937         * modules/unicase/u16-is-titlecase: New file.
39938
39939         New module 'unicase/u8-is-titlecase'.
39940         * lib/unicase/u8-is-titlecase.c: New file.
39941         * modules/unicase/u8-is-titlecase: New file.
39942
39943         Tests for module 'unicase/u32-is-lowercase'.
39944         * modules/unicase/u32-is-lowercase-tests: New file.
39945         * tests/unicase/test-u32-is-lowercase.c: New file.
39946
39947         Tests for module 'unicase/u16-is-lowercase'.
39948         * modules/unicase/u16-is-lowercase-tests: New file.
39949         * tests/unicase/test-u16-is-lowercase.c: New file.
39950
39951         Tests for module 'unicase/u8-is-lowercase'.
39952         * modules/unicase/u8-is-lowercase-tests: New file.
39953         * tests/unicase/test-u8-is-lowercase.c: New file.
39954         * tests/unicase/test-is-lowercase.h: New file.
39955
39956         New module 'unicase/u32-is-lowercase'.
39957         * lib/unicase/u32-is-lowercase.c: New file.
39958         * modules/unicase/u32-is-lowercase: New file.
39959
39960         New module 'unicase/u16-is-lowercase'.
39961         * lib/unicase/u16-is-lowercase.c: New file.
39962         * modules/unicase/u16-is-lowercase: New file.
39963
39964         New module 'unicase/u8-is-lowercase'.
39965         * lib/unicase/u8-is-lowercase.c: New file.
39966         * modules/unicase/u8-is-lowercase: New file.
39967
39968         Tests for module 'unicase/u32-is-uppercase'.
39969         * modules/unicase/u32-is-uppercase-tests: New file.
39970         * tests/unicase/test-u32-is-uppercase.c: New file.
39971
39972         Tests for module 'unicase/u16-is-uppercase'.
39973         * modules/unicase/u16-is-uppercase-tests: New file.
39974         * tests/unicase/test-u16-is-uppercase.c: New file.
39975
39976         Tests for module 'unicase/u8-is-uppercase'.
39977         * modules/unicase/u8-is-uppercase-tests: New file.
39978         * tests/unicase/test-u8-is-uppercase.c: New file.
39979         * tests/unicase/test-is-uppercase.h: New file.
39980
39981         New module 'unicase/u32-is-uppercase'.
39982         * lib/unicase/u32-is-uppercase.c: New file.
39983         * modules/unicase/u32-is-uppercase: New file.
39984
39985         New module 'unicase/u16-is-uppercase'.
39986         * lib/unicase/u16-is-uppercase.c: New file.
39987         * modules/unicase/u16-is-uppercase: New file.
39988
39989         New module 'unicase/u8-is-uppercase'.
39990         * lib/unicase/u8-is-uppercase.c: New file.
39991         * modules/unicase/u8-is-uppercase: New file.
39992
39993         New module 'unicase/u32-is-invariant'.
39994         * lib/unicase/u32-is-invariant.c: New file.
39995         * modules/unicase/u32-is-invariant: New file.
39996
39997         New module 'unicase/u16-is-invariant'.
39998         * lib/unicase/u16-is-invariant.c: New file.
39999         * modules/unicase/u16-is-invariant: New file.
40000
40001         New module 'unicase/u8-is-invariant'.
40002         * lib/unicase/u8-is-invariant.c: New file.
40003         * lib/unicase/invariant.h: New file.
40004         * lib/unicase/u-is-invariant.h: New file.
40005         * modules/unicase/u8-is-invariant: New file.
40006
40007         Tests for module 'unicase/u32-casecoll'.
40008         * modules/unicase/u32-casecoll-tests: New file.
40009         * tests/unicase/test-u32-casecoll.c: New file.
40010
40011         Tests for module 'unicase/u16-casecoll'.
40012         * modules/unicase/u16-casecoll-tests: New file.
40013         * tests/unicase/test-u16-casecoll.c: New file.
40014
40015         Tests for module 'unicase/u8-casecoll'.
40016         * modules/unicase/u8-casecoll-tests: New file.
40017         * tests/unicase/test-u8-casecoll.c: New file.
40018
40019         New module 'unicase/u32-casecoll'.
40020         * lib/unicase/u32-casecoll.c: New file.
40021         * modules/unicase/u32-casecoll: New file.
40022
40023         New module 'unicase/u16-casecoll'.
40024         * lib/unicase/u16-casecoll.c: New file.
40025         * modules/unicase/u16-casecoll: New file.
40026
40027         New module 'unicase/u8-casecoll'.
40028         * lib/unicase/u8-casecoll.c: New file.
40029         * lib/unicase/u-casecoll.h: New file.
40030         * modules/unicase/u8-casecoll: New file.
40031
40032         New module 'unicase/u32-casexfrm'.
40033         * lib/unicase/u32-casexfrm.c: New file.
40034         * modules/unicase/u32-casexfrm: New file.
40035
40036         New module 'unicase/u16-casexfrm'.
40037         * lib/unicase/u16-casexfrm.c: New file.
40038         * modules/unicase/u16-casexfrm: New file.
40039
40040         New module 'unicase/u8-casexfrm'.
40041         * lib/unicase/u8-casexfrm.c: New file.
40042         * lib/unicase/u-casexfrm.h: New file.
40043         * modules/unicase/u8-casexfrm: New file.
40044
40045         Tests for module 'unicase/u32-casecmp'.
40046         * modules/unicase/u32-casecmp-tests: New file.
40047         * tests/unicase/test-u32-casecmp.c: New file.
40048
40049         Tests for module 'unicase/u16-casecmp'.
40050         * modules/unicase/u16-casecmp-tests: New file.
40051         * tests/unicase/test-u16-casecmp.c: New file.
40052
40053         Tests for module 'unicase/u8-casecmp'.
40054         * modules/unicase/u8-casecmp-tests: New file.
40055         * tests/unicase/test-u8-casecmp.c: New file.
40056         * tests/unicase/test-casecmp.h: New file.
40057
40058         New module 'unicase/u32-casecmp'.
40059         * lib/unicase/u32-casecmp.c: New file.
40060         * modules/unicase/u32-casecmp: New file.
40061
40062         New module 'unicase/u16-casecmp'.
40063         * lib/unicase/u16-casecmp.c: New file.
40064         * modules/unicase/u16-casecmp: New file.
40065
40066         New module 'unicase/u8-casecmp'.
40067         * lib/unicase/u8-casecmp.c: New file.
40068         * lib/unicase/u-casecmp.h: New file.
40069         * modules/unicase/u8-casecmp: New file.
40070
40071         Tests for module 'unicase/u32-casefold'.
40072         * modules/unicase/u32-casefold-tests: New file.
40073         * tests/unicase/test-u32-casefold.c: New file.
40074
40075         Tests for module 'unicase/u16-casefold'.
40076         * modules/unicase/u16-casefold-tests: New file.
40077         * tests/unicase/test-u16-casefold.c: New file.
40078
40079         Tests for module 'unicase/u8-casefold'.
40080         * modules/unicase/u8-casefold-tests: New file.
40081         * tests/unicase/test-u8-casefold.c: New file.
40082
40083         New module 'unicase/u32-casefold'.
40084         * lib/unicase/u32-casefold.c: New file.
40085         * modules/unicase/u32-casefold: New file.
40086
40087         New module 'unicase/u16-casefold'.
40088         * lib/unicase/u16-casefold.c: New file.
40089         * modules/unicase/u16-casefold: New file.
40090
40091         New module 'unicase/u8-casefold'.
40092         * lib/unicase/u8-casefold.c: New file.
40093         * lib/unicase/u-casefold.h: New file.
40094         * modules/unicase/u8-casefold: New file.
40095
40096         New module 'unicase/tocasefold'.
40097         * lib/unicase/casefold.h: New file.
40098         * lib/unicase/tocasefold.c: New file.
40099         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40100         * modules/unicase/tocasefold: New file.
40101
40102         Tests for module 'unicase/u32-totitle'.
40103         * modules/unicase/u32-totitle-tests: New file.
40104         * tests/unicase/test-u32-totitle.c: New file.
40105
40106         Tests for module 'unicase/u16-totitle'.
40107         * modules/unicase/u16-totitle-tests: New file.
40108         * tests/unicase/test-u16-totitle.c: New file.
40109
40110         Tests for module 'unicase/u8-totitle'.
40111         * modules/unicase/u8-totitle-tests: New file.
40112         * tests/unicase/test-u8-totitle.c: New file.
40113
40114         New module 'unicase/u32-totitle'.
40115         * lib/unicase/u32-totitle.c: New file.
40116         * modules/unicase/u32-totitle: New file.
40117
40118         New module 'unicase/u16-totitle'.
40119         * lib/unicase/u16-totitle.c: New file.
40120         * modules/unicase/u16-totitle: New file.
40121
40122         New module 'unicase/u8-totitle'.
40123         * lib/unicase/u8-totitle.c: New file.
40124         * lib/unicase/u-totitle.h: New file.
40125         * modules/unicase/u8-totitle: New file.
40126
40127         Tests for module 'unicase/u32-tolower'.
40128         * modules/unicase/u32-tolower-tests: New file.
40129         * tests/unicase/test-u32-tolower.c: New file.
40130
40131         Tests for module 'unicase/u16-tolower'.
40132         * modules/unicase/u16-tolower-tests: New file.
40133         * tests/unicase/test-u16-tolower.c: New file.
40134
40135         Tests for module 'unicase/u8-tolower'.
40136         * modules/unicase/u8-tolower-tests: New file.
40137         * tests/unicase/test-u8-tolower.c: New file.
40138
40139         New module 'unicase/u32-tolower'.
40140         * lib/unicase/u32-tolower.c: New file.
40141         * modules/unicase/u32-tolower: New file.
40142
40143         New module 'unicase/u16-tolower'.
40144         * lib/unicase/u16-tolower.c: New file.
40145         * modules/unicase/u16-tolower: New file.
40146
40147         New module 'unicase/u8-tolower'.
40148         * lib/unicase/u8-tolower.c: New file.
40149         * modules/unicase/u8-tolower: New file.
40150
40151         Tests for module 'unicase/u32-toupper'.
40152         * modules/unicase/u32-toupper-tests: New file.
40153         * tests/unicase/test-u32-toupper.c: New file.
40154
40155         Tests for module 'unicase/u16-toupper'.
40156         * modules/unicase/u16-toupper-tests: New file.
40157         * tests/unicase/test-u16-toupper.c: New file.
40158
40159         Tests for module 'unicase/u8-toupper'.
40160         * modules/unicase/u8-toupper-tests: New file.
40161         * tests/unicase/test-u8-toupper.c: New file.
40162
40163         New module 'unicase/u32-toupper'.
40164         * lib/unicase/u32-toupper.c: New file.
40165         * modules/unicase/u32-toupper: New file.
40166
40167         New module 'unicase/u16-toupper'.
40168         * lib/unicase/u16-toupper.c: New file.
40169         * modules/unicase/u16-toupper: New file.
40170
40171         New module 'unicase/u8-toupper'.
40172         * lib/unicase/u8-toupper.c: New file.
40173         * modules/unicase/u8-toupper: New file.
40174
40175         New module 'unicase/u32-casemap'.
40176         * lib/unicase/u32-casemap.c: New file.
40177         * modules/unicase/u32-casemap: New file.
40178
40179         New module 'unicase/u16-casemap'.
40180         * lib/unicase/u16-casemap.c: New file.
40181         * modules/unicase/u16-casemap: New file.
40182
40183         New module 'unicase/u8-casemap'.
40184         * lib/unicase/unicasemap.h: New file.
40185         * lib/unicase/u8-casemap.c: New file.
40186         * lib/unicase/u-casemap.h: New file.
40187         * modules/unicase/u8-casemap: New file.
40188
40189         New module 'unicase/special-casing'.
40190         * lib/unicase/special-casing.h: New file.
40191         * lib/unicase/special-casing.c: New file.
40192         * lib/unicase/special-casing-table.gperf: New file, generated by
40193         gen-uni-tables.c.
40194         * modules/unicase/special-casing: New file.
40195
40196         Tests for module 'unicase/locale-language'.
40197         * modules/unicase/locale-language-tests: New file.
40198         * tests/unicase/test-locale-language.sh: New file.
40199         * tests/unicase/test-locale-language.c: New file.
40200
40201         New module 'unicase/locale-language'.
40202         * lib/unicase/locale-language.c: New file.
40203         * lib/unicase/locale-languages.gperf: New file.
40204         * modules/unicase/locale-language: New file.
40205
40206         Generate more tables for case conversion and case folding.
40207         * lib/gen-uni-tables.c (SCC_*): New enum items.
40208         (struct special_casing_rule): New type.
40209         (casing_rules, num_casing_rules, allocated_casing_rules): New
40210         variables.
40211         (add_casing_rule, fill_casing_rules): New functions.
40212         (struct casefold_rule): New type.
40213         (casefolding_rules, num_casefolding_rules,
40214         allocated_casefolding_rules): New variables.
40215         (fill_casefolding_rules): New function.
40216         (unicode_casefold): New variable.
40217         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40218         sort_casing_rules, output_casing_rules): New functions.
40219         (main): Accept to more arguments: SpecialCasing.txt and
40220         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40221         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40222         Output mapping for casefolding.
40223
40224         * lib/unicase.h: Include stdbool.h, uninorm.h.
40225         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40226         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40227         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40228         arguments.
40229         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40230         resultp arguments.
40231         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40232         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40233         resultp arguments.
40234         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40235         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40236         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40237         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40238         declarations.
40239         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40240
40241 2009-03-08  Bruno Haible  <bruno@clisp.org>
40242
40243         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40244         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40245         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40246         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40247
40248 2009-03-07  Bruno Haible  <bruno@clisp.org>
40249
40250         Adjust u*_normcmp, u*_normcoll API.
40251         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40252         u16_normcoll, u32_normcoll): Change failure conventions.
40253         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40254         errno and return -1.
40255         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40256
40257 2009-03-07  Bruno Haible  <bruno@clisp.org>
40258
40259         Tests for module 'uninorm/u32-normcoll'.
40260         * modules/uninorm/u32-normcoll-tests: New file.
40261         * tests/uninorm/test-u32-normcoll.c: New file.
40262
40263         Tests for module 'uninorm/u16-normcoll'.
40264         * modules/uninorm/u16-normcoll-tests: New file.
40265         * tests/uninorm/test-u16-normcoll.c: New file.
40266
40267         Tests for module 'uninorm/u8-normcoll'.
40268         * modules/uninorm/u8-normcoll-tests: New file.
40269         * tests/uninorm/test-u8-normcoll.c: New file.
40270
40271 2009-03-07  Bruno Haible  <bruno@clisp.org>
40272
40273         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40274         tests/uninorm/test-u32-normcmp.c.
40275         * tests/uninorm/test-u32-normcmp.c: Include it.
40276         (test_nonascii): New function, extracted from main. Add some more
40277         tests.
40278         (main): Invoke test_ascii and test_nonascii.
40279         * modules/uninorm/u32-normcmp-tests (Files): Add
40280         tests/uninorm/test-u32-normcmp.h.
40281         (Depends-on): Remove uninorm/u32-normcmp.
40282
40283         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40284         tests/uninorm/test-u16-normcmp.c.
40285         * tests/uninorm/test-u16-normcmp.c: Include it.
40286         (test_nonascii): New function, extracted from main. Add some more
40287         tests.
40288         (main): Invoke test_ascii and test_nonascii.
40289         * modules/uninorm/u16-normcmp-tests (Files): Add
40290         tests/uninorm/test-u16-normcmp.h.
40291         (Depends-on): Remove uninorm/u16-normcmp.
40292
40293         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40294         tests/uninorm/test-u8-normcmp.c.
40295         * tests/uninorm/test-u8-normcmp.c: Include it.
40296         (test_nonascii): New function, extracted from main. Add some more
40297         tests.
40298         (main): Invoke test_ascii and test_nonascii.
40299         * modules/uninorm/u8-normcmp-tests (Files): Add
40300         tests/uninorm/test-u8-normcmp.h.
40301         (Depends-on): Remove uninorm/u8-normcmp.
40302
40303 2009-03-07  Bruno Haible  <bruno@clisp.org>
40304
40305         New module 'uninorm/u32-normcoll'.
40306         * lib/uninorm/u32-normcoll.c: New file.
40307         * modules/uninorm/u32-normcoll: New file.
40308
40309         New module 'uninorm/u16-normcoll'.
40310         * lib/uninorm/u16-normcoll.c: New file.
40311         * modules/uninorm/u16-normcoll: New file.
40312
40313         New module 'uninorm/u8-normcoll'.
40314         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40315         declarations.
40316         * lib/uninorm/u8-normcoll.c: New file.
40317         * lib/uninorm/u-normcoll.h: New file.
40318         * modules/uninorm/u8-normcoll: New file.
40319
40320         New module 'uninorm/u32-normxfrm'.
40321         * lib/uninorm/u32-normxfrm.c: New file.
40322         * modules/uninorm/u32-normxfrm: New file.
40323
40324         New module 'uninorm/u16-normxfrm'.
40325         * lib/uninorm/u16-normxfrm.c: New file.
40326         * modules/uninorm/u16-normxfrm: New file.
40327
40328         New module 'uninorm/u8-normxfrm'.
40329         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40330         declarations.
40331         * lib/uninorm/u8-normxfrm.c: New file.
40332         * lib/uninorm/u-normxfrm.h: New file.
40333         * modules/uninorm/u8-normxfrm: New file.
40334
40335 2009-03-07  Bruno Haible  <bruno@clisp.org>
40336
40337         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40338         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40339         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40340
40341 2009-03-07  Bruno Haible  <bruno@clisp.org>
40342
40343         New module 'memxfrm'.
40344         * lib/memxfrm.h: New file.
40345         * lib/memxfrm.c: New file.
40346         * modules/memxfrm: New file.
40347
40348 2009-03-07  Bruno Haible  <bruno@clisp.org>
40349
40350         New module 'memcmp2'.
40351         * lib/memcmp2.h: New file.
40352         * lib/memcmp2.c: New file.
40353         * modules/memcmp2: New file.
40354
40355 2009-03-07  Bruno Haible  <bruno@clisp.org>
40356
40357         Tests for module 'uninorm/decomposing-form'.
40358         * modules/uninorm/decomposing-form-tests: New file.
40359         * tests/uninorm/test-decomposing-form.c: New file.
40360
40361         New module 'uninorm/decomposing-form'.
40362         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40363         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40364         Add 'decomposing_variant' field.
40365         * lib/uninorm/decomposing-form.c: New file.
40366         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40367         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40368         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40369         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40370         * modules/uninorm/decomposing-form: New file.
40371         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40372         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40373
40374 2009-03-07  Bruno Haible  <bruno@clisp.org>
40375
40376         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40377         strings.
40378
40379 2009-03-06  Bruno Haible  <bruno@clisp.org>
40380
40381         Tests for module 'uninorm/u32-normcmp'.
40382         * tests/uninorm/test-u32-normcmp.c: New file.
40383         * modules/uninorm/u32-normcmp-tests: New file.
40384
40385         Tests for module 'uninorm/u16-normcmp'.
40386         * tests/uninorm/test-u16-normcmp.c: New file.
40387         * modules/uninorm/u16-normcmp-tests: New file.
40388
40389         Tests for module 'uninorm/u8-normcmp'.
40390         * tests/uninorm/test-u8-normcmp.c: New file.
40391         * modules/uninorm/u8-normcmp-tests: New file.
40392
40393         New module 'uninorm/u32-normcmp'.
40394         * lib/uninorm/u32-normcmp.c: New file.
40395         * modules/uninorm/u32-normcmp: New file.
40396
40397         New module 'uninorm/u16-normcmp'.
40398         * lib/uninorm/u16-normcmp.c: New file.
40399         * modules/uninorm/u16-normcmp: New file.
40400
40401         New module 'uninorm/u8-normcmp'.
40402         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40403         declarations.
40404         * lib/uninorm/u8-normcmp.c: New file.
40405         * lib/uninorm/u-normcmp.h: New file.
40406         * modules/uninorm/u8-normcmp: New file.
40407
40408 2009-03-06  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40411         Reported by Eric Blake.
40412
40413 2009-03-06  Eric Blake  <ebb9@byu.net>
40414             Bruno Haible  <bruno@clisp.org>
40415
40416         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40417         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40418         condition.
40419         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40420         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40421         condition.
40422         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40423
40424 2009-03-06  Eric Blake  <ebb9@byu.net>
40425
40426         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40427         to avoid compiler warnings.
40428         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40429
40430 2009-03-05  Bruno Haible  <bruno@clisp.org>
40431
40432         * tests/test-ftell.c (main): Disable test beyond end of file on
40433         FreeMiNT.
40434         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40435
40436 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40437
40438         * lib/filevercmp.c: Move hidden files up in ordering.
40439         * tests/test-filevercmp.c: Add tests for hidden files.
40440
40441 2009-03-04  Bruno Haible  <bruno@clisp.org>
40442
40443         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40444         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40445         AM_CFLAGS.
40446         Reported by Simon Josefsson.
40447
40448 2009-03-03  Bruno Haible  <bruno@clisp.org>
40449
40450         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40451         Reported by Simon Josefsson.
40452
40453         * doc/ld-version-script.texi: Update node reference.
40454
40455 2009-03-03  Bruno Haible  <bruno@clisp.org>
40456
40457         * modules/visibility (License): Change to 'unlimited'.
40458         Suggested by Simon Josefsson.
40459
40460 2009-03-03  Jim Meyering  <meyering@redhat.com>
40461
40462         unlinkdir: cannot_unlink_dir may modify process state
40463         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40464         it's neither thread-safe nor appropriate for use in a library.
40465
40466 2009-03-03  Eric Blake  <ebb9@byu.net>
40467
40468         test-closein: silence test under Darwin
40469         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40470         care if it dies from EPIPE or EBADF.
40471
40472 2009-03-03  Bruno Haible  <bruno@clisp.org>
40473
40474         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40475         earlier.
40476         * doc/visibility.texi: Fix @node and @section.
40477
40478 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40479
40480         * doc/gnulib.texi: Link to sections for ld version script and
40481         visibility.
40482         * doc/visibility.texi: Add @node and @section.
40483         * modules/ld-version-script: New module.
40484         * m4/ld-version-script.m4: New file.
40485         * doc/ld-version-script.texi: New file.
40486
40487 2009-03-02  David Lutterkort  <lutter@redhat.com>
40488
40489         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40491
40492 2009-03-02  Bruno Haible  <bruno@clisp.org>
40493
40494         * doc/visibility.texi: Mention libtool's -export-symbols option.
40495
40496 2009-03-02  Jim Meyering  <meyering@redhat.com>
40497
40498         announce-gen: new option: --no-print-checksums
40499         * build-aux/announce-gen (usage): Describe it.
40500         (print_checksums): Print a newline here, not in the [*] footnote.
40501         (main): Honor it.
40502
40503 2009-03-01  Bruno Haible  <bruno@clisp.org>
40504
40505         Use socklen_t in the native Windows replacements prototypes.
40506         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40507         instead of 'int'.
40508         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40509         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40510         * modules/getsockopt (Depends-on): Add socklen.
40511         * modules/setsockopt (Depends-on): Add socklen.
40512
40513 2009-03-01  Bruno Haible  <bruno@clisp.org>
40514
40515         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40516         least 4.2.
40517
40518 2009-03-01  Eric Blake  <ebb9@byu.net>
40519             Bruno Haible  <bruno@clisp.org>
40520
40521         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40522         error messages.
40523         * lib/wait-process.c (wait_subprocess): Omit error message about
40524         deadly signal sent to the child of termsigp != NULL.
40525
40526 2009-03-01  Eric Blake  <ebb9@byu.net>
40527
40528         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40529
40530 2009-03-01  Bruno Haible  <bruno@clisp.org>
40531
40532         Avoid a gcc warning.
40533         * tests/test-sched.c (b): Make global.
40534         Reported by Eric Blake.
40535
40536 2009-01-19  Martin Lambers  <marlam@marlam.de>
40537
40538         Provide POSIX semantics for socket timeout options on W32.
40539         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40540         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40541         * modules/setsockopt: Depend on sys_time module for struct timeval.
40542         * modules/getsockopt: Depend on sys_time module for struct timeval.
40543
40544 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40545
40546         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40547         __USE_GNU, for consistency with netdb.in.h.
40548         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40549
40550 2009-03-01  Bruno Haible  <bruno@clisp.org>
40551
40552         More support for FreeMiNT.
40553         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40554         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40555
40556 2009-03-01  Bruno Haible  <bruno@clisp.org>
40557
40558         More support for FreeMiNT.
40559         * lib/fpurge.c (fpurge): Correct last commit.
40560         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40561
40562 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40563
40564         Fix unportable awk script in vc-list-files.
40565         * build-aux/vc-list-files: In the replacement awk script, use
40566         substr with a second argument of 1, not zero.
40567         Report by Simon Josefsson.
40568
40569 2009-02-28  Bruno Haible  <bruno@clisp.org>
40570
40571         More support for FreeMiNT.
40572         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40573         to FreeMiNT today.
40574         * lib/fwriting.c (fwriting): Likewise.
40575         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40576
40577 2009-02-28  Bruno Haible  <bruno@clisp.org>
40578
40579         * tests/test-freadseek.c (main): Disable test beyond end of file on
40580         FreeMiNT.
40581         * tests/test-ftello.c (main): Likewise.
40582         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40583
40584 2009-02-28  Bruno Haible  <bruno@clisp.org>
40585
40586         Add tentative support for FreeMiNT.
40587         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40588         * lib/fpurge.c (fpurge): Likewise.
40589         * lib/freadable.c (freadable): Likewise.
40590         * lib/freading.c (freading): Likewise.
40591         * lib/freadptr.c (freadptr): Likewise.
40592         * lib/freadseek.c (freadptrinc): Likewise.
40593         * lib/fseeko.c (rpl_fseeko): Likewise.
40594         * lib/fseterr.c (fseterr): Likewise.
40595         * lib/fwritable.c (fwritable): Likewise.
40596         * lib/fwriting.c (fwriting): Likewise.
40597         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40598         Hourihane.
40599         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40600
40601 2009-02-28  Bruno Haible  <bruno@clisp.org>
40602
40603         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40604         SIGCHLD.
40605         Reported by Jim Meyering.
40606
40607 2009-02-28  Bruno Haible  <bruno@clisp.org>
40608
40609         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40610         Mention the results of these tests on various platforms.
40611         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40612         order.
40613         * doc/posix-functions/printf.texi: Likewise.
40614         * doc/posix-functions/snprintf.texi: Likewise.
40615         * doc/posix-functions/sprintf.texi: Likewise.
40616         * doc/posix-functions/vfprintf.texi: Likewise.
40617         * doc/posix-functions/vprintf.texi: Likewise.
40618         * doc/posix-functions/vsnprintf.texi: Likewise.
40619         * doc/posix-functions/vsprintf.texi: Likewise.
40620         * doc/glibc-functions/obstack_printf.texi: Likewise.
40621         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40622
40623 2009-02-28  Bruno Haible  <bruno@clisp.org>
40624
40625         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40626         Reported by Loïc Minier <lool@dooz.org>.
40627
40628 2009-02-27  Bruno Haible  <bruno@clisp.org>
40629
40630         * gnulib-tool (func_import): Make the sed expression used to create the
40631         sed script for updating the .gitignore file POSIX compliant.
40632         Reported by Eric Blake.
40633
40634 2009-02-27  Bruno Haible  <bruno@clisp.org>
40635
40636         * gnulib-tool (sed): Don't alias as "sed --posix".
40637         Reported by Eric Blake.
40638
40639 2009-02-27  Bruno Haible  <bruno@clisp.org>
40640
40641         Avoid test link errors.
40642         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40643         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40644         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40645         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40646         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40647
40648 2009-02-27  Bruno Haible  <bruno@clisp.org>
40649
40650         Avoid spurious "(cached)" in configure output.
40651         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40652         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40653         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40654         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40655         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40656         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40657         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40658         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40659         Reported by Eric Blake.
40660
40661 2009-02-27  Eric Blake  <ebb9@byu.net>
40662
40663         printf: fix regression in previous patch
40664         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40665
40666 2009-02-27  Bruno Haible  <bruno@clisp.org>
40667
40668         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40669         value.
40670         * lib/stdint.in.h: Likewise.
40671         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40672
40673 2009-02-27  Eric Blake  <ebb9@byu.net>
40674
40675         doc: mention more functions added in cygwin 1.7.0
40676         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40677         addition.
40678         * doc/posix-functions/open_wmemstream.texi: Likewise.
40679         * doc/posix-functions/wcsnlen.texi: Likewise.
40680         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40681         * doc/posix-functions/wcstod.texi: Likewise.
40682         * doc/posix-functions/wcstof.texi: Likewise.
40683         * doc/posix-functions/wcstoimax.texi: Likewise.
40684         * doc/posix-functions/wcstok.texi: Likewise.
40685         * doc/posix-functions/wcstoumax.texi: Likewise.
40686
40687         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40689         * doc/posix-functions/fprintf.texi: Update.
40690         * doc/posix-functions/printf.texi: Update.
40691         * doc/posix-functions/snprintf.texi: Update.
40692         * doc/posix-functions/sprintf.texi: Update.
40693         * doc/posix-functions/vfprintf.texi: Update.
40694         * doc/posix-functions/vprintf.texi: Update.
40695         * doc/posix-functions/vsnprintf.texi: Update.
40696         * doc/posix-functions/vsprintf.texi: Update.
40697         * doc/glibc-functions/obstack_printf.texi: Update.
40698         * doc/glibc-functions/obstack_vprintf.texi: Update.
40699
40700 2009-02-26  Eric Blake  <ebb9@byu.net>
40701
40702         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40703         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40704         compilation bug by using runtime conversion.
40705         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40706         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40707         * modules/ceill-tests (Files): Use nan.h.
40708         * modules/floorl-tests (Files): Likewise.
40709         * modules/frexpl-tests (Files): Likewise.
40710         * modules/isnanl-tests (Files): Likewise.
40711         * modules/ldexpl-tests (Files): Likewise.
40712         * modules/roundl-tests (Files): Likewise.
40713         * modules/truncl-tests (Files): Likewise.
40714         * tests/test-ceill.c (main): Use a working NaN.
40715         * tests/test-floorl.c (main): Likewise.
40716         * tests/test-frexpl.c (main): Likewise.
40717         * tests/test-isnan.c (test_long_double): Likewise.
40718         * tests/test-isnanl.h (main): Likewise.
40719         * tests/test-ldexpl.h (main): Likewise.
40720         * tests/test-roundl.h (main): Likewise.
40721         * tests/test-truncl.h (main): Likewise.
40722         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40723
40724 2009-02-26  Eric Blake  <ebb9@byu.net>
40725             Bruno Haible  <bruno@clisp.org>
40726
40727         Work around a *printf bug with %ls on Solaris.
40728         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40729         precision is specified, sprintf stops converting the wide string
40730         argument when the number of bytes that have been produced by this
40731         conversion equals or exceeds the precision.
40732         * doc/posix-functions/fprintf.texi: Update.
40733         * doc/posix-functions/printf.texi: Update.
40734         * doc/posix-functions/snprintf.texi: Update.
40735         * doc/posix-functions/sprintf.texi: Update.
40736         * doc/posix-functions/vfprintf.texi: Update.
40737         * doc/posix-functions/vprintf.texi: Update.
40738         * doc/posix-functions/vsnprintf.texi: Update.
40739         * doc/posix-functions/vsprintf.texi: Update.
40740         * doc/glibc-functions/obstack_printf.texi: Update.
40741         * doc/glibc-functions/obstack_vprintf.texi: Update.
40742
40743 2009-02-26  Eric Blake  <ebb9@byu.net>
40744
40745         stdlib: favor compiler check of random.h
40746         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40747         to avoid an ObjC random.h installed by Swarm.
40748
40749 2009-02-26  Bruno Haible  <bruno@clisp.org>
40750
40751         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40752         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40753         Reported by Gary V. Vaughan <gary@gnu.org>.
40754
40755 2009-02-26  Bruno Haible  <bruno@clisp.org>
40756
40757         Fix *printf behaviour regarding the %ls directive.
40758         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40759         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40760         NEED_PRINTF_DIRECTIVE_LS.
40761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40762         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40763         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40764         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40765         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40766         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40767         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40768         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40769         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40770         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40771         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40772         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40773         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40774         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40775         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40776         * doc/posix-functions/fprintf.texi: Update.
40777         * doc/posix-functions/printf.texi: Update.
40778         * doc/posix-functions/snprintf.texi: Update.
40779         * doc/posix-functions/sprintf.texi: Update.
40780         * doc/posix-functions/vfprintf.texi: Update.
40781         * doc/posix-functions/vprintf.texi: Update.
40782         * doc/posix-functions/vsnprintf.texi: Update.
40783         * doc/posix-functions/vsprintf.texi: Update.
40784         * doc/glibc-functions/obstack_printf.texi: Update.
40785         * doc/glibc-functions/obstack_vprintf.texi: Update.
40786         Reported by Eric Blake.
40787
40788 2009-02-25  Bruno Haible  <bruno@clisp.org>
40789
40790         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40791         with known value.
40792         Reported by Gary V. Vaughan <gary@gnu.org>.
40793
40794 2009-02-25  Bruno Haible  <bruno@clisp.org>
40795
40796         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40797         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40798         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40799         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40800         Reported by Gary V. Vaughan <gary@gnu.org>.
40801
40802 2009-02-25  Bruno Haible  <bruno@clisp.org>
40803
40804         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40805         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40806         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40807         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40808         Reported by Gary V. Vaughan <gary@gnu.org>.
40809
40810 2009-02-25  Eric Blake  <ebb9@byu.net>
40811
40812         tests: skip fseek/ftell tests if ungetc is broken
40813         * m4/ungetc.m4: New file.
40814         * modules/fseek-tests: Split test, so ungetc dependency is
40815         separate from rest of test.
40816         * modules/fseeko-tests: Likewise.
40817         * modules/ftell-tests: Likewise.
40818         * modules/ftello-tests: Likewise.
40819         * tests/test-fseek.c (main): Isolate ungetc dependency.
40820         * tests/test-fseeko.c (main): Likewise.
40821         * tests/test-ftell.c (main): Likewise.
40822         * tests/test-ftello.c (main): Likewise.
40823         * tests/test-fseek2.sh: New file.
40824         * tests/test-fseeko2.sh: Likewise.
40825         * tests/test-ftell2.sh: Likewise.
40826         * tests/test-ftello2.sh: Likewise.
40827
40828 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40829
40830         test-getaddrinfo: fix usage of skip return code 77
40831         * tests/test-gettaddrinfo.c: Return skip code 77 only
40832         for first occurance of skip (4x77 is not 77)
40833
40834 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40835
40836         strtod: avoid C99 decl-after-statement
40837         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40838
40839 2009-02-24  Eric Blake  <ebb9@byu.net>
40840
40841         strtod: detect HP-UX 11.31 bug
40842         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40843         Reported by Gary V. Vaughan.
40844
40845 2009-02-23  Bruno Haible  <bruno@clisp.org>
40846
40847         Fix invalid read past end of memory block.
40848         * lib/vasnprintf.c (DCHAR_SET): Define.
40849         (local_wcslen): Define only when needed.
40850         (local_strnlen, local_wcsnlen): New functions.
40851         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40852         directives that involve a conversion ourselves.
40853         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40854         wcsnlen, mbrtowc, wcrtomb.
40855         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40856         * tests/test-vasprintf-posix.c (test_function): Likewise.
40857         * tests/test-snprintf-posix.h (test_function): Likewise.
40858         * tests/test-sprintf-posix.h (test_function): Likewise.
40859         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40860
40861 2009-02-22  Bruno Haible  <bruno@clisp.org>
40862
40863         Implement new clarified decomposition of Hangul syllables.
40864         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40865         of type LTV, return only a pairwise decomposition.
40866         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40867         Likewise.
40868         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40869         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40870         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40871
40872 2009-02-22  Bruno Haible  <bruno@clisp.org>
40873
40874         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40875         zero-length results and shrink excess allocated memory.
40876         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40877         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40878         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40879         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40880         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40881         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40882         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40883         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40884         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40885         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40886         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40887         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40888
40889 2009-02-21  Bruno Haible  <bruno@clisp.org>
40890
40891         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40892         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40893         spaces after a period. Put a space between a macro name and its
40894         argument list. Trivial rewordings.
40895         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40896         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40897         (main): Return 0 explicitly.
40898
40899 2009-02-21  Bruno Haible  <bruno@clisp.org>
40900
40901         Tests for module 'uninorm/filter'.
40902         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40903         * modules/uninorm/filter-tests: New file.
40904
40905         New module 'uninorm/filter'.
40906         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40907         uninorm_filter_flush, uninorm_filter_free): New declarations.
40908         * lib/uninorm/uninorm-filter.c: New file.
40909         * modules/uninorm/filter: New file.
40910
40911 2009-02-21  Bruno Haible  <bruno@clisp.org>
40912
40913         Tests for module 'uninorm/nfkc'.
40914         * tests/uninorm/test-nfkc.c: New file.
40915         * tests/uninorm/test-u8-nfkc.c: New file.
40916         * tests/uninorm/test-u16-nfkc.c: New file.
40917         * tests/uninorm/test-u32-nfkc.c: New file.
40918         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40919         * tests/uninorm/test-u32-nfkc-big.c: New file.
40920         * modules/uninorm/nfkc-tests: New file.
40921
40922         New module 'uninorm/nfkc'.
40923         * lib/uninorm/nfkc.c: New file.
40924         * modules/uninorm/nfkc: New file.
40925
40926         Tests for module 'uninorm/nfkd'.
40927         * tests/uninorm/test-nfkd.c: New file.
40928         * tests/uninorm/test-u8-nfkd.c: New file.
40929         * tests/uninorm/test-u16-nfkd.c: New file.
40930         * tests/uninorm/test-u32-nfkd.c: New file.
40931         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40932         * tests/uninorm/test-u32-nfkd-big.c: New file.
40933         * modules/uninorm/nfkd-tests: New file.
40934
40935         New module 'uninorm/nfkd'.
40936         * lib/uninorm/nfkd.c: New file.
40937         * modules/uninorm/nfkd: New file.
40938
40939         Tests for module 'uninorm/nfc'.
40940         * tests/uninorm/test-nfc.c: New file.
40941         * tests/uninorm/test-u8-nfc.c: New file.
40942         * tests/uninorm/test-u16-nfc.c: New file.
40943         * tests/uninorm/test-u32-nfc.c: New file.
40944         * tests/uninorm/test-u32-nfc-big.sh: New file.
40945         * tests/uninorm/test-u32-nfc-big.c: New file.
40946         * modules/uninorm/nfc-tests: New file.
40947
40948         New module 'uninorm/nfc'.
40949         * lib/uninorm/nfc.c: New file.
40950         * modules/uninorm/nfc: New file.
40951
40952         Tests for module 'uninorm/nfd'.
40953         * tests/uninorm/test-nfd.c: New file.
40954         * tests/uninorm/test-u8-nfd.c: New file.
40955         * tests/uninorm/test-u16-nfd.c: New file.
40956         * tests/uninorm/test-u32-nfd.c: New file.
40957         * tests/uninorm/test-u32-nfd-big.sh: New file.
40958         * tests/uninorm/test-u32-nfd-big.c: New file.
40959         * tests/uninorm/test-u32-normalize-big.h: New file.
40960         * tests/uninorm/test-u32-normalize-big.c: New file.
40961         * tests/uninorm/NormalizationTest.txt: New file, created from
40962         Unicode 5.1.0 NormalizationTest.txt.
40963         * modules/uninorm/nfd-tests: New file.
40964
40965         New module 'uninorm/nfd'.
40966         * lib/uninorm/nfd.c: New file.
40967         * modules/uninorm/nfd: New file.
40968
40969         New module 'uninorm/u32-normalize'.
40970         * lib/uninorm/u32-normalize.c: New file.
40971         * modules/uninorm/u32-normalize: New file.
40972
40973         New module 'uninorm/u16-normalize'.
40974         * lib/uninorm/u16-normalize.c: New file.
40975         * modules/uninorm/u16-normalize: New file.
40976
40977         New module 'uninorm/u8-normalize'.
40978         * lib/uninorm/u8-normalize.c: New file.
40979         * lib/uninorm/normalize-internal.h: New file.
40980         * lib/uninorm/u-normalize-internal.h: New file.
40981         * modules/uninorm/u8-normalize: New file.
40982
40983         New module 'uninorm/decompose-internal'.
40984         * lib/uninorm/decompose-internal.c: New file.
40985         * modules/uninorm/decompose-internal: New file.
40986
40987         Tests for module 'uninorm/composition'.
40988         * tests/uninorm/test-composition.c: New file.
40989         * modules/uninorm/composition-tests: New file.
40990
40991         New module 'uninorm/composition'.
40992         * lib/uninorm/composition.c: New file.
40993         * lib/uninorm/composition-table.gperf: New file, generated by
40994         gen-uni-tables.
40995         * modules/uninorm/composition: New file.
40996
40997         Tests for module 'uninorm/compat-decomposition'.
40998         * tests/uninorm/test-compat-decomposition.c: New file.
40999         * modules/uninorm/compat-decomposition-tests: New file.
41000
41001         New module 'uninorm/compat-decomposition'.
41002         * lib/uninorm/decompose-internal.h: New file.
41003         * lib/uninorm/compat-decomposition.c: New file.
41004         * modules/uninorm/compat-decomposition: New file.
41005
41006         Tests for module 'uninorm/canonical-decomposition'.
41007         * tests/uninorm/test-canonical-decomposition.c: New file.
41008         * modules/uninorm/canonical-decomposition-tests: New file.
41009
41010         New module 'uninorm/canonical-decomposition'.
41011         * lib/uninorm/canonical-decomposition.c: New file.
41012         * modules/uninorm/canonical-decomposition: New file.
41013
41014         Tests for module 'uninorm/decomposition'.
41015         * tests/uninorm/test-decomposition.c: New file.
41016         * modules/uninorm/decomposition-tests: New file.
41017
41018         New module 'uninorm/decomposition'.
41019         * lib/uninorm/decomposition.c: New file.
41020         * modules/uninorm/decomposition: New file.
41021
41022         New module 'uninorm/decomposition-table'.
41023         * lib/uninorm/decomposition-table.h: New file.
41024         * lib/uninorm/decomposition-table.c: New file.
41025         * lib/uninorm/decomposition-table1.h: New file, generated by
41026         gen-uni-tables.
41027         * lib/uninorm/decomposition-table2.h: New file, generated by
41028         gen-uni-tables.
41029         * modules/uninorm/decomposition-table: New file.
41030
41031         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41032         (UC_DECOMP_*): New enumeration items.
41033         (get_decomposition): New function.
41034         (struct decomp_table): New type.
41035         (output_decomposition, output_decomposition_tables): New functions.
41036         (unicode_composition_exclusions): New variable.
41037         (fill_composition_exclusions, debug_output_composition_tables): New
41038         functions.
41039         (main): Accept one more argument. Invoke fill_composition_exclusions.
41040         Output decomposition and composition tables.
41041
41042         New module 'uninorm/base'.
41043         * lib/uninorm.h: New file.
41044         * lib/unictype.h: Update comment.
41045         * modules/uninorm/base: New file.
41046
41047 2009-02-21  David Lutterkort  <lutter@redhat.com>
41048
41049         Tests for module 'safe-alloc'.
41050         * tests/test-safe-alloc.c: New file.
41051         * modules/safe-alloc-tests: New file.
41052
41053         New module 'safe-alloc'.
41054         * lib/safe-alloc.h: New file.
41055         * lib/safe-alloc.c: New file.
41056         * m4/safe-alloc.m4: New file.
41057         * modules/safe-alloc: New file.
41058         * doc/safe-alloc.texi: New file.
41059         * doc/gnulib.texi: Include it.
41060         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41061         safe-alloc.
41062
41063 2009-02-18  Bruno Haible  <bruno@clisp.org>
41064
41065         Fix link error on non-glibc systems.
41066         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41067         variable.
41068         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41069
41070 2009-02-18  Jim Meyering  <meyering@redhat.com>
41071
41072         fts: avoid used-uninitialized error due to recent change
41073         * lib/fts.c (fts_read): Guard uses of the new member,
41074         parent->fts_n_dirs_remaining, since it's not relevant for
41075         the parent of a directory specified on the command-line.
41076
41077 2009-02-17  James Youngman  <jay@gnu.org>
41078             Bruno Haible  <bruno@clisp.org>
41079
41080         * m4/include_next.m4: Reformulate comment.
41081
41082 2009-02-16  Jim Meyering  <meyering@redhat.com>
41083
41084         fts: add #if guards so that the fts_lgpl module still builds
41085         * lib/fts.c: Guard just-added hash-table-using parts with
41086         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41087         Reported by Simon Josefsson.
41088
41089 2009-02-15  Bruno Haible  <bruno@clisp.org>
41090
41091         * modules/array-mergesort-tests: New file.
41092         * tests/test-array-mergesort.c: New file.
41093
41094         New module 'array-mergesort'.
41095         * modules/array-mergesort: New file.
41096         * lib/array-mergesort.h: New file.
41097
41098 2009-02-15  Bruno Haible  <bruno@clisp.org>
41099
41100         Fix 2009-02-07 commit.
41101         * lib/gen-uni-tables.c (output_predicate, output_category,
41102         output_combclass, output_bidi_category, output_decimal_digit,
41103         output_digit, output_numeric, output_mirror, output_scripts,
41104         output_ident_category, output_simple_mapping): Fix format directives.
41105         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41106
41107 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41108
41109         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41110         fixes are available from IBM.
41111
41112 2009-02-13  Jim Meyering  <meyering@redhat.com>
41113
41114         fts: arrange not to stat non-directories in more cases
41115         This makes GNU find (when it doesn't need to stat each file)
41116         *much* more efficient at traversing reiserfs file systems.
41117         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41118         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41119         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41120         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41121         (leaf_optimization_applies): New function.
41122         (LCO_hash, LCO_compare): New helper functions.
41123         (link_count_optimize_ok): New function.
41124         (fts_stat): Initialize new member (if dir).
41125         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41126         we've just stat'ed a directory.  Skip the stat call when possible.
41127         ---
41128         Note this AFS-related exchange:
41129         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41130         and note find's pioctl call in find/fstype.c.
41131         But that is necessary only if you want to enable the
41132         optimization for AFS, and for now, I don't.
41133
41134         fts: move a function definition "up" (no semantic change)
41135         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41136         "up" to precede upcoming use of a related function.
41137
41138 2009-02-11  Jim Meyering  <meyering@redhat.com>
41139
41140         fts: correct internal computation of nlinks (optimization-related)
41141         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41142         whether the current entry is a directory, so don't test it.
41143
41144 2009-02-10  Bruno Haible  <bruno@clisp.org>
41145
41146         Tests for module 'uniwbrk/ulc-wordbreaks'.
41147         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41148         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41149         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41150
41151         Tests for module 'uniwbrk/u32-wordbreaks'.
41152         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41153         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41154
41155         Tests for module 'uniwbrk/u16-wordbreaks'.
41156         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41157         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41158
41159         Tests for module 'uniwbrk/u8-wordbreaks'.
41160         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41161         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41162
41163 2009-02-10  Bruno Haible  <bruno@clisp.org>
41164
41165         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41166         property.
41167         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41168         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41169         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41170
41171 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41172
41173         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41174         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41175
41176 2009-02-10  Bruno Haible  <bruno@clisp.org>
41177
41178         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41179         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41180         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41181         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41182         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41183         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41184
41185 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41186
41187         * lib/sockets.h (gl_fd_to_handle): New function.
41188
41189         * tests/test-sockets.c: Call gl_fd_to_handle.
41190
41191 2009-02-09  Bruno Haible  <bruno@clisp.org>
41192
41193         * doc/havelib.texi: Document the conventions on bi-arch systems.
41194
41195 2009-02-08  Bruno Haible  <bruno@clisp.org>
41196
41197         Document the AC_LIB_LINKFLAGS macro.
41198         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41199         * doc/gnulib.texi: Include it.
41200
41201 2009-02-08  Bruno Haible  <bruno@clisp.org>
41202
41203         Fix wrong order of sections, compared to TOC.
41204         * doc/gnulib.texi: Include relocatable-maint.texi after the
41205         "Regular expressions" node, not before.
41206
41207 2009-02-08  Bruno Haible  <bruno@clisp.org>
41208
41209         Tests for module 'unicase/totitle'.
41210         * modules/unicase/totitle-tests: New file.
41211
41212         Tests for module 'unicase/tolower'.
41213         * modules/unicase/tolower-tests: New file.
41214
41215         Tests for module 'unicase/toupper'.
41216         * modules/unicase/toupper-tests: New file.
41217         * tests/unicase/test-mapping-part1.h: New file.
41218         * tests/unicase/test-mapping-part2.h: New file.
41219
41220         New module 'unicase/totitle'.
41221         * modules/unicase/totitle: New file.
41222         * lib/unicase/totitle.c: New file.
41223
41224         New module 'unicase/tolower'.
41225         * modules/unicase/tolower: New file.
41226         * lib/unicase/tolower.c: New file.
41227
41228         New module 'unicase/toupper'.
41229         * modules/unicase/toupper: New file.
41230         * lib/unicase/toupper.c: New file.
41231         * lib/unicase/simple-mapping.h: New file.
41232
41233         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41234         (mapping_table): New structure.
41235         (output_simple_mapping): New function.
41236         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41237         * modules/gen-uni-tables (Description): Update.
41238         * lib/unicase/toupper.h: New file, automatically generated by
41239         gen-uni-tables.
41240         * lib/unicase/tolower.h: New file, automatically generated by
41241         gen-uni-tables.
41242         * lib/unicase/totitle.h: New file, automatically generated by
41243         gen-uni-tables.
41244         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41245         gen-uni-tables.
41246         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41247         gen-uni-tables.
41248         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41249         gen-uni-tables.
41250
41251         New module 'unicase/base'.
41252         * modules/unicase/base: New file.
41253         * lib/unicase.h: New file.
41254
41255 2009-02-08  Bruno Haible  <bruno@clisp.org>
41256
41257         New module 'uniwbrk/ulc-wordbreaks'.
41258         * modules/uniwbrk/ulc-wordbreaks: New file.
41259         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41260
41261         New module 'uniwbrk/u32-wordbreaks'.
41262         * modules/uniwbrk/u32-wordbreaks: New file.
41263         * lib/uniwbrk/u32-wordbreaks.c: New file.
41264
41265         New module 'uniwbrk/u16-wordbreaks'.
41266         * modules/uniwbrk/u16-wordbreaks: New file.
41267         * lib/uniwbrk/u16-wordbreaks.c: New file.
41268
41269         New module 'uniwbrk/u8-wordbreaks'.
41270         * modules/uniwbrk/u8-wordbreaks: New file.
41271         * lib/uniwbrk/u8-wordbreaks.c: New file.
41272         * lib/uniwbrk/u-wordbreaks.h: New file.
41273
41274         New module 'uniwbrk/table'.
41275         * modules/uniwbrk/table: New file.
41276         * lib/uniwbrk/wbrktable.h: New file.
41277         * lib/uniwbrk/wbrktable.c: New file.
41278
41279         New module 'uniwbrk/wordbreak-property'.
41280         * modules/uniwbrk/wordbreak-property: New file.
41281         * lib/uniwbrk/wordbreak-property.c: New file.
41282
41283         * lib/gen-uni-tables.c (WBP_*): New enum items.
41284         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41285         (unicode_org_wbp): New variable.
41286         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41287         New functions.
41288         (wbp_table): New structure.
41289         (output_wbp, output_wbrk_tables): New functions.
41290         (main): Accept additional argument. Invoke fill_org_wbp,
41291         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41292         output_wbrk_tables.
41293         * modules/gen-uni-tables (Description): Update.
41294         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41295         gen-uni-tables.
41296
41297         New module 'uniwbrk/base'.
41298         * modules/uniwbrk/base: New file.
41299         * lib/uniwbrk.h: New file.
41300
41301 2009-02-08  Bruno Haible  <bruno@clisp.org>
41302
41303         Update to Unicode 5.1.0.
41304         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41305         U+2185..U+2188.
41306         (is_property_default_ignorable_code_point): Don't include characters
41307         of category Cc or Cs and not-a-characters.
41308         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41309         U+0D79, U+109E, U+109F, U+A60C.
41310         * lib/unictype/bidi_of.h: Regenerated.
41311         * lib/unictype/blocks.h: Regenerated.
41312         * lib/unictype/categ_C.h: Regenerated.
41313         * lib/unictype/categ_Cf.h: Regenerated.
41314         * lib/unictype/categ_Cn.h: Regenerated.
41315         * lib/unictype/categ_L.h: Regenerated.
41316         * lib/unictype/categ_Ll.h: Regenerated.
41317         * lib/unictype/categ_Lm.h: Regenerated.
41318         * lib/unictype/categ_Lo.h: Regenerated.
41319         * lib/unictype/categ_Lu.h: Regenerated.
41320         * lib/unictype/categ_M.h: Regenerated.
41321         * lib/unictype/categ_Mc.h: Regenerated.
41322         * lib/unictype/categ_Me.h: Regenerated.
41323         * lib/unictype/categ_Mn.h: Regenerated.
41324         * lib/unictype/categ_N.h: Regenerated.
41325         * lib/unictype/categ_Nd.h: Regenerated.
41326         * lib/unictype/categ_Nl.h: Regenerated.
41327         * lib/unictype/categ_No.h: Regenerated.
41328         * lib/unictype/categ_P.h: Regenerated.
41329         * lib/unictype/categ_Pd.h: Regenerated.
41330         * lib/unictype/categ_Pe.h: Regenerated.
41331         * lib/unictype/categ_Pf.h: Regenerated.
41332         * lib/unictype/categ_Pi.h: Regenerated.
41333         * lib/unictype/categ_Po.h: Regenerated.
41334         * lib/unictype/categ_Ps.h: Regenerated.
41335         * lib/unictype/categ_S.h: Regenerated.
41336         * lib/unictype/categ_Sk.h: Regenerated.
41337         * lib/unictype/categ_Sm.h: Regenerated.
41338         * lib/unictype/categ_So.h: Regenerated.
41339         * lib/unictype/categ_of.h: Regenerated.
41340         * lib/unictype/combining.h: Regenerated.
41341         * lib/unictype/ctype_alnum.h: Regenerated.
41342         * lib/unictype/ctype_alpha.h: Regenerated.
41343         * lib/unictype/ctype_graph.h: Regenerated.
41344         * lib/unictype/ctype_lower.h: Regenerated.
41345         * lib/unictype/ctype_print.h: Regenerated.
41346         * lib/unictype/ctype_punct.h: Regenerated.
41347         * lib/unictype/ctype_upper.h: Regenerated.
41348         * lib/unictype/decdigit.h: Regenerated.
41349         * lib/unictype/digit.h: Regenerated.
41350         * lib/unictype/mirror.h: Regenerated.
41351         * lib/unictype/numeric.h: Regenerated.
41352         * lib/unictype/pr_alphabetic.h: Regenerated.
41353         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41354         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41355         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41356         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41357         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41358         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41359         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41360         * lib/unictype/pr_combining.h: Regenerated.
41361         * lib/unictype/pr_dash.h: Regenerated.
41362         * lib/unictype/pr_decimal_digit.h: Regenerated.
41363         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41364         * lib/unictype/pr_deprecated.h: Regenerated.
41365         * lib/unictype/pr_diacritic.h: Regenerated.
41366         * lib/unictype/pr_extender.h: Regenerated.
41367         * lib/unictype/pr_format_control.h: Regenerated.
41368         * lib/unictype/pr_grapheme_base.h: Regenerated.
41369         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41370         * lib/unictype/pr_grapheme_link.h: Regenerated.
41371         * lib/unictype/pr_id_continue.h: Regenerated.
41372         * lib/unictype/pr_id_start.h: Regenerated.
41373         * lib/unictype/pr_ideographic.h: Regenerated.
41374         * lib/unictype/pr_ignorable_control.h: Regenerated.
41375         * lib/unictype/pr_lowercase.h: Regenerated.
41376         * lib/unictype/pr_math.h: Regenerated.
41377         * lib/unictype/pr_numeric.h: Regenerated.
41378         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41379         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41380         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41381         * lib/unictype/pr_other_id_continue.h: Regenerated.
41382         * lib/unictype/pr_other_lowercase.h: Regenerated.
41383         * lib/unictype/pr_other_math.h: Regenerated.
41384         * lib/unictype/pr_punctuation.h: Regenerated.
41385         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41386         * lib/unictype/pr_soft_dotted.h: Regenerated.
41387         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41388         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41389         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41390         * lib/unictype/pr_uppercase.h: Regenerated.
41391         * lib/unictype/pr_xid_continue.h: Regenerated.
41392         * lib/unictype/pr_xid_start.h: Regenerated.
41393         * lib/unictype/pr_zero_width.h: Regenerated.
41394         * lib/unictype/scripts.h: Regenerated.
41395         * lib/unictype/scripts_byname.gperf: Regenerated.
41396         * lib/unictype/sy_java_ident.h: Regenerated.
41397         * lib/unilbrk/lbrkprop1.h: Regenerated.
41398         * lib/unilbrk/lbrkprop2.h: Regenerated.
41399         * tests/unictype/test-categ_C.c: Regenerated.
41400         * tests/unictype/test-categ_Cf.c: Regenerated.
41401         * tests/unictype/test-categ_Cn.c: Regenerated.
41402         * tests/unictype/test-categ_L.c: Regenerated.
41403         * tests/unictype/test-categ_Ll.c: Regenerated.
41404         * tests/unictype/test-categ_Lm.c: Regenerated.
41405         * tests/unictype/test-categ_Lo.c: Regenerated.
41406         * tests/unictype/test-categ_Lu.c: Regenerated.
41407         * tests/unictype/test-categ_M.c: Regenerated.
41408         * tests/unictype/test-categ_Mc.c: Regenerated.
41409         * tests/unictype/test-categ_Me.c: Regenerated.
41410         * tests/unictype/test-categ_Mn.c: Regenerated.
41411         * tests/unictype/test-categ_N.c: Regenerated.
41412         * tests/unictype/test-categ_Nd.c: Regenerated.
41413         * tests/unictype/test-categ_Nl.c: Regenerated.
41414         * tests/unictype/test-categ_No.c: Regenerated.
41415         * tests/unictype/test-categ_P.c: Regenerated.
41416         * tests/unictype/test-categ_Pd.c: Regenerated.
41417         * tests/unictype/test-categ_Pe.c: Regenerated.
41418         * tests/unictype/test-categ_Pf.c: Regenerated.
41419         * tests/unictype/test-categ_Pi.c: Regenerated.
41420         * tests/unictype/test-categ_Po.c: Regenerated.
41421         * tests/unictype/test-categ_Ps.c: Regenerated.
41422         * tests/unictype/test-categ_S.c: Regenerated.
41423         * tests/unictype/test-categ_Sk.c: Regenerated.
41424         * tests/unictype/test-categ_Sm.c: Regenerated.
41425         * tests/unictype/test-categ_So.c: Regenerated.
41426         * tests/unictype/test-ctype_alnum.c: Regenerated.
41427         * tests/unictype/test-ctype_alpha.c: Regenerated.
41428         * tests/unictype/test-ctype_graph.c: Regenerated.
41429         * tests/unictype/test-ctype_lower.c: Regenerated.
41430         * tests/unictype/test-ctype_print.c: Regenerated.
41431         * tests/unictype/test-ctype_punct.c: Regenerated.
41432         * tests/unictype/test-ctype_upper.c: Regenerated.
41433         * tests/unictype/test-decdigit.h: Regenerated.
41434         * tests/unictype/test-digit.h: Regenerated.
41435         * tests/unictype/test-numeric.h: Regenerated.
41436         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41437         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41438         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41439         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41440         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41441         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41442         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41443         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41444         * tests/unictype/test-pr_combining.c: Regenerated.
41445         * tests/unictype/test-pr_dash.c: Regenerated.
41446         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41447         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41448         * tests/unictype/test-pr_deprecated.c: Regenerated.
41449         * tests/unictype/test-pr_diacritic.c: Regenerated.
41450         * tests/unictype/test-pr_extender.c: Regenerated.
41451         * tests/unictype/test-pr_format_control.c: Regenerated.
41452         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41453         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41454         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41455         * tests/unictype/test-pr_id_continue.c: Regenerated.
41456         * tests/unictype/test-pr_id_start.c: Regenerated.
41457         * tests/unictype/test-pr_ideographic.c: Regenerated.
41458         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41459         * tests/unictype/test-pr_lowercase.c: Regenerated.
41460         * tests/unictype/test-pr_math.c: Regenerated.
41461         * tests/unictype/test-pr_numeric.c: Regenerated.
41462         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41463         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41464         Regenerated.
41465         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41466         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41467         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41468         * tests/unictype/test-pr_other_math.c: Regenerated.
41469         * tests/unictype/test-pr_punctuation.c: Regenerated.
41470         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41471         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41472         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41473         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41474         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41475         * tests/unictype/test-pr_uppercase.c: Regenerated.
41476         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41477         * tests/unictype/test-pr_xid_start.c: Regenerated.
41478         * tests/unictype/test-pr_zero_width.c: Regenerated.
41479
41480         Update to Unicode 5.1.0.
41481         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41482         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41483         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41484         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41485         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41486         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41487         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41488         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41489         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41490         (nonspacing_table_ind): Update.
41491         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41492
41493         Update to Unicode 5.1.0.
41494         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41495         code transform.
41496         * lib/uniname/uniname.c (unicode_character_name,
41497         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41498         * lib/uniname/uninames.h: Regenerated.
41499         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41500
41501 2009-02-07  Bruno Haible  <bruno@clisp.org>
41502
41503         Merge gen-ctype and gen-lbrk into a single program.
41504         * lib/gen-uni-tables.c: New file, incorporating
41505         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41506         Add directory prefixes to the names of the generated files.
41507         * lib/unictype/gen-ctype.c: Remove file.
41508         * lib/unilbrk/gen-lbrk.c: Remove file.
41509         * modules/gen-uni-tables: New file.
41510         * modules/unictype/gen-ctype: Remove file.
41511         * modules/unilbrk/gen-lbrk: Remove file.
41512
41513 2009-02-07  Bruno Haible  <bruno@clisp.org>
41514
41515         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41516
41517         New module 'unistr/u32-strcoll'.
41518         * modules/unistr/u32-strcoll: New file.
41519         * lib/unistr/u32-strcoll.c: New file.
41520
41521         New module 'unistr/u16-strcoll'.
41522         * modules/unistr/u16-strcoll: New file.
41523         * lib/unistr/u16-strcoll.c: New file.
41524
41525         New module 'unistr/u8-strcoll'.
41526         * modules/unistr/u8-strcoll: New file.
41527         * lib/unistr/u8-strcoll.c: New file.
41528         * lib/unistr/u-strcoll.h: New file.
41529
41530 2009-02-07  Bruno Haible  <bruno@clisp.org>
41531
41532         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41533         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41534         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41535         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41536         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41537         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41538
41539 2009-02-07  Bruno Haible  <bruno@clisp.org>
41540
41541         Make 64-bit clean.
41542         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41543         output_combclass, output_bidi_category, output_decimal_digit,
41544         output_digit, output_numeric, output_mirror, output_scripts,
41545         output_ident_category): Use proper width specifier in format strings.
41546
41547 2009-02-07  Bruno Haible  <bruno@clisp.org>
41548
41549         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41550         failure behaviour.
41551
41552 2009-02-07  Jim Meyering  <meyering@redhat.com>
41553
41554         regex: avoid compilation failure with upcoming gcc-4.4
41555         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41556         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41557         "... error: integer overflow in preprocessor expression".
41558
41559 2009-02-05  Ben Pfaff  <blp@gnu.org>
41560
41561         Fix link errors on Windows when close module is used.
41562         * modules/close: Add $(LIB_CLOSE) to Link section.
41563         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41564         $(LIB_CLOSE) on Windows.
41565
41566 2009-02-05  Jim Meyering  <meyering@redhat.com>
41567
41568         still avoid unused-parameter warnings, but do it cleanly
41569         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41570         (get_fs_usage): Cast to void instead.
41571         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41572         (dev_from_mount_options, read_file_system_list): Cast to void.
41573         Prompted by Bruno Haible.
41574
41575 2009-02-04  Jim Meyering  <meyering@redhat.com>
41576
41577         fsusage.c: correct copyright year
41578         * lib/fsusage.c: Reflect year in which the change is pushed into
41579
41580         avoid misc. warnings
41581         * lib/fsusage.c (UNUSED_PARAM): Define.
41582         (get_fs_usage): Mark parameter "disk" as unused.
41583         * lib/getugroups.c (getgrent): Use "void" in prototype.
41584         * lib/mountlist.c: Mark unused parameters.
41585         (read_file_system_list): Declare a local with "const".
41586         * lib/nanosleep.c (getnow): Declare static.
41587         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41588
41589         dirfd: set errno upon failure
41590         * lib/dirfd.c: Include <errno.h>.
41591         Set errno to ENOTSUP when returning -1.
41592         * modules/dirfd (Depends-on): Add errno.
41593         Suggested by John Kodis <kodis@comcast.net>.
41594
41595 2009-02-01  Bruno Haible  <bruno@clisp.org>
41596
41597         Don't assume sizeof (long) >= sizeof (void *).
41598         * lib/memcmp.c: Include stdint.h.
41599         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41600         srcp2 to 'const byte *'.
41601         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41602         types to uintptr_t.
41603         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41604         * modules/memcmp (Depends-on): Add stdint.
41605         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41606
41607 2009-01-30  Eric Blake  <ebb9@byu.net>
41608
41609         fix more require-before-expand issues
41610         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41611         expand, AC_PROG_AWK.
41612         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41613
41614 2009-01-28  Eric Blake  <ebb9@byu.net>
41615
41616         version-etc: use consistent URL formatting
41617         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41618         Improve formatting.  Use fputs for string without %.
41619
41620 2009-01-28  Jim Meyering  <meyering@redhat.com>
41621
41622         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41623         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41624         "underquoted definition of NAME" from autoconf-2.59.
41625
41626 2009-01-28  Bruno Haible  <bruno@clisp.org>
41627
41628         * doc/gnulib.texi: Add "Obsolete modules" to index.
41629
41630 2009-01-28  Jim Meyering  <meyering@redhat.com>
41631
41632         useless-if-before-free: recognize more variants
41633         * build-aux/useless-if-before-free: Also recognize e.g.,
41634         if (NULL != p) free (p);
41635
41636 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41637
41638         test-getaddrinfo: skip (don't fail) this test when there's no network
41639         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41640         on the presumption that it means you lack network access.
41641
41642 2009-01-26  Jim Meyering  <meyering@redhat.com>
41643
41644         fflush: avoid warnings on modern systems
41645         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41646         pos and result, into scopes where they're used.
41647
41648 2009-01-26  Eric Blake  <ebb9@byu.net>
41649
41650         Silence warning reintroduced by recent extensions patch.
41651         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41652         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41653         autoconf.
41654
41655         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41656         * m4/00gnulib.m4: New file.
41657         * gnulib-tool (func_get_filelist): Always use it.
41658         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41659         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41660
41661 2009-01-25  Bruno Haible  <bruno@clisp.org>
41662
41663         Make test-quotearg work on MacOS X and AIX.
41664         * tests/test-quotearg.sh: New file.
41665         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41666         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41667         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41668         include <libintl.h>.
41669         (fake_locale): Remove variable.
41670         (gettext, dgettext, dcgettext): Remove functions.
41671         (main): Instead of setting a fake locale, set a real locale. Call
41672         textdomain and bindtextdomain.
41673         * modules/quotearg-tests (Files): Add the new files.
41674         (Depends-on): Add gettext, setenv, unsetenv.
41675         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41676         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41677         Augment TESTS_ENVIRONMENT.
41678
41679 2009-01-25  Bruno Haible  <bruno@clisp.org>
41680
41681         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41682         fr_FR.ISO8859-1 locale on MacOS X.
41683         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41684         ja_JP.eucJP locale on MacOS X.
41685         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41686         zh_CN.GB18030 locale on MacOS X.
41687
41688 2009-01-25  Bruno Haible  <bruno@clisp.org>
41689
41690         Avoid link errors on MacOS X 10.3.
41691         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41692         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41693
41694 2009-01-25  Bruno Haible  <bruno@clisp.org>
41695
41696         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41697         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41698         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41699         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41700         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41701         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41702         posix_spawnattr_init, posix_spawnattr_setsigmask,
41703         posix_spawnattr_setflags, posix_spawnattr_destroy.
41704
41705         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41706         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41707         * modules/execute (Files): Remove m4/posix_spawn.m4.
41708         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41709         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41710         posix_spawnattr_init, posix_spawnattr_setsigmask,
41711         posix_spawnattr_setflags, posix_spawnattr_destroy.
41712
41713 2009-01-25  Bruno Haible  <bruno@clisp.org>
41714
41715         * lib/glthread/threadlib.c: Include <stdlib.h>.
41716
41717 2009-01-25  Bruno Haible  <bruno@clisp.org>
41718
41719         * lib/glthread/threadlib.c (dummy): New declaration.
41720
41721 2009-01-25  Bruno Haible  <bruno@clisp.org>
41722
41723         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41724         multibyte characters also for the GB18030 encoding. Don't crash when
41725         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41726
41727 2009-01-25  Bruno Haible  <bruno@clisp.org>
41728
41729         Avoid redefining 'struct random_data' on OSF/1 5.1.
41730         * lib/stdlib.in.h: Include <random.h> if it exists.
41731         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41732         HAVE_RANDOM_H. Include <random.h> when testing whether
41733         'struct random_data' exists.
41734         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41735
41736 2009-01-25  Bruno Haible  <bruno@clisp.org>
41737
41738         Don't install charset.alias on MacOS X >= 10.3.
41739         * lib/localcharset.c (DARWIN7): New macro.
41740         (get_charset_aliases): Hardcode the result for Darwin7.
41741         * modules/localcharset (install-exec-local): Don't install
41742         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41743
41744 2009-01-25  Bruno Haible  <bruno@clisp.org>
41745
41746         Don't install charset.alias on mingw and Cygwin.
41747         * modules/localcharset (install-exec-local): Don't install
41748         charset.alias on mingw and Cygwin, if the file does not yet exist.
41749         The result for these platforms is hardcoded in localcharset.c.
41750
41751 2009-01-25  Bruno Haible  <bruno@clisp.org>
41752
41753         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41754         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41755         before requiring AC_USE_SYSTEM_EXTENSIONS.
41756
41757 2009-01-25  Jim Meyering  <meyering@redhat.com>
41758
41759         c-strtod: avoid warnings
41760         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41761         "assignment discards qualifiers from pointer target type" warnings.
41762
41763 2009-01-24  Bruno Haible  <bruno@clisp.org>
41764
41765         Add support for non-UTF-8 locales on MacOS X.
41766         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41767         canonical encodings. For Darwin 7 and newer, don't map traditional
41768         encodings to UTF-8.
41769         Reported by Vincent Lefevre <vincent@vinc17.org>
41770         at <http://savannah.gnu.org/bugs/?25235>.
41771
41772 2009-01-24  Bruno Haible  <bruno@clisp.org>
41773
41774         * doc/gnulib.texi (Obsolete modules): New section.
41775         Reported by Mike Frysinger <vapier@gentoo.org>.
41776
41777 2009-01-24  Bruno Haible  <bruno@clisp.org>
41778
41779         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41780         (%.dvi): New rule.
41781
41782 2009-01-24  Bruno Haible  <bruno@clisp.org>
41783
41784         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41785         Reported by Eric Blake.
41786
41787 2009-01-24  Bruno Haible  <bruno@clisp.org>
41788
41789         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41790         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41791         Reported by Gary V. Vaughan <gary@gnu.org>.
41792
41793 2009-01-24  Bruno Haible  <bruno@clisp.org>
41794
41795         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41796
41797 2009-01-23  Bruno Haible  <bruno@clisp.org>
41798
41799         Make c-strtod, c-strtold usable in libraries.
41800         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41801         (C_STRTOD): Call strdup instead of xstrdup.
41802         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41803         * modules/c-strtold (Depends-on): Likewise.
41804         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41805         * NEWS: Mention the change.
41806         Reported by Michael Gold <mgold@ncf.ca>.
41807
41808 2009-01-23  Jim Meyering  <meyering@redhat.com>
41809
41810         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41811         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41812         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41813
41814 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41815
41816         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41817         GNU CoreUtils.
41818         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41819         * modules/version-etc (Description): Update.
41820
41821 2009-01-22  Bruno Haible  <bruno@clisp.org>
41822
41823         Cache the C locale object.
41824         * lib/c-strtod.c (c_locale_cache): New variable.
41825         (c_locale): New function.
41826         (C_STRTOD): Use it, and don't call freelocale.
41827         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41828         Suggested by Paolo Bonzini.
41829
41830 2009-01-21  Bruno Haible  <bruno@clisp.org>
41831
41832         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41833         conditions other than overflow.
41834
41835 2009-01-21  Bruno Haible  <bruno@clisp.org>
41836
41837         * lib/c-strtod.c: Include errno.h.
41838         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41839         value from STRTOD_L and STRTOD.
41840
41841 2009-01-21  Bruno Haible  <bruno@clisp.org>
41842         and Jim Meyering  <meyering@redhat.com>
41843
41844         nanosleep: skip configure test (fail it) for apple universal builds
41845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41846         universal builds, assume that nanosleep does not work.
41847         * modules/nanosleep (Depends-on): Add multiarch.
41848
41849         mktime: skip configure test (fail it) for apple universal builds
41850         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41851         universal builds, assume that mktime does not work.
41852         * modules/mktime (Depends-on): Add multiarch.
41853
41854 2009-01-21  Eric Blake  <ebb9@byu.net>
41855
41856         multiarch: avoid expand-before-require warning
41857         * modules/multiarch (configure.ac): Require, rather than expand,
41858         gl_MULTIARCH.
41859         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41860         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41861         enforce that all clients require it.  Partial reversion of
41862         2008-12-29 patch.
41863
41864         error: avoid expand-before-require warning
41865         * modules/errno (configure.ac): Require, rather than expand,
41866         gl_HEADER_ERRNO_H.
41867         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41868         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41869         enforce that all clients require it.
41870
41871         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41872         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41873         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41874         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41875
41876 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41877
41878         Revert:
41879         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41880
41881         regex: do not depend on obsolete modules.
41882         * modules/regex: Remove memcmp and memmove.
41883
41884 2009-01-20  Bruno Haible  <bruno@clisp.org>
41885
41886         Make the 'link' module link on Windows NT 4.
41887         * lib/link.c (_WIN32_WINNT): Don't define.
41888         (CreateHardLinkFuncType): New type.
41889         (CreateHardLinkFunc, initialized): New variables.
41890         (initialize): New function.
41891         (link): Invoke CreateHardLink indirectly through the function pointer.
41892
41893 2009-01-20  Bruno Haible  <bruno@clisp.org>
41894
41895         Fix compilation failure on mingw.
41896         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41897
41898 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41899
41900         * doc/c-strtod.texi: Mention a couple of restrictions.
41901
41902 2009-01-20  Jim Meyering  <meyering@redhat.com>
41903
41904         gettimeofday: move more declarations out of functions
41905         * lib/gettimeofday.c: Move extern declarations of tzset and
41906         gmtime out of containing functions.  Prompted by Bruno Haible.
41907
41908 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41909
41910         regex: do not depend on obsolete modules.
41911         * modules/regex: Remove memcmp and memmove.
41912
41913 2009-01-19  Bruno Haible  <bruno@clisp.org>
41914
41915         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41916         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41917         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41918         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41919         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41920
41921 2009-01-19  Bruno Haible  <bruno@clisp.org>
41922
41923         * tests/test-link.c: Include <errno.h>.
41924         (main): Exit with code 77 when a hard link cannot be created due to
41925         the file system.
41926         * tests/test-link.sh: Skip test when a hard link cannot be created due
41927         to the file system.
41928         Suggested by Eric Blake.
41929
41930 2009-01-19  Martin Lambers  <marlam@marlam.de>
41931
41932         * modules/link-tests: New file.
41933         * tests/test-link.sh: New file.
41934         * tests/test-link.c: New file.
41935
41936 2009-01-19  Eric Blake  <ebb9@byu.net>
41937
41938         doc: mention another function added in cygwin 1.7.0
41939         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41940         Another new function in cygwin 1.7.
41941
41942 2009-01-19  Bruno Haible  <bruno@clisp.org>
41943
41944         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41945         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41946         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41947         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41948         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41949         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41950         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41951         * m4/md4.m4 (gl_MD4): Likewise.
41952         * m4/md5.m4 (gl_MD5): Likewise.
41953         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41954         * m4/sha1.m4 (gl_SHA1): Likewise.
41955         * m4/sha256.m4 (gl_SHA256): Likewise.
41956         * m4/sha512.m4 (gl_SHA512): Likewise.
41957
41958 2009-01-19  Bruno Haible  <bruno@clisp.org>
41959
41960         * modules/uniname/uniname-tests (Depends-on): Add progname.
41961         * tests/uniname/test-uninames.c: Include progname.h.
41962         (main): Call set_program_name.
41963
41964         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41965         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41966         (main): Call set_program_name.
41967
41968         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41969         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41970         (main): Call set_program_name.
41971
41972         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41973         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41974         (main): Call set_program_name.
41975
41976         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41977         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41978         (main): Call set_program_name.
41979
41980         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41981         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41982         (main): Call set_program_name.
41983
41984         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41985         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41986         (main): Call set_program_name.
41987
41988         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41989         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41990         (main): Call set_program_name.
41991
41992         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41993         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41994         (main): Call set_program_name.
41995
41996 2009-01-19  Eric Blake  <ebb9@byu.net>
41997
41998         test-unistd: test previous patch
41999         * tests/test-unistd.c: Test *_FILENO macros.
42000
42001         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42002         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42003         Guarantee a definition.
42004         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42005         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42006         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42007         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42008         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42009         Likewise.
42010         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42011         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42012         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42013         Likewise.
42014         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42015         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42016         (STDERR_FILENO): Likewise.
42017         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42018         (STDERR_FILENO): Likewise.
42019         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42020         (STDERR_FILENO): Likewise.
42021         Reported by Elbert Pol.
42022
42023 2009-01-19  Eric Blake  <ebb9@byu.net>
42024
42025         doc: mention more functions added in cygwin 1.7.0
42026         * doc/posix-functions/abort.texi (abort): Update wording related
42027         to cygwin.
42028         * doc/posix-functions/daylight.texi (daylight): Likewise.
42029         * doc/posix-functions/optarg.texi (optarg): Likewise.
42030         * doc/posix-functions/optarg.texi (opterr): Likewise.
42031         * doc/posix-functions/optarg.texi (optind): Likewise.
42032         * doc/posix-functions/optarg.texi (optopt): Likewise.
42033         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42034         worked in 1.5.x, and was withdrawn in 1.7.
42035         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42036         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42037         cygwin versions.
42038         * doc/posix-functions/perror.texi (perror): Likewise.
42039         * doc/posix-functions/printf.texi (printf): Likewise.
42040         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42041         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42042         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42043         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42044         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42045         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42046         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42047         Likewise.
42048         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42049         Likewise.
42050         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42051         this function.
42052         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42053         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42054         Likewise.
42055         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42056         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42057         * doc/posix-functions/confstr.texi (confstr): Likewise.
42058         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42059         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42060         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42061         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42062         * doc/posix-functions/fputws.texi (fputws): Likewise.
42063         * doc/posix-functions/fwide.texi (fwide): Likewise.
42064         * doc/posix-functions/getwc.texi (getwc): Likewise.
42065         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42066         * doc/posix-functions/putwc.texi (putwc): Likewise.
42067         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42068         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42069         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42070         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42071         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42072         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42073         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42074         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42075         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42076         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42077         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42078
42079 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42080
42081         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42082         * lib/ioctl.c: Include <sys/ioctl.h>.
42083
42084 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42085
42086         * modules/getdate-tests (Depends-on): Add progname.
42087         * tests/test-getdate.c: Use progname module, to avoid link errors
42088         on non-glibc systems.
42089
42090 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42091
42092         * modules/filenamecat-tests (Depends-on): Add progname.
42093         * modules/fstrcmp-tests (Depends-on): Likewise.
42094
42095         * tests/test-filenamecat.c: Use progname module, to avoid link
42096         errors on non-glibc systems.
42097         * tests/test-fstrcmp.c: Likewise.
42098
42099 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42100
42101         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42102         * lib/gettimeofday.c: Move extern declaration out of function.
42103
42104 2009-01-18  Bruno Haible  <bruno@clisp.org>
42105
42106         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42107         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42108         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42109
42110 2009-01-18  Bruno Haible  <bruno@clisp.org>
42111
42112         * lib/strftime.c (MEMPCPY): Remove unused macro.
42113         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42114
42115 2009-01-18  Martin Lambers  <marlam@marlam.de>
42116
42117         New module 'link'.
42118         * lib/unistd.in.h (link): New declaration.
42119         * lib/link.c: New file.
42120         * m4/link.m4: New file.
42121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42122         HAVE_LINK.
42123         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42124         * modules/link: New file.
42125         * doc/posix-functions/link.texi: Mention the new module.
42126
42127 2009-01-18  Bruno Haible  <bruno@clisp.org>
42128
42129         * tests/test-avltree_list.c (main): Call set_program_name.
42130         * tests/test-avltree_oset.c (main): Likewise.
42131         * tests/test-obstack-printf.c: Include progname.h.
42132         (main): Call set_program_name.
42133         * tests/test-quotearg.c: Include progname.h.
42134         (main): Call set_program_name.
42135         * tests/test-xmemdup0.c: Include progname.h.
42136         (main): Call set_program_name.
42137
42138 2009-01-18  Bruno Haible  <bruno@clisp.org>
42139
42140         New module 'alphasort'.
42141         * lib/dirent.in.h (alphasort): New declaration.
42142         * lib/alphasort.c: New file, from glibc with modifications.
42143         * m4/alphasort.m4: New file.
42144         * modules/alphasort: New file.
42145         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42146         HAVE_ALPHASORT.
42147         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42148         HAVE_ALPHASORT.
42149         * doc/posix-functions/alphasort.texi: Mention the new module and the
42150         portability problems.
42151
42152 2009-01-18  Bruno Haible  <bruno@clisp.org>
42153
42154         New module 'scandir'.
42155         * lib/dirent.in.h (scandir): New declaration.
42156         * lib/scandir.c: New file, from glibc with modifications.
42157         * m4/scandir.m4: New file.
42158         * modules/scandir: New file.
42159         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42160         HAVE_SCANDIR.
42161         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42162         HAVE_SCANDIR.
42163         * doc/posix-functions/scandir.texi: Mention the new module and the
42164         portability problems.
42165
42166 2009-01-17  Bruno Haible  <bruno@clisp.org>
42167
42168         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42169         Update documentation.
42170         (func_remove_suffix): Escape all dots in the suffix. Update
42171         documentation.
42172         (func_filter_filelist): Update documentation.
42173         Reported by Ralf Wildenhues.
42174
42175 2009-01-17  Bruno Haible  <bruno@clisp.org>
42176
42177         * modules/dprintf-posix-tests: New file.
42178         * tests/test-dprintf-posix.sh: New file.
42179         * tests/test-dprintf-posix.c: New file.
42180
42181         New modules 'dprintf', 'dprintf-posix'.
42182         * lib/stdio.in.h (dprintf): New declaration.
42183         * lib/dprintf.c: New file.
42184         * m4/dprintf.m4: New file.
42185         * m4/dprintf-posix.m4: New file.
42186         * modules/dprintf: New file.
42187         * modules/dprintf-posix: New file.
42188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42189         HAVE_DPRINTF, REPLACE_DPRINTF.
42190         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42191         HAVE_DPRINTF, REPLACE_DPRINTF.
42192         * doc/posix-functions/dprintf.texi: Mention the new modules.
42193
42194 2009-01-17  Bruno Haible  <bruno@clisp.org>
42195
42196         * modules/vdprintf-posix-tests: New file.
42197         * tests/test-vdprintf-posix.sh: New file.
42198         * tests/test-vdprintf-posix.c: New file.
42199
42200         New modules 'vdprintf', 'vdprintf-posix'.
42201         * lib/stdio.in.h (vdprintf): New declaration.
42202         * lib/vdprintf.c: New file.
42203         * m4/vdprintf.m4: New file.
42204         * m4/vdprintf-posix.m4: New file.
42205         * modules/vdprintf: New file.
42206         * modules/vdprintf-posix: New file.
42207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42208         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42209         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42210         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42211         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42212
42213 2009-01-17  Bruno Haible  <bruno@clisp.org>
42214
42215         Fix replacement of fopen on mingw.
42216         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42217         mingw.
42218
42219 2009-01-17  Bruno Haible  <bruno@clisp.org>
42220
42221         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42222         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42223
42224 2009-01-17  Bruno Haible  <bruno@clisp.org>
42225
42226         Avoid test-fflush2.sh failure on mingw.
42227         * tests/test-fflush2.c: Include binary-io.h.
42228         (main): Put standard input into binary mode.
42229         * modules/fflush-tests (Depends-on): Add binary-io.
42230
42231 2009-01-17  Bruno Haible  <bruno@clisp.org>
42232
42233         * lib/wchar.in.h: In another particular situation, include only the
42234         system's <wchar.h> file.
42235         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42236         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42237         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42238
42239 2009-01-17  Bruno Haible  <bruno@clisp.org>
42240
42241         Support for stripping executables in --enable-relocatable.
42242         * build-aux/install-reloc: Expect one more argument, or an environment
42243         variable RELOC_STRIP_PROG. If set, strip the destination program and
42244         its wrapper.
42245         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42246         RELOC_STRIP_PROG.
42247         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42248         to set RELOCATABLE_STRIP.
42249         * NEWS: Mention the new Makefile requirement.
42250
42251 2009-01-17  Bruno Haible  <bruno@clisp.org>
42252
42253         * build-aux/install-reloc: Remove debugging information left over by
42254         C compiler on MacOS X.
42255
42256 2009-01-17  Bruno Haible  <bruno@clisp.org>
42257
42258         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42259         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42260         _NSGetExecutablePath.
42261
42262 2009-01-16  Jim Meyering  <meyering@redhat.com>
42263
42264         strerror: avoid warnings about discarding "const"
42265         * lib/strerror.c (rpl_strerror): Instead of returning a const
42266         string from each and every "case", use a variable, and add a single
42267         cast after the switch.
42268
42269 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42270
42271         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42272
42273 2009-01-16  Bruno Haible  <bruno@clisp.org>
42274
42275         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42276         array initializer syntax that also works in C++ mode.
42277         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42278
42279 2009-01-16  Jim Meyering  <meyering@redhat.com>
42280
42281         poll: suppress a warning
42282         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42283         to ignore "...unsigned expression < 0 is always false" warnings.
42284
42285 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42286
42287         poll: remove declarations of unused variables
42288         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42289         sockbuf and optlen.
42290
42291 2009-01-15  Bruno Haible  <bruno@clisp.org>
42292
42293         Make fflush-after-ungetc POSIX compliant on BSD systems.
42294         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42295         (clear_ungetc_buffer): Implement also for other systems.
42296         (rpl_fflush): On glibc systems, invoke
42297         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42298         clear_ungetc_buffer after fetching the stream's position, not before.
42299
42300 2009-01-15  Bruno Haible  <bruno@clisp.org>
42301
42302         Make fflush-after-ungetc POSIX compliant on glibc systems.
42303         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42304         after ungetc.
42305         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42306         (rpl_fflush): On glibc systems, simply call the system's fflush
42307         function after clearing the ungetc buffer.
42308         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42309         Instead, lseek only to the end of file, then use the system's fseeko
42310         for the rest. On glibc systems, reset the EOF indicator bit.
42311
42312 2009-01-15  Jim Meyering  <meyering@redhat.com>
42313
42314         openmp.m4: revert quote-adding change, for portability to older autoconf
42315         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42316         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42317         Simon Josefsson noticed the problem when using autoconf-2.61.
42318
42319 2009-01-15  Bruno Haible  <bruno@clisp.org>
42320
42321         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42322         * tests/test-fflush2.c (ASSERT): Always fail.
42323         (main): Add two tests for fflush() after ungetc(), taking into account
42324         the Austin Group's clarification.
42325         Suggested by Eric Blake.
42326
42327 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42328
42329         mktime.m4: remove K&R-style function prototypes
42330         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42331         for the Sun C++ compiler.
42332
42333 2009-01-14  Bruno Haible  <bruno@clisp.org>
42334
42335         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42336         while including <wchar.h>.
42337         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42338         the system's <wchar.h> file.
42339         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42340
42341 2009-01-14  Bruno Haible  <bruno@clisp.org>
42342
42343         * m4/csharp.m4: Don't mention gettext on the serial number line.
42344         * m4/csharpexec.m4: Likewise.
42345         * m4/eaccess.m4: Likewise.
42346         * m4/javaexec.m4: Likewise.
42347         * m4/sig_atomic_t.m4: Likewise.
42348         * m4/tmpdir.m4: Likewise.
42349         * m4/intldir.m4: Bump gettext version.
42350         * m4/lib-ld.m4: Likewise.
42351
42352 2009-01-14  Bruno Haible  <bruno@clisp.org>
42353
42354         * lib/progname.c (set_program_name): Add more comments.
42355         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42356
42357 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42358
42359         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42360         were sys/stat.h does not define it.
42361
42362 2009-01-14  Jim Meyering  <meyering@redhat.com>
42363
42364         many *.m4 files: improve m4 quoting
42365         99% of this change was performed by running the following commands:
42366         git ls-files | grep '\.m4$' | xargs perl -pi \
42367           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42368           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42369           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42370           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42371         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42372         The remainder were to add Copyright dates, increment serial numbers,
42373         undo some changes in comments, exclude m4/intl.m4, and add quotes
42374         around the "1" in ",1" where the unusual spacing prohibited the
42375         above regexps from doing the job.  For more details, see
42376         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42377         * m4/acl.m4: Modified.
42378         * m4/afs.m4: Likewise.
42379         * m4/alloca.m4: Likewise.
42380         * m4/argp.m4: Likewise.
42381         * m4/argz.m4: Likewise.
42382         * m4/atexit.m4: Likewise.
42383         * m4/bison-i18n.m4: Likewise.
42384         * m4/bison.m4: Likewise.
42385         * m4/byteswap.m4: Likewise.
42386         * m4/c-stack.m4: Likewise.
42387         * m4/c-strtod.m4: Likewise.
42388         * m4/calloc.m4: Likewise.
42389         * m4/canonicalize-lgpl.m4: Likewise.
42390         * m4/chown.m4: Likewise.
42391         * m4/clock_time.m4: Likewise.
42392         * m4/codeset.m4: Likewise.
42393         * m4/copy-file.m4: Likewise.
42394         * m4/csharp.m4: Likewise.
42395         * m4/csharpcomp.m4: Likewise.
42396         * m4/csharpexec.m4: Likewise.
42397         * m4/d-ino.m4: Likewise.
42398         * m4/d-type.m4: Likewise.
42399         * m4/dirfd.m4: Likewise.
42400         * m4/double-slash-root.m4: Likewise.
42401         * m4/eaccess.m4: Likewise.
42402         * m4/eealloc.m4: Likewise.
42403         * m4/environ.m4: Likewise.
42404         * m4/errno_h.m4: Likewise.
42405         * m4/euidaccess.m4: Likewise.
42406         * m4/execute.m4: Likewise.
42407         * m4/fatal-signal.m4: Likewise.
42408         * m4/fchdir.m4: Likewise.
42409         * m4/fcntl_h.m4: Likewise.
42410         * m4/fileblocks.m4: Likewise.
42411         * m4/filenamecat.m4: Likewise.
42412         * m4/findprog.m4: Likewise.
42413         * m4/flexmember.m4: Likewise.
42414         * m4/fnmatch.m4: Likewise.
42415         * m4/fopen.m4: Likewise.
42416         * m4/fpending.m4: Likewise.
42417         * m4/fprintf-posix.m4: Likewise.
42418         * m4/free.m4: Likewise.
42419         * m4/frexp.m4: Likewise.
42420         * m4/frexpl.m4: Likewise.
42421         * m4/fsusage.m4: Likewise.
42422         * m4/ftruncate.m4: Likewise.
42423         * m4/gc-camellia.m4: Likewise.
42424         * m4/gc-random.m4: Likewise.
42425         * m4/gc.m4: Likewise.
42426         * m4/getaddrinfo.m4: Likewise.
42427         * m4/getcwd-abort-bug.m4: Likewise.
42428         * m4/getcwd-path-max.m4: Likewise.
42429         * m4/getdate.m4: Likewise.
42430         * m4/getdomainname.m4: Likewise.
42431         * m4/getgroups.m4: Likewise.
42432         * m4/gethostname.m4: Likewise.
42433         * m4/gethrxtime.m4: Likewise.
42434         * m4/getline.m4: Likewise.
42435         * m4/getloadavg.m4: Likewise.
42436         * m4/getndelim2.m4: Likewise.
42437         * m4/getpass.m4: Likewise.
42438         * m4/gettext.m4: Likewise.
42439         * m4/gettime.m4: Likewise.
42440         * m4/gettimeofday.m4: Likewise.
42441         * m4/gnulib-common.m4: Likewise.
42442         * m4/group-member.m4: Likewise.
42443         * m4/host-os.m4: Likewise.
42444         * m4/iconv.m4: Likewise.
42445         * m4/iconv_open.m4: Likewise.
42446         * m4/inet_ntop.m4: Likewise.
42447         * m4/inet_pton.m4: Likewise.
42448         * m4/inline.m4: Likewise.
42449         * m4/intldir.m4: Likewise.
42450         * m4/intlmacosx.m4: Likewise.
42451         * m4/intmax.m4: Likewise.
42452         * m4/intmax_t.m4: Likewise.
42453         * m4/inttypes.m4: Likewise.
42454         * m4/inttypes_h.m4: Likewise.
42455         * m4/inttypes-pri.m4: Likewise.
42456         * m4/isapipe.m4: Likewise.
42457         * m4/isnand.m4: Likewise.
42458         * m4/isnanf.m4: Likewise.
42459         * m4/isnanl.m4: Likewise.
42460         * m4/javacomp.m4: Likewise.
42461         * m4/javaexec.m4: Likewise.
42462         * m4/jm-winsz1.m4: Likewise.
42463         * m4/jm-winsz2.m4: Likewise.
42464         * m4/lchown.m4: Likewise.
42465         * m4/lcmessage.m4: Likewise.
42466         * m4/ldexpl.m4: Likewise.
42467         * m4/lib-ld.m4: Likewise.
42468         * m4/lib-link.m4: Likewise.
42469         * m4/libsigsegv.m4: Likewise.
42470         * m4/link-follow.m4: Likewise.
42471         * m4/localcharset.m4: Likewise.
42472         * m4/locale-fr.m4: Likewise.
42473         * m4/locale-ja.m4: Likewise.
42474         * m4/locale-tr.m4: Likewise.
42475         * m4/locale-zh.m4: Likewise.
42476         * m4/lock.m4: Likewise.
42477         * m4/longlong.m4: Likewise.
42478         * m4/ls-mntd-fs.m4: Likewise.
42479         * m4/lstat.m4: Likewise.
42480         * m4/malloc.m4: Likewise.
42481         * m4/mathl.m4: Likewise.
42482         * m4/mbrtowc.m4: Likewise.
42483         * m4/mbstate_t.m4: Likewise.
42484         * m4/mbswidth.m4: Likewise.
42485         * m4/memchr.m4: Likewise.
42486         * m4/memcmp.m4: Likewise.
42487         * m4/memcpy.m4: Likewise.
42488         * m4/memmem.m4: Likewise.
42489         * m4/memmove.m4: Likewise.
42490         * m4/mempcpy.m4: Likewise.
42491         * m4/memrchr.m4: Likewise.
42492         * m4/memset.m4: Likewise.
42493         * m4/minmax.m4: Likewise.
42494         * m4/mkdir-slash.m4: Likewise.
42495         * m4/mkdtemp.m4: Likewise.
42496         * m4/mktime.m4: Likewise.
42497         * m4/mmap-anon.m4: Likewise.
42498         * m4/mountlist.m4: Likewise.
42499         * m4/nanosleep.m4: Likewise.
42500         * m4/nls.m4: Likewise.
42501         * m4/nocrash.m4: Likewise.
42502         * m4/open.m4: Likewise.
42503         * m4/openat.m4: Likewise.
42504         * m4/openmp.m4: Likewise.
42505         * m4/pathmax.m4: Likewise.
42506         * m4/perl.m4: Likewise.
42507         * m4/physmem.m4: Likewise.
42508         * m4/pipe.m4: Likewise.
42509         * m4/po.m4: Likewise.
42510         * m4/poll.m4: Likewise.
42511         * m4/posixtm.m4: Likewise.
42512         * m4/posixver.m4: Likewise.
42513         * m4/printf-frexp.m4: Likewise.
42514         * m4/printf-frexpl.m4: Likewise.
42515         * m4/printf-posix.m4: Likewise.
42516         * m4/printf-posix-rpl.m4: Likewise.
42517         * m4/printf.m4: Likewise.
42518         * m4/progtest.m4: Likewise.
42519         * m4/putenv.m4: Likewise.
42520         * m4/readline.m4: Likewise.
42521         * m4/readlink.m4: Likewise.
42522         * m4/readutmp.m4: Likewise.
42523         * m4/realloc.m4: Likewise.
42524         * m4/regex.m4: Likewise.
42525         * m4/relocatable.m4: Likewise.
42526         * m4/relocatable-lib.m4: Likewise.
42527         * m4/rename-dest-slash.m4: Likewise.
42528         * m4/rename.m4: Likewise.
42529         * m4/rmdir-errno.m4: Likewise.
42530         * m4/rmdir.m4: Likewise.
42531         * m4/roundf.m4: Likewise.
42532         * m4/roundl.m4: Likewise.
42533         * m4/rpmatch.m4: Likewise.
42534         * m4/save-cwd.m4: Likewise.
42535         * m4/selinux-selinux-h.m4: Likewise.
42536         * m4/setenv.m4: Likewise.
42537         * m4/settime.m4: Likewise.
42538         * m4/sig2str.m4: Likewise.
42539         * m4/sig_atomic_t.m4: Likewise.
42540         * m4/signalblocking.m4: Likewise.
42541         * m4/signbit.m4: Likewise.
42542         * m4/sigpipe.m4: Likewise.
42543         * m4/sockets.m4: Likewise.
42544         * m4/sockpfaf.m4: Likewise.
42545         * m4/st_dm_mode.m4: Likewise.
42546         * m4/stat-time.m4: Likewise.
42547         * m4/stdbool.m4: Likewise.
42548         * m4/stdint.m4: Likewise.
42549         * m4/stdint_h.m4: Likewise.
42550         * m4/stpcpy.m4: Likewise.
42551         * m4/stpncpy.m4: Likewise.
42552         * m4/strcase.m4: Likewise.
42553         * m4/strchrnul.m4: Likewise.
42554         * m4/strcspn.m4: Likewise.
42555         * m4/strdup.m4: Likewise.
42556         * m4/strftime.m4: Likewise.
42557         * m4/strndup.m4: Likewise.
42558         * m4/strnlen.m4: Likewise.
42559         * m4/strpbrk.m4: Likewise.
42560         * m4/strptime.m4: Likewise.
42561         * m4/strsep.m4: Likewise.
42562         * m4/strtod.m4: Likewise.
42563         * m4/strtoimax.m4: Likewise.
42564         * m4/strtok_r.m4: Likewise.
42565         * m4/strtol.m4: Likewise.
42566         * m4/strtoll.m4: Likewise.
42567         * m4/strtoul.m4: Likewise.
42568         * m4/strtoull.m4: Likewise.
42569         * m4/strtoumax.m4: Likewise.
42570         * m4/strverscmp.m4: Likewise.
42571         * m4/threadlib.m4: Likewise.
42572         * m4/timegm.m4: Likewise.
42573         * m4/tm_gmtoff.m4: Likewise.
42574         * m4/tmpdir.m4: Likewise.
42575         * m4/tmpfile.m4: Likewise.
42576         * m4/tzset.m4: Likewise.
42577         * m4/uintmax_t.m4: Likewise.
42578         * m4/unlinkdir.m4: Likewise.
42579         * m4/unlocked-io.m4: Likewise.
42580         * m4/uptime.m4: Likewise.
42581         * m4/userspec.m4: Likewise.
42582         * m4/utimbuf.m4: Likewise.
42583         * m4/utime.m4: Likewise.
42584         * m4/utimes-null.m4: Likewise.
42585         * m4/utimes.m4: Likewise.
42586         * m4/vararrays.m4: Likewise.
42587         * m4/vasnprintf.m4: Likewise.
42588         * m4/vfprintf-posix.m4: Likewise.
42589         * m4/vprintf-posix.m4: Likewise.
42590         * m4/wait-process.m4: Likewise.
42591         * m4/wchar_t.m4: Likewise.
42592         * m4/wint_t.m4: Likewise.
42593         * m4/write-any-file.m4: Likewise.
42594         * m4/yield.m4: Likewise.
42595
42596 2009-01-13  Bruno Haible  <bruno@clisp.org>
42597
42598         Avoid test-copy-file.sh failures when ACL support insufficient.
42599         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42600         TESTS_ENVIRONMENT.
42601         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42602         Reported by Jim Meyering.
42603
42604 2009-01-13  Bruno Haible  <bruno@clisp.org>
42605
42606         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42607         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42608         * modules/unistdio/u8-printf-parse (Files): Likewise.
42609         * modules/unistdio/u32-printf-parse (Files): Likewise.
42610         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42611
42612 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42613
42614         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42615         and m4/inttypes_h.m4 too.
42616
42617 2009-01-12  Eric Blake  <ebb9@byu.net>
42618
42619         tests: IRIX 6.2 cc can't compile -0.0 into .data
42620         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42621         rather than at compile-time.
42622         * tests/test-floorl.c (minus_zero): Likewise.
42623         * tests/test-frexpl.c (minus_zero): Likewise.
42624         * tests/test-isnan.c (minus_zerol): Likewise.
42625         * tests/test-isnanl.h (minus_zero): Likewise.
42626         * tests/test-ldexpl.c (minus_zero): Likewise.
42627         * tests/test-roundl.c (minus_zero): Likewise.
42628         * tests/test-signbit.c (minus_zerol): Likewise.
42629         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42630         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42631         * tests/test-truncl.c (minus_zero): Likewise.
42632         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42633         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42634         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42635
42636 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42637
42638         regex: fix glibc bug 9697
42639         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42640         handling.
42641
42642 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42643
42644         regex: fix glibc bug 697
42645         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42646         being NULL also if there are no backreferences.
42647
42648 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42649
42650         regex: merge glibc changes
42651         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42652         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42653         re_string_skip_chars, re_string_reconstruct): Likewise.
42654         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42655
42656 2009-01-07  Jim Meyering  <meyering@redhat.com>
42657
42658         poll: filter through cppi
42659         * lib/poll.c: Indent cpp directives to reflect nesting.
42660
42661 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42662
42663         poll: don't return uninitialized
42664         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42665
42666 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42667
42668         avoid compile failure on AIX 6.1
42669         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42670         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42671
42672 2009-01-04  Jim Meyering  <meyering@redhat.com>
42673
42674         remove duplicate inclusion of <stdio.h>
42675         * tests/test-fprintf-posix.c: Likewise.
42676         * tests/test-printf-posix.c: Likewise.
42677         * tests/test-snprintf-posix.c: Likewise.
42678         * tests/test-sprintf-posix.c: Likewise.
42679         * tests/test-vasprintf-posix.c: Likewise.
42680         * tests/test-vfprintf-posix.c: Likewise.
42681         * tests/test-vprintf-posix.c: Likewise.
42682         * tests/test-vsnprintf-posix.c: Likewise.
42683         * tests/test-vsprintf-posix.c: Likewise.
42684
42685 2009-01-03  Jim Meyering  <meyering@redhat.com>
42686
42687         gnulib-tool: fix sed-based filtering
42688         * gnulib-tool (func_filter_filelist): Remove extra backslash
42689         in sed_fff_filter definition.
42690
42691 2009-01-02  Jim Meyering  <meyering@redhat.com>
42692
42693         strftime: avoid compilation failure on Solaris 2.6
42694         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42695         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42696         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42697         be available.  Reported by Tom G. Christensen.  Details in
42698         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42699
42700 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42701             Bruno Haible  <bruno@clisp.org>
42702
42703         Speed up gnulib-tool by doing more string processing through shell
42704         built-ins.
42705         * gnulib-tool (fast_func_append): New variable.
42706         (func_remove_prefix, func_remove_suffix): New functions.
42707         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42708         (func_filter_filelist): New function.
42709         (func_get_dependencies): Use func_remove_suffix instead of sed.
42710         (func_get_automake_snippet): Use func_filter_filelist instead of a
42711         subshell and sed invocation.
42712
42713 2009-01-01  Bruno Haible  <bruno@clisp.org>
42714
42715         Fix a security bug.
42716         * gnulib-tool (func_import, import, update): Don't allow the characters
42717         '"', '$', '`', '\' in macro arguments that become part of commands that
42718         are evaluated.
42719
42720 2009-01-01  Bruno Haible  <bruno@clisp.org>
42721
42722         * gnulib-tool (func_reset_sigpipe): Add more comments.
42723
42724 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42725
42726         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42727         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42728         already know the answer.
42729
42730 2009-01-01  Jim Meyering  <meyering@redhat.com>
42731
42732         * lib/version-etc.c (version_etc_va): Update copyright year.
42733
42734 2008-12-30  Bruno Haible  <bruno@clisp.org>
42735
42736         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42737         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42738         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42739
42740 2008-12-29  Eric Blake  <ebb9@byu.net>
42741
42742         multiarch: avoid autoconf AC_REQUIRE bug
42743         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42744         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42745         2.63 and older.
42746         Reported by Bruno Haible, and analyzed in
42747         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42748
42749 2008-12-29  Bruno Haible  <bruno@clisp.org>
42750
42751         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42752         files in subdirectories correctly.
42753         Reported by Ralf Wildenhues.
42754
42755 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42756
42757         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42758         rather than 'join FILE -', for Solaris join.
42759
42760 2008-12-29  Bruno Haible  <bruno@clisp.org>
42761
42762         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42763         quoting.
42764         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42765         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42766         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42767         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42768         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42769         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42770         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42771         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42772         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42773         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42774         * m4/nls.m4 (AM_NLS): Likewise.
42775         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42776         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42777         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42778         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42779         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42780         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42781         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42782         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42783         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42784         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42785         * m4/xsize.m4 (gl_XSIZE): Likewise.
42786         Suggested by Jim Meyering.
42787
42788 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42789
42790         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42791         * lib/parse-duration.c: use a switch instead of cascading if's.
42792
42793 2008-12-29  Eric Blake  <ebb9@byu.net>
42794
42795         wchar.h: supply WEOF on Irix 5.3
42796         * lib/wchar.in.h (wint_t): Also supply WEOF.
42797         * lib/wctype.in.h (wint_t): Likewise.
42798         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42799         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42800         Reported by Tom G. Christensen.
42801
42802 2008-12-26  Bruno Haible  <bruno@clisp.org>
42803
42804         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42805         i486, i586, i686.
42806
42807 2008-12-26  Bruno Haible  <bruno@clisp.org>
42808
42809         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42810
42811 2008-12-26  Bruno Haible  <bruno@clisp.org>
42812
42813         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42814         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42815         not __STDC_CONSTANT_MACROS.
42816         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42817
42818 2008-12-25  Bruno Haible  <bruno@clisp.org>
42819
42820         Add support for universal builds to vasnprintf.
42821         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42822         universal builds, guess no.
42823         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42824         * modules/vasprintf-posix (Depends-on): Likewise.
42825         * modules/fprintf-posix (Depends-on): Likewise.
42826         * modules/vfprintf-posix (Depends-on): Likewise.
42827         * modules/snprintf-posix (Depends-on): Likewise.
42828         * modules/vsnprintf-posix (Depends-on): Likewise.
42829         * modules/sprintf-posix (Depends-on): Likewise.
42830         * modules/vsprintf-posix (Depends-on): Likewise.
42831         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42832         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42833         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42834         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42835         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42836         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42837         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42838
42839         Add support for universal builds to <inttypes.h>.
42840         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42841         _SCNu64_PREFIX): In Apple
42842         universal builds, define directly, using _LP64.
42843         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42844         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42845         * modules/inttypes (Depends-on): Add multiarch.
42846         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42847
42848         Add support for universal builds to <stdint.h>.
42849         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42850         universal builds, define directly, using _LP64.
42851         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42852         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42853         and size_t.
42854         * modules/stdint (Depends-on): Add multiarch.
42855         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42856
42857         New module 'multiarch'.
42858         * modules/multiarch: New file.
42859         * m4/multiarch.m4: New file.
42860
42861 2008-12-25  Bruno Haible  <bruno@clisp.org>
42862
42863         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42864
42865 2008-12-25  Bruno Haible  <bruno@clisp.org>
42866
42867         * modules/btowc (License): Relicense under LGPLv2+.
42868         * modules/mbsinit (License): Likewise.
42869         * modules/mbrtowc (License): Likewise.
42870         * modules/wcrtomb (License): Likewise.
42871         * modules/streq (License): Likewise.
42872         Reported by David Lutterkort <lutter@redhat.com>.
42873
42874 2008-12-23  Bruno Haible  <bruno@clisp.org>
42875
42876         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42877
42878 2008-12-23  Bruno Haible  <bruno@clisp.org>
42879
42880         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42881         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42882         GETADDRINFO_LIB, not in LIBS.
42883         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42884         * modules/canon-host (Link): Likewise.
42885         * NEWS: Mention the change.
42886         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42887         GETADDRINFO_LIB.
42888
42889 2008-12-22  Bruno Haible  <bruno@clisp.org>
42890
42891         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42892         * doc/posix-functions/iswalpha_l.texi: Likewise.
42893         * doc/posix-functions/iswblank_l.texi: Likewise.
42894         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42895         * doc/posix-functions/iswctype_l.texi: Likewise.
42896         * doc/posix-functions/iswdigit_l.texi: Likewise.
42897         * doc/posix-functions/iswgraph_l.texi: Likewise.
42898         * doc/posix-functions/iswlower_l.texi: Likewise.
42899         * doc/posix-functions/iswprint_l.texi: Likewise.
42900         * doc/posix-functions/iswpunct_l.texi: Likewise.
42901         * doc/posix-functions/iswspace_l.texi: Likewise.
42902         * doc/posix-functions/iswupper_l.texi: Likewise.
42903         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42904         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42905         * doc/posix-functions/open_wmemstream.texi: Likewise.
42906         * doc/posix-functions/swscanf.texi: Likewise.
42907         * doc/posix-functions/towctrans_l.texi: Likewise.
42908         * doc/posix-functions/towlower.texi: Likewise.
42909         * doc/posix-functions/towlower_l.texi: Likewise.
42910         * doc/posix-functions/towupper.texi: Likewise.
42911         * doc/posix-functions/towupper_l.texi: Likewise.
42912         * doc/posix-functions/vfwprintf.texi: Likewise.
42913         * doc/posix-functions/vfwscanf.texi: Likewise.
42914         * doc/posix-functions/vswscanf.texi: Likewise.
42915         * doc/posix-functions/vwprintf.texi: Likewise.
42916         * doc/posix-functions/vwscanf.texi: Likewise.
42917         * doc/posix-functions/wcpcpy.texi: Likewise.
42918         * doc/posix-functions/wcpncpy.texi: Likewise.
42919         * doc/posix-functions/wcscasecmp.texi: Likewise.
42920         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42921         * doc/posix-functions/wcscoll_l.texi: Likewise.
42922         * doc/posix-functions/wcsdup.texi: Likewise.
42923         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42924         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42925         * doc/posix-functions/wcsnlen.texi: Likewise.
42926         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42927         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42928         * doc/posix-functions/wctrans_l.texi: Likewise.
42929         * doc/posix-functions/wctype_l.texi: Likewise.
42930         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42931         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42932         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42933         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42934         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42935         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42936         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42937         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42938         * doc/glibc-functions/wcschrnul.texi: Likewise.
42939         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42940         * doc/glibc-functions/wcstod_l.texi: Likewise.
42941         * doc/glibc-functions/wcstof_l.texi: Likewise.
42942         * doc/glibc-functions/wcstol_l.texi: Likewise.
42943         * doc/glibc-functions/wcstold_l.texi: Likewise.
42944         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42945         * doc/glibc-functions/wcstoq.texi: Likewise.
42946         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42947         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42948         * doc/glibc-functions/wcstouq.texi: Likewise.
42949         * doc/glibc-functions/wmempcpy.texi: Likewise.
42950
42951 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42952             Eric Blake  <ebb9@byu.net>
42953             Paolo Bonzini  <bonzini@gnu.org>
42954             Bruno Haible  <bruno@clisp.org>
42955
42956         Make c-stack work on Haiku.
42957         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42958         (c_stack_action): Use SA_ONSTACK flag.
42959
42960 2008-12-22  Bruno Haible  <bruno@clisp.org>
42961
42962         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42963
42964 2008-12-22  Bruno Haible  <bruno@clisp.org>
42965
42966         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42967         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42968         being overridden.
42969         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42970         New macros.
42971         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42972         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42973         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42974         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42975
42976 2008-12-22  Bruno Haible  <bruno@clisp.org>
42977
42978         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42979         from test code.
42980
42981 2008-12-22  Eric Blake  <ebb9@byu.net>
42982
42983         Avoid gcc warnings on cygwin.
42984         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42985         Avoid unused variable.
42986         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42987         Likewise.
42988
42989 2008-12-22  Bruno Haible  <bruno@clisp.org>
42990
42991         Remove HAVE_MBRTOWC conditionals.
42992         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42993         (mbscasecmp): Assume mbrtowc function.
42994         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42995         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42996         * lib/mbschr.c: Include mbuiter.h unconditionally.
42997         (mbschr): Assume mbrtowc function.
42998         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42999         (mbscspn): Assume mbrtowc function.
43000         * lib/mbslen.c: Include mbuiter.h unconditionally.
43001         (mbslen): Assume mbrtowc function.
43002         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43003         (mbsncasecmp): Assume mbrtowc function.
43004         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43005         (mbsnlen): Assume mbrtowc function.
43006         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43007         (mbspbrk): Assume mbrtowc function.
43008         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43009         (mbspcasecmp): Assume mbrtowc function.
43010         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43011         (mbsrchr): Assume mbrtowc function.
43012         * lib/mbssep.c: Include mbuiter.h unconditionally.
43013         (mbssep): Assume mbrtowc function.
43014         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43015         (mbsspn): Assume mbrtowc function.
43016         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43017         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43018         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43019         (mbstok_r): Assume mbrtowc function.
43020         * lib/propername.c: Include mbuiter.h unconditionally.
43021         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43022         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43023         (trim2): Assume mbrtowc function.
43024         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43025         (mbsnwidth): Assume mbrtowc function.
43026         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43027         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43028         fallback definitions.
43029         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43030
43031 2008-12-22  Bruno Haible  <bruno@clisp.org>
43032
43033         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43034
43035 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43036
43037         * modules/regex: Request emulations for the mb*/wc* functions we need.
43038         * m4/regex.m4: Don't look for those functions here.
43039         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43040
43041 2008-12-22  Bruno Haible  <bruno@clisp.org>
43042
43043         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43044
43045 2008-12-21  Bruno Haible  <bruno@clisp.org>
43046
43047         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43048         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43049         (Include): Remove conditionalization.
43050         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43051         (Include): Remove conditionalization.
43052         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43053         (Include): Remove conditionalization.
43054         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43055         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43056         * NEWS: Mention the change.
43057         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43058         via Sergey Poznyakoff <gray@gnu.org.ua>.
43059
43060 2008-12-21  Bruno Haible  <bruno@clisp.org>
43061
43062         * MODULES.html.sh (Extended multibyte and wide character utilities
43063         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43064         wcrtomb, wcsrtombs.
43065         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43066         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43067         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43068         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43069
43070 2008-12-21  Bruno Haible  <bruno@clisp.org>
43071
43072         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43073
43074 2008-12-21  Bruno Haible  <bruno@clisp.org>
43075
43076         * modules/wcsnrtombs-tests: New file.
43077         * tests/test-wcsnrtombs1.sh: New file.
43078         * tests/test-wcsnrtombs2.sh: New file.
43079         * tests/test-wcsnrtombs3.sh: New file.
43080         * tests/test-wcsnrtombs4.sh: New file.
43081         * tests/test-wcsnrtombs.c: New file.
43082
43083         New module 'wcsnrtombs'.
43084         * lib/wchar.in.h (wcsnrtombs): New declaration.
43085         * lib/wcsnrtombs.c: New file.
43086         * lib/wcsrtombs-state.c: New file.
43087         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43088         (internal_state): Remove variable.
43089         * m4/wcsnrtombs.m4: New file.
43090         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43091         compilation units.
43092         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43093         HAVE_WCSNRTOMBS.
43094         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43095         HAVE_WCSNRTOMBS.
43096         * modules/wcsnrtombs: New file.
43097         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43098         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43099
43100 2008-12-21  Bruno Haible  <bruno@clisp.org>
43101
43102         * modules/wcsrtombs-tests: New file.
43103         * tests/test-wcsrtombs1.sh: New file.
43104         * tests/test-wcsrtombs2.sh: New file.
43105         * tests/test-wcsrtombs3.sh: New file.
43106         * tests/test-wcsrtombs4.sh: New file.
43107         * tests/test-wcsrtombs.c: New file.
43108
43109         New module 'wcsrtombs'.
43110         * lib/wchar.in.h (wcsrtombs): New declaration.
43111         * lib/wcsrtombs.c: New file.
43112         * m4/wcsrtombs.m4: New file.
43113         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43114         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43115         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43116         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43117         * modules/wcsrtombs: New file.
43118         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43119         bugs.
43120
43121 2008-12-21  Bruno Haible  <bruno@clisp.org>
43122
43123         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43124         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43125         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43126         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43127         if not correct.
43128         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43129         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43130         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43131         m4/locale-zh.m4, m4/codeset.m4.
43132         * doc/posix-functions/wcrtomb.texi: Document the bug.
43133
43134 2008-12-21  Bruno Haible  <bruno@clisp.org>
43135
43136         Work around a btowc() bug on IRIX 6.5.
43137         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43138         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43139         REPLACE_WTOBC if not.
43140         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43141         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43142         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43143
43144 2008-12-21  Bruno Haible  <bruno@clisp.org>
43145
43146         * modules/wcrtomb-tests: New file.
43147         * tests/test-wcrtomb.sh: New file.
43148         * tests/test-wcrtomb.c: New file.
43149
43150         New module 'wcrtomb'.
43151         * lib/wchar.in.h (wcrtomb): New declaration.
43152         * lib/wcrtomb.c: New file.
43153         * m4/wcrtomb.m4: New file.
43154         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43155         HAVE_WCRTOMB.
43156         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43157         HAVE_WCRTOMB.
43158         * modules/wcrtomb: New file.
43159         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43160
43161 2008-12-21  Bruno Haible  <bruno@clisp.org>
43162
43163         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43164         * modules/mbsrtowcs (Files): Likewise.
43165         * modules/wctob (Files): Likewise.
43166         * modules/c-strcase-tests (Files): Likewise.
43167         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43168         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43169         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43170         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43171         * modules/vasnprintf-posix-tests (Files): Likewise.
43172
43173 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43174
43175         gitlog-to-changelog: pass all command-line arguments to git-log
43176         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43177         it is sometimes convenient to filter the commits in various ways.
43178         gitlog-to-changelog only allows --since to specify a start date,
43179         but git-log itself supports many other filtering mechanisms.
43180         At the moment, I want to filter by branch name.  Rather than
43181         adding a --branch option to gitlog-to-changelog, it seems more
43182         flexible to simply pass all options directly to git-log and let
43183         git do the work.  Notice that this effectively makes --since a
43184         redundant option for gitlog-to-changelog, but removing it would
43185         require current usage to change since calls would then require
43186         an additional '--'.
43187
43188 2008-12-21  Bruno Haible  <bruno@clisp.org>
43189
43190         * modules/mbsnrtowcs-tests: New file.
43191         * tests/test-mbsnrtowcs1.sh: New file.
43192         * tests/test-mbsnrtowcs2.sh: New file.
43193         * tests/test-mbsnrtowcs3.sh: New file.
43194         * tests/test-mbsnrtowcs4.sh: New file.
43195         * tests/test-mbsnrtowcs.c: New file.
43196
43197         New module 'mbsnrtowcs'.
43198         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43199         * lib/mbsnrtowcs.c: New file.
43200         * lib/mbsrtowcs-state.c: New file.
43201         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43202         (internal_state): Remove variable.
43203         * m4/mbsnrtowcs.m4: New file.
43204         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43205         compilation units.
43206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43207         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43208         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43209         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43210         * modules/mbsnrtowcs: New file.
43211         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43212         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43213         portability problem.
43214
43215 2008-12-21  Bruno Haible  <bruno@clisp.org>
43216
43217         Work around mbsrtowcs bug.
43218         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43219         (gl_FUNC_MBSRTOWCS): Invoke it.
43220         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43221         m4/locale-zh.m4.
43222         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43223
43224 2008-12-21  Bruno Haible  <bruno@clisp.org>
43225
43226         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43227
43228 2008-12-21  Bruno Haible  <bruno@clisp.org>
43229
43230         Update doc for AIX.
43231         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43232         16-bit wchar_t type.
43233         * doc/posix-functions/btowc.texi: Likewise.
43234         * doc/posix-functions/fgetwc.texi: Likewise.
43235         * doc/posix-functions/fgetws.texi: Likewise.
43236         * doc/posix-functions/fputwc.texi: Likewise.
43237         * doc/posix-functions/fputws.texi: Likewise.
43238         * doc/posix-functions/fwide.texi: Likewise.
43239         * doc/posix-functions/fwprintf.texi: Likewise.
43240         * doc/posix-functions/fwscanf.texi: Likewise.
43241         * doc/posix-functions/getwchar.texi: Likewise.
43242         * doc/posix-functions/getwc.texi: Likewise.
43243         * doc/posix-functions/iswalnum.texi: Likewise.
43244         * doc/posix-functions/iswalpha.texi: Likewise.
43245         * doc/posix-functions/iswblank.texi: Likewise.
43246         * doc/posix-functions/iswcntrl.texi: Likewise.
43247         * doc/posix-functions/iswctype.texi: Likewise.
43248         * doc/posix-functions/iswdigit.texi: Likewise.
43249         * doc/posix-functions/iswgraph.texi: Likewise.
43250         * doc/posix-functions/iswlower.texi: Likewise.
43251         * doc/posix-functions/iswprint.texi: Likewise.
43252         * doc/posix-functions/iswpunct.texi: Likewise.
43253         * doc/posix-functions/iswspace.texi: Likewise.
43254         * doc/posix-functions/iswupper.texi: Likewise.
43255         * doc/posix-functions/iswxdigit.texi: Likewise.
43256         * doc/posix-functions/mbrtowc.texi: Likewise.
43257         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43258         * doc/posix-functions/mbstowcs.texi: Likewise.
43259         * doc/posix-functions/mbtowc.texi: Likewise.
43260         * doc/posix-functions/putwchar.texi: Likewise.
43261         * doc/posix-functions/putwc.texi: Likewise.
43262         * doc/posix-functions/swprintf.texi: Likewise.
43263         * doc/posix-functions/tolower.texi: Likewise.
43264         * doc/posix-functions/toupper.texi: Likewise.
43265         * doc/posix-functions/towctrans.texi: Likewise.
43266         * doc/posix-functions/ungetwc.texi: Likewise.
43267         * doc/posix-functions/vswprintf.texi: Likewise.
43268         * doc/posix-functions/wcrtomb.texi: Likewise.
43269         * doc/posix-functions/wcscat.texi: Likewise.
43270         * doc/posix-functions/wcschr.texi: Likewise.
43271         * doc/posix-functions/wcscmp.texi: Likewise.
43272         * doc/posix-functions/wcscoll.texi: Likewise.
43273         * doc/posix-functions/wcscpy.texi: Likewise.
43274         * doc/posix-functions/wcscspn.texi: Likewise.
43275         * doc/posix-functions/wcsftime.texi: Likewise.
43276         * doc/posix-functions/wcslen.texi: Likewise.
43277         * doc/posix-functions/wcsncat.texi: Likewise.
43278         * doc/posix-functions/wcsncmp.texi: Likewise.
43279         * doc/posix-functions/wcsncpy.texi: Likewise.
43280         * doc/posix-functions/wcspbrk.texi: Likewise.
43281         * doc/posix-functions/wcsrchr.texi: Likewise.
43282         * doc/posix-functions/wcsrtombs.texi: Likewise.
43283         * doc/posix-functions/wcsspn.texi: Likewise.
43284         * doc/posix-functions/wcsstr.texi: Likewise.
43285         * doc/posix-functions/wcstod.texi: Likewise.
43286         * doc/posix-functions/wcstof.texi: Likewise.
43287         * doc/posix-functions/wcstoimax.texi: Likewise.
43288         * doc/posix-functions/wcstok.texi: Likewise.
43289         * doc/posix-functions/wcstold.texi: Likewise.
43290         * doc/posix-functions/wcstoll.texi: Likewise.
43291         * doc/posix-functions/wcstol.texi: Likewise.
43292         * doc/posix-functions/wcstombs.texi: Likewise.
43293         * doc/posix-functions/wcstoull.texi: Likewise.
43294         * doc/posix-functions/wcstoul.texi: Likewise.
43295         * doc/posix-functions/wcstoumax.texi: Likewise.
43296         * doc/posix-functions/wcswidth.texi: Likewise.
43297         * doc/posix-functions/wcsxfrm.texi: Likewise.
43298         * doc/posix-functions/wctob.texi: Likewise.
43299         * doc/posix-functions/wctomb.texi: Likewise.
43300         * doc/posix-functions/wctrans.texi: Likewise.
43301         * doc/posix-functions/wctype.texi: Likewise.
43302         * doc/posix-functions/wcwidth.texi: Likewise.
43303         * doc/posix-functions/wmemchr.texi: Likewise.
43304         * doc/posix-functions/wmemcmp.texi: Likewise.
43305         * doc/posix-functions/wmemcpy.texi: Likewise.
43306         * doc/posix-functions/wmemmove.texi: Likewise.
43307         * doc/posix-functions/wmemset.texi: Likewise.
43308         * doc/posix-functions/wprintf.texi: Likewise.
43309         * doc/posix-functions/wscanf.texi: Likewise.
43310
43311 2008-12-21  Bruno Haible  <bruno@clisp.org>
43312
43313         Update doc for HP-UX 11.11.
43314         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43315         in HP-UX version 11.00, not in all versions of HP-UX 11.
43316         * doc/posix-functions/fwide.texi: Likewise.
43317         * doc/posix-functions/fwprintf.texi: Likewise.
43318         * doc/posix-functions/fwscanf.texi: Likewise.
43319         * doc/posix-functions/inet_ntop.texi: Likewise.
43320         * doc/posix-functions/inet_pton.texi: Likewise.
43321         * doc/posix-functions/mbrlen.texi: Likewise.
43322         * doc/posix-functions/mbrtowc.texi: Likewise.
43323         * doc/posix-functions/mbsinit.texi: Likewise.
43324         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43325         * doc/posix-functions/swprintf.texi: Likewise.
43326         * doc/posix-functions/swscanf.texi: Likewise.
43327         * doc/posix-functions/towctrans.texi: Likewise.
43328         * doc/posix-functions/vfwprintf.texi: Likewise.
43329         * doc/posix-functions/vswprintf.texi: Likewise.
43330         * doc/posix-functions/vwprintf.texi: Likewise.
43331         * doc/posix-functions/wcrtomb.texi: Likewise.
43332         * doc/posix-functions/wcsrtombs.texi: Likewise.
43333         * doc/posix-functions/wcsstr.texi: Likewise.
43334         * doc/posix-functions/wctob.texi: Likewise.
43335         * doc/posix-functions/wctrans.texi: Likewise.
43336         * doc/posix-functions/wmemchr.texi: Likewise.
43337         * doc/posix-functions/wmemcmp.texi: Likewise.
43338         * doc/posix-functions/wmemcpy.texi: Likewise.
43339         * doc/posix-functions/wmemmove.texi: Likewise.
43340         * doc/posix-functions/wmemset.texi: Likewise.
43341         * doc/posix-functions/wprintf.texi: Likewise.
43342         * doc/posix-functions/wscanf.texi: Likewise.
43343
43344 2008-12-21  Bruno Haible  <bruno@clisp.org>
43345
43346         Work around a portability problem.
43347         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43348         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43349
43350 2008-12-20  Bruno Haible  <bruno@clisp.org>
43351
43352         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43353         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43354         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43356         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43357
43358         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43359         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43360         set.
43361         (GNULIB_defined_mbstate_t): New macro.
43362         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43363         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43364         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43365         reuses the system's mbrtowc function but works around the bugs.
43366         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43367         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43368         macros.
43369         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43370         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43371         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43372         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43373         REPLACE_MBSINIT if mbsinit needs to be overridden.
43374         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43375         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43376         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43377         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43378         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43379         m4/locale-zh.m4.
43380         (Depends): Add mbsinit.
43381         * modules/mbsinit (Depends): Add mbrtowc.
43382         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43383
43384 2008-12-20  Bruno Haible  <bruno@clisp.org>
43385
43386         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43387         so that there are no conversion errors on AIX.
43388         * tests/test-mbsrtowcs.c (main): LIkewise.
43389
43390 2008-12-20  Bruno Haible  <bruno@clisp.org>
43391
43392         Work around wctob bug on Solaris <= 9.
43393         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43394         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43395         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43396         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43397         * modules/wctob (Files): Add m4/locale-fr.m4.
43398         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43399
43400 2008-12-20  Bruno Haible  <bruno@clisp.org>
43401
43402         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43403         /dev/null.
43404         * tests/test-select-in.sh: Likewise.
43405         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43406
43407 2008-12-20  Bruno Haible  <bruno@clisp.org>
43408
43409         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43410         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43411         Cygwin 1.5.x.
43412
43413 2008-12-20  Bruno Haible  <bruno@clisp.org>
43414
43415         Ensure mbstate_t is defined on HP-UX 11.11.
43416         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43417         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43418         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43419         AC_USE_SYSTEM_EXTENSIONS.
43420         * modules/fnmatch (Depends-on): Add extensions.
43421         * modules/mbrlen (Depends-on): Likewise.
43422         * modules/mbrtowc (Depends-on): Likewise.
43423         * modules/mbsinit (Depends-on): Likewise.
43424         * modules/mbsrtowcs (Depends-on): Likewise.
43425         * modules/mbswidth (Depends-on): Likewise.
43426         * modules/quotearg (Depends-on): Likewise.
43427         * modules/strftime (Depends-on): Likewise.
43428
43429 2008-12-20  Bruno Haible  <bruno@clisp.org>
43430
43431         Ensure wctob is declared on IRIX 6.5.
43432         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43433         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43434         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43435         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43436         of HAVE_WCTOB.
43437         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43438         HAVE_WCTOB.
43439         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43440
43441 2008-12-19  Bruno Haible  <bruno@clisp.org>
43442
43443         * modules/mbsrtowcs-tests: New file.
43444         * tests/test-mbsrtowcs1.sh: New file.
43445         * tests/test-mbsrtowcs2.sh: New file.
43446         * tests/test-mbsrtowcs3.sh: New file.
43447         * tests/test-mbsrtowcs4.sh: New file.
43448         * tests/test-mbsrtowcs.c: New file.
43449
43450         New module 'mbsrtowcs'.
43451         * lib/wchar.in.h (mbsrtowcs): New declaration.
43452         * lib/mbsrtowcs.c: New file.
43453         * m4/mbsrtowcs.m4: New file.
43454         * modules/mbsrtowcs: New file.
43455         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43456         HAVE_MBSRTOWCS.
43457         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43458         HAVE_MBSRTOWCS.
43459         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43460
43461 2008-12-19  Bruno Haible  <bruno@clisp.org>
43462
43463         New module 'mbrlen'.
43464         * lib/wchar.in.h (mbrlen): New declaration.
43465         * lib/mbrlen.c: New file.
43466         * m4/mbrlen.m4: New file.
43467         * modules/mbrlen: New file.
43468         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43469         HAVE_MBRLEN.
43470         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43471         HAVE_MBRLEN.
43472         * doc/posix-functions/mbrlen.texi: Document the new module.
43473
43474 2008-12-19  Bruno Haible  <bruno@clisp.org>
43475
43476         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43477         * modules/mbrtowc (Depends-on): Add verify.
43478         Suggested by Paul Eggert.
43479
43480 2008-12-18  Bruno Haible  <bruno@clisp.org>
43481
43482         * modules/mbsinit-tests: New file.
43483         * tests/test-mbsinit.sh: New file.
43484         * tests/test-mbsinit.c: New file.
43485
43486 2008-12-18  Bruno Haible  <bruno@clisp.org>
43487
43488         * modules/mbrtowc-tests: New file.
43489         * tests/test-mbrtowc1.sh: New file.
43490         * tests/test-mbrtowc2.sh: New file.
43491         * tests/test-mbrtowc3.sh: New file.
43492         * tests/test-mbrtowc4.sh: New file.
43493         * tests/test-mbrtowc.c: New file.
43494
43495         New module 'mbrtowc'.
43496         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43497         mbsinit and mbrtowc.
43498         (mbrtowc): New declaration.
43499         * lib/mbrtowc.c: New file.
43500         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43501         * modules/mbrtowc: New file.
43502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43503         HAVE_MBRTOWC.
43504         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43505         HAVE_MBRTOWC.
43506         * doc/posix-functions/mbrtowc.texi: Document the new module.
43507
43508 2008-12-18  Bruno Haible  <bruno@clisp.org>
43509
43510         New module 'wctob'.
43511         * lib/wchar.in.h (wctob): New declaration.
43512         * lib/wctob.c: New file.
43513         * m4/wctob.m4: New file.
43514         * modules/wctob: New file.
43515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43516         HAVE_WCTOB.
43517         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43518         * doc/posix-functions/wctob.texi: Document the new module.
43519
43520 2008-12-18  Bruno Haible  <bruno@clisp.org>
43521
43522         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43523         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43524
43525 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43526
43527         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43528         G. Christensen" <tgc@jupiterrise.com>.
43529
43530         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43531         G. Christensen" <tgc@jupiterrise.com>.
43532
43533         * lib/flock.c: Need to include string.h.  Reported by "Tom
43534         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43535         <ebb9@byu.net>.
43536
43537 2008-12-18  Bruno Haible  <bruno@clisp.org>
43538
43539         * m4/locale-ja.m4: New file, from GNU gettext.
43540
43541 2008-12-17  Bruno Haible  <bruno@clisp.org>
43542
43543         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43544         Suggested by Eric Blake.
43545
43546 2008-12-17  Bruno Haible  <bruno@clisp.org>
43547
43548         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43549
43550 2008-12-17  Bruno Haible  <bruno@clisp.org>
43551
43552         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43553         * modules/mbsinit (Depends-on): Add verify.
43554         Suggested by Paul Eggert.
43555
43556 2008-12-17  Bruno Haible  <bruno@clisp.org>
43557
43558         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43559         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43560         gl_FUNC_MBRTOWC.
43561         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43562         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43563         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43564         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43565         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43566         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43567         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43568         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43569         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43570         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43571         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43572         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43573         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43574         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43575         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43576         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43577         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43578         * modules/trim (configure.ac): Likewise.
43579
43580 2008-12-17  Bruno Haible  <bruno@clisp.org>
43581
43582         * modules/btowc-tests: New file.
43583         * tests/test-btowc1.sh: New file.
43584         * tests/test-btowc2.sh: New file.
43585         * tests/test-btowc.c: New file.
43586
43587         New module 'btowc'.
43588         * lib/wchar.in.h (btowc): New declaration.
43589         * lib/btowc.c: New file.
43590         * m4/btowc.m4: New file.
43591         * modules/btowc: New file.
43592         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43593         HAVE_BTOWC.
43594         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43595         * doc/posix-functions/btowc.texi: Document the new module.
43596
43597 2008-12-17  Bruno Haible  <bruno@clisp.org>
43598
43599         New module 'mbsinit'.
43600         * lib/wchar.in.h (mbsinit): New declaration.
43601         * lib/mbsinit.c: New file.
43602         * m4/mbsinit.m4: New file.
43603         * modules/mbsinit: New file.
43604         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43605         HAVE_MBSINIT.
43606         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43607         HAVE_MBSINIT.
43608         * doc/posix-functions/mbsinit.texi: Document the new module.
43609
43610 2008-12-16  Bruno Haible  <bruno@clisp.org>
43611
43612         * lib/unistd.in.h: Add comment.
43613         * tests/test-environ.c: Don't include <stdlib.h>.
43614
43615 2008-12-16  Bruno Haible  <bruno@clisp.org>
43616
43617         * lib/parse-duration.h (parse_duration): Document return value
43618         convention.
43619         * lib/parse-duration.c: Include specification header first. Add
43620         comments.
43621         (_): Remove macro.
43622         (parse_year_month_day, parse_hour_minute_second): Move side effects
43623         outside of strchr call.
43624         (parse_non_iso8601): Move side effects outside of isspace call.
43625         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43626         call.
43627
43628 2008-12-16  Bruno Haible  <bruno@clisp.org>
43629
43630         * tests/test-parse-duration.sh: Produce no output when the test
43631         succeeds.
43632
43633 2008-12-16  Bruno Haible  <bruno@clisp.org>
43634
43635         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43636         expressions.
43637
43638 2008-12-15  Bruno Haible  <bruno@clisp.org>
43639
43640         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43641         * doc/glibc-functions/flistxattr.texi: Likewise.
43642         * doc/glibc-functions/fopencookie.texi: Likewise.
43643         * doc/glibc-functions/fremovexattr.texi: Likewise.
43644         * doc/glibc-functions/fsetxattr.texi: Likewise.
43645         * doc/glibc-functions/getxattr.texi: Likewise.
43646         * doc/glibc-functions/lgetxattr.texi: Likewise.
43647         * doc/glibc-functions/listxattr.texi: Likewise.
43648         * doc/glibc-functions/llistxattr.texi: Likewise.
43649         * doc/glibc-functions/lremovexattr.texi: Likewise.
43650         * doc/glibc-functions/lsetxattr.texi: Likewise.
43651         * doc/glibc-functions/removexattr.texi: Likewise.
43652         * doc/glibc-functions/setxattr.texi: Likewise.
43653         * doc/posix-functions/open_memstream.texi: Likewise.
43654
43655 2008-12-15  Eric Blake  <ebb9@byu.net>
43656
43657         Update doc for cygwin 1.7.
43658         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43659         functions.
43660         * doc/posix-functions/fchmodat.texi: Likewise.
43661         * doc/posix-functions/fchownat.texi: Likewise.
43662         * doc/posix-functions/fdopendir.texi: Likewise.
43663         * doc/posix-functions/fmemopen.texi: Likewise.
43664         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43665         * doc/posix-functions/fstatat.texi: Likewise.
43666         * doc/posix-functions/futimens.texi: Likewise.
43667         * doc/posix-functions/gai_strerror.texi: Likewise.
43668         * doc/posix-functions/getaddrinfo.texi: Likewise.
43669         * doc/posix-functions/getnameinfo.texi: Likewise.
43670         * doc/posix-functions/if_freenameindex.texi: Likewise.
43671         * doc/posix-functions/if_indextoname.texi: Likewise.
43672         * doc/posix-functions/if_nameindex.texi: Likewise.
43673         * doc/posix-functions/if_nametoindex.texi: Likewise.
43674         * doc/posix-functions/insque.texi: Likewise.
43675         * doc/posix-functions/linkat.texi: Likewise.
43676         * doc/posix-functions/llrint.texi: Likewise.
43677         * doc/posix-functions/llrintf.texi: Likewise.
43678         * doc/posix-functions/llrintl.texi: Likewise.
43679         * doc/posix-functions/lockf.texi: Likewise.
43680         * doc/posix-functions/lrintl.texi: Likewise.
43681         * doc/posix-functions/mkdirat.texi: Likewise.
43682         * doc/posix-functions/mkfifoat.texi: Likewise.
43683         * doc/posix-functions/mknodat.texi: Likewise.
43684         * doc/posix-functions/mq_close.texi: Likewise.
43685         * doc/posix-functions/mq_getattr.texi: Likewise.
43686         * doc/posix-functions/mq_notify.texi: Likewise.
43687         * doc/posix-functions/mq_open.texi: Likewise.
43688         * doc/posix-functions/mq_receive.texi: Likewise.
43689         * doc/posix-functions/mq_send.texi: Likewise.
43690         * doc/posix-functions/mq_setattr.texi: Likewise.
43691         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43692         * doc/posix-functions/mq_timedsend.texi: Likewise.
43693         * doc/posix-functions/mq_unlink.texi: Likewise.
43694         * doc/posix-functions/open_memstream.texi: Likewise.
43695         * doc/posix-functions/openat.texi: Likewise.
43696         * doc/posix-functions/posix_fadvise.texi: Likewise.
43697         * doc/posix-functions/posix_fallocate.texi: Likewise.
43698         * doc/posix-functions/posix_madvise.texi: Likewise.
43699         * doc/posix-functions/posix_memalign.texi: Likewise.
43700         * doc/posix-functions/posix_openpt.texi: Likewise.
43701         * doc/posix-functions/readlinkat.texi: Likewise.
43702         * doc/posix-functions/remque.texi: Likewise.
43703         * doc/posix-functions/renameat.texi: Likewise.
43704         * doc/posix-functions/rintl.texi: Likewise.
43705         * doc/posix-functions/sem_unlink.texi: Likewise.
43706         * doc/posix-functions/shm_open.texi: Likewise.
43707         * doc/posix-functions/shm_unlink.texi: Likewise.
43708         * doc/posix-functions/signgam.texi: Likewise.
43709         * doc/posix-functions/sigset.texi: Likewise.
43710         * doc/posix-functions/stpcpy.texi: Likewise.
43711         * doc/posix-functions/stpncpy.texi: Likewise.
43712         * doc/posix-functions/strerror.texi: Likewise.
43713         * doc/posix-functions/strtod.texi: Likewise.
43714         * doc/posix-functions/symlinkat.texi: Likewise.
43715         * doc/posix-functions/unlinkat.texi: Likewise.
43716         * doc/posix-functions/utimensat.texi: Likewise.
43717         * doc/glibc-functions/bindresvport.texi: Likewise.
43718         * doc/glibc-functions/dn_expand.texi: Likewise.
43719         * doc/glibc-functions/exp10.texi: Likewise.
43720         * doc/glibc-functions/exp10f.texi: Likewise.
43721         * doc/glibc-functions/fgetxattr.texi: Likewise.
43722         * doc/glibc-functions/flistxattr.texi: Likewise.
43723         * doc/glibc-functions/fopencookie.texi: Likewise.
43724         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43725         * doc/glibc-functions/fremovexattr.texi: Likewise.
43726         * doc/glibc-functions/fsetxattr.texi: Likewise.
43727         * doc/glibc-functions/getifaddrs.texi: Likewise.
43728         * doc/glibc-functions/getxattr.texi: Likewise.
43729         * doc/glibc-functions/lgetxattr.texi: Likewise.
43730         * doc/glibc-functions/listxattr.texi: Likewise.
43731         * doc/glibc-functions/llistxattr.texi: Likewise.
43732         * doc/glibc-functions/lremovexattr.texi: Likewise.
43733         * doc/glibc-functions/lsetxattr.texi: Likewise.
43734         * doc/glibc-functions/pow10.texi: Likewise.
43735         * doc/glibc-functions/pow10f.texi: Likewise.
43736         * doc/glibc-functions/rcmd_af.texi: Likewise.
43737         * doc/glibc-functions/removexattr.texi: Likewise.
43738         * doc/glibc-functions/res_init.texi: Likewise.
43739         * doc/glibc-functions/res_mkquery.texi: Likewise.
43740         * doc/glibc-functions/res_query.texi: Likewise.
43741         * doc/glibc-functions/res_querydomain.texi: Likewise.
43742         * doc/glibc-functions/res_send.texi: Likewise.
43743         * doc/glibc-functions/rresvport_af.texi: Likewise.
43744         * doc/glibc-functions/setxattr.texi: Likewise.
43745         * doc/glibc-functions/strcasestr.texi: Likewise.
43746
43747 2008-12-15  Bruno Haible  <bruno@clisp.org>
43748
43749         Fix compilation error on OSF/1 4.0.
43750         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43751         <sys/time.h>, simply delegate to the system header.
43752         Reported by Daniel Richard G. <oss@teragram.com>.
43753
43754 2008-12-15  Bruno Haible  <bruno@clisp.org>
43755
43756         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43757         * doc/posix-functions/fchmodat.texi: Likewise.
43758         * doc/posix-functions/fchownat.texi: Likewise.
43759         * doc/posix-functions/fdopendir.texi: Likewise.
43760         * doc/posix-functions/fstatat.texi: Likewise.
43761         * doc/posix-functions/mkdirat.texi: Likewise.
43762         * doc/posix-functions/unlinkat.texi: Likewise.
43763
43764 2008-12-14  Bruno Haible  <bruno@clisp.org>
43765
43766         Update doc for POSIX:2008.
43767         * doc/posix-functions/faccessat.texi: New file.
43768         * doc/posix-functions/fchmodat.texi: New file.
43769         * doc/posix-functions/fchownat.texi: New file.
43770         * doc/posix-functions/fdopendir.texi: New file.
43771         * doc/posix-functions/fstatat.texi: New file.
43772         * doc/posix-functions/futimens.texi: New file.
43773         * doc/posix-functions/linkat.texi: New file.
43774         * doc/posix-functions/mkdirat.texi: New file.
43775         * doc/posix-functions/mkfifoat.texi: New file.
43776         * doc/posix-functions/mknodat.texi: New file.
43777         * doc/posix-functions/open_wmemstream.texi: New file.
43778         * doc/posix-functions/openat.texi: New file.
43779         * doc/posix-functions/psiginfo.texi: New file.
43780         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43781         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43782         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43783         * doc/posix-functions/readlinkat.texi: New file.
43784         * doc/posix-functions/renameat.texi: New file.
43785         * doc/posix-functions/strerror_l.texi: New file.
43786         * doc/posix-functions/symlinkat.texi: New file.
43787         * doc/posix-functions/unlinkat.texi: New file.
43788         * doc/posix-functions/utimensat.texi: New file.
43789         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43790
43791 2008-12-14  Bruno Haible  <bruno@clisp.org>
43792
43793         Update doc for POSIX:2008.
43794         * doc/posix-functions/alphasort.texi: Renamed from
43795         doc/glibc-functions/alphasort.texi.
43796         * doc/posix-functions/dirfd.texi: Renamed from
43797         doc/glibc-functions/dirfd.texi.
43798         * doc/posix-functions/dprintf.texi: Renamed from
43799         doc/glibc-functions/dprintf.texi.
43800         * doc/posix-functions/duplocale.texi: Renamed from
43801         doc/glibc-functions/duplocale.texi.
43802         * doc/posix-functions/fexecve.texi: Renamed from
43803         doc/glibc-functions/fexecve.texi.
43804         * doc/posix-functions/fmemopen.texi: Renamed from
43805         doc/glibc-functions/fmemopen.texi.
43806         * doc/posix-functions/freelocale.texi: Renamed from
43807         doc/glibc-functions/freelocale.texi.
43808         * doc/posix-functions/getdate_err.texi: Renamed from
43809         doc/glibc-functions/getdate_err.texi.
43810         * doc/posix-functions/isalnum_l.texi: Renamed from
43811         doc/glibc-functions/isalnum_l.texi.
43812         * doc/posix-functions/isalpha_l.texi: Renamed from
43813         doc/glibc-functions/isalpha_l.texi.
43814         * doc/posix-functions/isblank_l.texi: Renamed from
43815         doc/glibc-functions/isblank_l.texi.
43816         * doc/posix-functions/iscntrl_l.texi: Renamed from
43817         doc/glibc-functions/iscntrl_l.texi.
43818         * doc/posix-functions/isdigit_l.texi: Renamed from
43819         doc/glibc-functions/isdigit_l.texi.
43820         * doc/posix-functions/isgraph_l.texi: Renamed from
43821         doc/glibc-functions/isgraph_l.texi.
43822         * doc/posix-functions/islower_l.texi: Renamed from
43823         doc/glibc-functions/islower_l.texi.
43824         * doc/posix-functions/isprint_l.texi: Renamed from
43825         doc/glibc-functions/isprint_l.texi.
43826         * doc/posix-functions/ispunct_l.texi: Renamed from
43827         doc/glibc-functions/ispunct_l.texi.
43828         * doc/posix-functions/isspace_l.texi: Renamed from
43829         doc/glibc-functions/isspace_l.texi.
43830         * doc/posix-functions/isupper_l.texi: Renamed from
43831         doc/glibc-functions/isupper_l.texi.
43832         * doc/posix-functions/iswalnum_l.texi: Renamed from
43833         doc/glibc-functions/iswalnum_l.texi.
43834         * doc/posix-functions/iswalpha_l.texi: Renamed from
43835         doc/glibc-functions/iswalpha_l.texi.
43836         * doc/posix-functions/iswblank_l.texi: Renamed from
43837         doc/glibc-functions/iswblank_l.texi.
43838         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43839         doc/glibc-functions/iswcntrl_l.texi.
43840         * doc/posix-functions/iswctype_l.texi: Renamed from
43841         doc/glibc-functions/iswctype_l.texi.
43842         * doc/posix-functions/iswdigit_l.texi: Renamed from
43843         doc/glibc-functions/iswdigit_l.texi.
43844         * doc/posix-functions/iswgraph_l.texi: Renamed from
43845         doc/glibc-functions/iswgraph_l.texi.
43846         * doc/posix-functions/iswlower_l.texi: Renamed from
43847         doc/glibc-functions/iswlower_l.texi.
43848         * doc/posix-functions/iswprint_l.texi: Renamed from
43849         doc/glibc-functions/iswprint_l.texi.
43850         * doc/posix-functions/iswpunct_l.texi: Renamed from
43851         doc/glibc-functions/iswpunct_l.texi.
43852         * doc/posix-functions/iswspace_l.texi: Renamed from
43853         doc/glibc-functions/iswspace_l.texi.
43854         * doc/posix-functions/iswupper_l.texi: Renamed from
43855         doc/glibc-functions/iswupper_l.texi.
43856         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43857         doc/glibc-functions/iswxdigit_l.texi.
43858         * doc/posix-functions/isxdigit_l.texi: Renamed from
43859         doc/glibc-functions/isxdigit_l.texi.
43860         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43861         doc/glibc-functions/mbsnrtowcs.texi.
43862         * doc/posix-functions/mkdtemp.texi: Renamed from
43863         doc/glibc-functions/mkdtemp.texi.
43864         * doc/posix-functions/newlocale.texi: Renamed from
43865         doc/glibc-functions/newlocale.texi.
43866         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43867         doc/glibc-functions/nl_langinfo_l.texi.
43868         * doc/posix-functions/open_memstream.texi: Renamed from
43869         doc/glibc-functions/open_memstream.texi.
43870         * doc/posix-functions/opterr.texi: Renamed from
43871         doc/glibc-functions/opterr.texi.
43872         * doc/posix-functions/optind.texi: Renamed from
43873         doc/glibc-functions/optind.texi.
43874         * doc/posix-functions/optopt.texi: Renamed from
43875         doc/glibc-functions/optopt.texi.
43876         * doc/posix-functions/psignal.texi: Renamed from
43877         doc/glibc-functions/psignal.texi.
43878         * doc/posix-functions/scandir.texi: Renamed from
43879         doc/glibc-functions/scandir.texi.
43880         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43881         doc/glibc-functions/sched_get_priority_min.texi.
43882         * doc/posix-functions/signgam.texi: Renamed from
43883         doc/glibc-functions/signgam.texi.
43884         * doc/posix-functions/stpcpy.texi: Renamed from
43885         doc/glibc-functions/stpcpy.texi.
43886         * doc/posix-functions/stpncpy.texi: Renamed from
43887         doc/glibc-functions/stpncpy.texi.
43888         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43889         doc/glibc-functions/strcasecmp_l.texi.
43890         * doc/posix-functions/strcoll_l.texi: Renamed from
43891         doc/glibc-functions/strcoll_l.texi.
43892         * doc/posix-functions/strfmon_l.texi: Renamed from
43893         doc/glibc-functions/strfmon_l.texi.
43894         * doc/posix-functions/strftime_l.texi: Renamed from
43895         doc/glibc-functions/strftime_l.texi.
43896         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43897         doc/glibc-functions/strncasecmp_l.texi.
43898         * doc/posix-functions/strndup.texi: Renamed from
43899         doc/glibc-functions/strndup.texi.
43900         * doc/posix-functions/strnlen.texi: Renamed from
43901         doc/glibc-functions/strnlen.texi.
43902         * doc/posix-functions/strsignal.texi: Renamed from
43903         doc/glibc-functions/strsignal.texi.
43904         * doc/posix-functions/strxfrm_l.texi: Renamed from
43905         doc/glibc-functions/strxfrm_l.texi.
43906         * doc/posix-functions/timer_gettime.texi: Renamed from
43907         doc/glibc-functions/timer_gettime.texi.
43908         * doc/posix-functions/tolower_l.texi: Renamed from
43909         doc/glibc-functions/tolower_l.texi.
43910         * doc/posix-functions/toupper_l.texi: Renamed from
43911         doc/glibc-functions/toupper_l.texi.
43912         * doc/posix-functions/towctrans_l.texi: Renamed from
43913         doc/glibc-functions/towctrans_l.texi.
43914         * doc/posix-functions/towlower_l.texi: Renamed from
43915         doc/glibc-functions/towlower_l.texi.
43916         * doc/posix-functions/towupper_l.texi: Renamed from
43917         doc/glibc-functions/towupper_l.texi.
43918         * doc/posix-functions/uselocale.texi: Renamed from
43919         doc/glibc-functions/uselocale.texi.
43920         * doc/posix-functions/vdprintf.texi: Renamed from
43921         doc/glibc-functions/vdprintf.texi.
43922         * doc/posix-functions/wcpcpy.texi:
43923         Renamed from doc/glibc-functions/wcpcpy.texi.
43924         * doc/posix-functions/wcpncpy.texi: Renamed from
43925         doc/glibc-functions/wcpncpy.texi.
43926         * doc/posix-functions/wcscasecmp.texi: Renamed from
43927         doc/glibc-functions/wcscasecmp.texi.
43928         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43929         doc/glibc-functions/wcscasecmp_l.texi.
43930         * doc/posix-functions/wcscoll_l.texi: Renamed from
43931         doc/glibc-functions/wcscoll_l.texi.
43932         * doc/posix-functions/wcsdup.texi: Renamed from
43933         doc/glibc-functions/wcsdup.texi.
43934         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43935         doc/glibc-functions/wcsncasecmp.texi.
43936         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43937         doc/glibc-functions/wcsncasecmp_l.texi.
43938         * doc/posix-functions/wcsnlen.texi: Renamed from
43939         doc/glibc-functions/wcsnlen.texi.
43940         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43941         doc/glibc-functions/wcsnrtombs.texi.
43942         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43943         doc/glibc-functions/wcsxfrm_l.texi.
43944         * doc/posix-functions/wctrans_l.texi: Renamed from
43945         doc/glibc-functions/wctrans_l.texi.
43946         * doc/posix-functions/wctype_l.texi: Renamed from
43947         doc/glibc-functions/wctype_l.texi.
43948         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43949         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43950         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43951         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43952         these subsections.
43953         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43954         Remove sections.
43955
43956 2008-12-14  Bruno Haible  <bruno@clisp.org>
43957
43958         Update doc for POSIX:2008.
43959         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43960
43961 2008-12-14  Bruno Haible  <bruno@clisp.org>
43962
43963         Update doc for POSIX:2008.
43964         * doc/pastposix-functions/bcmp.texi: Renamed from
43965         doc/posix-functions/bcmp.texi.
43966         * doc/pastposix-functions/bcopy.texi: Renamed from
43967         doc/posix-functions/bcopy.texi.
43968         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43969         doc/posix-functions/bsd_signal.texi.
43970         * doc/pastposix-functions/bzero.texi: Renamed from
43971         doc/posix-functions/bzero.texi.
43972         * doc/pastposix-functions/ecvt.texi: Renamed from
43973         doc/posix-functions/ecvt.texi.
43974         * doc/pastposix-functions/fcvt.texi: Renamed from
43975         doc/posix-functions/fcvt.texi.
43976         * doc/pastposix-functions/ftime.texi: Renamed from
43977         doc/posix-functions/ftime.texi.
43978         * doc/pastposix-functions/gcvt.texi: Renamed from
43979         doc/posix-functions/gcvt.texi.
43980         * doc/pastposix-functions/getcontext.texi: Renamed from
43981         doc/posix-functions/getcontext.texi.
43982         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43983         doc/posix-functions/gethostbyaddr.texi.
43984         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43985         doc/posix-functions/gethostbyname.texi.
43986         * doc/pastposix-functions/getwd.texi: Renamed from
43987         doc/posix-functions/getwd.texi.
43988         * doc/pastposix-functions/h_errno.texi: Renamed from
43989         doc/posix-functions/h_errno.texi.
43990         * doc/pastposix-functions/index.texi: Renamed from
43991         doc/posix-functions/index.texi.
43992         * doc/pastposix-functions/makecontext.texi: Renamed from
43993         doc/posix-functions/makecontext.texi.
43994         * doc/pastposix-functions/mktemp.texi: Renamed from
43995         doc/posix-functions/mktemp.texi.
43996         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43997         doc/posix-functions/pthread_attr_getstackaddr.texi.
43998         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43999         doc/posix-functions/pthread_attr_setstackaddr.texi.
44000         * doc/pastposix-functions/rindex.texi: Renamed from
44001         doc/posix-functions/rindex.texi.
44002         * doc/pastposix-functions/scalb.texi: Renamed from
44003         doc/posix-functions/scalb.texi.
44004         * doc/pastposix-functions/setcontext.texi: Renamed from
44005         doc/posix-functions/setcontext.texi.
44006         * doc/pastposix-functions/swapcontext.texi: Renamed from
44007         doc/posix-functions/swapcontext.texi.
44008         * doc/pastposix-functions/ualarm.texi: Renamed from
44009         doc/posix-functions/ualarm.texi.
44010         * doc/pastposix-functions/usleep.texi: Renamed from
44011         doc/posix-functions/usleep.texi.
44012         * doc/pastposix-functions/vfork.texi: Renamed from
44013         doc/posix-functions/vfork.texi.
44014         * doc/pastposix-functions/wcswcs.texi: Renamed from
44015         doc/posix-functions/wcswcs.texi.
44016         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44017         (Function Substitutes): Update.
44018
44019 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44020
44021         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44022         m4/strerror.m4.
44023
44024 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44025             Bruno Haible  <bruno@clisp.org>
44026
44027         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44028
44029 2008-12-13  Bruno Haible  <bruno@clisp.org>
44030
44031         * modules/strtoull (Depends-on): Remove unistd.
44032
44033 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44034
44035         * modules/strtoull (Depends-on): Add stdlib.
44036
44037 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44038
44039         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44040
44041 2008-12-10  Jim Meyering  <meyering@redhat.com>
44042
44043         gl_ASSERT: don't say assertions are disabled when they're not
44044         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44045         "checking whether to enable assertions... no", when they are in
44046         fact enabled.  This is solely a bug in the output of configure.
44047         In spite of saying "no", NDEBUG was not defined in that case.
44048         Also, as noted by Eric Blake, leave assertions enabled upon
44049         --enable-assert=INVALID.
44050
44051 2008-12-10  Bruno Haible  <bruno@clisp.org>
44052
44053         Change MODULES.html to refer to POSIX:2008 where possible.
44054         * MODULES.html.sh (POSIX2008_URL): New variable.
44055         (posix_headers): Remove sys/timeb, ucontext.
44056         (posix2001_headers): New variable.
44057         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44058         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44059         index, makecontext, mktemp, pthread_attr_getstackaddr,
44060         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44061         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44062         (posix2001_functions): New variable.
44063         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44064         otherwise.
44065
44066 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44067
44068         add missing include to parse-duration.c
44069         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44070         * modules/parse-duration (Depends-on): Add xalloc.
44071
44072         fix sed script reading maint.mk
44073         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44074         (syntax-check-rules): Use it.
44075
44076 2008-12-09  Bruno Haible  <bruno@clisp.org>
44077
44078         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44079         MacOS X 10.4/PowerPC.
44080         Reported by Simon Josefsson.
44081
44082 2008-12-08  Jim Meyering  <meyering@redhat.com>
44083
44084         work around mingw's lack of some S_IF definitions
44085         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44086         Reported by Simon Josefsson.
44087
44088 2008-12-08  Bruno Haible  <bruno@clisp.org>
44089
44090         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44091         applied to variables. Needed on MacOS X 10.4/PowerPC.
44092         Reported by Simon Josefsson.
44093
44094 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44095         and Eric Blake  <ebb9@byu.net>
44096
44097         assert: honor --enable-assert
44098         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44099         order to honor --enable-assert, rather than treating it as a
44100         synonym for --disable-assert.
44101
44102 2008-12-08  Jim Meyering  <meyering@redhat.com>
44103
44104         * lib/posixtm.c: Remove now-useless declaration of mktime.
44105
44106         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44107
44108 2008-12-07  Bruno Haible  <bruno@clisp.org>
44109
44110         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44111         test_once): Mark functions as static.
44112         * tests/test-tls.c (test_tls): Likewise.
44113
44114 2008-12-07  Bruno Haible  <bruno@clisp.org>
44115
44116         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44117         iconv_register_autodetect.
44118
44119 2008-12-07  Jim Meyering  <meyering@redhat.com>
44120
44121         posixtm.c: avoid a warning
44122         * lib/posixtm.c (posixtime): Don't initialize tm0.
44123         It's no longer needed to placate gcc4's -Wuninitialized,
44124         and the attempt to placate would elicit a new warning.
44125
44126         unicodeio.c: mark unused parameters
44127         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44128         (fallback_failure_callback): Likewise.
44129
44130 2008-12-07  Bruno Haible  <bruno@clisp.org>
44131
44132         * gnulib-tool (func_create_testdir): When building the tests
44133         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44134         Reported by Simon Josefsson.
44135
44136 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44137
44138         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44139
44140 2008-12-06  Bruno Haible  <bruno@clisp.org>
44141
44142         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44143         Suggested by Eric Blake.
44144
44145 2008-12-06  Bruno Haible  <bruno@clisp.org>
44146
44147         Fix a c-stack test failure on MacOS X.
44148         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44149         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44150         handler for SIGBUS as well.
44151         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44152         install a signal handler for SIGBUS as well.
44153         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44154
44155 2008-12-06  Bruno Haible  <bruno@clisp.org>
44156
44157         Advocacy documentation.
44158         * doc/gnulib-intro.texi (Benefits): New section.
44159         * doc/gnulib.texi: Update.
44160
44161 2008-12-06  Bruno Haible  <bruno@clisp.org>
44162
44163         Document the 'manywarnings' module.
44164         * doc/manywarnings.texi: New file.
44165         * doc/gnulib.texi: Include it.
44166
44167 2008-12-05  Eric Blake  <ebb9@byu.net>
44168
44169         tests: silence some gcc warnings
44170         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44171         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44172         type mismatches.
44173
44174 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44175             Bruno Haible  <bruno@clisp.org>
44176
44177         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44178
44179 2008-11-29  Jim Meyering  <meyering@redhat.com>
44180
44181         unicodeio.c: mark unused parameters
44182         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44183         (fallback_failure_callback): Likewise.
44184
44185         fts: fix a thinko
44186         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44187         (set_stat_type): Return S_IF*-valued "type" directly.
44188         Prompted by James Youngman's spotting a related bug.
44189         Confirmed by further testing through find.
44190
44191         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44192         * lib/fts.c (D_TYPE): Define.
44193         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44194         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44195         (s_ifmt_shift_bits): New function.
44196         (set_stat_type): New function.
44197         (fts_build): When not calling fts_stat, call set_stat_type
44198         to propagate dirent.d_type info to fts_read caller.
44199         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44200         fts_statp->st_mode type information may be valid.
44201
44202 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44203
44204         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44205         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44206         <sds@gnu.org>.
44207
44208 2008-11-20  Bruno Haible  <bruno@clisp.org>
44209
44210         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44211         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44212         INCLUDE_NEXT.
44213         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44214         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44215         * modules/math (Makefile.am): Substitute
44216         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44217         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44218
44219 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44220             Bruno Haible  <bruno@clisp.org>
44221
44222         * lib/stdint.in.h: Define all type macros so that their expansion is
44223         a single typedef'ed token. Fixes a compilation failure in Boost which
44224         does "using ::int8_t;".
44225
44226 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44227
44228         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44229         gl_MANYWARN_ALL_GCC.
44230         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44231         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44232         * modules/manywarnings: New file.
44233         * MODULES.html.sh: Mention manywarnings module.
44234
44235 2008-11-18  Bruno Haible  <bruno@clisp.org>
44236
44237         * doc/gnulib-tool.texi (Unit tests): New section.
44238
44239 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44240
44241         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44242         paths like 'lib/po/foo.po'.
44243
44244 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44245
44246         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44247         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44248
44249 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44250
44251         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44252         parameter works.
44253
44254 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44255
44256         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44257
44258 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44259
44260         * modules/parse-duration-tests: New file.
44261         * tests/test-parse-duration.sh: New file.
44262         * tests/test-parse-duration.c: New file.
44263
44264         New module 'parse-duration'.
44265         * lib/parse-duration.h: New file.
44266         * lib/parse-duration.c: New file.
44267         * modules/parse-duration: New file.
44268
44269 2008-11-17  Bruno Haible  <bruno@clisp.org>
44270
44271         * tests/test-select-out.sh: Comment out the first pipe test.
44272         Reported by Simon Josefsson.
44273
44274 2008-11-17  Bruno Haible  <bruno@clisp.org>
44275
44276         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44277         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44278         gl_HOSTENT.
44279
44280 2008-11-17  Bruno Haible  <bruno@clisp.org>
44281
44282         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44283         -lnetwork and -lnet. Needed for Haiku and BeOS.
44284
44285 2008-11-16  Bruno Haible  <bruno@clisp.org>
44286
44287         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44288
44289 2008-11-16  Bruno Haible  <bruno@clisp.org>
44290
44291         Avoid test failure on Haiku.
44292         * tests/test-fsync.c: Include <errno.h>.
44293         (main): Don't require that fsync (0) fails.
44294
44295 2008-11-15  Bruno Haible  <bruno@clisp.org>
44296
44297         New module 'hostent'.
44298         * modules/hostent: New file.
44299         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44300
44301 2008-11-15  Bruno Haible  <bruno@clisp.org>
44302
44303         New module 'servent'.
44304         * modules/servent: New file.
44305         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44306
44307 2008-11-15  Bruno Haible  <bruno@clisp.org>
44308
44309         Avoid generating same test program with two different rules.
44310         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44311         test-frexp to test-frexp-nolibm.
44312         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44313         test-frexpl to test-frexpl-nolibm.
44314
44315 2008-11-15  Bruno Haible  <bruno@clisp.org>
44316
44317         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44318         $(FREXPL_LIBM).
44319
44320 2008-11-15  Bruno Haible  <bruno@clisp.org>
44321
44322         * lib/netdb.in.h: Activate the definitions also when the system's
44323         <netdb.h> has 'struct addrinfo'.
44324         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44325         EAI_OVERFLOW or AI_NUMERICSERV.
44326         * doc/posix-headers/netdb.texi: Document the problem.
44327
44328 2008-11-15  Bruno Haible  <bruno@clisp.org>
44329
44330         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44331
44332         Make the 'sched' module work on platforms where <sched.h> exists but
44333         is incomplete (such as Haiku).
44334         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44335         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44336         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44337         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44338         HAVE_STRUCT_SCHED_PARAM.
44339         * modules/sched (Depends-on): Add include_next.
44340         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44341         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44342         * doc/posix-headers/sched.texi: Document the issue.
44343
44344 2008-11-13  Jim Meyering  <meyering@redhat.com>
44345
44346         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44347         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44348         test would fail due to the difference in the Report bugs to ...
44349         line.  The expected address is empty, "<>", while the actual
44350         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44351
44352 2008-11-12  Bruno Haible  <bruno@clisp.org>
44353
44354         lstat: don't compile lstat.c on systems lacking lstat
44355         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44356         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44357         Reported by Daniel P. Berrange via Jim Meyering.
44358
44359 2008-11-12  Jim Meyering  <meyering@redhat.com>
44360
44361         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44362
44363 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44364
44365         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44366         instead.
44367
44368 2008-11-12  Bruno Haible  <bruno@clisp.org>
44369
44370         * lib/unicodeio.c: Include unistr.h.
44371         (utf8_wctomb): Remove function.
44372         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44373
44374 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44375
44376         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44377         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44378         <bruno@clisp.org>.
44379         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44380
44381 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44382
44383         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44384         * doc/gnulib.texi: Add section for warnings.
44385
44386 2008-11-11  Bruno Haible  <bruno@clisp.org>
44387
44388         * lib/sockets.h: Add a comment.
44389
44390 2008-11-11  Karl Berry  <karl@gnu.org>
44391
44392         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44393
44394 2008-11-11  Eric Blake  <ebb9@byu.net>
44395
44396         fdl.texi: avoid git symlinks
44397         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44398
44399 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44400
44401         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44402
44403 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44404
44405         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44406         (gl_WARN_ADD): Substitute $2 if literal.
44407
44408 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44409
44410         * m4/warning.m4: Remove.
44411
44412 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44413
44414         * m4/warnings.m4: Almost complete rewrite. :-)
44415
44416 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44417
44418         * modules/warnings: New module.
44419         * m4/warnings.m4: New file.
44420         * MODULES.html.sh: Mention warnings module.
44421         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44422         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44423
44424 2008-11-10  Eric Blake  <ebb9@byu.net>
44425
44426         fdl.texi: make a symlink to the latest version
44427         * doc/standards.texi: Revert today's earlier change.
44428         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44429         * doc/fdl.texi: ...and replace this with a symlink to the newer
44430         fdl-1.3.texi.
44431
44432 2008-11-10  Bruno Haible  <bruno@clisp.org>
44433
44434         * tests/test-select-fd.c (main): Accept the result file name as fourth
44435         argument.
44436         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44437         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44438
44439 2008-11-10  Bruno Haible  <bruno@clisp.org>
44440
44441         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44442         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44443         as autoconf-substituted macros.
44444         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44445         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44446         gl_NETDB_H_DEFAULTS. Set these variables.
44447         * modules/netdb (Makefile.am): Substitute these variables.
44448
44449 2008-11-10  Eric Blake  <ebb9@byu.net>
44450
44451         standards.texi: include correct file for FDL 1.3
44452         * doc/standards.texi (GNU Free Documentation License): Change
44453         include file to pull in FDL 1.3, not 1.2.
44454
44455         fdl.texi: revert accidental change to license
44456         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44457
44458 2008-11-10  Bruno Haible  <bruno@clisp.org>
44459
44460         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44461         cross-compiling guesses also when the native compile gives no result.
44462
44463 2008-11-10  Bruno Haible  <bruno@clisp.org>
44464
44465         * lib/spawni.c (__spawni): Force variable into the stack.
44466
44467 2008-11-10  Bruno Haible  <bruno@clisp.org>
44468
44469         Add support for Haiku.
44470         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44471         glibc and BeOS, but also on Haiku.
44472         * lib/fpurge.c (fpurge): Likewise.
44473         * lib/freadable.c (freadable): Likewise.
44474         * lib/freadahead.c (freadahead): Likewise.
44475         * lib/freading.c (freading): Likewise.
44476         * lib/freadptr.c (freadptr): Likewise.
44477         * lib/freadseek.c (freadptrinc): Likewise.
44478         * lib/fseeko.c (rpl_fseeko): Likewise.
44479         * lib/fseterr.c (fseterr): Likewise.
44480         * lib/fwritable.c (fwritable): Likewise.
44481         * lib/fwriting.c (fwriting): Likewise.
44482         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44483
44484 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44485
44486         * lib/config.charset: Treat Haiku like BeOS.
44487
44488 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44489
44490         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44491         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44492
44493 2008-11-08  Bruno Haible  <bruno@clisp.org>
44494
44495         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44496         AC_CACHE_CHECK.
44497
44498 2008-11-08  Bruno Haible  <bruno@clisp.org>
44499
44500         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44501
44502 2008-11-08  Bruno Haible  <bruno@clisp.org>
44503
44504         * tests/test-select-fd.c: New file.
44505         * tests/test-select-in.sh: New file.
44506         * tests/test-select-out.sh: New file.
44507         * tests/test-select-stdin.c: New file.
44508         * modules/select-tests (Files): Add the new files.
44509         (Depends-on): Add gettimeofday.
44510         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44511         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44512         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44513
44514 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44515             Bruno Haible  <bruno@clisp.org>
44516
44517         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44518
44519 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44520
44521         * build-aux/pmccabe2html: Added support for C++ source files.
44522
44523 2008-11-05  Ben Pfaff  <blp@gnu.org>
44524
44525         Fix lib/close.c build on Windows.
44526         * modules/close (Files): Add lib/w32sock.h.
44527
44528 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44529
44530         Accept Bison's NEWS format.
44531         * build-aux/announce-gen (print_news_deltas): Tweak
44532         $re_prefix.
44533
44534 2008-11-04  Bruno Haible  <bruno@clisp.org>
44535
44536         * modules/random_r (Maintainer): Add glibc.
44537
44538 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44539
44540         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44541         by karl@freefriends.org (Karl Berry).
44542         * doc/alloca.texi: Likewise.
44543         * doc/c-ctype.texi: Likewise.
44544         * doc/c-strcase.texi: Likewise.
44545         * doc/c-strcaseeq.texi: Likewise.
44546         * doc/c-strcasestr.texi: Likewise.
44547         * doc/c-strstr.texi: Likewise.
44548         * doc/c-strtod.texi: Likewise.
44549         * doc/c-strtold.texi: Likewise.
44550         * doc/ctime.texi: Likewise.
44551         * doc/error.texi: Likewise.
44552         * doc/fdl.texi: Likewise.
44553         * doc/gcd.texi: Likewise.
44554         * doc/getdate.texi: Likewise.
44555         * doc/gnulib-intro.texi: Likewise.
44556         * doc/gnulib-tool.texi: Likewise.
44557         * doc/gnulib.texi: Likewise.
44558         * doc/inet_ntoa.texi: Likewise.
44559         * doc/maintain.texi: Likewise.
44560         * doc/make-stds.texi: Likewise.
44561         * doc/quote.texi: Likewise.
44562         * doc/regexprops-generic.texi: Likewise.
44563         * doc/standards.texi: Likewise.
44564         * doc/verify.texi: Likewise.
44565         * doc/visibility.texi: Likewise.
44566         * doc/gnulib.texi (GNU Free Documentation License): Include
44567         fdl-1.3.texi instead of fdl.texi.
44568
44569 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44570
44571         * doc/fdl-1.3.texi: New file, from
44572         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44573         * modules/fdl-1.3: Add.
44574         * MODULES.html.sh: Add fdl-1.3.
44575
44576 2008-11-03  Bruno Haible  <bruno@clisp.org>
44577
44578         Make determination of absolute name of header file work with AIX xlc.
44579         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44580         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44581         preprocessing.
44582         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44583         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44584
44585 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44586
44587         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44588         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44589         <ludo@gnu.org>.
44590
44591 2008-11-02  Bruno Haible  <bruno@clisp.org>
44592
44593         Mark 'strpbrk' obsolete.
44594         * modules/strpbrk (Status, Notice): New sections.
44595         * modules/strtok_r (Depends-on): Add strpbrk.
44596
44597 2008-11-02  Bruno Haible  <bruno@clisp.org>
44598
44599         Mark 'strdup' obsolete.
44600         * modules/strdup (Status, Notice): New sections.
44601         * modules/findprog (Depends-on): Add strdup.
44602         * modules/getaddrinfo (Depends-on): Likewise.
44603         * modules/localename (Depends-on): Likewise.
44604         * modules/relocatable-lib (Depends-on): Likewise.
44605         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44606         * modules/relocatable-prog (Depends-on): Likewise.
44607         * modules/trim (Depends-on): Likewise.
44608         * modules/unictype/gen-ctype (Depends-on): Likewise.
44609         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44610
44611 2008-11-02  Bruno Haible  <bruno@clisp.org>
44612
44613         Mark 'strcspn' obsolete.
44614         * modules/strcspn (Status, Notice): New sections.
44615
44616 2008-11-02  Bruno Haible  <bruno@clisp.org>
44617
44618         Mark 'rmdir' obsolete.
44619         * modules/rmdir (Status, Notice): New sections.
44620         * modules/clean-temp (Depends-on): Add rmdir.
44621         * modules/openat (Depends-on): Likewise.
44622
44623 2008-11-02  Bruno Haible  <bruno@clisp.org>
44624
44625         Mark 'raise' obsolete.
44626         * modules/raise (Status, Notice): New sections.
44627         (Include): Specify <signal.h>.
44628         * modules/stdio (Depends-on): Add raise.
44629         * modules/write (Depends-on): Likewise.
44630
44631 2008-11-02  Bruno Haible  <bruno@clisp.org>
44632
44633         Mark 'memset' obsolete.
44634         * modules/memset (Status, Notice): New sections.
44635
44636 2008-11-02  Bruno Haible  <bruno@clisp.org>
44637
44638         Mark 'memmove' obsolete.
44639         * modules/memmove (Status, Notice): New sections.
44640         * modules/argp (Depends-on): Add memmove.
44641         * modules/argz (Depends-on): Likewise.
44642         * modules/canonicalize (Depends-on): Likewise.
44643         * modules/canonicalize-lgpl (Depends-on): Likewise.
44644         * modules/fts (Depends-on): Likewise.
44645         * modules/getcwd (Depends-on): Likewise.
44646         * modules/human (Depends-on): Likewise.
44647         * modules/regex (Depends-on): Likewise.
44648         * modules/striconveh (Depends-on): Likewise.
44649         * modules/trim (Depends-on): Likewise.
44650         * modules/unistr/u8-move (Depends-on): Likewise.
44651         * modules/unistr/u16-move (Depends-on): Likewise.
44652         * modules/unistr/u32-move (Depends-on): Likewise.
44653
44654 2008-11-02  Bruno Haible  <bruno@clisp.org>
44655
44656         Mark 'memcpy' obsolete.
44657         * modules/memcpy (Status, Notice): New sections.
44658
44659 2008-11-02  Bruno Haible  <bruno@clisp.org>
44660
44661         Mark 'memcmp' obsolete.
44662         * modules/memcmp (Status, Notice): New sections.
44663         * modules/argmatch (Depends-on): Add memchr.
44664         * modules/backupfile (Depends-on): Likewise.
44665         * modules/c-strcasestr (Depends-on): Likewise.
44666         * modules/crypto/des (Depends-on): Likewise.
44667         * modules/csharpcomp (Depends-on): Likewise.
44668         * modules/fnmatch (Depends-on): Likewise.
44669         * modules/git-merge-changelog (Depends-on): Likewise.
44670         * modules/isnand (Depends-on): Likewise.
44671         * modules/isnand-nolibm (Depends-on): Likewise.
44672         * modules/isnanf (Depends-on): Likewise.
44673         * modules/isnanf-nolibm (Depends-on): Likewise.
44674         * modules/isnanl (Depends-on): Likewise.
44675         * modules/isnanl-nolibm (Depends-on): Likewise.
44676         * modules/mbchar (Depends-on): Likewise.
44677         * modules/memcoll (Depends-on): Likewise.
44678         * modules/quotearg (Depends-on): Likewise.
44679         * modules/regex (Depends-on): Likewise.
44680         * modules/relocatable-prog (Depends-on): Likewise.
44681         * modules/same (Depends-on): Likewise.
44682         * modules/signbit (Depends-on): Likewise.
44683         * modules/strcasestr-simple (Depends-on): Likewise.
44684         * modules/unictype/gen-ctype (Depends-on): Likewise.
44685         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44686         * modules/uniname/uniname (Depends-on): Likewise.
44687         * modules/unistr/u8-cmp (Depends-on): Likewise.
44688
44689 2008-11-02  Bruno Haible  <bruno@clisp.org>
44690
44691         Mark 'memchr' obsolete.
44692         * modules/memchr (Status, Notice): New sections.
44693         * modules/argp (Depends-on): Add memchr.
44694         * modules/base64 (Depends-on): Likewise.
44695         * modules/c-strcasestr (Depends-on): Likewise.
44696         * modules/chdir-long (Depends-on): Likewise.
44697         * modules/fnmatch (Depends-on): Likewise.
44698         * modules/getsubopt (Depends-on): Likewise.
44699         * modules/git-merge-changelog (Depends-on): Likewise.
44700         * modules/glob (Depends-on): Likewise.
44701         * modules/strcasestr-simple (Depends-on): Likewise.
44702         * modules/strnlen (Depends-on): Likewise.
44703
44704 2008-11-02  Bruno Haible  <bruno@clisp.org>
44705
44706         Mark 'atexit' obsolete.
44707         * modules/atexit (Status, Notice): New sections.
44708         * modules/chdir-long (Depends-on): Add atexit.
44709         * modules/wait-process (Depends-on): Likewise.
44710
44711 2008-11-02  Bruno Haible  <bruno@clisp.org>
44712
44713         * gnulib-tool: New option --with-obsolete.
44714         (func_usage): Document it.
44715         (func_modules_transitive_closure): Drop obsolete dependencies if
44716         incobsolete is not true.
44717         (func_import): Read and save the incobsolete variable to the cache.
44718
44719 2008-11-02  Bruno Haible  <bruno@clisp.org>
44720
44721         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44722         * gnulib-tool: New option --extract-status.
44723         (func_usage): Document it.
44724         (sed_extract_prog): Recognize it.
44725         (func_get_status): New function.
44726
44727 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44728
44729         * modules/sockets (License): Change from LGPL to LGPLv2+.
44730
44731 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44732
44733         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44734
44735 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44736
44737         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44738         Mention times and sys_times.
44739         * modules/sys_times, modules/sys_times-tests: New modules.
44740         * modules/times, modules/times-tests: Likewise
44741         * m4/sys_times_h.m4: New file.
44742         * lib/sys_times.in.h: Likewise
44743         * lib/times.c: Likewise.
44744         * tests/test-sys_times.c: Likewise.
44745         * tests/test-times.c: Likewise.
44746         * doc/posix-headers/sys_times.texi: Update.
44747         * doc/posix-functions/times.texi: Update.
44748
44749 2008-10-28  Jim Meyering  <meyering@redhat.com>
44750
44751         * modules/tempname (Depends-on): Add lstat.
44752
44753         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44754
44755 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44756
44757         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44758         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44759         using idiom used elsewhere in gnulib.
44760
44761 2008-10-27  Jim Meyering  <meyering@redhat.com>
44762
44763         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44764
44765 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44766
44767         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44768         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44769         programs.
44770         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44771
44772 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44773
44774         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44775
44776 2008-10-27  Bruno Haible  <bruno@clisp.org>
44777
44778         * tests/test-lstat.c: Include <stdio.h>.
44779
44780 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44781
44782         * modules/lstat-tests: New module.
44783         * tests/test-lstat.c: New file.
44784
44785 2008-10-26  Jim Meyering  <meyering@redhat.com>
44786
44787         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44788
44789 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44790             Bruno Haible  <bruno@clisp.org>
44791
44792         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44793         * modules/configmake (Include): Add a note that the include must come
44794         after all system headers.
44795         * lib/javaversion.c: Include configmake.h after all other includes.
44796
44797 2008-10-26  Bruno Haible  <bruno@clisp.org>
44798
44799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44800         HAVE_STRUCT_RANDOM_DATA to 1.
44801         (gl_STDLIB_H): Simplify.
44802
44803 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44804
44805         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44806         substitute HAVE_STRUCT_RANDOM_DATA.
44807         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44808         random_data.
44809         * modules/stdlib (Makefile.am): Substitute
44810         HAVE_STRUCT_RANDOM_DATA.
44811
44812 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44813
44814         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44815         * doc/gnulib-intro.texi (Copyright): Likewise.
44816
44817 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44818
44819         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44820         findings.
44821
44822 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44823             Bruno Haible  <bruno@clisp.org>
44824
44825         * lib/unistd.in.h: Include <winsock2.h>.
44826         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44827         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44828         Provide dummy declarations.
44829         (gethostname): Override.
44830         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44831         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44832         gl_PREREQ_SYS_H_WINSOCK2.
44833         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44834         * doc/posix-functions/gethostname.texi: More details.
44835
44836 2008-10-25  Bruno Haible  <bruno@clisp.org>
44837
44838         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44839         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44840         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44841
44842         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44843         here ...
44844         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44845         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44846         gl_UNISTD_H_DEFAULTS.
44847
44848 2008-10-25  Eric Blake  <ebb9@byu.net>
44849
44850         signbit: avoid spurious compiler failure
44851         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44852         declarations inside function.
44853
44854 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44855             Bruno Haible  <bruno@clisp.org>
44856
44857         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44858         * modules/random_r (Depends-on): Add stdint.
44859
44860 2008-10-24  Bruno Haible  <bruno@clisp.org>
44861
44862         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44863         Eggert.
44864         * modules/strerror (License): Likewise.
44865
44866 2008-10-24  Jim Meyering  <meyering@redhat.com>
44867
44868         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44869         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44870
44871 2008-10-24  Eric Blake  <ebb9@byu.net>
44872
44873         getgroups: fix compilation when getgroups is available
44874         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44875         but with <config.h> override of getgroups disabled.
44876
44877 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44878
44879         * doc/gnulib.texi (Header files): Add note about C++ problems.
44880         Explained by Bruno Haible <bruno@clisp.org>.
44881
44882 2008-10-23  Bruno Haible  <bruno@clisp.org>
44883
44884         Define a dummy SA_NODEFER macro on Interix.
44885         * lib/signal.in.h (SA_NODEFER): Define fallback.
44886         Reported by Aleksey Cheusov <cheusov@tut.by> via
44887         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44888
44889 2008-10-23  Bruno Haible  <bruno@clisp.org>
44890
44891         * modules/freadahead (License): Change to LGPLv2+.
44892         Suggested by Simon Josefsson.
44893
44894 2008-10-23  Jim Meyering  <meyering@redhat.com>
44895
44896         random_r: new module
44897         * modules/random_r: New file.
44898         * m4/random_r.m4: New file.
44899         * lib/random_r.c: New file, from glibc.
44900         * modules/random_r-tests: New file.
44901         * tests/test-random_r.c: New file.
44902         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44903          Declare.
44904         (RAND_MAX): Define.
44905         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44906         * modules/stdlib: Substitute them, too.
44907         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44908         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44909         * doc/glibc-functions/random_r.texi: Likewise.
44910         * doc/glibc-functions/setstate_r.texi: Likewise.
44911         * doc/glibc-functions/srandom_r.texi: Likewise.
44912         * config/srclist.txt: Mention it.
44913
44914 2008-10-23  David Lutterkort  <lutter@redhat.com>
44915
44916         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44917         link requirement
44918
44919 2008-10-23  Jim Meyering  <meyering@redhat.com>
44920
44921         selinux-h: mark parameters of stub functions as intentionally unused
44922         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44923         * lib/se-context.in.h: Likewise.
44924
44925 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44926
44927         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44928
44929 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44930
44931         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44932
44933 2008-10-22  Eric Blake  <ebb9@byu.net>
44934
44935         glthread/thread: avoid compiler warning
44936         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44937         Add unreachable abort to silence compiler.
44938
44939 2008-10-22  Eric Blake  <ebb9@byu.net>
44940
44941         netdb: also supply struct addrinfo for cygwin 1.5.x
44942         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44943         older cygwin.
44944         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44945         cygwin.
44946         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44947
44948 2008-10-22  Bruno Haible  <bruno@clisp.org>
44949
44950         * users.txt: Update entry about pspp.
44951
44952 2008-10-21  Bruno Haible  <bruno@clisp.org>
44953
44954         Simplification.
44955         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44956         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44957
44958         Simplification.
44959         * lib/ioctl.c (ioctl): Don't undefine.
44960         * lib/socket.c (socket): Don't undefine.
44961
44962         Remove unused module indicator macros.
44963         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44964         GNULIB_$1 as a C macro.
44965
44966         * doc/posix-functions/close.texi: Undo last change.
44967         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44968         Windows platforms.
44969
44970 2008-10-21  Bruno Haible  <bruno@clisp.org>
44971
44972         Add gethostname() declaration to <unistd.h>.
44973         * lib/unistd.in.h (gethostname): New declaration.
44974         * lib/gethostname.c: Include <unistd.h>.
44975         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44976         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44978         and HAVE_GETHOSTNAME.
44979         * modules/gethostname (Depends-on): Add unistd.
44980         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44981         (Include): Specify <unistd.h>.
44982         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44983         HAVE_GETHOSTNAME.
44984         * tests/test-gethostname.c: Include <unistd.h> first.
44985
44986 2008-10-21  Bruno Haible  <bruno@clisp.org>
44987
44988         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44989         * modules/select-tests (Depends-on): Likewise.
44990         Reported by Simon Josefsson.
44991
44992 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44993
44994         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44995         * lib/accept.c: New file, based on winsock.c.
44996         * lib/bind.c: New file, based on winsock.c.
44997         * lib/connect.c: New file, based on winsock.c.
44998         * lib/getpeername.c: New file, based on winsock.c.
44999         * lib/getsockname.c: New file, based on winsock.c.
45000         * lib/getsockopt.c: New file, based on winsock.c.
45001         * lib/ioctl.c: New file, based on winsock.c.
45002         * lib/listen.c: New file, based on winsock.c.
45003         * lib/recv.c: New file, based on winsock.c.
45004         * lib/recvfrom.c: New file, based on winsock.c.
45005         * lib/send.c: New file, based on winsock.c.
45006         * lib/sendto.c: New file, based on winsock.c.
45007         * lib/setsockopt.c: New file, based on winsock.c.
45008         * lib/shutdown.c: New file, based on winsock.c.
45009         * lib/socket.c: New file, based on winsock.c.
45010         * lib/w32sock.h: New file, based on winsock.c.
45011         * lib/winsock.c: Remove file.
45012         * modules/accept: Likewise.
45013         * modules/bind: Likewise.
45014         * modules/connect: Likewise.
45015         * modules/getpeername: Likewise.
45016         * modules/getsockname: Likewise.
45017         * modules/getsockopt: Likewise.
45018         * modules/ioctl: Likewise.
45019         * modules/listen: Likewise.
45020         * modules/recv: Likewise.
45021         * modules/recvfrom: Likewise.
45022         * modules/send: Likewise.
45023         * modules/sendto: Likewise.
45024         * modules/setsockopt: Likewise.
45025         * modules/shutdown: Likewise.
45026         * modules/socket: Use socket.c instead of winsock.c.
45027         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45028         * doc/posix-functions/accept.texi: Doc fix.
45029         * doc/posix-functions/bind.texi: Doc fix.
45030         * doc/posix-functions/close.texi: Doc fix.
45031         * doc/posix-functions/connect.texi: Doc fix.
45032         * doc/posix-functions/getpeername.texi: Doc fix.
45033         * doc/posix-functions/getsockname.texi: Doc fix.
45034         * doc/posix-functions/getsockopt.texi: Doc fix.
45035         * doc/posix-functions/ioctl.texi: Doc fix.
45036         * doc/posix-functions/listen.texi: Doc fix.
45037         * doc/posix-functions/recv.texi: Doc fix.
45038         * doc/posix-functions/recvfrom.texi: Doc fix.
45039         * doc/posix-functions/send.texi: Doc fix.
45040         * doc/posix-functions/sendto.texi: Doc fix.
45041         * doc/posix-functions/setsockopt.texi: Doc fix.
45042         * doc/posix-functions/shutdown.texi: Doc fix.
45043         * doc/posix-functions/socket.texi: Doc fix.
45044
45045 2008-10-20  Bruno Haible  <bruno@clisp.org>
45046
45047         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45048         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45049         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45050         as an alias for SIGABRT.
45051         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45052         (sigaction): Map it to SIGABRT.
45053         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45054
45055 2008-10-20  Bruno Haible  <bruno@clisp.org>
45056
45057         * lib/fts.c: Don't include lstat.h.
45058         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45059
45060         Move the lstat() declaration to <sys/stat.h>.
45061         * lib/lstat.h: Remove file.
45062         * lib/sys_stat.in.h: Add special invocation convention.
45063         (lstat): New declaration.
45064         * lib/lstat.c (orig_lstat): New function.
45065         (rpl_lstat): Use orig_lstat instead of lstat.
45066         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45067         AC_C_INLINE. Set REPLACE_LSTAT.
45068         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45069         and REPLACE_LSTAT.
45070         * modules/lstat (Files): Remove lib/lstat.h.
45071         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45072         (Include): Specify <sys/stat.h> instead of lstat.h.
45073         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45074         REPLACE_LSTAT.
45075         * NEWS: Mention the change.
45076
45077 2008-10-20  Bruno Haible  <bruno@clisp.org>
45078
45079         * modules/posix_spawn-tests: New file.
45080         * tests/test-posix_spawn3.c: New file.
45081
45082 2008-10-20  Bruno Haible  <bruno@clisp.org>
45083
45084         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45085         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45086         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45087         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45088         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45089
45090 2008-10-20  Bruno Haible  <bruno@clisp.org>
45091
45092         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45093         of posix_spawn on AIX 5.3.
45094
45095 2008-10-20  Bruno Haible  <bruno@clisp.org>
45096
45097         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45098
45099 2008-10-20  Bruno Haible  <bruno@clisp.org>
45100
45101         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45102         of AC_LANG_PROGRAM.
45103
45104 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45105
45106         * lib/netdb.in.h: Don't define GNU specific constants until they
45107         are supported or needed.  Reported by Bruno Haible
45108         <bruno@clisp.org>.
45109
45110 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45111
45112         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45113
45114 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45115
45116         * lib/getaddrinfo.h: Remove file.
45117         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45118         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45119         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45120         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45121         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45122         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45123         * tests/test-getaddrinfo.c: Likewise.
45124         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45125         * NEWS: Mention change.
45126
45127 2008-10-19  Bruno Haible  <bruno@clisp.org>
45128
45129         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45130
45131 2008-10-19  Bruno Haible  <bruno@clisp.org>
45132
45133         * lib/wait-process.c: Include simply <sys/wait.h>.
45134         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45135         WIFSTOPPED): Remove fallback definitions.
45136         * modules/wait-process (Depends-on): Add sys_wait.
45137
45138         New module 'sys_wait'.
45139         * modules/sys_wait: New file.
45140         * lib/sys_wait.in.h: New file, partially copied from
45141         lib/wait-process.c.
45142         * m4/sys_wait_h.m4: New file.
45143         * doc/posix-headers/sys_wait.texi: Mention the new module.
45144
45145 2008-10-19  Bruno Haible  <bruno@clisp.org>
45146
45147         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45148
45149 2008-10-19  Bruno Haible  <bruno@clisp.org>
45150
45151         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45152         * lib/wait-process.c (WAIT_T): Remove type.
45153         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45154         (wait_subprocess): Update.
45155
45156 2008-10-19  Bruno Haible  <bruno@clisp.org>
45157
45158         New module 'atoll'.
45159         * modules/atoll: New file.
45160         * lib/stdlib.in.h (atoll): New declaration.
45161         * lib/atoll.c: New file, from glibc with modifications.
45162         * m4/atoll.m4: New file.
45163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45164         HAVE_ATOLL.
45165         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45166         * doc/posix-functions/atoll.texi: Mention the new module.
45167
45168 2008-10-19  Bruno Haible  <bruno@clisp.org>
45169
45170         Add strtoull() declaration to <stdlib.h>.
45171         * lib/stdlib.in.h (strtoull): New declaration.
45172         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45173         Set HAVE_STRTOULL.
45174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45175         HAVE_STRTOULL.
45176         * modules/strtoull (Depends-on): Add stdlib.
45177         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45178         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45179         HAVE_STRTOULL.
45180
45181 2008-10-19  Bruno Haible  <bruno@clisp.org>
45182
45183         Add strtoll() declaration to <stdlib.h>.
45184         * lib/stdlib.in.h (strtoll): New declaration.
45185         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45186         Set HAVE_STRTOLL.
45187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45188         HAVE_STRTOLL.
45189         * modules/strtoll (Depends-on): Add stdlib.
45190         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45191         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45192
45193 2008-10-19  Bruno Haible  <bruno@clisp.org>
45194
45195         * modules/bcopy (Depends-on): Add strings.
45196         (Include): Specify <strings.h>.
45197
45198 2008-10-19  Bruno Haible  <bruno@clisp.org>
45199
45200         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45201
45202 2008-10-19  Bruno Haible  <bruno@clisp.org>
45203
45204         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45205         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45206         mingw.
45207
45208 2008-10-19  Bruno Haible  <bruno@clisp.org>
45209
45210         * lib/atanl.c: Don't include isnanl.h.
45211         * lib/cosl.c: Likewise.
45212         * lib/ldexpl.c: Likewise.
45213         * lib/logl.c: Likewise.
45214         * lib/sinl.c: Likewise.
45215         * lib/sqrtl.c: Likewise.
45216         * lib/tanl.c: Likewise.
45217
45218         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45219         * lib/isnanf.h: Remove file.
45220         * lib/isnand.h: Remove file.
45221         * lib/isnanl.h: Remove file.
45222         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45223         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45224         macros.
45225         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45226         HAVE_ISNANF, don't define it as a C macro.
45227         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45228         HAVE_ISNAND, don't define it as a C macro.
45229         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45230         HAVE_ISNANL, don't define it as a C macro.
45231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45232         HAVE_ISNAN[FDL].
45233         * modules/isnanf (Files): Remove lib/isnanf.h.
45234         (Depends-on): Add math.
45235         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45236         (Include): Specify <math.h> instead of isnanf.h.
45237         * modules/isnand (Files): Remove lib/isnand.h.
45238         (Depends-on): Add math.
45239         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45240         (Include): Specify <math.h> instead of isnand.h.
45241         * modules/isnanl (Files): Remove lib/isnanl.h.
45242         (Depends-on): Add math.
45243         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45244         (Include): Specify <math.h> instead of isnanl.h.
45245         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45246         HAVE_ISNAN[FDL].
45247         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45248         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45249         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45250         * NEWS: Mention the change.
45251
45252 2008-10-18  Bruno Haible  <bruno@clisp.org>
45253
45254         Add getusershell(), setusershell(), endusershell() declarations to
45255         <unistd.h>.
45256         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45257         declarations.
45258         * lib/getusershell.c: Include unistd.h.
45259         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45260         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45261         HAVE_GETUSERSHELL.
45262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45263         and HAVE_GETUSERSHELL.
45264         * modules/getusershell (Depends-on): Add unistd, extensions.
45265         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45266         (Include): Specify <unistd.h>.
45267         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45268         HAVE_GETUSERSHELL.
45269
45270 2008-10-18  Bruno Haible  <bruno@clisp.org>
45271
45272         Add a getloadavg() declaration to <stdlib.h>.
45273         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45274         getloadavg declaration.
45275         (getloadavg): New declaration.
45276         * lib/getloadavg.c: Include <stdlib.h> first.
45277         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45278         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45279         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45281         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45282         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45283         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45284         (Include): Specify <stdlib.h>.
45285         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45286         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45287
45288 2008-10-18  Bruno Haible  <bruno@clisp.org>
45289
45290         * lib/dirchownmod.c: Don't include lchmod.h.
45291
45292         Move the lchmod() declaration to <sys/stat.h>.
45293         * lib/lchmod.h: Remove file.
45294         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45295         (lchmod): New declaration, moved here from lib/lchown.h.
45296         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45297         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45298         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45299         and HAVE_LCHMOD.
45300         * modules/lchmod (Files): Remove lib/lchmod.h.
45301         (Depends-on): Add sys_stat, extensions.
45302         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45303         (Include): Specify <sys/stat.h> instead of lchmod.h.
45304         * modules/sys_stat (Depends-on): Add link-warning.
45305         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45306         definition of GL_LINK_WARNING.
45307         * NEWS: Mention the change.
45308
45309 2008-10-18  Bruno Haible  <bruno@clisp.org>
45310
45311         * lib/fchdir.c: Don't include dirfd.h.
45312         * lib/fts.c: Likewise.
45313         * lib/getcwd.c: Likewise.
45314         * lib/glob.c: Likewise.
45315
45316         Move the dirfd() declaration to <dirent.h>.
45317         * lib/dirfd.h: Remove file.
45318         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45319         (dirfd): New declaration.
45320         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45321         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45322         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45323         HAVE_DECL_DIRFD.
45324         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45325         HAVE_DECL_DIRFD.
45326         * modules/dirfd (Files): Remove lib/dirfd.h.
45327         (Depends-on): Add dirent, extensions.
45328         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45329         (Include): Specify <dirent.h> instead of dirfd.h.
45330         * modules/dirent (Depends-on): Add link-warning.
45331         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45332         definition of GL_LINK_WARNING.
45333         * NEWS: Mention the change.
45334
45335 2008-10-18  Bruno Haible  <bruno@clisp.org>
45336
45337         Move the euidaccess() declaration to <unistd.h>.
45338         * lib/euidaccess.h: Remove file.
45339         * lib/unistd.in.h (euidaccess): New declaration.
45340         * lib/euidaccess.c: Don't include euidaccess.h.
45341         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45342         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45344         and HAVE_EUIDACCESS.
45345         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45346         (Depends-on): Add unistd.
45347         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45348         (Include): Specify <unistd.h> instead of euidaccess.h.
45349         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45350         HAVE_EUIDACCESS.
45351         * NEWS: Mention the change.
45352
45353 2008-10-18  Bruno Haible  <bruno@clisp.org>
45354
45355         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45356
45357         Move the getdomainname() declaration to <unistd.h>.
45358         * lib/getdomainname.h: Remove file.
45359         * lib/unistd.in.h (getdomainname): New declaration.
45360         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45361         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45362         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45363         HAVE_GETDOMAINNAME.
45364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45365         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45366         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45367         (Depends-on): Add unistd, extensions.
45368         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45369         (Includes): Specify <unistd.h> instead of getdomainname.h.
45370         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45371         HAVE_GETDOMAINNAME.
45372         * NEWS: Mention the change.
45373
45374 2008-10-18  Bruno Haible  <bruno@clisp.org>
45375
45376         * modules/dirent: New file.
45377         * m4/dirent_h.m4: New file.
45378         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45379         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45380         * modules/fchdir (Files): Remove lib/dirent.in.h.
45381         (Depends-on): Add dirent.
45382         (Makefile.am): Move rules to modules/dirent.
45383         * doc/posix-headers/dirent.texi: Mention the new module.
45384
45385 2008-10-18  Bruno Haible  <bruno@clisp.org>
45386
45387         Avoid -Wunused-parameter warnings in public gnulib header files.
45388         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45389         macro.
45390         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45391
45392 2008-10-18  Bruno Haible  <bruno@clisp.org>
45393
45394         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45395         * doc/glibc-functions/error.texi: Mention the module 'error'.
45396         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45397         * doc/glibc-functions/getdomainname.texi: Mention the module
45398         'getdomainname'.
45399         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45400         * doc/glibc-functions/getpagesize.texi: Mention the module
45401         'getpagesize'.
45402         * doc/glibc-functions/getusershell.texi: Mention the module
45403         'getusershell'.
45404         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45405         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45406         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45407         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45408         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45409         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45410         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45411         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45412         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45413         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45414         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45415         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45416         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45417         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45418
45419 2008-10-17  Bruno Haible  <bruno@clisp.org>
45420
45421         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45422         HP-UX and IRIX, use -0.0L.
45423         * tests/test-ceill.c (minus_zero): Likewise.
45424         * tests/test-floorl.c (minus_zero): Likewise.
45425         * tests/test-frexpl.c (minus_zero): Likewise.
45426         * tests/test-isnan.c (minus_zerol): Likewise.
45427         * tests/test-isnanl.h (minus_zero): Likewise.
45428         * tests/test-ldexpl.c (minus_zero): Likewise.
45429         * tests/test-roundl.c (minus_zero): Likewise.
45430         * tests/test-signbit.c (minus_zerol): Likewise.
45431         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45432         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45433         * tests/test-truncl.c (minus_zero): Likewise.
45434         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45435         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45436         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45437         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45438
45439 2008-10-17  Bruno Haible  <bruno@clisp.org>
45440
45441         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45442         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45443         that it gets activated only for gcc >= 3.0.
45444         * lib/dirent.in.h: Likewise.
45445         * lib/errno.in.h: Likewise.
45446         * lib/fcntl.in.h: Likewise.
45447         * lib/float.in.h: Likewise.
45448         * lib/iconv.in.h: Likewise.
45449         * lib/inttypes.in.h: Likewise.
45450         * lib/locale.in.h: Likewise.
45451         * lib/math.in.h: Likewise.
45452         * lib/netdb.in.h: Likewise.
45453         * lib/netinet_in.in.h: Likewise.
45454         * lib/search.in.h: Likewise.
45455         * lib/signal.in.h: Likewise.
45456         * lib/spawn.in.h: Likewise.
45457         * lib/stdarg.in.h: Likewise.
45458         * lib/stdint.in.h: Likewise.
45459         * lib/stdio.in.h: Likewise.
45460         * lib/stdlib.in.h: Likewise.
45461         * lib/string.in.h: Likewise.
45462         * lib/strings.in.h: Likewise.
45463         * lib/sys_file.in.h: Likewise.
45464         * lib/sys_ioctl.in.h: Likewise.
45465         * lib/sys_select.in.h: Likewise.
45466         * lib/sys_socket.in.h: Likewise.
45467         * lib/sys_stat.in.h: Likewise.
45468         * lib/sys_time.in.h: Likewise.
45469         * lib/sysexits.in.h: Likewise.
45470         * lib/time.in.h: Likewise.
45471         * lib/unistd.in.h: Likewise.
45472         * lib/wchar.in.h: Likewise.
45473         * lib/wctype.in.h: Likewise.
45474         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45475
45476 2008-10-17  Jim Meyering  <meyering@redhat.com>
45477
45478         ignore-value: don't depend on inline module
45479         * modules/ignore-value (Depends-on): Remove 'inline'.
45480         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45481         Suggestion from Bruno Haible.
45482
45483 2008-10-17  Bruno Haible  <bruno@clisp.org>
45484
45485         New implementation of condition variables for Win32.
45486         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45487         (gl_linked_waitqueue_t): New type.
45488         (gl_cond_t): Use it.
45489         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45490         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45491         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45492         (glthread_cond_init_func, glthread_cond_wait_func,
45493         glthread_cond_timedwait_func, glthread_cond_signal_func,
45494         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45495         Reimplemented on the basis of gl_linked_waitqueue_t.
45496         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45497         gl_waitqueue_t.
45498         (gl_rwlock_t): Update.
45499         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45500
45501 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45502
45503         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45504         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45505
45506 2008-10-17  Jim Meyering  <meyering@redhat.com>
45507
45508         ignore-value: new module
45509         * modules/ignore-value: New file.
45510         * lib/ignore-value.h: New file.
45511         * MODULES.html.sh (Compiler warning management): New section,
45512         just for this module.  More to come.
45513
45514 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45515
45516         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45517         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45518         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45519
45520 2008-10-16  Jim Meyering  <meyering@redhat.com>
45521
45522         openat-die.c: avoid 'no previous prototype' warning
45523         * lib/openat-die.c: Include "openat.h".
45524         Reported by Reuben Thomas <rrt@sc3d.org>.
45525
45526 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45527
45528         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45529         * lib/netdb.in.h: Fix typo.
45530         Reported by Bruno Haible  <bruno@clisp.org>
45531
45532         * lib/netdb.in.h: Include sys/socket.h for platforms without
45533         netdb.h, to get structures like hostent on MinGW.
45534         * modules/netdb (Depends-on): Add sys_socket.
45535
45536 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45537
45538         * modules/netdb, modules/netdb-tests: New file.
45539         * m4/netdb_h.m4: New file.
45540         * lib/netdb.in.h: Add, currently just an empty file pending
45541         definitions.
45542         * tests/test-netdb.c: New file.
45543         * doc/posix-headers/netdb.texi: Mention that we replace it if
45544         needed.
45545         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45546         netdb.
45547
45548 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45549
45550         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45551         with code.
45552
45553 2008-10-13  Bruno Haible  <bruno@clisp.org>
45554
45555         * lib/glthread/cond.c (glthread_cond_wait_func,
45556         glthread_cond_timedwait_func): Add a comment.
45557
45558 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45559
45560         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45561         * tests/test-select.c: Likewise,
45562
45563 2008-10-13  Bruno Haible  <bruno@clisp.org>
45564
45565         * lib/glthread/cond.c (glthread_cond_wait_func,
45566         glthread_cond_timedwait_func): Fix variable name.
45567         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45568
45569 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45570
45571         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45572         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45573         struct sockaddr.sa_len.
45574         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45575
45576 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45577
45578         * build-aux/pmccabe2html: Add css and css_url parameters.
45579
45580 2008-10-12  Bruno Haible  <bruno@clisp.org>
45581
45582         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45583         calling aclx_get.
45584         Reported by Rainer Tammer <tammer@tammer.net>.
45585
45586 2008-10-12  Bruno Haible  <bruno@clisp.org>
45587
45588         Use msvcrt aware primitives for creation/termination of Win32 threads.
45589         * lib/glthread/thread.c: Include <process.h>.
45590         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45591         (wrapper_func): Update signature.
45592         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45593
45594 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45595             Bruno Haible  <bruno@clisp.org>
45596
45597         Provide a Win32 implementation of the 'cond' module.
45598         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45599         * lib/glthread/cond.c (glthread_cond_init_func,
45600         glthread_cond_wait_func, glthread_cond_timedwait_func,
45601         glthread_cond_signal_func, glthread_cond_broadcast_func,
45602         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45603         * modules/cond (Dependencies): Add gettimeofday.
45604
45605 2008-10-11  Bruno Haible  <bruno@clisp.org>
45606
45607         Make sleep work on older versions of mingw.
45608         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45609         only whether it exists.
45610         * doc/posix-functions/sleep.texi: Mention the problem with older
45611         versions of mingw.
45612
45613 2008-10-11  Bruno Haible  <bruno@clisp.org>
45614
45615         New module 'shutdown'.
45616         * modules/shutdown: New file.
45617         * lib/sys_socket.in.h (shutdown): New declaration.
45618         * lib/winsock.c (shutdown): New function.
45619         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45620         GNULIB_SHUTDOWN.
45621         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45622         * doc/posix-functions/shutdown.texi: Document the new module.
45623
45624 2008-10-11  Jim Meyering  <meyering@redhat.com>
45625
45626         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45627
45628 2008-10-11  Bruno Haible  <bruno@clisp.org>
45629
45630         New module 'fclose'.
45631         * modules/fclose: New file.
45632         * lib/stdio.in.h (fclose): New declaration.
45633         * lib/fclose.c: New file.
45634         * m4/fclose.m4: New file.
45635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45636         REPLACE_FCLOSE.
45637         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45638         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45639         REPLACE_FCLOSE.
45640         * modules/close (Depends-on): fclose.
45641         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45642
45643 2008-10-11  Bruno Haible  <bruno@clisp.org>
45644
45645         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45646         set errno and don't call _close.
45647
45648 2008-10-10  Bruno Haible  <bruno@clisp.org>
45649
45650         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45651         ACL, not afterwards. Fixes test failure on Cygwin.
45652
45653 2008-10-09  Ben Pfaff  <blp@gnu.org>
45654
45655         * build-aux/announce-gen: Fix gnulib version related part of usage
45656         message.  Die with a useful error message if no tarballs are
45657         found.
45658
45659 2008-10-10  Jim Meyering  <meyering@redhat.com>
45660
45661         bootstrap: use git's --depth=N option only if it's supported
45662         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45663         recognize the --depth option.  Reported by Pádraig Brady.
45664
45665 2008-10-09  Bruno Haible  <bruno@clisp.org>
45666
45667         New module 'ioctl'.
45668         * modules/ioctl: New file.
45669         * lib/sys_socket.in.h (ioctl): Remove declaration.
45670         * lib/winsock.c: Include <sys/ioctl.h>.
45671         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45672         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45673         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45674         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45675         * doc/posix-functions/ioctl.texi: Mention the new module.
45676
45677 2008-10-09  Bruno Haible  <bruno@clisp.org>
45678
45679         New module 'sys_ioctl'.
45680         * lib/sys_ioctl.in.h: New file.
45681         * m4/sys_ioctl_h.m4: New file.
45682         * modules/sys_ioctl: New file.
45683         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45684
45685 2008-10-09  Bruno Haible  <bruno@clisp.org>
45686
45687         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45688         * lib/winsock.c: Include <stdarg.h>.
45689         (rpl_ioctl): Change to second argument 'int' and then varargs.
45690
45691 2008-10-09  Bruno Haible  <bruno@clisp.org>
45692
45693         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45694         when the sys_socket module is present and the system has <winsock2.h>.
45695
45696 2008-10-09  Bruno Haible  <bruno@clisp.org>
45697
45698         * doc/posix-functions/close.texi: Mention module 'close' instead of
45699         module 'sys_socket'.
45700
45701 2008-10-09  Bruno Haible  <bruno@clisp.org>
45702
45703         * doc/glibc-headers/sys_ioctl.texi: New file.
45704         * doc/gnulib.texi: Include it.
45705
45706 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45707             Bruno Haible  <bruno@clisp.org>
45708
45709         Combine the two replacements of 'close'.
45710         * lib/sys_socket.in.h (close): Define to a reminder to include
45711         <unistd.h>.
45712         (_gl_close_fd_maybe_socket): New declaration.
45713         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45714         * lib/winsock.c (close): Remove undefinition.
45715         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45716         needed for the gnulib module 'close'.
45717         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45718         define to an error symbol or to a warning, if suitable.
45719         * lib/close.c: Include <sys/socket.h>.
45720         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45721         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45722         UNISTD_H_HAVE_WINSOCK2_H.
45723         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45725         UNISTD_H_HAVE_WINSOCK2_H.
45726         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45727         (configure.ac): Set a module indicator.
45728         (Makefile.am): Substitute GNULIB_CLOSE.
45729         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45730         * modules/poll-tests (Depends-on): Add close.
45731         * modules/select-tests (Depends-on): Likewise.
45732
45733 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45734             Bruno Haible  <bruno@clisp.org>
45735
45736         New module 'close'.
45737         * modules/close: New file.
45738         * lib/unistd.in.h (close): Move declaration out of the
45739         FCHDIR_REPLACEMENT scope.
45740         (_gl_unregister_fd): New declaration.
45741         * lib/close.c: New file.
45742         * lib/fchdir.c (rpl_close): Remove function.
45743         * m4/close.m4: New file.
45744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45745         close.
45746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45747         REPLACE_CLOSE.
45748         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45749         REPLACE_CLOSE.
45750         * modules/fchdir (Depends-on): Add close.
45751
45752 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45753             Bruno Haible  <bruno@clisp.org>
45754
45755         * lib/fcntl.in.h (open): Simplify conditionals.
45756         (_gl_register_fd): New declaration.
45757         * lib/fchdir.c (rpl_open): Remove function.
45758         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45759         also.
45760         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45761         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45762         open.
45763
45764 2008-10-09  Jim Meyering  <meyering@redhat.com>
45765
45766         GNUmakefile: use the more name-space-friendly "_version"
45767         * top/GNUmakefile (_dummy): Update.
45768         (_version): Rename from "version".
45769
45770 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45771             Bruno Haible  <bruno@clisp.org>
45772
45773         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45774         rpl_close.
45775         (_gl_register_fd): New function, extracted from rpl_open.
45776         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45777         (rpl_open, rpl_opendir): Use _gl_register_fd.
45778
45779 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45780
45781         Fix organization of 'open' replacement.
45782         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45783         (gl_FUNC_OPEN): Use it.
45784         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45785
45786 2008-10-08  Bruno Haible  <bruno@clisp.org>
45787
45788         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45789
45790 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45791
45792         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45793         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45794         listen).
45795
45796 2008-10-08  Eric Blake  <ebb9@byu.net>
45797
45798         GNUmakefile: add 'make version' target
45799         * top/GNUmakefile (_curr-ver): Split version update rules...
45800         (version): ...into a target.
45801
45802 2008-10-07  Bruno Haible  <bruno@clisp.org>
45803
45804         Use a more portable replacement expression for -0.0L.
45805         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45806         instead of -0.0L. Fix m4 quotation.
45807
45808         * tests/test-signbit.c: Include <float.h>.
45809         (minus_zero): New variable.
45810         (test_signbitl): Use minus_zero instead of -zero.
45811         * modules/signbit-tests (Depends-on): Add float.
45812
45813         * tests/test-ceill.c: Include <float.h>.
45814         (zero): Remove variable.
45815         (minus_zero): New variable.
45816         (main): Use minus_zero instead of -zero.
45817         * modules/ceill-tests (Depends-on): Add float.
45818
45819         * tests/test-floorl.c: Include <float.h>.
45820         (zero): Remove variable.
45821         (minus_zero): New variable.
45822         (main): Use minus_zero instead of -zero.
45823         * modules/floorl-tests (Depends-on): Add float.
45824
45825         * tests/test-roundl.c: Include <float.h>.
45826         (zero): Remove variable.
45827         (minus_zero): New variable.
45828         (main): Use minus_zero instead of -zero.
45829         * modules/roundl-tests (Depends-on): Add float.
45830
45831         * tests/test-truncl.c: Include <float.h>.
45832         (zero): Remove variable.
45833         (minus_zero): New variable.
45834         (main): Use minus_zero instead of -zero.
45835         * modules/truncl-tests (Depends-on): Add float.
45836
45837         * tests/test-frexpl.c (zero): Remove variable.
45838         (minus_zero): New variable.
45839         (main): Use minus_zero instead of -zero.
45840         * modules/frexpl-tests (Depends-on): Add float.
45841
45842         * tests/test-isnan.c (zerol): Remove variable.
45843         (minus_zerol): New variable.
45844         (test_long_double): Use minus_zerol instead of -zerol.
45845         * modules/isnan-tests (Depends-on): Add float.
45846
45847         * tests/test-isnanl.h (zero): Remove variable.
45848         (minus_zero): New variable.
45849         (main): Use minus_zero instead of -zero.
45850         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45851         * modules/isnanl-tests (Depends-on): Add float.
45852
45853         * tests/test-ldexpl.c (zero): Remove variable.
45854         (minus_zero): New variable.
45855         (main): Use minus_zero instead of -zero.
45856         * modules/ldexpl-tests (Depends-on): Add float.
45857
45858         * tests/test-snprintf-posix.h (zerol): Remove variable.
45859         (minus_zerol): New variable.
45860         (test_function): Use minus_zerol instead of -zerol.
45861         * modules/snprintf-posix-tests (Depends-on): Add float.
45862         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45863
45864         * tests/test-sprintf-posix.h (zerol): Remove variable.
45865         (minus_zerol): New variable.
45866         (test_function): Use minus_zerol instead of -zerol.
45867         * modules/sprintf-posix-tests (Depends-on): Add float.
45868         * modules/vsprintf-posix-tests (Depends-on): Add float.
45869
45870         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45871         (minus_zerol): New variable.
45872         (test_function): Use minus_zerol instead of -zerol.
45873         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45874
45875         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45876         (minus_zerol): New variable.
45877         (test_function): Use minus_zerol instead of -zerol.
45878         * modules/vasprintf-posix-tests (Depends-on): Add float.
45879
45880 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45881
45882         * MODULES.html.sh (Support for building documentation): Mention
45883         pmccabe2html.  Sort entries.
45884
45885         Add pmccabe2html module, from gnupdf.
45886         * build-aux/pmccabe.css: New file.
45887         * build-aux/pmccabe2html: New file.
45888         * m4/pmccabe2html.m4: New file.
45889         * modules/pmccabe2html: New file.
45890
45891 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45892
45893         flock: new module
45894         * MODULES.html.sh: Add to list of modules.
45895         * lib/flock.c: flock implementation for Windows and Unix systems
45896         which have fcntl.
45897         * doc/glibc-functions/flock.texi: Update documentation.
45898         * lib/sys_file.in.h: <sys/file.h> header file.
45899         * m4/flock.m4: M4 macros.
45900         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45901         * modules/flock: flock module.
45902         * modules/flock-tests: flock tests module.
45903         * modules/sys_file: sys/file.h module.
45904         * tests/test-flock.c: test suite for flock.
45905
45906 2008-10-06  Jim Meyering  <meyering@redhat.com>
45907
45908         bootstrap: check for LT_INIT more portably still ;-)
45909         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45910         Spotted by Bruno Haible.
45911
45912 2008-10-06  Eric Blake  <ebb9@byu.net>
45913
45914         test-signbit: avoid tripping Irix cc bug on -0.0L
45915         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45916         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45917         entire testsuite consistent and avoids an Irix 6.2 bug.
45918
45919 2008-10-05  Bruno Haible  <bruno@clisp.org>
45920             Jim Meyering  <jim@meyering.net>
45921
45922         Add an option for ignoring EPIPE during close_stdout.
45923         * lib/closeout.h: Include <stdbool.h>.
45924         (close_stdout_set_ignore_EPIPE): New declaration.
45925         * lib/closeout.c: Include <stdbool.h>.
45926         (ignore_EPIPE): New variable.
45927         (close_stdout_set_ignore_EPIPE): New function.
45928         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45929         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45930         failure.
45931         * modules/closeout (Depends-on): Add stdbool.
45932
45933 2008-10-05  Bruno Haible  <bruno@clisp.org>
45934
45935         * modules/accept: New file.
45936         * modules/bind: New file.
45937         * modules/connect: New file.
45938         * modules/getpeername: New file.
45939         * modules/getsockname: New file.
45940         * modules/getsockopt: New file.
45941         * modules/listen: New file.
45942         * modules/recv: New file.
45943         * modules/recvfrom: New file.
45944         * modules/send: New file.
45945         * modules/sendto: New file.
45946         * modules/setsockopt: New file.
45947         * modules/socket: New file.
45948         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45949         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45950         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45951         the particular module is requested. Add a link warning when the
45952         particular module is not requested.
45953         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45954         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45955         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45956         the particular module is requested.
45957         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45958         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45959         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45960         * modules/sys_socket (Depends-on): Add link-warning.
45961         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45962         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45963         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45964         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45965         GL_LINK_WARNING.
45966         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45967         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45968         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45969         * doc/posix-functions/getpeername.texi: Mention the new module
45970         'getpeername'.
45971         * doc/posix-functions/getsockname.texi: Mention the new module
45972         'getsockname'.
45973         * doc/posix-functions/getsockopt.texi: Mention the new module
45974         'getsockopt'.
45975         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45976         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45977         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45978         * doc/posix-functions/send.texi: Mention the new module 'send'.
45979         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45980         * doc/posix-functions/setsockopt.texi: Mention the new module
45981         'setsockopt'.
45982         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45983         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45984         listen, connect, accept.
45985         * modules/select-tests (Depends-on): Likewise.
45986
45987 2008-10-05  Bruno Haible  <bruno@clisp.org>
45988
45989         * lib/winsock.c (strerror): Remove unused #undef.
45990         (rpl_close): Remove unused local variable.
45991
45992         * modules/sys_socket (Depends-on); Add errno.
45993
45994 2008-10-05  Bruno Haible  <bruno@clisp.org>
45995
45996         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45997         (select): Add a link warning when the 'select' module is not used.
45998         * modules/sys_select (Depends-on): Add link-warning.
45999         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46000         Suggested by Paolo Bonzini.
46001
46002 2008-10-05  Jim Meyering  <meyering@redhat.com>
46003
46004         bootstrap: check for LT_INIT more portably
46005         * build-aux/bootstrap: Avoid using grep -E, since it's not
46006         portable enough.  Suggestion from Bruno Haible.
46007
46008 2008-10-05  Bruno Haible  <bruno@clisp.org>
46009
46010         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46011         as being fixed by gnulib.
46012
46013 2008-10-05  Bruno Haible  <bruno@clisp.org>
46014
46015         * modules/select-tests: New file, mostly copied from
46016         modules/sys_select-tests.
46017         * tests/test-select.c: New file, mostly copied from
46018         tests/test-sys_select.c.
46019         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46020         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46021         (Makefile.am): Remove test_sys_select_LDADD.
46022
46023         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46024         to an undefined symbol, for an error message.
46025         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46026         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46027         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46028         winsock-select.c here.
46029         * modules/sys_select (Files): Remove lib/winsock-select.c.
46030         (Depends-on): Remove alloca.
46031         (Makefile.am): Substitute GNULIB_SELECT.
46032         * modules/select: New file.
46033         * doc/posix-functions/select.texi: Update.
46034
46035 2008-10-05  Bruno Haible  <bruno@clisp.org>
46036
46037         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46038         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46039         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46040         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46041         getdtablesize.
46042         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46043         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46044
46045 2008-10-05  Bruno Haible  <bruno@clisp.org>
46046
46047         * modules/getdtablesize-tests: New file.
46048         * tests/test-getdtablesize.c: New file.
46049
46050         New module 'getdtablesize'.
46051         * lib/unistd.in.h (getdtablesize): New declaration.
46052         * lib/getdtablesize.c: New file.
46053         * m4/getdtablesize.m4: New file.
46054         * modules/getdtablesize: New file.
46055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46056         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46057         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46058         HAVE_GETDTABLESIZE.
46059         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46060
46061 2008-10-05  Bruno Haible  <bruno@clisp.org>
46062
46063         * modules/sched (Makefile.am): Fix typo.
46064         Reported by Simon Josefsson.
46065
46066 2008-10-05  Jim Meyering  <meyering@redhat.com>
46067
46068         bootstrap: check for LT_INIT, too
46069         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46070         are deprecated.  Suggestion from Ralf Wildenhues.
46071
46072 2008-10-05  Bruno Haible  <bruno@clisp.org>
46073
46074         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46075         overriding them by ours.
46076         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46077
46078 2008-10-05  Jim Meyering  <meyering@redhat.com>
46079
46080         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46081         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46082         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46083
46084 2008-10-04  Bruno Haible  <bruno@clisp.org>
46085
46086         * modules/dup2 (License): Change to LGPLv2+.
46087         * modules/sleep (License): Likewise.
46088         * modules/perror (License): Likewise.
46089         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46090         Blake.
46091         * modules/signal (License): Likewise.
46092         * modules/sigprocmask (License): Likewise.
46093         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46094         Meyering.
46095
46096 2008-10-04  Bruno Haible  <bruno@clisp.org>
46097
46098         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46099         Reported by Rainer Tammer <tammer@tammer.net>.
46100
46101 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46102             Bruno Haible  <bruno@clisp.org>
46103
46104         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46105         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46106         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46107
46108 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46109
46110         filevercmp: new module
46111         * lib/filevercmp.h: New function filevercmp comparing version strings.
46112         * lib/filevercmp.c: Implementation of filevercmp function.
46113         * modules/filevercmp: Module metadata.
46114         * tests/test-filevercmp.c: Unit test for new module.
46115         * modules/filevercmp-tests: Unit test metadata.
46116         * MODULES.html.sh: Add filevercmp module.
46117
46118 2008-10-03  Bruno Haible  <bruno@clisp.org>
46119
46120         * lib/c-ctype.h: Add comment.
46121         Reported by Jim Meyering.
46122
46123 2008-10-02  Bruno Haible  <bruno@clisp.org>
46124
46125         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46126
46127 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46128
46129         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46130         name of bootstrap.conf accordingly.
46131
46132 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46133
46134         * build-aux/bootstrap: Install git-merge-changelog configuration
46135         items into .gitconfig if needed.
46136
46137 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46138
46139         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46140         git repository, and initialize/update it accordingly.
46141
46142 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46143
46144         * modules/fsync-tests: New file.
46145         * tests/test-fsync.c: New file.
46146
46147         New module 'fsync'.
46148         * lib/fsync.c: New file.
46149         * m4/fsync.m4: New file.
46150         * modules/fsync: New file.
46151         * lib/unistd.in.h (fsync): New declaration.
46152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46153         GNULIB_FSYNC and HAVE_FSYNC.
46154         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46155         * MODULES.html.sh (posix_functions): Add fsync.
46156         * doc/posix-functions/fsync.texi: Mention the new module.
46157
46158 2008-10-02  Jim Meyering  <meyering@redhat.com>
46159
46160         fts.c: sync with similar code from coreutils' remove.c
46161         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46162         Guard also with "#if defined __linux__", since for now at least,
46163         this code is Linux-kernel-specific.
46164
46165 2008-10-02  Jim Meyering  <meyering@redhat.com>
46166
46167         fts: bug fixes
46168         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46169         Include <sys/vfs.h>, not <sys/statfs.h>.
46170
46171         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46172         Include <sys/vfs.h>, not <sys/statfs.h>.
46173
46174 2008-10-01  Bruno Haible  <bruno@clisp.org>
46175
46176         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46177         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46178         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46179         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46180         * doc/posix-functions/posix_spawnp.texi: Likewise.
46181         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46182         whether posix_spawn actually works.
46183         * m4/pipe.m4 (gl_PIPE): Likewise.
46184         * modules/execute (Files): Add m4/posix_spawn.m4.
46185         * modules/pipe (Files): Add m4/posix_spawn.m4.
46186         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46187
46188 2008-10-01  Jim Meyering  <meyering@redhat.com>
46189
46190         remove trailing spaces
46191         * NEWS: Likewise.
46192         * lib/poll.c (poll): Likewise.
46193         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46194         * lib/winsock.c (rpl_close): Likewise.
46195         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46196         * modules/yield: Likewise.
46197         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46198         * tests/test-sys_select.c (connect_to_socket): Likewise.
46199
46200         fts.c: adjust a new interface to be more generally useful
46201         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46202         (fts_build): Adjust caller.
46203
46204 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46205
46206         * modules/cond-tests: New file.
46207         * tests/test-cond.c: New file.
46208
46209 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46210             Bruno Haible  <bruno@clisp.org>
46211
46212         * modules/cond (Dependencies): Add errno, time.
46213         * lib/glthread/cond.h: Include <time.h>.
46214         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46215         across platforms.
46216
46217 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46218             Bruno Haible  <bruno@clisp.org>
46219
46220         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46221
46222 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46223             Bruno Haible  <bruno@clisp.org>
46224
46225         * modules/tls-tests (Depends-on): Add thread, yield.
46226         (configure.ac): Remove all checks.
46227         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46228         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46229         gl_thread_self): Remove definitions. Include glthread/thread.h and
46230         glthread/yield.h instead.
46231         (test_tls): Pass an additional NULL argument to gl_thread_join.
46232
46233 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46234             Bruno Haible  <bruno@clisp.org>
46235
46236         * modules/lock-tests (Depends-on): Add thread, yield.
46237         (configure.ac): Remove all checks.
46238         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46239         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46240         gl_thread_self): Remove definitions. Include glthread/thread.h and
46241         glthread/yield.h instead.
46242         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46243         additional NULL argument to gl_thread_join.
46244
46245 2008-09-30  Bruno Haible  <bruno@clisp.org>
46246
46247         Fix the Win32 implementation of the 'thread' module.
46248         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46249         pointer type.
46250         (gl_thread_self): Invoke gl_thread_self_func.
46251         (gl_thread_self_func): New declaration.
46252         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46253         (do_init_self_key, init_self_key): New functions.
46254         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46255         Remove some fields.
46256         (running_threads, running_lock): Remove variables.
46257         (get_current_thread_handle): New function.
46258         (gl_thread_self_func, wrapper_func, glthread_create_func,
46259         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46260         simplified.
46261
46262 2008-09-30  Bruno Haible  <bruno@clisp.org>
46263
46264         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46265         files.
46266
46267 2008-09-30  Jim Meyering  <meyering@redhat.com>
46268
46269         fts.m4: correct the test for statfs.f_type
46270         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46271         when checking for statfs.f_type.
46272
46273 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46274
46275         tests: avoid some compiler warnings
46276         * tests/test-memchr.c (main): Pass NULL indirectly.
46277         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46278
46279 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46280
46281         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46282         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46283         exactly specified dayshifts.
46284         (dayshift): New rule.
46285         (rel): Add dayshift.
46286         (relative_time_table) [tomorrow, yesterday, today, now]:
46287         Use tDAY_SHIFT in place of tDAY_UNIT.
46288         * tests/test-getdate.c: Add tests for now-disallowed countable
46289         dayshifts, e.g., "4 yesterday ago".
46290
46291 2008-09-29  Bruno Haible  <bruno@clisp.org>
46292
46293         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46294         * tests/test-posix_spawn1.in.sh: Renamed from
46295         tests/test-posix_spawn.in.sh.
46296         * tests/test-posix_spawn2.c: New file.
46297         * tests/test-posix_spawn2.in.sh: New file.
46298         * modules/posix_spawnp-tests (Files): Update.
46299         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46300
46301 2008-09-29  Bruno Haible  <bruno@clisp.org>
46302
46303         Propagate effects of putenv/setenv/unsetenv to child processes.
46304         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46305         * lib/pipe.c (create_pipe): Likewise.
46306
46307 2008-09-29  Bruno Haible  <bruno@clisp.org>
46308
46309         Enable use of shell scripts as executables in mingw.
46310         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46311         run the program as a shell script.
46312         * lib/pipe.c (create_pipe): Likewise.
46313         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46314         resulting array.
46315
46316 2008-09-29  Eric Blake  <ebb9@byu.net>
46317
46318         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46319
46320 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46321
46322         * doc/posix-functions/accept.texi: Update mingw problems.
46323         * doc/posix-functions/bind.texi: Update mingw problems.
46324         * doc/posix-functions/close.texi: Update mingw problems.
46325         * doc/posix-functions/connect.texi: Update mingw problems.
46326         * doc/posix-functions/getpeername.texi: Update mingw problems.
46327         * doc/posix-functions/getsockname.texi: Update mingw problems.
46328         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46329         * doc/posix-functions/ioctl.texi: Update mingw problems.
46330         * doc/posix-functions/listen.texi: Update mingw problems.
46331         * doc/posix-functions/recv.texi: Update mingw problems.
46332         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46333         * doc/posix-functions/select.texi: Update mingw problems.
46334         * doc/posix-functions/send.texi: Update mingw problems.
46335         * doc/posix-functions/sendto.texi: Update mingw problems.
46336         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46337         * doc/posix-functions/socket.texi: Update mingw problems.
46338
46339 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46340             Bruno Haible  <bruno@clisp.org>
46341
46342         * lib/sys_select.in.h: Include sys/time.h.
46343         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46344         * modules/sys_select: Depend on sys_time.
46345         * tests/test-sys_select.c: Test that sys/select.h defines struct
46346         timeval fully.
46347
46348 2008-09-29  Bruno Haible  <bruno@clisp.org>
46349
46350         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46351         * lib/sys_select.in.h: Likewise.
46352
46353 2008-09-29  Bruno Haible  <bruno@clisp.org>
46354
46355         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46356
46357 2008-09-29  Bruno Haible  <bruno@clisp.org>
46358
46359         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46360         Set LIBSOCKET instead of augmenting LIBS.
46361         * modules/sockets (Link): New section.
46362         * modules/sockets-tests (test_sockets_LDADD): New variable.
46363         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46364         * modules/poll-tests (test_poll_LDADD): New variable.
46365         * NEWS: Document the change.
46366
46367 2008-09-29  Bruno Haible  <bruno@clisp.org>
46368
46369         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46370         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46371         ARPA_INET_H directly.
46372         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46373
46374 2008-09-28  Bruno Haible  <bruno@clisp.org>
46375
46376         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46377         from gl_HEADER_SYS_SOCKET.
46378         (gl_HEADER_SYS_SOCKET): Invoke it.
46379         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46380
46381 2008-09-28  Bruno Haible  <bruno@clisp.org>
46382
46383         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46384         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46385         Needed on OSF/1 4.0.
46386
46387 2008-09-28  Bruno Haible  <bruno@clisp.org>
46388
46389         Override open more carefully.
46390         * lib/open.c (orig_open): New function.
46391         (rpl_open): Use orig_open instead of open.
46392         * lib/fcntl.in.h: Add special invocation convention.
46393         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46394         (gl_FUNC_OPEN): Invoke it.
46395
46396         Override freopen more carefully.
46397         * lib/freopen.c (orig_freopen): New function.
46398         (rpl_freopen): Use orig_freopen instead of freopen.
46399         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46400         (gl_FUNC_FREOPEN): Invoke it.
46401
46402         Override fopen more carefully.
46403         * lib/fopen.c (orig_fopen): New function.
46404         (rpl_fopen): Use orig_fopen instead of fopen.
46405         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46406         (gl_FUNC_FOPEN): Invoke it.
46407         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46408
46409 2008-09-28  Bruno Haible  <bruno@clisp.org>
46410
46411         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46412         SIGPIPE.
46413
46414 2008-09-28  Bruno Haible  <bruno@clisp.org>
46415
46416         * tests/test-sigaction.c (handler, main): Disable the check whether
46417         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46418         glibc systems with LinuxThreads.
46419
46420 2008-09-28  Bruno Haible  <bruno@clisp.org>
46421
46422         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46423
46424         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46425         with AIX xlc.
46426         * lib/fcntl.in.h (open): Likewise.
46427         Reported by Rainer Tammer <tammer@tammer.net>.
46428
46429 2008-09-28  Bruno Haible  <bruno@clisp.org>
46430
46431         * modules/posix_spawnp-tests: New file.
46432         * tests/test-posix_spawn.c: New file.
46433         * tests/test-posix_spawn.in.sh: New file.
46434
46435         New module 'posix_spawnp'.
46436         * modules/posix_spawnp: New file.
46437         * lib/spawnp.c: New file, from GNU libc with modifications.
46438         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46439
46440         New module 'posix_spawn'.
46441         * modules/posix_spawn: New file.
46442         * lib/spawn.c: New file, from GNU libc with modifications.
46443         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46444
46445         New module 'posix_spawnattr_destroy'.
46446         * modules/posix_spawnattr_destroy: New file.
46447         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46448         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46449         module.
46450
46451         New module 'posix_spawnattr_setsigmask'.
46452         * modules/posix_spawnattr_setsigmask: New file.
46453         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46454         modifications.
46455         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46456         new module.
46457
46458         New module 'posix_spawnattr_getsigmask'.
46459         * modules/posix_spawnattr_getsigmask: New file.
46460         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46461         modifications.
46462         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46463         new module.
46464
46465         New module 'posix_spawnattr_setsigdefault'.
46466         * modules/posix_spawnattr_setsigdefault: New file.
46467         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46468         modifications.
46469         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46470         new module.
46471
46472         New module 'posix_spawnattr_getsigdefault'.
46473         * modules/posix_spawnattr_getsigdefault: New file.
46474         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46475         modifications.
46476         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46477         new module.
46478
46479         New module 'posix_spawnattr_setschedpolicy'.
46480         * modules/posix_spawnattr_setschedpolicy: New file.
46481         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46482         modifications.
46483         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46484         new module.
46485
46486         New module 'posix_spawnattr_getschedpolicy'.
46487         * modules/posix_spawnattr_getschedpolicy: New file.
46488         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46489         modifications.
46490         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46491         new module.
46492
46493         New module 'posix_spawnattr_setschedparam'.
46494         * modules/posix_spawnattr_setschedparam: New file.
46495         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46496         modifications.
46497         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46498         new module.
46499
46500         New module 'posix_spawnattr_getschedparam'.
46501         * modules/posix_spawnattr_getschedparam: New file.
46502         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46503         modifications.
46504         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46505         new module.
46506
46507         New module 'posix_spawnattr_setpgroup'.
46508         * modules/posix_spawnattr_setpgroup: New file.
46509         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46510         modifications.
46511         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46512         module.
46513
46514         New module 'posix_spawnattr_getpgroup'.
46515         * modules/posix_spawnattr_getpgroup: New file.
46516         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46517         modifications.
46518         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46519         module.
46520
46521         New module 'posix_spawnattr_setflags'.
46522         * modules/posix_spawnattr_setflags: New file.
46523         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46524         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46525         module.
46526
46527         New module 'posix_spawnattr_getflags'.
46528         * modules/posix_spawnattr_getflags: New file.
46529         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46530         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46531         module.
46532
46533         New module 'posix_spawnattr_init'.
46534         * modules/posix_spawnattr_init: New file.
46535         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46536         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46537         module.
46538
46539         New module 'posix_spawn_file_actions_destroy'.
46540         * modules/posix_spawn_file_actions_destroy: New file.
46541         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46542         modifications.
46543         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46544         the new module.
46545
46546         New module 'posix_spawn_file_actions_addopen'.
46547         * modules/posix_spawn_file_actions_addopen: New file.
46548         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46549         modifications.
46550         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46551         the new module.
46552
46553         New module 'posix_spawn_file_actions_adddup2'.
46554         * modules/posix_spawn_file_actions_adddup2: New file.
46555         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46556         modifications.
46557         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46558         the new module.
46559
46560         New module 'posix_spawn_file_actions_addclose'.
46561         * modules/posix_spawn_file_actions_addclose: New file.
46562         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46563         modifications.
46564         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46565         the new module.
46566
46567         New module 'posix_spawn_file_actions_init'.
46568         * modules/posix_spawn_file_actions_init: New file.
46569         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46570         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46571         new module.
46572
46573         New module 'posix_spawn-internal'.
46574         * modules/posix_spawn-internal: New file.
46575         * lib/spawn_int.h: New file, from GNU libc with modifications.
46576         * lib/spawni.c: New file, from GNU libc with modifications.
46577         * m4/posix_spawn.m4: New file.
46578
46579         New module 'spawn'.
46580         * modules/spawn: New file.
46581         * lib/spawn.in.h: New file, from GNU libc with modifications.
46582         * m4/spawn_h.m4: New file.
46583         * doc/posix-headers/spawn.texi: Mention the new module.
46584
46585 2008-09-28  Bruno Haible  <bruno@clisp.org>
46586
46587         * modules/sched-tests: New file.
46588         * tests/test-sched.c: New file.
46589
46590         New module 'sched'.
46591         * modules/sched: New file.
46592         * lib/sched.in.h: New file.
46593         * m4/sched_h.m4: New file.
46594         * doc/posix-headers/sched.texi: Mention the new module.
46595
46596 2008-09-27  Eric Blake  <ebb9@byu.net>
46597
46598         Fix previous patch, and tweak references to $0.
46599         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46600         (func_version, func_gnulib_dir): Don't call this program
46601         gnulib-tool.
46602         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46603         with using $0 in function.
46604         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46605         (func_fatal_error): Reuse the name the user invoked us with.
46606
46607 2008-09-27  Bruno Haible  <bruno@clisp.org>
46608
46609         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46610         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46611         (gl_ICONV_H): Not here.
46612         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46613         instead of assigning ICONV_H directly.
46614
46615         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46616         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46617         WCHAR_H directly.
46618
46619 2008-09-27  Bruno Haible  <bruno@clisp.org>
46620
46621         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46622         * modules/arpa_inet (Depends-on): Add link-warning.
46623         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46624         * modules/unistd (Makefile.am): Likewise.
46625
46626 2008-09-26  Bruno Haible  <bruno@clisp.org>
46627
46628         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46629         variables.
46630         (func_version): Essentially copied from gnulib-tool.
46631         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46632         func_readlink): Copied from gnulib-tool.
46633
46634 2008-09-26  Bruno Haible  <bruno@clisp.org>
46635
46636         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46637         invoking git-version-gen.
46638
46639 2008-09-26  Bruno Haible  <bruno@clisp.org>
46640
46641         * posix-modules: Update to directory names changed on 2008-01-19.
46642         Remove commas in output before splitting into words. No more need to
46643         avoid 'ftruncate' since 2007-02-19.
46644
46645 2008-09-26  Bruno Haible  <bruno@clisp.org>
46646
46647         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46648
46649 2008-09-26  Bruno Haible  <bruno@clisp.org>
46650
46651         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46652         * modules/fwriteerror (Depends-on): Add errno.
46653
46654 2008-09-26  Bruno Haible  <bruno@clisp.org>
46655
46656         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46657         * tests/test-vc-list-files-cvs.sh: Likewise.
46658
46659 2008-09-26  Bruno Haible  <bruno@clisp.org>
46660
46661         * doc/posix-headers/sys_resource.texi: Reorder items.
46662
46663 2008-09-26  Jim Meyering  <meyering@redhat.com>
46664
46665         fts: tweak inode comparison function
46666         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46667         inode numbers, as documented.
46668
46669         fts: sort dirent entries on inode number before traversing
46670         This avoids a quadratic, seek-related performance penalty when
46671         operating on a directory containing many entries (measurable at 10k;
46672         3.5 hours at 2 million entries with a cold cache) on certain types
46673         of file systems, including ext3 and ext4, but not tmpfs.
46674         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46675         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46676         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46677         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46678         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46679         (fts_build): Set the stat.st_ino member from D_INO.
46680         If it is likely to be useful, sort dirent entries on inode number.
46681
46682         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46683         and the struct statfs.f_type member.
46684         * modules/fts (Depends-on): Add d-ino.
46685
46686 2008-09-26  Bruno Haible  <bruno@clisp.org>
46687
46688         * modules/sigpipe-die (Depends-on): Add sigpipe.
46689
46690         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46691         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46692         and GNULIB_STDIO_H_SIGPIPE are set.
46693         * lib/stdio-write.c: New file.
46694         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46695         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46696         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46697         REPLACE_STDIO_WRITE_FUNCS.
46698         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46699         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46700         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46701         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46702         * modules/stdio (Files): Add lib/stdio-write.c.
46703         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46704         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46705         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46706         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46707         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46708         REPLACE_FPRINTF_POSIX.
46709         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46710         REPLACE_PRINTF_POSIX.
46711         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46712         REPLACE_VFPRINTF_POSIX.
46713         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46714         REPLACE_VPRINTF_POSIX.
46715         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46716         SIGPIPE issue.
46717         * doc/posix-functions/fputc.texi: Likewise.
46718         * doc/posix-functions/fputs.texi: Likewise.
46719         * doc/posix-functions/fwrite.texi: Likewise.
46720         * doc/posix-functions/printf.texi: Likewise.
46721         * doc/posix-functions/putc.texi: Likewise.
46722         * doc/posix-functions/putchar.texi: Likewise.
46723         * doc/posix-functions/puts.texi: Likewise.
46724         * doc/posix-functions/vfprintf.texi: Likewise.
46725         * doc/posix-functions/vprintf.texi: Likewise.
46726
46727         * modules/safe-write (Depends-on): Add write.
46728
46729         * modules/sigpipe-tests: New file.
46730         * tests/test-sigpipe.c: New file.
46731         * tests/test-sigpipe.sh: New file.
46732
46733         * modules/write: New file.
46734         * lib/unistd.in.h: Include <sys/types.h>.
46735         (write): New declaration.
46736         * lib/write.c: New file.
46737         * m4/write.m4: New file.
46738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46739         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46740         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46741         GNULIB_WRITE, REPLACE_WRITE.
46742         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46743         and the SIGPIPE issue.
46744
46745         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46746         (raise): New declaration.
46747         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46748         (ext_signal): New function.
46749         (rpl_raise): New function.
46750         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46751         GNULIB_SIGNAL_H_SIGPIPE.
46752         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46753         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46754
46755         * modules/sigpipe: New file.
46756         * m4/sigpipe.m4: New file.
46757
46758 2008-09-25  Derek Price  <derek@ximbiot.com>
46759             Bruno Haible  <bruno@clisp.org>
46760
46761         * gnulib-tool (func_import): Report all license incompatibilities, not
46762         just the first one.
46763
46764 2008-09-25  Bruno Haible  <bruno@clisp.org>
46765
46766         * gnulib-tool (func_import): When computing the edits, consider not
46767         only the Makefile.ams that exist but also those that will be generated.
46768
46769 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46770
46771         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46772         fixes gnulib-tool --test warning about duplicate dependency.
46773
46774 2008-09-25  Bruno Haible  <bruno@clisp.org>
46775
46776         * gnulib-tool: Don't ask the user to perform edits in the generated
46777         Makefile.ams.
46778         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46779         apply to the Makefile.am being generated.
46780         (func_emit_tests_Makefile_am): Execute edits that apply to the
46781         Makefile.am being generated.
46782         (func_import): Setup list of Makefile.am edits before emitting the
46783         Makefile.ams, not at the end.
46784         (func_create_testdir): Update.
46785         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46786
46787 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46788
46789         * gnulib-tool (func_import): Store the --tests-base option in the
46790         comment in gnulib-cache.m4.
46791
46792 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46793
46794         * NEWS: Document increased portability that sys_select now provides.
46795
46796         * lib/sys_select.in.h: Install select wrapper.
46797         * lib/sys_socket.in.h: Use more descriptive name when there is no
46798         select wrapper.
46799         * lib/winsock-select.c: New.
46800         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46801         Require gl_HEADER_SYS_SOCKET.
46802         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46803         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46804         * tests/test-sys_select.c: Add functional tests.
46805
46806 2008-09-24  Eric Blake  <ebb9@byu.net>
46807
46808         open, fopen: close fd leak in last patch
46809         * lib/open.c (rpl_open): Close fd before returning error.
46810         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46811         * doc/posix-functions/open.texi (open): Document that Irix also
46812         has the bug.
46813         * doc/posix-functions/fopen.texi (fopen): Likewise.
46814         Reported by Paolo Bonzini.
46815
46816 2008-09-24  Bruno Haible  <bruno@clisp.org>
46817
46818         Ensure that a filename ending in a slash cannot be used to access a
46819         non-directory.
46820         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46821         to check whether it's really a directory.
46822         * lib/fopen.c: Include fcntl.h, unistd.h.
46823         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46824         and fdopen().
46825         * modules/fopen (Depends-on): Add unistd.
46826         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46827         * tests/test-fopen.c (main): Likewise.
46828         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46829         * doc/posix-functions/fopen.texi: Likewise.
46830         Reported by Eric Blake.
46831
46832 2008-09-23  Eric Blake  <ebb9@byu.net>
46833
46834         c-stack: avoid compiler optimizations when provoking overflow
46835         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46836         recursion harder to optimize, to ensure a stack overflow occurs.
46837         * tests/test-c-stack.c (recurse): Likewise.
46838         Borrowed from libsigsegv.
46839
46840         c-stack: work around Irix sigaltstack bug
46841         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46842         whether sigaltstack uses wrong end of stack_t (copied in part from
46843         libsigsegv).
46844         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46845         Irix bug, without requiring an over-allocation.
46846         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46847         bug.
46848
46849         fopen: document mingw bug on directories
46850         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46851         not allowing a stream visiting a directory, even though reading
46852         from such a stream is not portable.
46853
46854 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46855
46856         * lib/poll.c: Rewrite.
46857         * modules/poll: Depend on alloca.
46858
46859 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46860
46861         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46862         instead define prototypes for a full set of wrappers.  Ensure
46863         that Cygwin does not use the compatibility code, which is only
46864         for MinGW.
46865         * lib/winsock.c: New.
46866         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46867         * modules/sys_socket: Add lib/winsock.c.
46868
46869         * modules/poll-tests: Add errno and perror.
46870         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46871
46872 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46873
46874         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46875
46876 2008-09-23  Bruno Haible  <bruno@clisp.org>
46877
46878         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46879         * doc/glibc-functions/*: Likewise.
46880
46881 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46882
46883         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46884         success.
46885
46886 2008-09-22  Eric Blake  <ebb9@byu.net>
46887             Bruno Haible  <bruno@clisp.org>
46888
46889         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46890         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46891         supply %A but mishandle pseudo-NaN.
46892         Reported by Simon Josefsson.
46893
46894 2008-09-21  Bruno Haible  <bruno@clisp.org>
46895
46896         * tests/test-lock.c (main): Tweak skip message.
46897         * tests/test-tls.c (main): Likewise.
46898
46899 2008-09-21  Bruno Haible  <bruno@clisp.org>
46900
46901         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46902         whether 'struct sigaction' has sa_sigaction here...
46903         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46904         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46905
46906 2008-09-21  Bruno Haible  <bruno@clisp.org>
46907
46908         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46909         section.
46910         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46911         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46912         the new section.
46913         (Support for obsolete systems lacking POSIX:2001): New section.
46914         (String handling <string.h>): Move strdup to the new section.
46915         Suggested by Simon Josefsson and Paolo Bonzini.
46916
46917 2008-09-21  Bruno Haible  <bruno@clisp.org>
46918
46919         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46920         exponents in %e and %g results on 'long double'. Needed for mingw's
46921         improved *printf functions.
46922         * tests/test-vasprintf-posix.c (test_function): Likewise.
46923         * tests/test-snprintf-posix.h (test_function): Likewise.
46924         * tests/test-sprintf-posix.h (test_function): Likewise.
46925         Reported by Eric Blake.
46926
46927 2008-09-21  Bruno Haible  <bruno@clisp.org>
46928
46929         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46930         * tests/test-sprintf-posix.h (test_function): Likewise.
46931
46932 2008-09-21  Bruno Haible  <bruno@clisp.org>
46933
46934         * modules/getpass (Depends-on): Add strdup-posix.
46935
46936         New module 'strdup-posix'.
46937         * modules/strdup-posix: New file.
46938         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46939         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46940         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46941         REPLACE_STRDUP.
46942         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46943         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46944         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46945         strdup-posix.
46946
46947         * modules/strdup (Depends-on): Remove malloc-posix.
46948
46949 2008-09-20  Bruno Haible  <bruno@clisp.org>
46950
46951         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46952         Wildenhues.
46953
46954 2008-09-20  Bruno Haible  <bruno@clisp.org>
46955
46956         Ensure that wint_t gets defined on IRIX 5.3.
46957         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46958         * lib/wctype.in.h (wint_t): Likewise.
46959         (__wctype_wint_t): Remove type.
46960         (isw*): Use wint_t instead of __wctype_wint_t.
46961         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46962         * modules/wchar (Files): Add m4/wint_t.m4.
46963         (Makefile.am): Substitute HAVE_WINT_T.
46964         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46965         * tests/test-wctype.c: Check that wint_t is defined.
46966         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46967         * doc/posix-headers/wctype.texi: Likewise.
46968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46969
46970 2008-09-18  Bruno Haible  <bruno@clisp.org>
46971
46972         * gnulib-tool (func_exit): Update comment.
46973
46974 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46975
46976         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46977         assumes strdup exists and does not depend on strdup to return
46978         ENOMEM on out of memory conditions.
46979
46980 2008-09-18  Bruno Haible  <bruno@clisp.org>
46981
46982         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46983         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46984         digits for the exponent.
46985
46986 2008-09-18  Jim Meyering  <meyering@redhat.com>
46987             Bruno Haible  <bruno@clisp.org>
46988
46989         * lib/vasnprintf.c (decimal_point_char): Define also if
46990         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46991
46992 2008-09-16  Bruno Haible  <bruno@clisp.org>
46993         and Eric Blake  <ebb9@byu.net>
46994
46995         vasnprintf: support Irix 5.3
46996         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46997         that mishandle long double infinity.
46998         Reported by Tom G. Christensen.
46999
47000 2008-09-16  Bruno Haible  <bruno@clisp.org>
47001
47002         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47003         Solaris 9.
47004         * doc/glibc-functions/alphasort.texi: Likewise.
47005         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47006
47007 2008-09-16  Jim Meyering  <meyering@redhat.com>
47008
47009         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47010         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47011         a umask modification leak out of a subshell.  Otherwise, the
47012         opensolaris /bin/sh would be accepted and thus cause unwarranted
47013         failures in the coreutils test suite.
47014
47015 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47016
47017         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47018         to succeed.
47019
47020 2008-09-16  Jim Meyering  <meyering@redhat.com>
47021
47022         avoid spurious test failure when library is built without ACL support
47023         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47024         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47025         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47026         * tests/test-copy-acl.sh: Likewise.
47027
47028 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47029
47030         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47031         based on character occurrence counts.
47032
47033 2008-09-15  Eric Blake  <ebb9@byu.net>
47034
47035         tests: avoid some compiler warnings
47036         * tests/test-memchr.c (main): Pass NULL indirectly.
47037         * tests/test-closein.c (main): Avoid unused variable.
47038
47039 2008-09-15  Bruno Haible  <bruno@clisp.org>
47040
47041         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47042         are missing on OpenBSD 4.0 individually.
47043         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47044
47045 2008-09-15  Bruno Haible  <bruno@clisp.org>
47046
47047         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47048         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47049         * doc/posix-functions/perror.texi: Likewise.
47050         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47051         is missing.
47052         Reported by Eric Blake.
47053
47054         * lib/errno.in.h: Use replacement values >= 2000.
47055         Reported by Eric Blake.
47056
47057 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47058
47059         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47060         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47061         limit.
47062         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47063         compareseq was aborted.
47064
47065 2008-09-14  Bruno Haible  <bruno@clisp.org>
47066
47067         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47068         yvec_edit_count.
47069         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47070         (fstrcmp_bounded): Simplify result computation accordingly.
47071
47072 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47073
47074         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47075         (fstrcmp): Define in terms of fstrcmp_bounded.
47076         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47077         lower_bound argument.
47078         Return quickly if the result is certainly < lower_bound.
47079         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47080
47081 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47082
47083         * lib/diffseq.h (EARLY_ABORT): New macro.
47084         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47085         evaluates to true.
47086
47087 2008-09-14  Bruno Haible  <bruno@clisp.org>
47088
47089         * modules/perror-tests: New file.
47090         * tests/test-perror.sh: New file.
47091         * tests/test-perror.c: New file.
47092
47093         New module 'perror'.
47094         * lib/stdio.in.h (perror): New declaration.
47095         * lib/perror.c: New file.
47096         * m4/perror.m4: New file.
47097         * modules/perror: New file.
47098         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47099         * doc/posix-functions/perror.texi: Mention the perror module.
47100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47101         REPLACE_PERROR.
47102         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47103         REPLACE_PERROR.
47104
47105 2008-09-14  Bruno Haible  <bruno@clisp.org>
47106
47107         * modules/stdio (Makefile.am): Reorder to match the order in
47108         lib/stdio.in.h.
47109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47110
47111 2008-09-13  Bruno Haible  <bruno@clisp.org>
47112
47113         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47114
47115 2008-09-13  Bruno Haible  <bruno@clisp.org>
47116
47117         Extend strerror to cover the added errno values.
47118         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47119         (rpl_strerror): Provide error messages for the added errno values and
47120         for the WSA* values.
47121         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47122         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47123         strerror.
47124         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47125         * modules/strerror (Depends-on): Add errno.
47126         * doc/posix-functions/strerror.texi: Document the change.
47127         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47128         and EOVERFLOW.
47129
47130 2008-09-13  Bruno Haible  <bruno@clisp.org>
47131
47132         * modules/EOVERFLOW: Remove file.
47133         * m4/eoverflow.m4: Remove file.
47134         * modules/EOVERFLOW-tests: Remove file.
47135         * tests/test-EOVERFLOW.c: Remove file.
47136         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47137         * modules/ftell (Depends-on): Likewise.
47138         * modules/getdelim (Depends-on): Likewise.
47139         * modules/getugroups (Depends-on): Likewise.
47140         * modules/poll (Depends-on): Likewise.
47141         * modules/snprintf (Depends-on): Likewise.
47142         * modules/sprintf-posix (Depends-on): Likewise.
47143         * modules/vasnprintf (Depends-on): Likewise.
47144         * modules/vasprintf (Depends-on): Likewise.
47145         * modules/vfprintf-posix (Depends-on): Likewise.
47146         * modules/vsnprintf (Depends-on): Likewise.
47147         * modules/vsprintf-posix (Depends-on): Likewise.
47148         * modules/xvasprintf (Depends-on): Likewise.
47149         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47150         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47151         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47152         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47153         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47154         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47155         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47156         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47157         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47158         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47159         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47160         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47161         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47162         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47163         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47164         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47165         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47166         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47167         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47168         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47169         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47170         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47171         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47172         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47173         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47174         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47175         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47176         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47177         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47178         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47179         * MODULES.html.sh: Remove EOVERFLOW.
47180         * NEWS: Mention the change.
47181
47182 2008-09-13  Bruno Haible  <bruno@clisp.org>
47183
47184         * modules/errno-tests: New file.
47185         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47186
47187         * lib/errno.in.h: New file.
47188         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47189         * modules/errno: New file.
47190         * doc/posix-headers/errno.texi: Update documentation.
47191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47192
47193 2008-09-13  Bruno Haible  <bruno@clisp.org>
47194
47195         * tests/test-poll.c: Use #if for native Windows, rather than testing
47196         __MSVCRT__.
47197
47198 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47199             Bruno Haible  <bruno@clisp.org>
47200
47201         * lib/glob.c: Don't include <pwd.h> on native Windows.
47202         (WINDOWS32): New macro.
47203         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47204
47205 2008-09-13  Bruno Haible  <bruno@clisp.org>
47206
47207         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47208         (ETIMEDOUT): Remove macro.
47209         (glthread_cond_timedwait_multithreaded): New declaration.
47210         (glthread_cond_timedwait): Use it.
47211         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47212         (glthread_cond_timedwait_multithreaded): New function.
47213
47214 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47215
47216         * modules/poll-tests: Do not check for io.h.
47217         * tests/test-poll.c: Check for __MSVCRT__ instead.
47218
47219 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47220
47221         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47222         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47223         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47224
47225 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47226
47227         * modules/poll-tests: New.
47228         * tests/test-poll.c: New.
47229
47230 2008-09-12  Eric Blake  <ebb9@byu.net>
47231
47232         frexp: test for NetBSD failure on -0.0
47233         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47234         not all, bugs from NetBSD 3.0 have been fixed.
47235         * doc/posix-functions/frexp.texi (frexp): Document bug.
47236         Reported by Thomas Klausner.
47237
47238         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47239         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47240         literal -0.0.
47241         Reported by Jonathan C. Patschke <jp@centtech.com>.
47242
47243 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47244
47245         * lib/glthread/cond.h: Use dummy implementation also if
47246         USE_WIN32_THREADS.
47247
47248 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47249
47250         * modules/fnmatch-posix (License): Change to LGPLv2+.
47251         * modules/fnmatch-gnu (License): Likewise.
47252
47253 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47254
47255         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47256
47257 2008-09-11  Jim Meyering  <meyering@redhat.com>
47258
47259         * users.txt: Add gtk-vnc.
47260
47261 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47262
47263         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47264         rotate amounts.
47265
47266         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47267         required for 16-bit and 8-bit rotates.
47268         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47269         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47270         UINT8_MAX instead of hard-coded constants.
47271         Suggested by Paul Eggert.
47272
47273 2008-09-07  Bruno Haible  <bruno@clisp.org>
47274
47275         * tests/test-striconveh.c (main): Check behaviour when converting from
47276         UTF-7.
47277
47278         Make striconveh work better with stateful encodings.
47279         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47280         that iconv does not increment the inptr when returning -1/EINVAL.
47281
47282 2008-09-07  Bruno Haible  <bruno@clisp.org>
47283
47284         * build-aux/config.rpath: Update according to libtool-2.2.6.
47285         * build-aux/config.libpath: Likewise.
47286
47287 2008-09-06  Bruno Haible  <bruno@clisp.org>
47288
47289         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47290         * lib/freadptr.c (freadptr): Likewise.
47291         * lib/freadseek.c (freadptrinc): Likewise.
47292         Reported by Simon Josefsson.
47293
47294 2008-09-06  Bruno Haible  <bruno@clisp.org>
47295
47296         * modules/freadptr (License): Change to LGPLv2+.
47297         * modules/freadseek (License): Likewise.
47298         Suggested by Eric Blake.
47299
47300         * modules/memchr2 (License): Change to LGPLv2+.
47301         Approved by Eric Blake.
47302
47303 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47304             Bruno Haible  <bruno@clisp.org>
47305
47306         Make gnulib-tool work with native 'sed' on AIX.
47307         * gnulib-tool (sed_noop): New variable.
47308         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47309         func_add_or_update, func_create_testdir): Use it to initialize sed
47310         script variables.
47311         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47312
47313 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47314             Bruno Haible  <bruno@clisp.org>
47315
47316         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47317         also works after #include directives.
47318
47319 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47320
47321         getdate.y: reject an out-of-range timezone value
47322         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47323         the range [-24...+24].  When specified with only one or two digits,
47324         * tests/test-getdate.c: Tests for the fix.
47325         * doc/getdate.texi: Document this change.
47326
47327 2008-09-03  Bruno Haible  <bruno@clisp.org>
47328
47329         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47330
47331 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47332
47333         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47334         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47335         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47336         Blake <ebb9@byu.net>.
47337
47338         * tests/test-bitrotate.c: Add more test vectors.
47339
47340 2008-09-02  Eric Blake  <ebb9@byu.net>
47341
47342         vasnprintf-posix: handle large precision via %.*d
47343         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47344         when handling it ourselves.
47345         * tests/test-vasnprintf-posix.c (test_function): Add test.
47346         * tests/test-snprintf-posix.h (test_function): Likewise.
47347         * tests/test-sprintf-posix.h (test_function): Likewise.
47348         * tests/test-vasprintf-posix.c (test_function): Likewise.
47349         Reported by Alain Guibert.
47350
47351 2008-09-01  Eric Blake  <ebb9@byu.net>
47352
47353         c-stack: make configure-time check more robust
47354         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47355         successful sigaction call.
47356         Reported by Tom G. Christensen.
47357
47358 2008-09-01  Bruno Haible  <bruno@clisp.org>
47359
47360         New module 'findprog-lgpl'.
47361         * modules/findprog-lgpl: New file.
47362         * lib/findprog-lgpl.c: New file.
47363         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47364         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47365         to decide whether to use strdup or xstrdup, concatenated_filename or
47366         xconcatenated_filename.
47367
47368 2008-09-01  Bruno Haible  <bruno@clisp.org>
47369
47370         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47371         'xconcat-filename' (GPL).
47372         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47373         (License): Change to LGPLv2+.
47374         * modules/xconcat-filename: New file.
47375         * lib/concat-filename.h (concatenated_filename): Change specification.
47376         (xconcatenated_filename): New declaration.
47377         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47378         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47379         memory situations.
47380         * lib/xconcat-filename.c: New file.
47381         * NEWS: Mention the change.
47382         * lib/findprog.c: Include concat-filename.h, not filename.h.
47383         (find_in_path): Use xconcatenated_filename instead of
47384         concatenated_filename.
47385         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47386         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47387         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47388         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47389         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47390         instead of concatenated_filename.
47391         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47392         (execute_java_class): Use xconcatenated_filename instead of
47393         concatenated_filename.
47394         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47395         * modules/javacomp (Depends-on): Likewise.
47396         * modules/javaexec (Depends-on): Likewise.
47397
47398 2008-09-01  Bruno Haible  <bruno@clisp.org>
47399
47400         Split module 'filename' into 'filename' and 'concat-filename'.
47401         * modules/filename: Keep only lib/filename.h.
47402         (License): Change to LGPLv2+.
47403         * modules/concat-filename: New file, extracted from modules/filename.
47404         * lib/filename.h (concatenated_filename): Remove declaration.
47405         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47406         * lib/concat-filename.c: Include concat-filename.h.
47407         * NEWS: Mention the change.
47408
47409 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47410
47411         * lib/bitrotate.h (rotl8, rotr8): Add.
47412
47413         * modules/bitrotate (configure.ac): Need
47414         AC_REQUIRE([AC_C_INLINE]).
47415         (Description): Mention stdint.h.  Reported by Bruno Haible
47416         <bruno@clisp.org>.
47417
47418         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47419         Paolo Bonzini <bonzini@gnu.org>.
47420
47421 2008-08-31  Bruno Haible  <bruno@clisp.org>
47422
47423         Assume Solaris specific bi-arch conventions on Solaris systems.
47424         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47425         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47426         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47427         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47428         like acl_libdirstem.
47429         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47430         acl_libdirstem.
47431         * NEWS: Mention the change.
47432         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47433
47434 2008-08-31  Jim Meyering  <meyering@redhat.com>
47435
47436         * lib/strftime.h: Add comments describing the two added arguments.
47437
47438         remove duplicate #include directives
47439         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47440         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47441
47442 2008-08-31  Bruno Haible  <bruno@clisp.org>
47443
47444         New module 'sigpipe-die'.
47445         * modules/sigpipe-die: New file.
47446         * lib/sigpipe-die.h: New file.
47447         * lib/sigpipe-die.c: New file.
47448         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47449
47450 2008-08-31  Bruno Haible  <bruno@clisp.org>
47451
47452         Don't override previously installed signal handlers.
47453         * lib/fatal-signal.c (saved_sigactions): New variable.
47454         (uninstall_handlers): Reset the signal to the saved handler, not
47455         to SIG_DFL (except when ignored).
47456         (install_handlers): Save the previous handlers.
47457
47458 2008-08-30  Bruno Haible  <bruno@clisp.org>
47459
47460         * gnulib-tool (func_reset_sigpipe): New function.
47461         (func_get_automake_snippet, func_modules_transitive_closure,
47462         func_import): Invoke it before a join command that reads from stdin,
47463         to avoid "echo: write error: Broken pipe" error messages on stderr.
47464         Reported by Sam Steingold <sds@gnu.org>.
47465
47466 2008-08-30  Bruno Haible  <bruno@clisp.org>
47467
47468         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47469         Code copied from m4/open.m4.
47470         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47471         access and the filename ends in a slash. Code copied from lib/open.c.
47472         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47473         * tests/test-fopen.c (main): Check against bug with trailing slash.
47474
47475 2008-08-29  Bruno Haible  <bruno@clisp.org>
47476
47477         Avoid some "gcc -pedantic" warnings.
47478         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47479         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47480         * lib/dirent.in.h: Likewise.
47481         * lib/fcntl.in.h: Likewise.
47482         * lib/float.in.h: Likewise.
47483         * lib/iconv.in.h: Likewise.
47484         * lib/inttypes.in.h: Likewise.
47485         * lib/locale.in.h: Likewise.
47486         * lib/math.in.h: Likewise.
47487         * lib/netinet_in.in.h: Likewise.
47488         * lib/search.in.h: Likewise.
47489         * lib/signal.in.h: Likewise.
47490         * lib/stdarg.in.h: Likewise.
47491         * lib/stdint.in.h: Likewise.
47492         * lib/stdio.in.h: Likewise.
47493         * lib/stdlib.in.h: Likewise.
47494         * lib/string.in.h: Likewise.
47495         * lib/strings.in.h: Likewise.
47496         * lib/sys_select.in.h: Likewise.
47497         * lib/sys_socket.in.h: Likewise.
47498         * lib/sys_stat.in.h: Likewise.
47499         * lib/sys_time.in.h: Likewise.
47500         * lib/sysexits.in.h: Likewise.
47501         * lib/time.in.h: Likewise.
47502         * lib/unistd.in.h: Likewise.
47503         * lib/wchar.in.h: Likewise.
47504         * lib/wctype.in.h: Likewise.
47505         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47506         * modules/fchdir (Makefile.am): Likewise.
47507         * modules/fcntl (Makefile.am): Likewise.
47508         * modules/float (Makefile.am): Likewise.
47509         * modules/iconv_open (Makefile.am): Likewise.
47510         * modules/inttypes (Makefile.am): Likewise.
47511         * modules/locale (Makefile.am): Likewise.
47512         * modules/math (Makefile.am): Likewise.
47513         * modules/netinet_in (Makefile.am): Likewise.
47514         * modules/search (Makefile.am): Likewise.
47515         * modules/signal (Makefile.am): Likewise.
47516         * modules/stdarg (Makefile.am): Likewise.
47517         * modules/stdint (Makefile.am): Likewise.
47518         * modules/stdio (Makefile.am): Likewise.
47519         * modules/stdlib (Makefile.am): Likewise.
47520         * modules/string (Makefile.am): Likewise.
47521         * modules/strings (Makefile.am): Likewise.
47522         * modules/sys_select (Makefile.am): Likewise.
47523         * modules/sys_socket (Makefile.am): Likewise.
47524         * modules/sys_stat (Makefile.am): Likewise.
47525         * modules/sys_time (Makefile.am): Likewise.
47526         * modules/sysexits (Makefile.am): Likewise.
47527         * modules/time (Makefile.am): Likewise.
47528         * modules/unistd (Makefile.am): Likewise.
47529         * modules/wchar (Makefile.am): Likewise.
47530         * modules/wctype (Makefile.am): Likewise.
47531         Reported by Reuben Thomas <rrt@sc3d.org>.
47532
47533 2008-08-29  Bruno Haible  <bruno@clisp.org>
47534
47535         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47536         any more.
47537
47538 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47539
47540         * MODULES.html.sh (Misc): Add bitrotate.
47541
47542         * modules/bitrotate: New file.
47543
47544         * lib/bitrotate.h: New file.
47545
47546         * modules/bitrotate-tests: New file.
47547
47548         * tests/test-bitrotate.c: New file.
47549
47550         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47551         on the bitrotate module.
47552
47553         * lib/arctwo.c: Use new bitrotate module.
47554
47555 2008-08-29  Jim Meyering  <meyering@redhat.com>
47556
47557         bootstrap: merge changes from coreutils
47558         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47559         of copied files.  Remove a kludge, now that this is fixed.
47560         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47561         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47562         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47563
47564 2008-08-29  Bruno Haible  <bruno@clisp.org>
47565
47566         * MODULES.html.sh: Remove --cvs-urls option.
47567
47568 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47569
47570         maint.mk: adjust to file name change
47571         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47572
47573 2008-08-28  Jim Meyering  <meyering@redhat.com>
47574
47575         * modules/getndelim2 (License): Relicense to LGPLv2+.
47576         Approved by Richard Stallman for the version of 1995, and by
47577         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47578
47579 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47580
47581         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47582         dummy if one is not available.  Do not touch them if
47583         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47584         (getc_maybe_unlocked): New.
47585         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47586
47587 2008-08-26  Eric Blake  <ebb9@byu.net>
47588
47589         doc/INSTALL: resync from autoconf
47590         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47591         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47592         moving...
47593         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47594         * INSTALL: Regenerate.
47595         * INSTALL.ISO: New file.
47596         * INSTALL.UTF-8: Likewise.
47597
47598 2008-08-26  Jim Meyering  <meyering@redhat.com>
47599
47600         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47601         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47602         these definitions conditional, so that they may be overridden, too.
47603
47604 2008-08-26  Bruno Haible  <bruno@clisp.org>
47605
47606         Generate INSTALL file variants with prettier quotes.
47607         * doc/Makefile (INSTALL_PRELUDE): New macro.
47608         (INSTALL): Use it.
47609         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47610
47611 2008-08-26  Bruno Haible  <bruno@clisp.org>
47612
47613         Run makeinfo in an English locale.
47614         * doc/Makefile (MAKEINFO): New variable.
47615
47616 2008-08-26  Bruno Haible  <bruno@clisp.org>
47617
47618         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47619         Suggested by Eric Blake.
47620
47621 2008-08-25  Bruno Haible  <bruno@clisp.org>
47622
47623         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47624
47625 2008-08-25  Eric Blake  <ebb9@byu.net>
47626
47627         c-stack: test that stack overflow can be caught
47628         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47629         that platform allows handling stack overflow; at least OS/2 EMX
47630         has sigaltstack, but crashes before transferring control to
47631         handler on stack overflow.
47632         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47633         check for HAVE_STACK_OVERFLOW_HANDLING.
47634         Reported by Elbert Pol.
47635
47636 2008-08-25  Bruno Haible  <bruno@clisp.org>
47637
47638         * doc/posix-functions/strftime.texi: Fix description of strftime
47639         module.
47640
47641 2008-08-24  Bruno Haible  <bruno@clisp.org>
47642
47643         * tests/uniwidth/test-uc_width2.c: New file.
47644         * tests/uniwidth/test-uc_width2.sh: New file.
47645         * modules/uniwidth/width-tests (Files): Add the new files.
47646         (TESTS): Add uniwidth/test-uc_width2.sh.
47647         (TESTS_ENVIRONMENT): New variable.
47648         (check_PROGRAMS): Add test-uc_width2.
47649         (test_uc_width2_SOURCES): New variable.
47650
47651         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47652         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47653         not 0x00AB.
47654         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47655
47656 2008-08-22  Eric Blake  <ebb9@byu.net>
47657
47658         test-lock, test-tls: mention why a test is skipped
47659         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47660         skipped.
47661         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47662
47663         count-one-bits: relax license
47664         * modules/count-one-bits (License): Relicense to LGPLv2+.
47665         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47666
47667 2008-08-22  Andreas Schwab  <schwab@suse.de>
47668
47669         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47670         Remove spurious space in assignment.
47671
47672 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47673
47674         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47675         Paul Eggert <eggert@CS.UCLA.EDU>.
47676
47677 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47678
47679         * modules/gettext: Add m4/threadlib.m4.
47680
47681 2008-08-19  Eric Blake  <ebb9@byu.net>
47682
47683         test-c-stack: fix compilation failure on FreeBSD 5.0
47684         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47685         headers before <sys/resource.h>.
47686         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47687         the bug.
47688         Reported by Nelson H. F. Beebe.
47689
47690         strverscmp: migrate from "strverscmp.h" to <string.h>
47691         * modules/string (Makefile.am): Add new hooks.
47692         * modules/strverscmp (Files): Remove strverscmp.h.
47693         (Depends-on): Add string.
47694         (configure.ac): Add indicator.
47695         (Include): Mention new header.
47696         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47697         defaults.
47698         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47699         results.
47700         * lib/strverscmp.h: Delete.
47701         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47702         * tests/test-strverscmp.c (includes): Adjust client.
47703         * lib/check-version.c (includes): Likewise.
47704         * NEWS: Document the change.
47705
47706         strverscmp: add unit test
47707         * modules/strverscmp-tests: New file.
47708         * tests/test-strverscmp.c: Likewise.
47709
47710 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47711
47712         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47713         regarding Windows crypto stuff, from Mono.
47714
47715 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47716
47717         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47718         if present, for intel RND.  Return error on failures.
47719
47720 2008-08-18  Ben Pfaff  <blp@gnu.org>
47721
47722         gitlog-to-changelog: give better diagnostic for failed pipe-open
47723         * build-aux/gitlog-to-changelog: Improve error message: suggest
47724         that the version of Git may be too old.
47725
47726 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47727
47728         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47729         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47730
47731 2008-08-18  Bruno Haible  <bruno@clisp.org>
47732
47733         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47734         pthread_in_use().
47735
47736 2008-08-18  Bruno Haible  <bruno@clisp.org>
47737
47738         * lib/glthread/threadlib.c: Include <pthread.h>.
47739
47740 2008-08-18  Bruno Haible  <bruno@clisp.org>
47741
47742         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47743         glthread_recursive_lock_* macros.
47744         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47745         Fix syntax error.
47746
47747 2008-08-18  Bruno Haible  <bruno@clisp.org>
47748
47749         * lib/glthread/thread.c: Avoid forcing a context switch right after
47750         thread creation.
47751
47752 2008-08-17  Bruno Haible  <bruno@clisp.org>
47753
47754         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47755         * lib/glthread/thread.h: Provide Win32 specific implementation.
47756         * modules/thread (Files): Add lib/glthread/thread.c.
47757         (Depends-on): Add lock.
47758         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47759
47760 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47761
47762         New module 'yield'.
47763         * modules/yield: New file.
47764         * lib/glthread/yield.h: New file.
47765         * m4/yield.m4: New file.
47766         * MODULES.html.sh (Multithreading): Add yield.
47767
47768 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47769
47770         New module 'thread'.
47771         * modules/thread: New file.
47772         * lib/glthread/thread.h: New file.
47773         * m4/thread.m4: New file.
47774         * MODULES.html.sh (Multithreading): Add thread.
47775
47776 2008-08-17  Bruno Haible  <bruno@clisp.org>
47777
47778         * lib/glthread/lock.h: Include <stdlib.h> always.
47779         * lib/glthread/tls.h: Likewise.
47780         * lib/glthread/cond.h: Likewise.
47781
47782 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47783
47784         New module 'cond'.
47785         * modules/cond: New file.
47786         * lib/glthread/cond.h: New file.
47787         * lib/glthread/cond.c: New file.
47788         * m4/cond.m4: New file.
47789         * MODULES.html.sh (Multithreading): Add cond.
47790
47791 2008-08-16  Eric Blake  <ebb9@byu.net>
47792
47793         c-stack: fix regression on Irix 5.3 from 2008-06-21
47794         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47795         sa_sigaction...
47796         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47797         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47798         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47799         * modules/signal (Makefile.am): Use the value.
47800         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47801         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47802         * doc/posix-headers/signal.texi (signal.h): Document this
47803         portability issue.
47804         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47805         Reported by Tom G. Christensen.
47806
47807 2008-08-17  Bruno Haible  <bruno@clisp.org>
47808
47809         New module 'threadlib'.
47810         * modules/threadlib: New file.
47811         * lib/glthread/threadlib.c: New file, extracted from
47812         lib/glthread/lock.c.
47813         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47814         functions.
47815         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47816         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47817         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47818         macros.
47819         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47820         (gl_DISABLE_THREADS): Remove macro.
47821         * modules/lock (Files): Remove build-aux/config.rpath.
47822         (Depends-on): Remove havelib. Add threadlib.
47823         (configure.ac-early): Remove section.
47824         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47825         * modules/tls (Depends-on): Remove lock. Add threadlib.
47826         (Link): New section, copied from threadlib.
47827         * MODULES.html.sh (Multithreading): Add threadlib.
47828
47829 2008-08-14  Bruno Haible  <bruno@clisp.org>
47830
47831         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47832         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47833         glthread_rwlock_unlock, glthread_rwlock_destroy,
47834         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47835         glthread_recursive_lock_destroy): Define as macros always.
47836         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47837         glthread_lock_lock.
47838         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47839         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47840         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47841         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47842         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47843         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47844         (glthread_recursive_lock_lock_func): Renamed from
47845         glthread_recursive_lock_lock.
47846         (glthread_recursive_lock_unlock_func): Renamed from
47847         glthread_recursive_lock_unlock.
47848         (glthread_recursive_lock_destroy_func): Renamed from
47849         glthread_recursive_lock_destroy.
47850
47851 2008-08-14  Bruno Haible  <bruno@clisp.org>
47852
47853         * lib/glthread/lock.h: Renamed from lib/lock.h.
47854         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47855         * lib/glthread/tls.h: Renamed from lib/tls.h.
47856         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47857         * lib/fstrcmp.c: Update includes.
47858         * lib/strsignal.c: Update includes.
47859         * modules/lock (Files, Makefile.am): Update.
47860         (Include): Change to "glthread/lock.h".
47861         * modules/tls (Files, Makefile.am): Update.
47862         (Include): Change to "glthread/tls.h".
47863         * tests/test-lock.c: Update includes.
47864         * tests/test-tls.c: Update includes.
47865         * NEWS: Mention the renamed header files.
47866
47867 2008-08-11  Jim Meyering  <meyering@redhat.com>
47868
47869         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47870
47871 2008-08-11  Eric Blake  <ebb9@byu.net>
47872
47873         test-c-stack: avoid C99-ism
47874         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47875         before statement.
47876         Reported by Alain Guibert.
47877
47878 2008-08-10  Jim Meyering  <meyering@redhat.com>
47879
47880         ensure that return value of uinttostr et al are not ignored
47881         * lib/inttostr.h (__GNUC_PREREQ): Define.
47882         (__attribute_warn_unused_result__): Define.
47883         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47884
47885 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47886
47887         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47888         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47889
47890 2008-08-07  Jim Meyering  <meyering@redhat.com>
47891
47892         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47893
47894         * modules/mkstemp (License): Relicense under LGPLv2+.
47895         * modules/tempname (License): Likewise.
47896
47897 2008-08-06  Bruno Haible  <bruno@clisp.org>
47898
47899         * lib/poll.c (poll): Further micro-optimization.
47900
47901 2008-08-06  Jim Meyering  <meyering@redhat.com>
47902
47903         inet_pton.c: use locale-independent tolower
47904         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47905         (inet_pton6): Use c_tolower rather than tolower.
47906         * modules/inet_pton (Depends-on): Add c-ctype.
47907
47908 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47909
47910         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47911         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47912
47913 2008-08-06  Jim Meyering  <meyering@redhat.com>
47914
47915         * modules/inet_pton (License): Relicense under LGPLv2+.
47916
47917 2008-08-03  Bruno Haible  <bruno@clisp.org>
47918
47919         Additional non-aborting API for lock and tls.
47920         * lib/lock.h: Include <errno.h>.
47921         (glthread_lock_init): New macro/function.
47922         (gl_lock_init): Define as wrapper around glthread_lock_init.
47923         (glthread_lock_lock): New macro/function.
47924         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47925         (glthread_lock_unlock): New macro/function.
47926         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47927         (glthread_lock_destroy): New macro/function.
47928         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47929         (glthread_rwlock_init): New macro/function.
47930         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47931         (glthread_rwlock_rdlock): New macro/function.
47932         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47933         (glthread_rwlock_wrlock): New macro/function.
47934         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47935         (glthread_rwlock_unlock): New macro/function.
47936         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47937         (glthread_rwlock_destroy): New macro/function.
47938         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47939         (glthread_recursive_lock_init): New macro/function.
47940         (gl_recursive_lock_init): Define as wrapper around
47941         glthread_recursive_lock_init.
47942         (glthread_recursive_lock_lock): New macro/function.
47943         (gl_recursive_lock_lock): Define as wrapper around
47944         glthread_recursive_lock_lock.
47945         (glthread_recursive_lock_unlock): New macro/function.
47946         (gl_recursive_lock_unlock): Define as wrapper around
47947         glthread_recursive_lock_unlock.
47948         (glthread_recursive_lock_destroy): New macro/function.
47949         (gl_recursive_lock_destroy): Define as wrapper around
47950         glthread_recursive_lock_destroy.
47951         (glthread_once): New macro/function.
47952         (gl_once): Define as wrapper around glthread_once.
47953         Update function declarations.
47954         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47955         glthread_rwlock_init. Return error code.
47956         (glthread_rwlock_rdlock_multithreaded): Renamed from
47957         glthread_rwlock_rdlock. Return error code.
47958         (glthread_rwlock_wrlock_multithreaded): Renamed from
47959         glthread_rwlock_wrlock. Return error code.
47960         (glthread_rwlock_unlock_multithreaded): Renamed from
47961         glthread_rwlock_unlock. Return error code.
47962         (glthread_rwlock_destroy_multithreaded): Renamed from
47963         glthread_rwlock_destroy. Return error code.
47964         (glthread_recursive_lock_init_multithreaded): Renamed from
47965         glthread_recursive_lock_init. Return error code.
47966         (glthread_recursive_lock_lock_multithreaded): Renamed from
47967         glthread_recursive_lock_lock. Return error code.
47968         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47969         glthread_recursive_lock_unlock. Return error code.
47970         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47971         glthread_recursive_lock_destroy. Return error code.
47972         (glthread_once_call): Make static.
47973         (glthread_once_multithreaded): Renamed from glthread_once.
47974         * lib/tls.h: Include <errno.h>.
47975         (glthread_tls_key_init): New macro/function.
47976         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47977         (glthread_tls_set): New macro/function.
47978         (gl_tls_set): Define as wrapper around glthread_tls_set.
47979         (glthread_tls_key_destroy): New macro/function.
47980         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47981         Update function declarations.
47982         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47983         glthread_tls_get.
47984         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47985
47986 2008-08-04  Eric Blake  <ebb9@byu.net>
47987
47988         gnumakefile: use space, not TAB, outside of targets
47989         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47990
47991 2008-08-02  Jim Meyering  <meyering@redhat.com>
47992
47993         getdate.y: avoid locale-dependent date parsing failure
47994         In Turkish locales, getdate would fail to recognize keywords
47995         containing a lowercase "i".  The solution is not to rely on
47996         locale-sensitive case-conversion.
47997         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47998         (lookup_word): Use c_toupper in place of toupper.
47999         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48000         Reported by Vefa Bicakci <bicave@superonline.com> in
48001         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48002         * modules/getdate (Depends-on): Add c-ctype.
48003
48004 2008-08-02  Bruno Haible  <bruno@clisp.org>
48005
48006         * gnulib-tool (func_import): When updating or creating a .gitignore
48007         file, prepend each added line with a slash, and ignore leading slashes
48008         from the existing lines.
48009         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48010
48011 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48012
48013         Portability fix for GNU make 3.79.1.
48014         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48015         versions do not understand.
48016
48017 2008-08-01  Bruno Haible  <bruno@clisp.org>
48018
48019         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48020         * tests/test-isnanf.h (zero): New variable.
48021         (main): Avoid literal -0.0f.
48022         * tests/test-isnand.h (zero): New variable.
48023         (main): Avoid literal -0.0.
48024         * tests/test-isnanl.h (zero): New variable.
48025         (main): Avoid literal -0.0L.
48026         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48027         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48028         -0.0, -0.0L.
48029         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48030         (test_signbitd): Avoid literal -0.0.
48031         (test_signbitl): Avoid literal -0.0L.
48032         * tests/test-ceilf1.c (zero): New variable.
48033         (main): Avoid literal -0.0f.
48034         * tests/test-ceill.c (zero): New variable.
48035         (main): Avoid literal -0.0L.
48036         * tests/test-floorf1.c (zero): New variable.
48037         (main): Avoid literal -0.0f.
48038         * tests/test-floorl.c (zero): New variable.
48039         (main): Avoid literal -0.0L.
48040         * tests/test-roundf1.c (zero): New variable.
48041         (main): Avoid literal -0.0f.
48042         * tests/test-round1.c (zero): New variable.
48043         (main): Avoid literal -0.0.
48044         * tests/test-roundl.c (zero): New variable.
48045         (main): Avoid literal -0.0L.
48046         * tests/test-truncf1.c (zero): New variable.
48047         (main): Avoid literal -0.0f.
48048         * tests/test-trunc1.c (zero): New variable.
48049         (main): Avoid literal -0.0.
48050         * tests/test-truncl.c (zero): New variable.
48051         (main): Avoid literal -0.0L.
48052         * tests/test-frexp.c (zero): New variable.
48053         (main): Avoid literal -0.0.
48054         * tests/test-frexpl.c (zero): New variable.
48055         (main): Avoid literal -0.0L.
48056         * tests/test-ldexpl.c (zero): New variable.
48057         (main): Avoid literal -0.0L.
48058         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48059         (zerod, zerol): New variables.
48060         (test_function): Avoid literals -0.0, -0.0L.
48061         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48062         (zerod, zerol): New variables.
48063         (test_function): Avoid literals -0.0, -0.0L.
48064         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48065         (zerod, zerol): New variables.
48066         (test_function): Avoid literals -0.0, -0.0L.
48067         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48068         (zerod, zerol): New variables.
48069         (test_function): Avoid literals -0.0, -0.0L.
48070         * tests/test-strtod.c (zero): New variable.
48071         (main): Avoid literal -0.0.
48072         Reported by Jonathan C. Patschke <jp@centtech.com>.
48073
48074 2008-07-31  Jim Meyering  <meyering@redhat.com>
48075
48076         sha256.h: correct definition of SHA224_DIGEST_SIZE
48077         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48078         Reported by Paulie Pena IV <paulie4@gmail.com>.
48079         Define as 224 / 8, rather than as a literal.
48080         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48081         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48082         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48083
48084 2008-07-31  Bruno Haible  <bruno@clisp.org>
48085
48086         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48087         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48088         Reported by Jonathan Patschke <jp@centtech.com>.
48089
48090 2008-07-31  Bruno Haible  <bruno@clisp.org>
48091
48092         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48093         Reported by Paolo Bonzini <bonzini@gnu.org>.
48094
48095 2008-07-30  Eric Blake  <ebb9@byu.net>
48096
48097         test-strtod: allow compilation without -lm
48098         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48099         Reported by Dennis Clarke <blastwave@gmail.com>.
48100
48101 2008-07-28  Jim Meyering  <meyering@redhat.com>
48102
48103         bootstrap: work also when there are no .po files in po/
48104         * build-aux/bootstrap (update_po_files): Complete the change
48105         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48106
48107 2008-07-27  Jim Meyering  <meyering@redhat.com>
48108
48109         * users.txt: Add zile.
48110
48111 2008-07-26  Ben Pfaff  <blp@gnu.org>
48112
48113         Add missing dependencies on new m4/exponent[fdl].m4 files.
48114         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48115         * modules/isnand-nolibm: Add m4/exponentd.m4.
48116         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48117         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48118         m4/isnan[fdl].m4, because the macros actually used moved.
48119         Reported by Jim Meyering.
48120
48121 2008-07-14  Ben Pfaff  <blp@gnu.org>
48122
48123         Add isinf module.
48124         * lib/isinf.c: New file.
48125         * lib/math.in.h: Define isinf macro if we have decided to replace
48126         it.
48127         * m4/isinf.m4: New file.
48128         * m4/math_h.m4: Initialize and substitute variables for isinf
48129         module.
48130         * modules/isinf: New file.
48131         * modules/isinf-tests: New file.
48132         * modules/math: Add substitutions for new module.
48133         * tests/test-isinf.c: New file.
48134         * doc/posix-functions/isinf.texi: Mention new module.
48135         * MODULES.html.sh: Mention new module.
48136
48137 2008-07-14  Ben Pfaff  <blp@gnu.org>
48138
48139         Factor out some macros for use by additional modules.
48140         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48141         exponentf.m4.
48142         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48143         exponentd.m4.
48144         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48145         file exponentl.m4.
48146         * m4/exponentf.m4: New file.
48147         * m4/exponentd.m4: New file.
48148         * m4/exponentl.m4: New file.
48149         * modules/isnanf: Use new file m4/exponentf.m4.
48150         * modules/isnand: Use new file m4/exponentd.m4.
48151         * modules/isnanl: Use new file m4/exponentl.m4.
48152
48153 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48154
48155         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48156         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48157         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48158         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48159
48160         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48161         readlink on platforms without PATH_MAX.
48162
48163 2008-07-21  Eric Blake  <ebb9@byu.net>
48164
48165         Warn, not fail, on stale version.
48166         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48167
48168         Don't allow installation with stale devel version number.
48169         * top/GNUmakefile (_is-install-target): New macro.
48170         (_curr-ver): Forbid installation with stale version number.
48171
48172 2008-07-20  Bruno Haible  <bruno@clisp.org>
48173
48174         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48175         TESTS_ENVIRONMENT.
48176         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48177
48178 2008-07-20  Bruno Haible  <bruno@clisp.org>
48179
48180         * lib/c-stack.h (c_stack_action): Add documentation.
48181         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48182
48183 2008-07-20  Bruno Haible  <bruno@clisp.org>
48184
48185         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48186         * modules/readlink (License): Likewise.
48187
48188 2008-07-17  Eric Blake  <ebb9@byu.net>
48189
48190         * modules/c-stack (Link): Fix typo.
48191
48192         Make c-stack use libsigsegv, when available.
48193         * modules/c-stack (Depends-on): Add libsigsegv.
48194         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48195         needed.
48196         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48197         (segv_handler, overflow_handler, c_stack_action)
48198         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48199         implementation when libsigsegv is available, but only when using
48200         the library is necessary.
48201         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48202         comment, explaining why XSI check fails on Linux.
48203         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48204         * tests/test-c-stack2.sh: Tweak skip message.
48205         * NEWS: Document new link-time requirements.
48206
48207 2008-07-16  Eric Blake  <ebb9@byu.net>
48208
48209         c-stack: Expose false positives when not using libsigsegv.
48210         * modules/c-stack-tests (Files): Expand test.
48211         * tests/test-c-stack.c (main): Add means to conditionally trigger
48212         non-overflow SIGSEGV.
48213         * tests/test-c-stack2.sh: New file.
48214
48215 2008-07-14  Bruno Haible  <bruno@clisp.org>
48216
48217         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48218         Reported by Eric Blake.
48219
48220 2008-07-14  Sam Steingold  <sds@gnu.org>
48221             Bruno Haible  <bruno@clisp.org>
48222
48223         New module libsigsegv.
48224         * modules/libsigsegv: New file.
48225         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48226         modifications.
48227         * MODULES.html.sh (Signal handling): New section.
48228
48229 2008-07-14  Bruno Haible  <bruno@clisp.org>
48230
48231         * modules/unictype/ctype-* (Description): Add the word "function".
48232         Improves the resulting doc in MODULES.html.
48233
48234 2008-07-12  Ben Pfaff  <blp@gnu.org>
48235
48236         Add longlong module.
48237         * modules/longlong: New file.
48238
48239 2008-07-12  Bruno Haible  <bruno@clisp.org>
48240
48241         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48242         to empty.
48243
48244 2008-07-10  Ben Pfaff  <blp@gnu.org>
48245
48246         Add isnan module.
48247         * doc/posix-functions/isnan.texi: Mention new module.
48248         * lib/math.in.h: Define isnan macro if we have decided to replace
48249         it.
48250         * m4/isnan.m4: New file.
48251         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48252         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48253         also.
48254         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48255         redundancy.
48256         * m4/math_h.m4: Initialize and substitute variables for isnan
48257         module.
48258         * modules/isnan: New file.
48259         * modules/isnan-tests: New file.
48260         * modules/math: Add substitutions for new module.
48261         * tests/test-isnan.c: New file.
48262         * MODULES.html.sh: Mention new module.
48263
48264 2008-07-10  Ben Pfaff  <blp@gnu.org>
48265
48266         Add isnanf module.
48267         * lib/isnanf.m4: New file.
48268         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48269         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48270         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48271         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48272         * modules/isnanf: New file.
48273         * modules/isnanf-tests: New file.
48274         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48275         files.
48276         * tests/test-isnanf-nolibm.c: factored most of its contents into
48277         new file tests/test-isnanf.h.
48278         * tests/test-isnanf.h: New file.
48279         * tests/test-isnanf.c: New file.
48280         * MODULES.html.sh: Mention new module.
48281         * doc/glibc-functions/isnanf.texi: Mention new module.
48282
48283 2008-07-10  Ben Pfaff  <blp@gnu.org>
48284
48285         Add isnand module.
48286         * lib/isnand.h: New file.
48287         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48288         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48289         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48290         functionality also.
48291         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48292         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48293         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48294         * modules/isnand: New file.
48295         * modules/isnand-tests: New file.
48296         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48297         files.
48298         * tests/test-isnand-nolibm.c: factored most of its contents into
48299         new file tests/test-isnand.h.
48300         * tests/test-isnand.h: New file.
48301         * tests/test-isnand.c: New file.
48302         * MODULES.html.sh: Mention new module.
48303
48304 2008-07-10  Ben Pfaff  <blp@gnu.org>
48305
48306         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48307         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48308         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48309         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48310         * modules/isnanf-nolibm: Update references to renamed files.
48311         * modules/isnand-nolibm: Likewise.
48312         * modules/isnanf-nolibm-tests: Likewise.
48313         * modules/isnand-nolibm-tests: Likewise.
48314         * lib/frexp.c: Likewise.
48315         * lib/isfinite.c: Likewise.
48316         * lib/signbitd.c: Likewise.
48317         * lib/signbitf.c: Likewise.
48318         * lib/vasnprintf.c: Likewise.
48319         * tests/test-ceilf1.c: Likewise.
48320         * tests/test-ceilf2.c: Likewise.
48321         * tests/test-floorf1.c: Likewise.
48322         * tests/test-floorf2.c: Likewise.
48323         * tests/test-frexp.c: Likewise.
48324         * tests/test-round1.c: Likewise.
48325         * tests/test-round2.c: Likewise.
48326         * tests/test-roundf1.c: Likewise.
48327         * tests/test-strtod.c: Likewise.
48328         * tests/test-trunc1.c: Likewise.
48329         * tests/test-trunc2.c: Likewise.
48330         * tests/test-truncf1.c: Likewise.
48331         * tests/test-truncf2.c: Likewise.
48332         * NEWS: Mention the renamed header files.
48333
48334 2008-07-11  Jim Meyering  <meyering@redhat.com>
48335
48336         vc-list-files: make the last-resort awk code more portable
48337         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48338         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48339         does not support it.
48340
48341 2008-07-10  Eric Blake  <ebb9@byu.net>
48342
48343         Work with tar's bootstrap.
48344         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48345         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48346         an m4 comment.
48347
48348 2008-07-09  Jim Meyering  <meyering@redhat.com>
48349
48350         posix-shell.m4: fix typo that made this test malfunction
48351         * m4/posix-shell.m4: Remove capitalization in variable name.
48352
48353 2008-07-08  Bruno Haible  <bruno@clisp.org>
48354
48355         * m4/onceonly.m4: Update comments.
48356         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48357
48358 2008-07-04  Jim Meyering  <meyering@redhat.com>
48359
48360         * users.txt: Add vc-dwim.
48361         (bison, coreutils): Use the gitweb URL.
48362
48363 2008-07-03  Jim Meyering  <meyering@redhat.com>
48364
48365         * users.txt: Add libffcall.  From Sam Steingold.
48366
48367 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48368
48369         getdate.y: do not ignore TZ with relative day, month or year offset
48370         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48371         relative-date-handling, since otherwise, the latter would clobber the
48372         sole output (an updated Start value) of the tz-handling block.
48373         * tests/test-getdate.c: Tests for the fix
48374
48375 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48376
48377         Recognize 'foo_LIBRARIES += libgnu.a'.
48378         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48379         makefile snippet has already specified an installation location,
48380         also using '+='.
48381
48382 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48383
48384         getdate.y: factor out common actions
48385         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48386         Use them in place of open-coded actions.
48387
48388 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48389
48390         Add self-test for getdate module.
48391         * modules/getdate-tests: New file.
48392         * tests/test-getdate.c: New file.
48393
48394 2008-06-29  Bruno Haible  <bruno@clisp.org>
48395
48396         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48397         .gitignore.
48398         Reported by Sylvain Beucler <beuc@beuc.net>.
48399
48400 2008-06-29  Bruno Haible  <bruno@clisp.org>
48401
48402         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48403         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48404
48405 2008-06-29  Bruno Haible  <bruno@clisp.org>
48406
48407         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48408         EXTRA_DIST.
48409         Reported by Sylvain Beucler <beuc@beuc.net>.
48410
48411 2008-06-26  Jim Meyering  <meyering@redhat.com>
48412
48413         make several modules depend on the "open" module
48414         This provides slightly increased consistency when opening-for-write
48415         the name of a non-directory spelled with a trailing slash.
48416         * modules/chdir-safer: Likewise.
48417         * modules/chown: Likewise.
48418         * modules/clean-temp: Likewise.
48419         * modules/copy-file: Likewise.
48420         * modules/fchdir: Likewise.
48421         * modules/fcntl-safer: Likewise.
48422         * modules/pipe: Likewise.
48423         * modules/utime: Likewise.
48424         Prompted by Eric Blake and Bruno Haible.
48425
48426 2008-06-24  Andreas Schwab  <schwab@suse.de>
48427
48428         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48429         literals can be used as initializers for global variables.
48430
48431 2008-06-23  Eric Blake  <ebb9@byu.net>
48432
48433         Make gnulib-cache.m4 easier to diff.
48434         * gnulib-tool (func_import): Allow newlines when reading cached
48435         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48436
48437 2008-06-23  Bruno Haible  <bruno@clisp.org>
48438
48439         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48440         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48441         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48442         m4/signalblocking.m4.
48443         (gl_PREREQ_SIGACTION): Don't invoke it.
48444         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48445         gl_PREREQ_SIG_HANDLER_H.
48446         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48447         Don't check for sigaction here.
48448
48449 2008-06-23  Bruno Haible  <bruno@clisp.org>
48450
48451         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48452         (install_handlers): Don't set the SA_RESETHAND flag.
48453
48454 2008-06-23  Bruno Haible  <bruno@clisp.org>
48455
48456         * m4/sigaction.m4: Comment fixes.
48457         * lib/signal.in.h: Likewise.
48458
48459 2008-06-23  Eric Blake  <ebb9@byu.net>
48460
48461         Fix typo.
48462         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48463
48464         Avoid SA_ namespace.
48465         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48466         Reported by Ralf Wildenhues.
48467
48468         Avoid test failure due to SA_RESTORER.
48469         * tests/test-sigaction.c (SA_MASK): New macro.
48470         (main): Avoid failing due to extension flags being set.
48471         Reported by Jim Meyering.
48472
48473         Revert use of sig-handler.h in sigprocmask.c.
48474         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48475         it requires the existence of struct sigaction.
48476         * lib/sigprocmask.c (handler_t): Restore typedef.
48477         (rpl_signal, old_handlers): Use local type.
48478
48479 2008-06-22  Bruno Haible  <bruno@clisp.org>
48480
48481         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48482         conditionally.
48483         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48484
48485 2008-06-22  Bruno Haible  <bruno@clisp.org>
48486
48487         * doc/posix-functions/siginterrupt.texi: Move note.
48488
48489         * lib/signal.in.h (SA_RESTART): New macro.
48490         * lib/sigaction.c: Update comment.
48491
48492         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48493
48494         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48495         (gl_PREREQ_SIGPROCMASK): Invoke it.
48496         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48497
48498         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48499
48500         * lib/sigprocmask.c: Update a comment.
48501
48502 2008-06-21  Eric Blake  <ebb9@byu.net>
48503
48504         Use sigaction module rather than signal().
48505         * modules/c-stack (Depends-on): Add sigaction.
48506         * modules/fatal-signal (Depends-on): Likewise.
48507         * modules/nanosleep (Depends-on): Likewise.
48508         * modules/sigprocmask (Files): Add sig-handler.h.
48509         * modules/sigaction (Files): Likewise.
48510         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48511         Eggert.
48512         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48513         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48514         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48515         (init_fatal_signals): Likewise.
48516         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48517         (siginterrupt): Delete fallback.
48518         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48519         instead.
48520         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48521         siginterrupt.
48522
48523         New module sigaction, for mingw.
48524         * modules/sigaction: New module...
48525         * modules/sigaction-tests: ...and its test.
48526         * m4/sigaction.m4: New file.
48527         * lib/sigaction.c: Likewise.
48528         * tests/test-sigaction.c: Likewise.
48529         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48530         * modules/signal (Makefile.am): Likewise.
48531         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48532         needed.
48533         * doc/posix-headers/signal.texi (signal.h): Mention provided
48534         types.
48535         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48536         that sigaction is preferable.
48537         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48538         module.
48539         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48540         sigaction.
48541
48542         Improve robustness of sigprocmask by overriding signal.
48543         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48544         is in use.
48545         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48546         (SIGKILL, SIGSTOP): Provide fallbacks.
48547         (rpl_signal): Implement.
48548         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48549         signal can be called inside handlers.
48550
48551         Fix nanosleep module on mingw.
48552         * modules/nanosleep (Depends-on): Add sys_select.
48553         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48554
48555         Fix licensing of sigprocmask.
48556         * modules/raise (License): Relicense as LGPL.
48557
48558 2008-06-21  Bruno Haible  <bruno@clisp.org>
48559
48560         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48561         result if it contains question marks.
48562         Reported by Michael Geng <linux@michaelgeng.de>.
48563
48564 2008-06-19  Bruno Haible  <bruno@clisp.org>
48565
48566         Fix CVS-ism.
48567         * doc/gnulib.texi: Include updated-stamp.texi.
48568         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48569         (updated-stamp.texi): New rule.
48570         (gnulib.info): Depend on it.
48571         * doc/.gitignore: Add updated-stamp.texi.
48572         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48573
48574 2008-06-19  Bruno Haible  <bruno@clisp.org>
48575
48576         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48577         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48578
48579 2008-06-19  Eric Blake  <ebb9@byu.net>
48580
48581         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48582         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48583         Reported by Stepan Kasal.
48584
48585 2008-06-18  Bruno Haible  <bruno@clisp.org>
48586
48587         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48588         Reported by Eric Blake.
48589
48590 2008-06-18  Eric Blake  <ebb9@byu.net>
48591
48592         Work around cygwin 1.5.25 strsignal bug.
48593         * tests/test-strsignal.c: Allow for const char *.
48594         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48595
48596 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48597
48598         * users.txt: Update URL to article and add author/date
48599         information.
48600
48601 2008-06-17  Bruno Haible  <bruno@clisp.org>
48602
48603         New macro gl_DISABLE_THREADS.
48604         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48605         if the user did not pass --enable-threads or --disable-threads option.
48606         (gl_DISABLE_THREADS): New macro.
48607         Reported by Eric Blake <ebb9@byu.net>.
48608
48609 2008-06-17  Bruno Haible  <bruno@clisp.org>
48610
48611         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48612         when the macro ignores it.
48613         Based on a patch by Eric Blake <ebb9@byu.net>.
48614
48615 2008-06-17  Bruno Haible  <bruno@clisp.org>
48616
48617         * modules/tls (License): Change to LGPLv2+.
48618         Reported by Eric Blake.
48619
48620 2008-06-17  Eric Blake  <ebb9@byu.net>
48621
48622         Simplify c-stack prerequisites.
48623         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48624         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48625         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48626         check.
48627         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48628         <sys/resource.h>.
48629
48630         Move c-stack test into testsuite.
48631         * modules/c-stack-tests: New file.
48632         * lib/c-stack.c [DEBUG]: Move test program...
48633         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48634         fail test if sigaltstack is lacking.
48635         * tests/test-c-stack.sh: New driver file.
48636
48637 2008-06-16  Eric Blake  <ebb9@byu.net>
48638
48639         Use raise module consistently.
48640         * modules/fatal-signal (Depends-on): Add raise.
48641         * modules/sigprocmask (Depends-on): Likewise.
48642         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48643         * lib/sigprocmask.c (sigprocmask): Likewise.
48644         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48645         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48646
48647         Fix compliance bug in sigpending.
48648         * lib/sigprocmask.c (sigpending): Return pending array via
48649         parameter, not return value.
48650
48651 2008-06-14  Eric Blake  <ebb9@byu.net>
48652
48653         Improve obstack-printf test code.
48654         * tests/test-obstack-printf.c (test_function): Fix comment, and
48655         simplify usage of obstack_* in macros.  Add a test for coverage.
48656         Reported by Bruno Haible.
48657
48658 2008-06-14  Bruno Haible  <bruno@clisp.org>
48659
48660         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48661         array size as a constant, not as a const variable.
48662         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48663         AC_USE_SYSTEM_EXTENSIONS.
48664         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48665         Test whether the obstack_printf function actually exists.
48666         * modules/obstack-printf (Depends-on): Add extensions.
48667         (Include): Remove obstack.h.
48668         * modules/obstack-printf-posix (Depends-on): Add extensions.
48669         (Include): Remove obstack.h.
48670
48671 2008-06-13  Eric Blake  <ebb9@byu.net>
48672
48673         Add obstack-printf and obstack-printf-posix modules.
48674         * modules/obstack-printf: New file.
48675         * modules/obstack-printf-posix: Likewise.
48676         * MODULES.html.sh (Misc): Mention them.
48677         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48678         Likewise.
48679         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48680         Likewise.
48681         * modules/stdio (Makefile.am): Accomodate new modules.
48682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48683         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48684         Declare.
48685         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48686         functions.
48687         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48688         (gl_REPLACE_OBSTACK_PRINTF): New macros
48689         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48690         * tests/test-obstack-printf.c: New file.
48691         * modules/obstack-printf-tests: Likewise.
48692         * modules/obstack-printf-posix-tests: Likewise.
48693
48694 2008-06-11  Bruno Haible  <bruno@clisp.org>
48695
48696         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48697         * lib/open.c: Include errno.h.
48698         (open): Fail when attempting to write to a file that has a trailing
48699         slash.
48700         * tests/test-open.c (main): Test against trailing slash bug.
48701         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48702
48703 2008-06-10  Bruno Haible  <bruno@clisp.org>
48704
48705         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48706         for $? to work inside the trap command, with various /bin/sh-s.
48707         * tests/test-vc-list-files-cvs.sh: Likewise.
48708
48709 2008-06-10  Bruno Haible  <bruno@clisp.org>
48710
48711         * lib/acl-internal.h: Don't include gettext.h here.
48712         * lib/set-mode-acl.c: Include gettext.h here.
48713         * lib/copy-acl.c: Likewise.
48714
48715 2008-06-10  Bruno Haible  <bruno@clisp.org>
48716
48717         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48718         * lib/wait-process.c (wait_subprocess): Likewise.
48719         * lib/execute.h (execute): Add termsigp argument.
48720         * lib/execute.c (execute): Likewise.
48721         * lib/csharpcomp.c (compile_csharp_using_pnet,
48722         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48723         * lib/csharpexec.c (execute_csharp_using_pnet,
48724         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48725         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48726         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48727         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48728         is_jikes_present): Update.
48729         * lib/javaexec.c (execute_java_class): Update.
48730         * lib/javaversion.c (execute_and_read_line): Update.
48731         * NEWS: Document the changes.
48732         Reported by Eric Blake.
48733
48734 2008-06-10  Eric Blake  <ebb9@byu.net>
48735
48736         Add missing include.
48737         * tests/test-strstr.c (includes): Add <signal.h>.
48738         * tests/test-strcasestr.c (includes): Likewise.
48739         * tests/test-memmem.c (includes): Likewise.
48740
48741 2008-06-10  Bruno Haible  <bruno@clisp.org>
48742
48743         * lib/wait-process.c (wait_subprocess): Add an assertion.
48744
48745 2008-06-10  Bruno Haible  <bruno@clisp.org>
48746
48747         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48748
48749 2008-06-10  Bruno Haible  <bruno@clisp.org>
48750
48751         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48752         using alarm().
48753         * tests/test-strcasestr.c (main): Likewise.
48754         * tests/test-strstr.c (main): Likewise.
48755
48756 2008-06-09  Bruno Haible  <bruno@clisp.org>
48757
48758         Work around the Solaris 10 ACE ACLs ABI change.
48759         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48760         declare if ACL_NO_TRIVIAL is present.
48761         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48762         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48763         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48764         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48765         define if ACL_NO_TRIVIAL is present.
48766         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48767         and use the current ABI.
48768         (file_has_acl): Use same #if condition as elsewhere.
48769         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48770         in use, and use the current ABI.
48771         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48772         Reported by Jim Meyering.
48773
48774 2008-06-09  Eric Blake  <ebb9@byu.net>
48775
48776         Work around environments that (stupidly) ignore SIGALRM.
48777         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48778         before using alarm().
48779         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48780         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48781         Reported by Ian Beckwith <ianb@erislabs.net>.
48782
48783         Produce autobuild blurb earlier in log.
48784         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48785
48786 2008-06-09  Jim Meyering  <meyering@redhat.com>
48787         and OndÅ™ej Vašík  <ovasik@redhat.com>
48788
48789         utimens.c: correct kernel bug work-around
48790         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48791         failure, not success, and the kernel bug we're trying to work
48792         around affects not just the utimensat call, but also the fallback
48793         futimens call.
48794         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48795         not success.
48796         [HAVE_FUTIMENS]: Use the same work-around, here.
48797
48798 2008-06-09  Jim Meyering  <meyering@redhat.com>
48799
48800         add more guards around definition of ACE_-related code
48801         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48802         ALLOW and ACE_OWNER are also defined.
48803
48804 2008-06-08  Bruno Haible  <bruno@clisp.org>
48805
48806         * lib/acl-internal.h: Add me as co-author.
48807         * lib/file-has-acl.c: Likewise.
48808         * lib/set-mode-acl.c: Likewise.
48809         * lib/copy-acl.c: Likewise.
48810
48811 2008-06-08  Bruno Haible  <bruno@clisp.org>
48812
48813         Add support for AIX ACLs.
48814         * lib/acl-internal.h (acl_nontrivial): New declaration.
48815         * lib/file-has-acl.c (acl_nontrivial): New function.
48816         (file_has_acl): Add implementation using AIX 4 ACL API.
48817         * lib/set-mode-acl.c (qset_acl): Likewise.
48818         * lib/copy-acl.c (qcopy_acl): Likewise.
48819
48820 2008-06-08  Bruno Haible  <bruno@clisp.org>
48821
48822         Add support for HP-UX ACLs.
48823         * lib/acl-internal.h (acl_nontrivial): New declaration.
48824         * lib/file-has-acl.c (acl_nontrivial): New function.
48825         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48826         * lib/set-mode-acl.c (qset_acl): Likewise.
48827         * lib/copy-acl.c (qcopy_acl): Likewise.
48828
48829 2008-06-08  Bruno Haible  <bruno@clisp.org>
48830
48831         Add support for Cygwin ACLs.
48832         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48833         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48834         the chmod_or_fchmod call.
48835         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48836
48837 2008-06-08  Bruno Haible  <bruno@clisp.org>
48838
48839         Fix bug with setuid modes in Solaris 10+ code.
48840         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48841         succeeded, when the mode contains some special bits.
48842
48843 2008-06-08  Bruno Haible  <bruno@clisp.org>
48844
48845         Add support for Solaris 7..10 ACLs.
48846         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48847         declarations.
48848         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48849         functions.
48850         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48851         * lib/set-mode-acl.c (qset_acl): Likewise.
48852         * lib/copy-acl.c (qcopy_acl): Likewise.
48853
48854 2008-06-08  Bruno Haible  <bruno@clisp.org>
48855
48856         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48857         declaration.
48858         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48859         (acl_access_nontrivial): Remove MacOS X case.
48860         (file_has_acl): Use acl_extended_nontrivial.
48861         * lib/copy-acl.c (qcopy_acl): Likewise.
48862
48863 2008-06-08  Bruno Haible  <bruno@clisp.org>
48864
48865         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48866
48867 2008-06-08  Jim Meyering  <meyering@redhat.com>
48868
48869         * modules/acl (Maintainer): Add Bruno Haible.
48870
48871 2008-06-07  Bruno Haible  <bruno@clisp.org>
48872
48873         Improve support for Tru64 ACLs.
48874         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48875         ACL on OSF/1.
48876
48877 2008-06-07  Bruno Haible  <bruno@clisp.org>
48878
48879         Add support for MacOS X ACLs.
48880         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48881         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48882         * lib/set-mode-acl.c (qset_acl): Likewise.
48883         * lib/copy-acl.c (qcopy_acl): Likewise.
48884
48885 2008-06-07  Bruno Haible  <bruno@clisp.org>
48886
48887         Fix memory leak introduced on 2008-05-22.
48888         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48889         use.
48890
48891 2008-06-07  Bruno Haible  <bruno@clisp.org>
48892
48893         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48894         to construct an empty ACL.
48895
48896 2008-06-07  Bruno Haible  <bruno@clisp.org>
48897
48898         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48899         precisely.
48900         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48901
48902 2008-06-07  Bruno Haible  <bruno@clisp.org>
48903
48904         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48905         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48906
48907 2008-06-07  Bruno Haible  <bruno@clisp.org>
48908
48909         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48910         regardless of POSIX.
48911         * doc/posix-functions/_longjmp.texi: Likewise.
48912         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48913         SystemV platform in this case.
48914
48915 2008-06-06  Eric Blake  <ebb9@byu.net>
48916
48917         Document abort() bugs.
48918         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48919
48920         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48921         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48922         sigsetjmp.
48923         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48924         siglongjmp, but only as a macro.
48925         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48926         is obsolete.
48927         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48928
48929         Tweak documentation to cover cygwin argz bugs.
48930         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48931         argz bug fix; no code change needed since no cygwin releases
48932         occurred between the last fix and the bug being tested.
48933         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48934         module and recently fixed cygwin bugs.
48935         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48936         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48937         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48938         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48939         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48940         Likewise.
48941         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48942         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48943         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48944         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48945         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48946         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48947         Likewise.
48948
48949         Avoid gcc warning on cygwin.
48950         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48951         !ACL_NO_TRIVIAL]: Avoid unused variable.
48952
48953 2008-06-05  Eric Blake  <ebb9@byu.net>
48954
48955         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48956         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48957         git-version-gen fails to come up with a version.
48958         Reported by Simon Josefsson.
48959
48960 2008-06-05  Jim Meyering  <meyering@redhat.com>
48961             Paul Eggert  <eggert@cs.ucla.edu>
48962
48963         utimens.c: work around a probable Linux kernel bug
48964         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48965         appears to be a kernel bug that causes utimensat to return 280
48966         instead of 0, indicating success.
48967
48968 2008-06-04  Bruno Haible  <bruno@clisp.org>
48969
48970         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48971         2008-06-01 commit.
48972
48973 2008-06-04  Bruno Haible  <bruno@clisp.org>
48974
48975         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48976         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48977         (file_has_acl): Use it. Save errno afterwards.
48978         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48979
48980 2008-06-03  Bruno Haible  <bruno@clisp.org>
48981
48982         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48983         draft code. Simplify #ifs.
48984         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48985         Put Solaris code after POSIX-draft code. Fix comments regarding
48986         Solaris 10, HP-UX. Mention Cygwin.
48987         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48988
48989 2008-06-03  Eric Blake  <ebb9@byu.net>
48990
48991         Provide fallback for older kernels.
48992         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48993         Provide runtime fallback if kernel lacks support.
48994         Reported by Mike Frysinger.
48995
48996 2008-06-02  Bruno Haible  <bruno@clisp.org>
48997
48998         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48999         it exists.
49000
49001 2008-06-02  Bruno Haible  <bruno@clisp.org>
49002
49003         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49004         * lib/copy-acl.c (qcopy_acl): Update comment.
49005
49006 2008-06-02  Bruno Haible  <bruno@clisp.org>
49007
49008         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49009         like ACL APIs.
49010
49011 2008-06-02  Bruno Haible  <bruno@clisp.org>
49012
49013         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49014         * tests/test-set-mode-acl.sh: Likewise.
49015         * tests/test-copy-acl.sh: Likewise.
49016         * tests/test-copy-file.sh: Likewise.
49017
49018 2008-06-02  Bruno Haible  <bruno@clisp.org>
49019
49020         * tests/test-file-has-acl.sh: Remove unused code.
49021
49022 2008-06-01  Bruno Haible  <bruno@clisp.org>
49023
49024         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49025         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49026         messages.
49027         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49028
49029 2008-06-01  Bruno Haible  <bruno@clisp.org>
49030
49031         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49032         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49033         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49034         APIs.
49035         * modules/acl-tests (configure.ac): Remove tests now contained in
49036         m4/acl.m4.
49037
49038 2008-06-02  Jim Meyering  <meyering@redhat.com>
49039
49040         announce-gen: use a better key-server host name
49041         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49042         it may be more consistently reliable.  Suggested by Werner Koch
49043         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49044
49045 2008-06-01  Bruno Haible  <bruno@clisp.org>
49046
49047         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49048         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49049
49050 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49051
49052         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49053
49054 2008-06-01  Bruno Haible  <bruno@clisp.org>
49055
49056         New ACL tests.
49057         * tests/test-file-has-acl.sh: New file.
49058         * tests/test-file-has-acl.c: New file.
49059         * tests/test-set-mode-acl.sh: New file.
49060         * tests/test-set-mode-acl.c: New file.
49061         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49062         * tests/test-copy-acl.c: New file.
49063         * modules/acl-tests: New file, based on modules/copy-file-tests.
49064         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49065         (Depends-on): Add acl-tests.
49066         (configure.ac): Remove checks.
49067         (Makefile.am): Don't create test-sameacls program here any more.
49068
49069 2008-06-01  Bruno Haible  <bruno@clisp.org>
49070
49071         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49072         * tests/test-sameacls.c: Include progname.h.
49073         (main): Invoke set_program_name. Portability fixes for MacOS X,
49074         Solaris, HP-UX.
49075
49076 2008-06-01  Bruno Haible  <bruno@clisp.org>
49077
49078         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49079         function.
49080         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49081
49082 2008-06-01  Bruno Haible  <bruno@clisp.org>
49083
49084         * modules/rpmatch (Depends-on): Add strdup.
49085
49086 2008-06-01  Bruno Haible  <bruno@clisp.org>
49087
49088         * lib/pipe.c: Include unistd-safer.h.
49089         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49090         * modules/pipe (Depends-on): Add unistd-safer.
49091
49092 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49093
49094         * modules/autobuild (configure.ac): Call AB_INIT.
49095
49096 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49097
49098         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49099         Suggested by Bruno Haible <bruno@clisp.org>.
49100
49101 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49102
49103         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49104         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49105         <bruno@clisp.org>.
49106
49107 2008-05-29  Eric Blake  <ebb9@byu.net>
49108
49109         Prefer new POSIX 200x interfaces over futimesat.
49110         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49111         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49112         when available.
49113         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49114
49115 2008-05-28  Bruno Haible  <bruno@clisp.org>
49116
49117         * modules/stpcpy (License): Change to LGPLv2+.
49118         Requested by David Lutterkort <dlutter@redhat.com>.
49119
49120 2008-05-27  Bruno Haible  <bruno@clisp.org>
49121
49122         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49123         current mingw.
49124         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49125
49126 2008-05-27  Bruno Haible  <bruno@clisp.org>
49127
49128         * modules/iconv_open (Link): New section, from module 'iconv'.
49129         * modules/striconv (Link): Likewise.
49130         * modules/striconveh (Link): Likewise.
49131         * modules/xstriconv (Link): Likewise.
49132         * modules/unicodeio (Link): Likewise.
49133         * modules/propername (Link): Likewise.
49134         Reported by Jim Meyering.
49135
49136 2008-05-26  Jim Meyering  <meyering@redhat.com>
49137
49138         sha256: do not artificially restrict buffer length to be < 2^32
49139         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49140         uint32_t to size_t.
49141         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49142         to match.
49143
49144         avoid unaligned access errors, e.g., on sparc
49145         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49146         direct access through a possibly-unaligned uint64* pointer.
49147         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49148         direct access through a possibly-unaligned uint32* pointer.
49149         Prompted by this patch from Tom "spot" Callaway:
49150         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49151
49152         sha512.c: fix typo in comment
49153         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49154
49155 2008-05-25  Bruno Haible  <bruno@clisp.org>
49156
49157         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49158         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49159         (Makefile.am): Update lib_SOURCES.
49160
49161 2008-05-25  Bruno Haible  <bruno@clisp.org>
49162
49163         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49164
49165 2008-05-25  Jim Meyering  <meyering@redhat.com>
49166
49167         useless-if-before-free: freed expr may have white-space differences
49168         * build-aux/useless-if-before-free: Recognize cases in which the
49169         freed expression differs from the tested one in embedded white
49170         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49171         $1 was used, so we can't make any regexp shy.  Improved tests now
49172         detect this.
49173
49174         useless-if-before-free: accept white space in the expression.
49175         * build-aux/useless-if-before-free: For now, any white space
49176         in the expression must be identical in the free argument.
49177
49178         useless-if-before-free: efficiency tweak
49179         * build-aux/useless-if-before-free: Make the expression-matching
49180         regexp "shy".
49181         Make the *outer* regexp shy, not the expr-matching one.
49182
49183         update code-in-comment to accept cast of free arg
49184         * build-aux/useless-if-before-free: Update regexp.
49185
49186 2008-05-25  Bruno Haible  <bruno@clisp.org>
49187
49188         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49189         * modules/copy-file-tests (Files, Makefile.am): Update.
49190         * tests/test-copy-file.c (func_test_copy): Update.
49191
49192 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49193
49194         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49195
49196 2008-05-23  Bruno Haible  <bruno@clisp.org>
49197
49198         Improve support for ACLs on OSF/1.
49199         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49200         Remove fallback for unknown flavors of ACLs.
49201
49202 2008-05-22  Bruno Haible  <bruno@clisp.org>
49203
49204         Add support for ACLs on OSF/1.
49205         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49206         replacements.
49207         (acl_free_text): New macro fallback.
49208         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49209         acl_free.
49210         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49211         acl_free_text function. Require AC_C_INLINE.
49212
49213 2008-05-22  Bruno Haible  <bruno@clisp.org>
49214
49215         Make copy_acl work on MacOS X 10.5.
49216         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49217         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49218         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49219         If MODE_INSIDE_ACL, don't assume that every system has the same text
49220         representation for ACLs as FreeBSD.
49221         * lib/copy-acl.c (copy_acl): Add support for platforms with
49222         !MODE_INSIDE_ACL.
49223         * lib/file-has-acl.c (file_has_acl): Likewise.
49224         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49225         FreeBSD, MacOS X, or IRIX, respectively.
49226
49227 2008-05-22  Bruno Haible  <bruno@clisp.org>
49228
49229         * lib/acl.h: Don't include <sys/acl.h>.
49230         (GETACLCNT): Move fallback to lib/acl-internal.h.
49231         * lib/acl-internal.h: Include <sys/acl.h> here.
49232         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49233
49234 2008-05-22  Bruno Haible  <bruno@clisp.org>
49235
49236         Split off copy_acl function to separate file.
49237         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49238         * lib/acl.c (copy_acl): Moved function to separate file.
49239         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49240         * modules/acl (Files): Add lib/copy-acl.c.
49241         (Makefiles.am): Augment lib_SOURCES.
49242
49243 2008-05-22  Bruno Haible  <bruno@clisp.org>
49244
49245         * modules/copy-file-tests: New file.
49246         * tests/test-copy-file.sh: New file.
49247         * tests/test-copy-file.c: New file.
49248         * tests/test-copy-file-sameacls.c: New file.
49249
49250 2008-05-22  Eric Blake  <ebb9@byu.net>
49251
49252         Avoid gcc warning.
49253         * tests/test-memcmp.c (main): Pass NULL indirectly.
49254
49255 2008-05-21  Bruno Haible  <bruno@clisp.org>
49256
49257         Add reference doc about ACLs.
49258         * doc/acl-resources.txt: New file.
49259         * doc/acl-cygwin.txt: New file.
49260
49261 2008-05-21  Bruno Haible  <bruno@clisp.org>
49262
49263         Avoid one more warning from gcc.
49264         * lib/vasnprintf.c (IF_LINT): Update comments.
49265         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49266
49267 2008-05-21  Jim Meyering  <meyering@redhat.com>
49268
49269         avoid a warning from gcc
49270         * lib/vasnprintf.c (IF_LINT): Define.
49271         (scale10_round_decimal_long_double):
49272         Use it to avoid a "may be used uninitialized" warning.
49273         (scale10_round_decimal_double): Likewise.
49274
49275 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49276
49277         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49278         declared.
49279
49280 2008-05-20  Bruno Haible  <bruno@clisp.org>
49281
49282         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49283         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49284
49285 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49286
49287         * modules/memcmp-tests: New file.
49288         * tests/test-memcmp.c: New file.
49289
49290 2008-05-19  Bruno Haible  <bruno@clisp.org>
49291
49292         * modules/propername (Notice, configure.ac): Put quoted "..." into
49293         --keyword option.
49294         * lib/propername.h: Update comments accordingly.
49295         Reported by Eric Blake.
49296
49297 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49298
49299         * modules/getpass-gnu (Depends-on): Add fseeko.
49300
49301 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49302
49303         * modules/base64-tests: New file.
49304
49305 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49306
49307         * lib/base64.c (base64_decode_ctx): If a decode context structure
49308         was passed in use it to ignore newlines.  If a context structure
49309         was _not_ passed in, continue to treat newlines as garbage (this
49310         is the historical behavior).  Formerly base64_decode.
49311         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49312         takes a decode context structure.
49313         * lib/base64.h (base64_decode): Macro for four-argument calls.
49314         (base64_decode_alloc): Likewise.
49315         * lib/base64.c (base64_decode_ctx): If a decode context structure
49316         was passed in use it to ignore newlines.  If a context structure
49317         was _not_ passed in, continue to treat newlines as garbage (this
49318         is the historical behavior).  Formerly base64_decode.
49319         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49320         takes a decode context structure.
49321         * lib/base64.h (base64_decode): Macro for four-argument calls.
49322         (base64_decode_alloc): Likewise.
49323
49324 2008-05-19  Jim Meyering  <meyering@redhat.com>
49325
49326         avoid a warning from gcc
49327         * lib/trim.c (IF_LINT): Define.
49328         (trim2): Use it to avoid a "may be used uninitialized" warning.
49329
49330         Fix doc typo.
49331         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49332
49333 2008-05-19  Bruno Haible  <bruno@clisp.org>
49334
49335         * doc/glibc-functions/getpass.texi: Document limits of other
49336         implementations.
49337
49338 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49339             Bruno Haible <bruno@clisp.org>
49340
49341         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49342
49343 2008-05-18  Bruno Haible  <bruno@clisp.org>
49344
49345         * modules/propername: New file, from GNU gettext.
49346         * lib/propername.h: New file, from GNU gettext.
49347         * lib/propername.c: New file, from GNU gettext.
49348         * MODULES.html.sh (Internationalization functions): Add propername.
49349
49350 2008-05-16  Jim Meyering  <meyering@redhat.com>
49351             Bruno Haible  <bruno@clisp.org>
49352
49353         Avoid some warnings from "gcc -Wshadow".
49354         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49355
49356 2008-05-15  Eric Blake  <ebb9@byu.net>
49357
49358         Extend previous patch to cygwin 1.7.0.
49359         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49360         fast implementation in cygwin >= 1.7.0.
49361         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49362         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49363
49364 2008-05-15  Bruno Haible  <bruno@clisp.org>
49365
49366         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49367         implementation in glibc >= 2.9.
49368         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49369         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49370
49371 2008-05-15  Bruno Haible  <bruno@clisp.org>
49372
49373         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49374         (Unicode string functions): Add unilbrk/*.
49375         Reported by Karl Berry.
49376
49377 2008-05-15  Eric Blake  <ebb9@byu.net>
49378
49379         Fix violation of <stdbool.h> replacement in regex.
49380         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49381         * lib/regexec.c (re_search_internal): Likewise.
49382         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49383
49384 2008-05-15  Jim Meyering  <meyering@redhat.com>
49385
49386         avoid distracting test output when git or cvs is not found
49387         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49388         * tests/test-vc-list-files-git.sh: Likewise.
49389
49390 2008-05-15  Eric Blake  <ebb9@byu.net>
49391
49392         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49393         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49394         glibc version.
49395         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49396         * doc/posix-functions/strstr.texi (strstr): Likewise.
49397         * lib/str-two-way.h (MAX): Sychronize with glibc.
49398
49399 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49400
49401         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49402         opr.ctx_type.
49403         (calc_first): Initialize constraint field.
49404         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49405         Fix grammar.
49406         (duplicate_node): Merge constraint field for all node types.
49407         (calc_eclosure_iter): Look at constraint field for all node types.
49408         * lib/regex_internal.c (create_cd_newstate): Don't look at
49409         opr.ctx_type.
49410
49411 2008-05-14  Bruno Haible  <bruno@clisp.org>
49412
49413         Help GCC to do better code generation.
49414         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49415         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49416         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49417         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49418         Declare with attribute 'malloc' if supported.
49419
49420 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49421
49422         use "echo STR|wc -c" rather than unportable "expr length STR"
49423         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49424         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49425
49426 2008-05-14  Jim Meyering  <meyering@redhat.com>
49427
49428         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49429         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49430         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49431         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49432         via Collin Lasse.
49433
49434 2008-05-14  Eric Blake  <ebb9@byu.net>
49435
49436         Avoid quadratic growth in gl_LIBSOURCES.
49437         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49438         Suggested by Bruno Haible.
49439
49440         Test xmemdup0.
49441         * modules/xmemdup0-tests: New file.
49442         * tests/test-xmemdup0.c: Likewise.
49443
49444 2008-05-13  Eric Blake  <ebb9@byu.net>
49445
49446         Split xmemdup0 into its own module.
49447         * modules/xmemdup0: New file.
49448         * lib/xmemdup0.h: Likewise.
49449         * lib/xmemdup0.c: Likewise.
49450         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49451         * lib/xalloc.h (xmemdup0): Remove.
49452         * lib/xmalloc.c (xmemdup0): Likewise.
49453
49454 2008-05-13  Eric Blake  <ebb9@byu.net>
49455             Bruno Haible  <bruno@clisp.org>
49456
49457         Reduce number of forks required during autoconf.
49458         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49459         and gl_LIBSOURCES_DIR.
49460         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49461         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49462         m4_syscmd per file.
49463         <m4_foreach_w>: Move...
49464         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49465
49466 2008-05-13  Eric Blake  <ebb9@byu.net>
49467
49468         * gnulib-tool: Fix various comment typos.
49469
49470 2008-05-12  Bruno Haible  <bruno@clisp.org>
49471
49472         Tailor the linebreaking algorithm.
49473         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49474
49475 2008-05-12  Bruno Haible  <bruno@clisp.org>
49476
49477         Update to Unicode 5.0.0.
49478         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49479         LBP_JV, LBP_JT. Redistribute values.
49480         (unilbrk_table): Change size.
49481         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49482         Unicode TR#14 rev. 22.
49483         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49484         LBP_JV, LBP_JT. Redistribute values.
49485         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49486         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49487         Update.
49488         * lib/unilbrk/lbrkprop1.h: Regenerated.
49489         * lib/unilbrk/lbrkprop2.h: Regenerated.
49490         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49491         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49492         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49493         Likewise.
49494         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49495         Likewise.
49496         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49497         result.
49498         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49499         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49500         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49501         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49502         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49503         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49504
49505 2008-05-11  Bruno Haible  <bruno@clisp.org>
49506
49507         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49508
49509 2008-05-11  Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49512         * modules/unilbrk/gen-lbrk: New file.
49513
49514 2008-05-11  Bruno Haible  <bruno@clisp.org>
49515
49516         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49517         * m4/sha512.m4 (gl_SHA512): Likewise.
49518
49519 2008-05-11  Jim Meyering  <meyering@redhat.com>
49520
49521         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49522         * modules/crypto/sha256: New file.
49523         * modules/crypto/sha512: Likewise.
49524         * lib/sha256.c: Likewise.
49525         * lib/sha256.h: Likewise.
49526         * lib/sha512.c: Likewise.
49527         * lib/sha512.h: Likewise.
49528         * lib/u64.h: Likewise.
49529         * m4/sha256.m4: Likewise.
49530         * m4/sha512.m4: Likewise.
49531         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49532
49533 2008-05-10  Bruno Haible  <bruno@clisp.org>
49534
49535         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49536         (Input/Output <stdio.h>): Add xprintf.
49537         (Signal handling <signal.h>): Add strsignal.
49538         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49539         (Core language properties): Add func.
49540         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49541         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49542         strings.
49543         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49544         (Input/output): New section.
49545         (File system functions): Add openat-die, stat-macros.
49546         (Networking functions): Add sockets.
49547         (Unicode string functions): Add unictype/*.
49548         (Support for building libraries and executables): Add gperf.
49549         (Support for building documentation): Add agpl-3.0.
49550         (Misc): Add nocrash.
49551
49552 2008-05-10  Bruno Haible  <bruno@clisp.org>
49553
49554         * modules/unictype/gen-ctype: New file.
49555
49556 2008-05-10  Jim Meyering  <meyering@redhat.com>
49557
49558         Make chdir-safer.c more efficient on a system with no symlinks.
49559         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49560         also if ELOOP is zero.  Suggested by Bruno Haible.
49561
49562         Make chdir-safer.c slightly safer.
49563         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49564         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49565
49566         Avoid compile failure on systems without ELOOP (like mingw).
49567         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49568         Reported by Bruno Haible.
49569
49570 2008-05-10  Bruno Haible  <bruno@clisp.org>
49571
49572         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49573         (is_utf8_encoding): Use a case-insensitive comparison.
49574         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49575         streq.
49576
49577 2008-05-10  Bruno Haible  <bruno@clisp.org>
49578
49579         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49580         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49581         * lib/unilbrk/ulc-common.h (iconv_string_length,
49582         iconv_string_keeping_offsets): Remove declarations.
49583         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49584         Don't include <iconv.h>, streq.h, xsize.h.
49585         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49586         conversion.
49587         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49588         <iconv.h>, streq.h, xsize.h.
49589         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49590         conversion.
49591         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49592         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49593         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49594         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49595
49596 2008-05-10  Bruno Haible  <bruno@clisp.org>
49597
49598         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49599         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49600
49601         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49602         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49603
49604         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49605         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49606
49607         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49608         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49609
49610         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49611         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49612
49613         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49614         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49615
49616         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49617         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49618
49619         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49620         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49621
49622 2008-05-10  Bruno Haible  <bruno@clisp.org>
49623
49624         Split up 'linebreak' module.
49625         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49626         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49627         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49628         modifications.
49629         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49630         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49631         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49632         lib/linebreak.c.
49633         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49634         lib/linebreak.c.
49635         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49636         lib/linebreak.c.
49637         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49638         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49639         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49640         lib/linebreak.c.
49641         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49642         lib/linebreak.c.
49643         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49644         lib/linebreak.c.
49645         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49646         lib/linebreak.c.
49647         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49648         lib/linebreak.c.
49649         * modules/unilbrk/base: New file.
49650         * modules/unilbrk/tables: New file.
49651         * modules/unilbrk/u8-possible-linebreaks: New file.
49652         * modules/unilbrk/u16-possible-linebreaks: New file.
49653         * modules/unilbrk/u32-possible-linebreaks: New file.
49654         * modules/unilbrk/ulc-common: New file.
49655         * modules/unilbrk/ulc-possible-linebreaks: New file.
49656         * modules/unilbrk/u8-width-linebreaks: New file.
49657         * modules/unilbrk/u16-width-linebreaks: New file.
49658         * modules/unilbrk/u32-width-linebreaks: New file.
49659         * modules/unilbrk/ulc-width-linebreaks: New file.
49660         * lib/linebreak.h: Remove file.
49661         * lib/linebreak.c: Remove file.
49662         * m4/linebreak.m4: Remove file.
49663         * modules/linebreak: Remove file.
49664         * NEWS: Mention the changes.
49665
49666 2008-05-09  Eric Blake  <ebb9@byu.net>
49667
49668         Add xmemdup0.
49669         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49670         implementation.
49671         * lib/xmalloc.c (xmemdup0): New C implementation.
49672
49673 2008-05-08  Bruno Haible  <bruno@clisp.org>
49674
49675         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49676
49677 2008-05-07  Eric Blake  <ebb9@byu.net>
49678
49679         Support cross-compilation of <wctype.h>.
49680         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49681         AC_CACHE_CHECK.
49682
49683 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49684
49685         * build-aux/vc-list-files: Add support for bzr.
49686
49687 2008-05-03  Jim Meyering  <meyering@redhat.com>
49688
49689         avoid failed assertion with tight malloc
49690         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49691
49692 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49693
49694         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49695         are needed from arpa/inet.h.
49696         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49697         Reported by Bruno Haible.
49698
49699 2008-05-02  Jim Meyering  <meyering@redhat.com>
49700
49701         avoid compilation error on FreeBSD 6
49702         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49703
49704 2008-05-01  Jim Meyering  <meyering@redhat.com>
49705
49706         useless-if-before-free: correct --help's exit status description
49707         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49708         for one or more matches, etc.  Reported by Bruno Haible.
49709
49710         vc-list-files: make the stand-alone gnulib test work
49711         * modules/vc-list-files-tests (configure.ac):
49712         Define and AC_SUBST abs_aux_dir.
49713         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49714         $(abs_top_srcdir) to each script and having each of them
49715         duplicate the work of setting PATH, set PATH here, using
49716         the new variable, abs_aux_dir instead.
49717         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49718         * tests/test-vc-list-files-git.sh: Likewise.
49719         Reported by Bruno Haible.
49720
49721 2008-05-01  Bruno Haible  <bruno@clisp.org>
49722
49723         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49724         reallocation. Rename 'done' to 'found_delimiter'.
49725
49726 2008-05-01  Jim Meyering  <meyering@redhat.com>
49727
49728         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49729         * build-aux/vc-list-files: Use `...`, not $(...).
49730
49731 2008-04-30  Jim Meyering  <meyering@redhat.com>
49732
49733         add tests for vc-list-files
49734         * modules/vc-list-files-tests: New module.
49735         * tests/test-vc-list-files-cvs.sh: New file.
49736         * tests/test-vc-list-files-git.sh: New file.
49737
49738         avoid a warning from gcc
49739         * lib/getndelim2.c (IF_LINT): Define.
49740         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49741
49742         vc-list-files: work properly with build-aux/cvsu, too
49743         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49744         to all cvs-based clauses.
49745
49746         vc-list-files: work properly in the CVS+awk case, too
49747         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49748
49749         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49750         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49751         take more than one file argument, so .  Add quotes, just in case $dir
49752         ever contains a shell meta-character.  Prompted by Soren Hansen in
49753         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49754
49755 2008-04-29  Eric Blake  <ebb9@byu.net>
49756
49757         Optimize getndelim2 to use block operations when possible.
49758         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49759         freadseek, and memchr2.
49760         * lib/getndelim2.c (getndelim2): Use them for block reads.
49761
49762 2008-04-29  Bruno Haible  <bruno@clisp.org>
49763
49764         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49765         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49766         * modules/inet_ntop (Depends-on): Add extensions.
49767         * modules/inet_pton (Depends-on): Likewise.
49768         Reported by Simon Josefsson.
49769
49770 2008-04-29  Jim Meyering  <meyering@redhat.com>
49771
49772         When the is more than one match in a block, match all of them.
49773         * build-aux/useless-if-before-free: Iterate through each block
49774         until there are no more matches.
49775
49776         Fix broken useless-if-before-free script.
49777         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49778         the expression to match cast of argument to free-like function.
49779
49780 2008-04-29  Eric Blake  <ebb9@byu.net>
49781
49782         Use new header.
49783         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49784
49785 2008-04-29  Jim Meyering  <meyering@redhat.com>
49786
49787         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49788         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49789         by gnulib to exist and to declare e.g., inet_ntop.
49790         Don't include "inet_ntop.h", now removed.
49791
49792         * m4/arpa_inet_h.m4: Remove trailing blanks.
49793
49794 2008-04-29  Eric Blake  <ebb9@byu.net>
49795
49796         Silence valgrind on safe reads beyond potential array bounds.
49797         * lib/rawmemchr.valgrind: New file.
49798         * lib/strchrnul.valgrind: Likewise.
49799         * modules/rawmemchr (Files): Distribute new file.
49800         * modules/strchrnul (Files): Likewise.
49801         Suggested by Bruno Haible.
49802
49803 2008-04-29  Bruno Haible  <bruno@clisp.org>
49804
49805         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49806         (inet_ntop, inet_pton): Change portability warning's wording.
49807         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49808         Invoke gl_CHECK_NEXT_HEADERS.
49809         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49810         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49811         set ARPA_INET_H.
49812         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49813         * modules/arpa_inet (Description): No longer only for systems that
49814         lack it.
49815         (Depends-on): Add include_next.
49816         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49817         HAVE_ARPA_INET_H.
49818
49819 2008-04-29  Jim Meyering  <meyering@redhat.com>
49820
49821         * modules/mkdir (License): Re-license as LGPLv2+.
49822
49823 2008-04-29  Bruno Haible  <bruno@clisp.org>
49824
49825         * modules/rawmemchr (Maintainer): Set to Eric.
49826         * modules/strchrnul (Maintainer): Likewise.
49827
49828 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49829
49830         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49831         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49832
49833         * modules/arpa_inet (arpa/inet.h): Use them.
49834
49835 2008-04-28  Eric Blake  <ebb9@byu.net>
49836
49837         Test getndelim2.
49838         * modules/getndelim2-tests: New file.
49839         * tests/test-getndelim2.c: Likewise.
49840         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49841         stream.
49842         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49843
49844         * MODULES.html.sh: Document new module.
49845
49846 2008-04-20  Bruno Haible  <bruno@clisp.org>
49847
49848         * lib/c-stack.c (die): Use raise.
49849         * modules/c-stack (Depends-on): Add raise.
49850
49851 2008-04-28  Bruno Haible  <bruno@clisp.org>
49852
49853         Expect rpmatch to be declared.
49854         * lib/yesno.c (rpmatch): Remove declaration.
49855
49856         Declare rpmatch.
49857         * lib/stdlib.in.h (rpmatch): New declaration.
49858         * lib/rpmatch.c: Include <stdlib.h> first.
49859         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49860         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49862         HAVE_RPMATCH.
49863         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49864         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49865         (Include): Set to <stdlib.h>.
49866         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49867         HAVE_RPMATCH.
49868         * NEWS: Document the change.
49869
49870 2008-04-28  Bruno Haible  <bruno@clisp.org>
49871
49872         Change rpmatch to use nl_langinfo when appropriate.
49873         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49874         (N_): New macro.
49875         (localized_pattern): New function/macro.
49876         (try): Remove match, nomatch arguments. Copy the pattern into safe
49877         memory before caching it.
49878         (rpmatch): Use localized_pattern. Add translator comments.
49879         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49880         Suggested by Eric Blake.
49881         * modules/rpmatch (Depends-on): Add stdbool.
49882
49883 2008-04-28  Eric Blake  <ebb9@byu.net>
49884
49885         Add rawmemchr module, matching glibc.
49886         * modules/string (Makefile.am): New indicator.
49887         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49888         * lib/string.in.h (rawmemchr): Declare when appropriate.
49889         * modules/rawmemchr: New file.
49890         * m4/rawmemchr.m4: Likewise.
49891         * lib/rawmemchr.c: Likewise.
49892         * modules/rawmemchr-tests: Likewise.
49893         * tests/test-rawmemchr.c: Likewise.
49894         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49895         module.
49896         * modules/strchrnul (Depends-on): Add rawmemchr.
49897         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49898
49899         Whitespace cleanup.
49900         * tests/test-strchrnul.c: Reindent.
49901         * lib/strchrnul.c: Likewise.
49902
49903         Optimize and test strchrnul.
49904         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49905         * modules/strchrnul-tests: New file.
49906         * tests/test-strchrnul.c: Likewise.
49907
49908         Remove intprops dependency.
49909         * modules/memchr (Depends-on): Remove intprops.
49910         * modules/memrchr (Depends-on): Likewise.
49911         * modules/memchr2 (Depends-on): Likewise.
49912         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49913         * lib/memrchr.c (__memrchr): Likewise.
49914         * lib/memrchr2.c (memchr2): Likewise.
49915         Reported by Simon Josefsson.
49916
49917 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49918
49919         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49920         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49921
49922 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49923
49924         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49925
49926         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49927
49928         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49929
49930         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49931         declarations.
49932         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49933
49934         * m4/inet_pton.m4: Don't check for header files.
49935
49936         * m4/inet_ntop.m4: Don't check for header files.
49937
49938 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49939
49940         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49941         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49942         trigger for cygwin).
49943         Reported by Bruno Haible  <bruno@clisp.org>.
49944
49945 2008-04-28  Bruno Haible  <bruno@clisp.org>
49946
49947         * doc/posix-functions/strdup.texi: Mention mingw problem.
49948
49949 2008-04-27  Bruno Haible  <bruno@clisp.org>
49950
49951         * modules/stat-time-tests (Depends-on): Add sleep.
49952         * tests/test-stat-time.c (force_unlink): New function.
49953         (cleanup): Use it.
49954         (test_mtime): Remove the ctime related tests.
49955         (test_ctime): New function, containing the ctime related tests.
49956         (main): Call test_ctime, except on native Windows platforms.
49957
49958 2008-04-27  Bruno Haible  <bruno@clisp.org>
49959
49960         * lib/rpmatch.c (rpmatch): Add some comments.
49961         Reported by James Youngman <jay@gnu.org>.
49962
49963 2008-04-27  Bruno Haible  <bruno@clisp.org>
49964
49965         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49966         quiet NaNs.
49967
49968 2008-04-27  Bruno Haible  <bruno@clisp.org>
49969
49970         Make test-yesno.sh work on mingw.
49971         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49972         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49973         (main): Set stdin to binary mode.
49974         * modules/yesno-tests (Depends-on): Add binary-io.
49975
49976 2008-04-27  Bruno Haible  <bruno@clisp.org>
49977
49978         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49979         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49980         argument that lie outside the IEEE 854 domain.
49981         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49982         (gl_ISFINITE): Use it.
49983         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49984
49985 2008-04-27  Bruno Haible  <bruno@clisp.org>
49986
49987         Allow local renaming in config.h.
49988         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49989
49990 2008-04-27  Bruno Haible  <bruno@clisp.org>
49991
49992         * lib/memchr.c (__memchr): Change type of 'i'.
49993         * lib/memchr2.c (memchr2): Likewise.
49994
49995 2008-04-26  Eric Blake  <ebb9@byu.net>
49996         and Bruno Haible  <bruno@clisp.org>
49997
49998         Optimize and test memrchr.
49999         * modules/memrchr (Depends-on): Add intprops.
50000         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50001         * modules/memrchr-tests: New file.
50002         * tests/test-memrchr.c: New file.
50003
50004 2008-04-26  Bruno Haible  <bruno@clisp.org>
50005
50006         Add tentative support for DragonFly BSD.
50007         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50008         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50009         fp.
50010         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50011         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50012         * lib/fpurge.c (fpurge): Likewise.
50013         * lib/freadable.c (freaadable): Likewise.
50014         * lib/freadahead.c (freadahead): Likewise.
50015         * lib/freading.c (freading): Likewise.
50016         * lib/freadptr.c (freadptr): Likewise.
50017         * lib/freadseek.c (freadptrinc): Likewise.
50018         * lib/fseeko.c (fseeko): Likewise.
50019         * lib/fseterr.c (fseterr): Likewise.
50020         * lib/fwritable.c (fwritable): Likewise.
50021         * lib/fwriting.c (fwriting): Likewise.
50022
50023 2008-04-26  Bruno Haible  <bruno@clisp.org>
50024
50025         * lib/stdio-impl.h: New file.
50026         * lib/fbufmode.c: Include stdio-impl.h.
50027         (fbufmode): Use fp_, remove redundant #defines.
50028         * lib/fflush.c: Include stdio-impl.h.
50029         (clear_ungetc_buffer): Remove redundant #defines.
50030         * lib/fpurge.c: Include stdio-impl.h.
50031         (fpurge): Remove redundant #defines.
50032         * lib/freadable.c: Include stdio-impl.h.
50033         (freadable): Remove redundant #defines.
50034         * lib/freadahead.c: Include stdio-impl.h.
50035         (freadahead): Remove redundant #defines.
50036         * lib/freading.c: Include stdio-impl.h.
50037         (freading): Remove redundant #defines.
50038         * lib/freadptr.c: Include stdio-impl.h.
50039         (freadptr): Remove redundant #defines.
50040         * lib/freadseek.c: Include stdio-impl.h.
50041         (freadptrinc): Remove redundant #defines.
50042         * lib/fseeko.c: Include stdio-impl.h.
50043         (rpl_fseeko): Remove redundant #defines.
50044         * lib/fseterr.c: Include stdio-impl.h.
50045         (fseterr): Remove redundant #defines.
50046         * lib/fwritable.c: Include stdio-impl.h.
50047         (fwritable: Remove redundant #defines.
50048         * lib/fwriting.c: Include stdio-impl.h.
50049         (fwriting): Remove redundant #defines.
50050         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50051         * modules/fflush (Files): Likewise.
50052         * modules/fpurge (Files): Likewise.
50053         * modules/freadable (Files): Likewise.
50054         * modules/freadahead (Files): Likewise.
50055         * modules/freading (Files): Likewise.
50056         * modules/freadptr (Files): Likewise.
50057         * modules/freadseek (Files): Likewise.
50058         * modules/fseeko (Files): Likewise.
50059         * modules/fseterr (Files): Likewise.
50060         * modules/fwritable (Files): Likewise.
50061         * modules/fwriting (Files): Likewise.
50062
50063 2008-04-26  Bruno Haible  <bruno@clisp.org>
50064
50065         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50066         restore_seek_optimization, update_fpos_cache): New functions, extracted
50067         from rpl_fflush.
50068         (rpl_fflush): Use them.
50069         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50070         (gl_REPLACE_FFLUSH): Use it.
50071
50072 2008-04-26  Bruno Haible  <bruno@clisp.org>
50073
50074         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50075         on Solaris.
50076         * tests/test-xstrtoimax.sh: Likewise.
50077         * tests/test-xstrtoumax.sh: Likewise.
50078         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50079
50080 2008-04-26  Bruno Haible  <bruno@clisp.org>
50081
50082         * modules/memchr-tests: New file.
50083         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50084
50085 2008-04-26  Eric Blake  <ebb9@byu.net>
50086             Bruno Haible  <bruno@clisp.org>
50087
50088         * lib/memchr.c: Include intprops.h.
50089         (__memchr): Optimize parallel detection of matching bytes. Rename local
50090         variables. Add explanatory comments.
50091
50092 2008-04-26  Bruno Haible  <bruno@clisp.org>
50093
50094         Fix module 'memchr', broken since 2000-10-28.
50095         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50096
50097 2008-04-26  Bruno Haible  <bruno@clisp.org>
50098
50099         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50100         comments.
50101
50102 2008-04-25  Eric Blake  <ebb9@byu.net>
50103
50104         Use native fstatat on cygwin 1.7.0.
50105         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50106         first.
50107
50108 2008-04-23  Eric Blake  <ebb9@byu.net>
50109
50110         Improve memchr2 performance.
50111         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50112         NUL bytes.
50113         * modules/memchr2 (Depends-on): Use intprops.h.
50114
50115 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50116
50117         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50118         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50119         <blp@cs.stanford.edu>.
50120
50121 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50122
50123         * lib/arpa_inet.in.h: New file.
50124
50125         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50126         (Makefile.am): Sed in substitute header file.
50127
50128         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50129         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50130
50131         * modules/inet_ntop (configure.ac): Use
50132         gl_ARPA_INET_MODULE_INDICATOR.
50133
50134         * modules/inet_pton (configure.ac): Use
50135         gl_ARPA_INET_MODULE_INDICATOR.
50136
50137 2008-04-22  Jim Meyering  <meyering@redhat.com>
50138
50139         * modules/verify (License): Re-license as LGPLv2+.
50140
50141 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50142
50143         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50144         parameter to void* as per POSIX standard (MinGW uses char*).
50145
50146 2008-04-21  Bruno Haible  <bruno@clisp.org>
50147
50148         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50149         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50150         Define to replacements if REPLACE_ISWCNTRL is 1.
50151         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50152         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50153         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50154         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50155         what it fixes.
50156         * doc/posix-functions/iswalpha.texi: Likewise.
50157         * doc/posix-functions/iswblank.texi: Likewise.
50158         * doc/posix-functions/iswcntrl.texi: Likewise.
50159         * doc/posix-functions/iswdigit.texi: Likewise.
50160         * doc/posix-functions/iswgraph.texi: Likewise.
50161         * doc/posix-functions/iswlower.texi: Likewise.
50162         * doc/posix-functions/iswprint.texi: Likewise.
50163         * doc/posix-functions/iswpunct.texi: Likewise.
50164         * doc/posix-functions/iswspace.texi: Likewise.
50165         * doc/posix-functions/iswupper.texi: Likewise.
50166         * doc/posix-functions/iswxdigit.texi: Likewise.
50167         Reported by Alain Guibert.
50168
50169 2008-04-21  Bruno Haible  <bruno@clisp.org>
50170
50171         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50172         Patch by Alain Guibert.
50173
50174 2008-04-21  Bruno Haible  <bruno@clisp.org>
50175
50176         Fix test failures on mingw.
50177         * tests/test-xstrtol.c (print_no_progname): New function.
50178         (main): Install it in error_print_progname hook.
50179         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50180         * tests/test-xstrtoimax.sh: Likewise.
50181         * tests/test-xstrtoumax.sh: Likewise.
50182
50183 2008-04-21  Bruno Haible  <bruno@clisp.org>
50184
50185         Fix test failure on mingw.
50186         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50187
50188 2008-04-21  Bruno Haible  <bruno@clisp.org>
50189
50190         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50191         Actually assign a value.
50192
50193 2008-04-20  Bruno Haible  <bruno@clisp.org>
50194
50195         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50196         take 2.
50197         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50198         'canonicalize-lgpl' module is also used.
50199         * lib/canonicalize-lgpl.c: Undo last change.
50200         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50201
50202 2008-04-20  Bruno Haible  <bruno@clisp.org>
50203
50204         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50205         config.h. Provide _mkdir based fallback for mingw.
50206         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50207         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50208         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50209         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50210         rather than defining mkdir in config.h.
50211         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50212         (gl_SYS_STAT_H_DEFAULTS): New macro.
50213         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50214         HAVE_IO_H any more.
50215         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50216         HAVE_DECL_MKDIR and HAVE_IO_H.
50217
50218 2008-04-20  Bruno Haible  <bruno@clisp.org>
50219
50220         * lib/isapipe.c: Port to native Windows platforms.
50221
50222 2008-04-20  Bruno Haible  <bruno@clisp.org>
50223
50224         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50225
50226 2008-04-21  Eric Blake  <ebb9@byu.net>
50227
50228         Work around preprocessors that don't handle UINTMAX_MAX.
50229         * lib/memchr2.c (memchr2): Avoid embedded #if.
50230         Reported by Alain Guibert, fix suggested by Bruno Haible.
50231
50232 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50233
50234         * doc/posix-functions/strftime.texi (strftime): Explain better
50235         Windows incompatibility.  Suggested by Micah Cowan
50236         <micah@cowan.name>.
50237
50238 2008-04-20  Bruno Haible  <bruno@clisp.org>
50239
50240         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50241         unistr/u8-mblen.
50242
50243 2008-04-20  Bruno Haible  <bruno@clisp.org>
50244
50245         Fix test failure on platforms with non-GNU iconv.
50246         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50247         (U_TO_U8): Use it, rather than u16_to_u8.
50248         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50249         units at the end of the input string.
50250         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50251
50252 2008-04-20  Bruno Haible  <bruno@clisp.org>
50253
50254         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50255         when the resulting length is 0.
50256         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50257
50258 2008-04-20  Bruno Haible  <bruno@clisp.org>
50259
50260         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50261         works.
50262         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50263
50264 2008-04-20  Bruno Haible  <bruno@clisp.org>
50265
50266         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50267         * modules/tsearch-tests (configure.ac): Test for initstate function.
50268
50269 2008-04-20  Bruno Haible  <bruno@clisp.org>
50270
50271         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50272         for nlink_t if missing.
50273         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50274
50275 2008-04-19  Bruno Haible  <bruno@clisp.org>
50276
50277         Work around snprintf bug on Linux libc5.
50278         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50280         gl_SNPRINTF_SIZE1.
50281         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50282         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50283         that test failed.
50284         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50285         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50286         * modules/snprintf (Files): Add m4/printf.m4.
50287         * modules/vsnprintf (Files): Likewise.
50288         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50289         * doc/posix-functions/vsnprintf.texi: Likewise.
50290
50291 2008-04-19  Bruno Haible  <bruno@clisp.org>
50292
50293         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50294         from 0.0058 to less than 10^-7.
50295
50296 2008-04-19  Bruno Haible  <bruno@clisp.org>
50297
50298         Fix rounding when a precision is given.
50299         * lib/vasnprintf.c (is_borderline): New function.
50300         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50301         9...9x.
50302         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50303         %e, %g.
50304         * tests/test-vasprintf-posix.c (test_function): Likewise.
50305         * tests/test-snprintf-posix.h (test_function): Likewise.
50306         * tests/test-sprintf-posix.h (test_function): Likewise.
50307         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50308         * tests/test-printf-posix.h (test_function): Likewise.
50309         * tests/test-printf-posix.output: Update.
50310         Reported by John Darrington <john@darrington.wattle.id.au> via
50311         Ben Pfaff <blp@cs.stanford.edu>.
50312
50313 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50314
50315         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50316         Suggested by Bruno Haible <bruno@clisp.org>.
50317
50318 2008-04-17  Bruno Haible  <bruno@clisp.org>
50319
50320         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50321         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50322         implementation.
50323         Patch by Bruce Merry <bmerry@gmail.com>.
50324
50325 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50326
50327         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50328         doesn't work under Windows.
50329
50330 2008-04-16  Bruno Haible  <bruno@clisp.org>
50331
50332         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50333         New macros.
50334         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50335         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50336         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50337         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50338         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50339         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50340         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50341         macros.
50342         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50343         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50344         Northern Sotho, Uighur.
50345
50346 2008-04-16  Bruno Haible  <bruno@clisp.org>
50347
50348         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50349         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50350         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50351         Reported by Daniel Bergström <daniel@octocode.com>.
50352
50353 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50354             Bruno Haible  <bruno@clisp.org>
50355
50356         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50357         function.
50358         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50359         New functions, mostly extracted from gl_locale_name_default.
50360         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50361
50362 2008-04-16  Eric Blake  <ebb9@byu.net>
50363
50364         Adjust strtod detection to catch glibc 2.7 bug.
50365         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50366         Reported by John Gatewood Ham.
50367
50368 2008-04-16  Bruno Haible  <bruno@clisp.org>
50369
50370         Add tentative support for Linux libc5.
50371         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50372         * lib/fpurge.c (fpurge): Likewise.
50373         * lib/freadable.c (freadable): Likewise.
50374         * lib/freadahead.c (freadahead): Likewise.
50375         * lib/freading.c (freading): Likewise.
50376         * lib/freadptr.c (freadptr): Likewise.
50377         * lib/freadseek.c (freadptrinc): Likewise.
50378         * lib/fseeko.c (rpl_fseeko): Likewise.
50379         * lib/fseterr.c (fseterr): Likewise.
50380         * lib/fwritable.c (fwritable): Likewise.
50381         * lib/fwriting.c (fwriting): Likewise.
50382         Reported by Alain Guibert <alguibert+bts@free.fr>.
50383
50384 2008-04-15  Bruno Haible  <bruno@clisp.org>
50385
50386         * modules/mathl (configure.ac): Define module indicator.
50387
50388 2008-04-15  Bruno Haible  <bruno@clisp.org>
50389
50390         * lib/logl.c (logl): Remove unused variables.
50391
50392 2008-04-15  Bruno Haible  <bruno@clisp.org>
50393
50394         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50395         fails.
50396
50397 2008-04-15  Bruno Haible  <bruno@clisp.org>
50398
50399         * lib/trim.c (trim2): Fix argument of isspace() macro.
50400
50401 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50402
50403         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50404         to 0.
50405         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50406
50407 2008-04-14  Bruno Haible  <bruno@clisp.org>
50408
50409         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50410         AC_LANG_PROGRAM argument.
50411         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50412         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50414         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50415         * m4/math_h.m4 (gl_MATH_H): Likewise.
50416         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50417         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50418         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50419         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50420         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50421         * m4/regex.m4 (gl_REGEX): Likewise.
50422         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50423         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50424         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50425         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50426         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50427         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50428         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50429         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50430
50431 2008-04-14  Jim Meyering  <meyering@redhat.com>
50432
50433         test-strtod: fix typos: s/abs/fabs/
50434         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50435
50436 2008-04-13  Bruno Haible  <bruno@clisp.org>
50437
50438         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50439         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50440         module is also used and while not building the reloc-wrapper.
50441
50442 2008-04-13  Bruno Haible  <bruno@clisp.org>
50443
50444         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50445
50446 2008-04-13  Bruno Haible  <bruno@clisp.org>
50447
50448         Fix AIX compilation failure introduced on 2008-04-02.
50449         * tests/test-frexp.c (exp): Undefine before redefining.
50450         * tests/test-frexpl.c (exp): Likewise.
50451
50452 2008-04-13  Bruno Haible  <bruno@clisp.org>
50453
50454         Work around a HP-UX stdio bug.
50455         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50456         * tests/test-ftello.c (main): Likewise.
50457         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50458         * doc/posix-functions/ftello.texi: Likewise.
50459
50460 2008-04-13  Bruno Haible  <bruno@clisp.org>
50461
50462         Make test-signbit pass on HP-UX/hppa.
50463         * tests/test-signbit.c (minus_zerol): New variable.
50464         (test_signbitl): Use it.
50465
50466 2008-04-13  Bruno Haible  <bruno@clisp.org>
50467
50468         Make truncl work on OSF/1 4.0.
50469         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50470         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50471         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50473         HAVE_DECL_TRUNCL.
50474         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50475         HAVE_DECL_TRUNCL.
50476         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50477
50478 2008-04-13  Bruno Haible  <bruno@clisp.org>
50479
50480         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50481
50482 2008-04-13  Bruno Haible  <bruno@clisp.org>
50483
50484         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50485         expression, so as to avoid HP-UX 11 cc compiler bug.
50486
50487 2008-04-13  Bruno Haible  <bruno@clisp.org>
50488
50489         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50490
50491 2008-04-13  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/git-merge-changelog.c: Remove empty declaration outside of
50494         functions.
50495
50496 2008-04-13  Bruno Haible  <bruno@clisp.org>
50497
50498         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50499
50500 2008-04-13  Bruno Haible  <bruno@clisp.org>
50501
50502         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50503         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50504         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50505         also if it exists but lacks definitions of the SHUT_* macros.
50506         * modules/sys_socket (Description): Update.
50507         Reported by Elbert Pol <e.pol@chello.nl>.
50508
50509 2008-04-13  Bruno Haible  <bruno@clisp.org>
50510
50511         * lib/localcharset.c (OS2): Don't redefine if already defined.
50512         Reported by Elbert Pol <e.pol@chello.nl>.
50513
50514 2008-04-13  Bruno Haible  <bruno@clisp.org>
50515
50516         * lib/binary-io.h [__EMX__]: Include <io.h>.
50517         Reported by Elbert Pol <e.pol@chello.nl>.
50518
50519 2008-04-12  Bruno Haible  <bruno@clisp.org>
50520
50521         * lib/fpucw.h: Enable the definitions also for x86_64.
50522         Needed for NetBSD/x86_64.
50523         Reported by Thomas Klausner <tk@giga.or.at>.
50524
50525 2008-04-12  Bruno Haible  <bruno@clisp.org>
50526
50527         * tests/test-strtod.c: Include isnand.h.
50528         (main): Use isnand instead of isnan.
50529         Reported by Jim Meyering.
50530
50531 2008-04-12  Bruno Haible  <bruno@clisp.org>
50532
50533         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50534         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50535
50536 2008-04-12  Jim Meyering  <meyering@redhat.com>
50537
50538         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50539
50540 2008-04-12  Bruno Haible  <bruno@clisp.org>
50541
50542         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50543         Reported by Elbert Pol <e.pol@chello.nl>.
50544
50545 2008-04-12  Eric Blake  <ebb9@byu.net>
50546
50547         Work around Solaris 10 math.h bug.
50548         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50549         (gl_MATH_H_DEFAULTS): Set up default.
50550         * modules/math (Makefile.am): Replace new indicators.
50551         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50552         * tests/test-math.c (main): Test this.
50553         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50554         * doc/posix-headers/math.texi (math.h): Mention bug.
50555         Reported by Nelson H. F. Beebe and Jim Meyering.
50556
50557 2008-04-11  Bruno Haible  <bruno@clisp.org>
50558
50559         Adapt to future versions of Apple GCC.
50560         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50561         Reported by Peter O'Gorman <peter@pogma.com>.
50562
50563 2008-04-11  Bruno Haible  <bruno@clisp.org>
50564
50565         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50566
50567 2008-04-11  Bruno Haible  <bruno@clisp.org>
50568
50569         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50570
50571         * modules/getaddrinfo-tests (Makefile.am): Define
50572         test_getaddrinfo_LDADD.
50573
50574 2008-04-11  Bruno Haible  <bruno@clisp.org>
50575
50576         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50577         (init): Fix syntax error.
50578         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50579         is declared.
50580
50581 2008-04-11  Bruno Haible  <bruno@clisp.org>
50582
50583         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50584         * modules/glob (Depends-on): Add stdbool.
50585
50586 2008-04-11  Bruno Haible  <bruno@clisp.org>
50587
50588         * lib/trim.c: Include <string.h>.
50589
50590 2008-04-11  Eric Blake  <ebb9@byu.net>
50591
50592         Avoid compile failure on OS/2.
50593         * lib/regex_internal.h (internal_function): Disable optimization
50594         on OS/2 (__EMX__), where it caused compiler error.
50595         Reported by Elbert Pol.
50596
50597 2008-04-11  Bruno Haible  <bruno@clisp.org>
50598
50599         Flush the standard error stream before aborting. Needed on mingw.
50600         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50601         * tests/test-array_list.c (ASSERT): Likewise.
50602         * tests/test-array_oset.c (ASSERT): Likewise.
50603         * tests/test-avltree_list.c (ASSERT): Likewise.
50604         * tests/test-avltree_oset.c (ASSERT): Likewise.
50605         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50606         * tests/test-binary-io.c (ASSERT): Likewise.
50607         * tests/test-byteswap.c (ASSERT): Likewise.
50608         * tests/test-c-ctype.c (ASSERT): Likewise.
50609         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50610         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50611         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50612         * tests/test-c-strstr.c (ASSERT): Likewise.
50613         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50614         * tests/test-canonicalize.c (ASSERT): Likewise.
50615         * tests/test-carray_list.c (ASSERT): Likewise.
50616         * tests/test-ceilf1.c (ASSERT): Likewise.
50617         * tests/test-ceilf2.c (ASSERT): Likewise.
50618         * tests/test-ceill.c (ASSERT): Likewise.
50619         * tests/test-count-one-bits.c (ASSERT): Likewise.
50620         * tests/test-fbufmode.c (ASSERT): Likewise.
50621         * tests/test-fflush2.c (ASSERT): Likewise.
50622         * tests/test-floorf1.c (ASSERT): Likewise.
50623         * tests/test-floorf2.c (ASSERT): Likewise.
50624         * tests/test-floorl.c (ASSERT): Likewise.
50625         * tests/test-fopen.c (ASSERT): Likewise.
50626         * tests/test-fpending.c (ASSERT): Likewise.
50627         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50628         * tests/test-fpurge.c (ASSERT): Likewise.
50629         * tests/test-freadable.c (ASSERT): Likewise.
50630         * tests/test-freadahead.c (ASSERT): Likewise.
50631         * tests/test-freading.c (ASSERT): Likewise.
50632         * tests/test-freadptr.c (ASSERT): Likewise.
50633         * tests/test-freadptr2.c (ASSERT): Likewise.
50634         * tests/test-freadseek.c (ASSERT): Likewise.
50635         * tests/test-freopen.c (ASSERT): Likewise.
50636         * tests/test-frexp.c (ASSERT): Likewise.
50637         * tests/test-frexpl.c (ASSERT): Likewise.
50638         * tests/test-fseek.c (ASSERT): Likewise.
50639         * tests/test-fseeko.c (ASSERT): Likewise.
50640         * tests/test-fstrcmp.c (ASSERT): Likewise.
50641         * tests/test-ftell.c (ASSERT): Likewise.
50642         * tests/test-ftello.c (ASSERT): Likewise.
50643         * tests/test-func.c (ASSERT): Likewise.
50644         * tests/test-fwritable.c (ASSERT): Likewise.
50645         * tests/test-fwriting.c (ASSERT): Likewise.
50646         * tests/test-getdelim.c (ASSERT): Likewise.
50647         * tests/test-getline.c (ASSERT): Likewise.
50648         * tests/test-i-ring.c (ASSERT): Likewise.
50649         * tests/test-iconv-utf.c (ASSERT): Likewise.
50650         * tests/test-iconv.c (ASSERT): Likewise.
50651         * tests/test-isfinite.c (ASSERT): Likewise.
50652         * tests/test-isnand.c (ASSERT): Likewise.
50653         * tests/test-isnanf.c (ASSERT): Likewise.
50654         * tests/test-isnanl.h (ASSERT): Likewise.
50655         * tests/test-ldexpl.c (ASSERT): Likewise.
50656         * tests/test-linked_list.c (ASSERT): Likewise.
50657         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50658         * tests/test-localename.c (ASSERT): Likewise.
50659         * tests/test-lseek.c (ASSERT): Likewise.
50660         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50661         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50662         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50663         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50664         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50665         * tests/test-mbschr.c (ASSERT): Likewise.
50666         * tests/test-mbscspn.c (ASSERT): Likewise.
50667         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50668         * tests/test-mbspbrk.c (ASSERT): Likewise.
50669         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50670         * tests/test-mbsrchr.c (ASSERT): Likewise.
50671         * tests/test-mbsspn.c (ASSERT): Likewise.
50672         * tests/test-mbsstr1.c (ASSERT): Likewise.
50673         * tests/test-mbsstr2.c (ASSERT): Likewise.
50674         * tests/test-mbsstr3.c (ASSERT): Likewise.
50675         * tests/test-memchr2.c (ASSERT): Likewise.
50676         * tests/test-memmem.c (ASSERT): Likewise.
50677         * tests/test-open.c (ASSERT): Likewise.
50678         * tests/test-printf-frexp.c (ASSERT): Likewise.
50679         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50680         * tests/test-printf-posix.c (ASSERT): Likewise.
50681         * tests/test-quotearg.c (ASSERT): Likewise.
50682         * tests/test-rbtree_list.c (ASSERT): Likewise.
50683         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50684         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50685         * tests/test-round1.c (ASSERT): Likewise.
50686         * tests/test-roundf1.c (ASSERT): Likewise.
50687         * tests/test-roundl.c (ASSERT): Likewise.
50688         * tests/test-signbit.c (ASSERT): Likewise.
50689         * tests/test-sleep.c (ASSERT): Likewise.
50690         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50691         * tests/test-snprintf.c (ASSERT): Likewise.
50692         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50693         * tests/test-stat-time.c (ASSERT): Likewise.
50694         * tests/test-strcasestr.c (ASSERT): Likewise.
50695         * tests/test-strerror.c (ASSERT): Likewise.
50696         * tests/test-striconv.c (ASSERT): Likewise.
50697         * tests/test-striconveh.c (ASSERT): Likewise.
50698         * tests/test-striconveha.c (ASSERT): Likewise.
50699         * tests/test-strsignal.c (ASSERT): Likewise.
50700         * tests/test-strstr.c (ASSERT): Likewise.
50701         * tests/test-strtod.c (ASSERT): Likewise.
50702         * tests/test-trunc1.c (ASSERT): Likewise.
50703         * tests/test-trunc2.c (ASSERT): Likewise.
50704         * tests/test-truncf1.c (ASSERT): Likewise.
50705         * tests/test-truncf2.c (ASSERT): Likewise.
50706         * tests/test-truncl.c (ASSERT): Likewise.
50707         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50708         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50709         * tests/test-vasnprintf.c (ASSERT): Likewise.
50710         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50711         * tests/test-vasprintf.c (ASSERT): Likewise.
50712         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50713         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50714         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50715         * tests/test-vsnprintf.c (ASSERT): Likewise.
50716         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50717         * tests/test-wcwidth.c (ASSERT): Likewise.
50718         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50719         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50720         * tests/test-xvasprintf.c (ASSERT): Likewise.
50721         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50722         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50723         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50724         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50725         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50726         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50727         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50728         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50729         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50730         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50731         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50732         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50733         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50734         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50735         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50736         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50737         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50738         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50739         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50740         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50741         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50742         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50743         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50744         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50745         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50746         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50747         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50748         * tests/unictype/test-combining.c (ASSERT): Likewise.
50749         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50750         * tests/unictype/test-digit.c (ASSERT): Likewise.
50751         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50752         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50753         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50754         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50755         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50756         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50757         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50758         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50759         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50760         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50761         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50762         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50763         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50764         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50765         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50766         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50767         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50768         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50769         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50770         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50771         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50772         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50773         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50774         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50775         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50776         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50777         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50778         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50779         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50780         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50781         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50782         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50783         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50784         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50785         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50786         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50787         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50788         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50789         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50790         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50791         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50792         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50793         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50794         Reported by Eric Blake.
50795
50796 2008-04-11  Bruno Haible  <bruno@clisp.org>
50797
50798         * lib/wchar.in.h: Tweak comment.
50799
50800 2008-04-11  Bruno Haible  <bruno@clisp.org>
50801
50802         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50803         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50804         gl_COMMON.
50805         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50806
50807 2008-04-11  Bruno Haible  <bruno@clisp.org>
50808
50809         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50810
50811 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50812
50813         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50814         of attempting to use non-existing /dev/*random.  Based on patch
50815         from Adam Strzelecki <ono@java.pl> in
50816         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50817
50818 2008-04-08  Bruno Haible  <bruno@clisp.org>
50819
50820         Add tentative support for emx+gcc.
50821         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50822         * lib/fpurge.c (fpurge): Likewise.
50823         * lib/freadable.c (freadable): Likewise.
50824         * lib/freadahead.c (freadahead): Likewise.
50825         * lib/freading.c (freading): Likewise.
50826         * lib/freadptr.c (freadptr): Likewise.
50827         * lib/freadseek.c (freadptrinc): Likewise.
50828         * lib/fseeko.c (rpl_fseeko): Likewise.
50829         * lib/fseterr.c (fseterr): Likewise.
50830         * lib/fwritable.c (fwritable): Likewise.
50831         * lib/fwriting.c (fwriting): Likewise.
50832         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50833
50834 2008-04-09  Eric Blake  <ebb9@byu.net>
50835
50836         Avoid some autoconf warnings.
50837         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50838         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50839         * m4/afs.m4 (gl_AFS): Likewise.
50840         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50841         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50842         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50843         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50844         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50845         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50846         (AC_CHECK_DECLS_ONCE): Likewise.
50847         Rename file...
50848         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50849         gnulib-tool requires autoconf 2.59 or better.
50850         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50851
50852 2008-04-08  Eric Blake  <ebb9@byu.net>
50853
50854         Use 'git describe --match' if present (added in git 1.5.5).
50855         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50856         if possible.
50857
50858 2008-04-08  Bruno Haible  <bruno@clisp.org>
50859
50860         Add tentative support for OpenServer.
50861         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50862         _ptr, _cnt.
50863         * lib/fpurge.c (fpurge): Likewise.
50864         * lib/freadable.c (freadable): Likewise.
50865         * lib/freadahead.c (freadahead): Likewise.
50866         * lib/freading.c (freading): Likewise.
50867         * lib/freadptr.c (freadptr): Likewise.
50868         * lib/freadseek.c (freadptrinc): Likewise.
50869         * lib/fseeko.c (rpl_fseeko): Likewise.
50870         * lib/fseterr.c (fseterr): Likewise.
50871         * lib/fwritable.c (fwritable): Likewise.
50872         * lib/fwriting.c (fwriting): Likewise.
50873         Reported by Roger Cornelius <rac@tenzing.org> and
50874         Brian K. White <brian@aljex.com>.
50875
50876 2008-04-06  Jim Meyering  <meyering@redhat.com>
50877
50878         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50879
50880 2008-04-06  Bruno Haible  <bruno@clisp.org>
50881
50882         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50883         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50884         * tests/test-printf-posix.sh: Likewise.
50885         * tests/test-vfprintf-posix.sh: Likewise.
50886         * tests/test-vprintf-posix.sh: Likewise.
50887         * tests/test-xprintf-posix.sh: Likewise.
50888
50889 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50890
50891         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50892         hide error from 'ls', needed on OS/2.
50893         Report by Elbert Pol <elbert.pol@gmail.com>.
50894
50895 2008-04-04  Eric Blake  <ebb9@byu.net>
50896
50897         Make test-fseeko.c failures meaningful.
50898         * tests/test-fseeko.c: Print line number on failure.
50899         * tests/test-fseek.c: Likewise.
50900         Reported by Nelson H. F. Beebe.
50901
50902         Improve strtod bug detection check.
50903         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50904         required for Solaris 10.
50905         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50906
50907 2008-04-04  Bruno Haible  <bruno@clisp.org>
50908
50909         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50910         by m4/setenv.m4.
50911
50912 2008-04-03  Eric Blake  <ebb9@byu.net>
50913
50914         Ensure sane .version contents.
50915         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50916         version string.
50917         * build-aux/git-version-gen: Improve documentation.
50918
50919         Make GNU make output nicer.
50920         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50921         MAKECMDGOALS to enforce message for all command line targets.  Set
50922         srcdir for use in maint.mk.
50923
50924         Another maintainer tweak.
50925         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50926         a target that regenerates version.
50927
50928 2008-04-03  Jim Meyering  <meyering@redhat.com>
50929
50930         vc-list-files: don't cause coreutils "make po-check" failure
50931         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50932
50933 2008-04-03  Eric Blake  <ebb9@byu.net>
50934
50935         Allow VPATH usage of vc-list-files.
50936         * build-aux/vc-list-files (scriptversion): Add timestamp.
50937         (options): Add --help, --version, -C.
50938         (CVS): Support installed cvsu.
50939
50940 2008-04-02  Bruno Haible  <bruno@clisp.org>
50941
50942         Avoid some "statement with no effect" warnings from gcc.
50943         * tests/test-wctype.c (main): Explicitly ignore unused values.
50944         Reported by Jim Meyering.
50945
50946 2008-04-02  Jim Meyering  <meyering@redhat.com>
50947
50948         Avoid some warnings from "gcc -Wshadow".
50949         * tests/test-frexp.c (exp): Define to a different identifier.
50950         * tests/test-frexpl.c (exp): Likewise.
50951
50952 2008-04-03  Jim Meyering  <meyering@redhat.com>
50953
50954         bootstrap: remove dangling *.[ch] symlinks from lib
50955         * build-aux/bootstrap [dangling symlink removal]: Move find's
50956         -depth option to precede all others, to avoid a warning.
50957         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50958
50959 2008-04-02  Bruno Haible  <bruno@clisp.org>
50960
50961         Avoid some warnings from "gcc -Wshadow".
50962         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50963         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50964         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50965         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50966         Reported by Jim Meyering.
50967
50968 2008-04-01  Bruno Haible  <bruno@clisp.org>
50969
50970         Fix test to work on IRIX 6.5 with cc.
50971         * tests/test-math.c (numeric_equal): New function.
50972         (main): Use it.
50973
50974 2008-04-01  Bruno Haible  <bruno@clisp.org>
50975
50976         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50977
50978 2008-04-01  Bruno Haible  <bruno@clisp.org>
50979
50980         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50981         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50982         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50983         (Depends-on): Remove math.
50984
50985         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50986         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50987         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50988         (Depends-on): Remove math.
50989
50990         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50991         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50992         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50993         (Depends-on): Remove math.
50994         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50995         (Depends-on): Remove math.
50996
50997         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50998         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50999         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51000         (Depends-on): Remove math.
51001         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51002         (Depends-on): Remove math.
51003
51004         * tests/test-round1.c: Include nan.h.
51005         (main): Use NaNd instead of NAN.
51006         * modules/round-tests (Files): Add tests/nan.h.
51007
51008         * tests/test-trunc1.c: Include nan.h.
51009         (main): Use NaNd instead of NAN.
51010         * modules/trunc-tests (Files): Add tests/nan.h.
51011
51012         * tests/test-roundf1.c: Include nan.h.
51013         (main): Use NaNf instead of NAN.
51014         * modules/roundf-tests (Files): Add tests/nan.h.
51015
51016         * tests/test-truncf1.c: Include nan.h.
51017         (main): Use NaNf instead of NAN.
51018         * modules/truncf-tests (Files): Add tests/nan.h.
51019
51020         * tests/test-ceilf1.c: Include nan.h.
51021         (main): Use NaNf instead of NAN.
51022         * modules/ceilf-tests (Files): Add tests/nan.h.
51023
51024         * tests/test-floorf1.c: Include nan.h.
51025         (main): Use NaNf instead of NAN.
51026         * modules/floorf-tests (Files): Add tests/nan.h.
51027
51028         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51029         (main): Use NaNf instead of NAN.
51030         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51031
51032         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51033         (main): Use NaNd instead of NAN.
51034         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51035
51036         * tests/test-frexp.c: Include nan.h.
51037         (main): Use NaNd instead of NAN.
51038         * modules/frexp-tests (Files): Add tests/nan.h.
51039
51040         * lib/isnan.c: Don't include <math.h>.
51041         (FUNC): Don't use NAN macro.
51042         * modules/isnand-nolibm (Depends-on): Remove math.
51043         * modules/isnanf-nolibm (Depends-on): Remove math.
51044         * modules/isnanl (Depends-on): Remove math.
51045         * modules/isnanl-nolibm (Depends-on): Remove math.
51046
51047         * tests/nan.h: New file.
51048
51049 2008-04-01  Eric Blake  <ebb9@byu.net>
51050
51051         Fix typos.
51052         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51053         values to be the right type.
51054
51055         For now, cater to gnulib strtod inaccuracies.
51056         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51057         fractional results.  While not as nice from a QoI perspective, it
51058         is a quicker patch than correctly implementing decimal to binary
51059         rounding.
51060
51061 2008-03-31  Eric Blake  <ebb9@byu.net>
51062
51063         Guarantee a definition of NAN.
51064         * lib/math.in.h (NAN): Define if missing.
51065         * tests/test-math.c (main): Test it.
51066         * doc/posix-headers/math.texi (math.h): Document this.
51067         * lib/isnan.c (rpl_isnand): Use it.
51068         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51069         * tests/test-floorf1.c (NaN): Likewise.
51070         * tests/test-frexp.c (NaN): Likewise.
51071         * tests/test-isnand.c (NaN): Likewise.
51072         * tests/test-isnanf.c (NaN): Likewise.
51073         * tests/test-round1.c (NaN): Likewise.
51074         * tests/test-roundf1.c (NaN): Likewise.
51075         * tests/test-snprintf-posix.h (NaN): Likewise.
51076         * tests/test-sprintf-posix.h (NaN): Likewise.
51077         * tests/test-trunc1.c (NaN): Likewise.
51078         * tests/test-truncf1.c (NaN): Likewise.
51079         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51080         * tests/test-vasprintf-posix.c (NaN): Likewise.
51081         * modules/isnand-nolibm (Depends-on): Add math.
51082         * modules/isnanf-nolibm (Depends-on): Likewise.
51083         * modules/isnanl (Depends-on): Likewise.
51084         * modules/isnanl-nolibm (Depends-on): Likewise.
51085         * modules/snprintf-posix-tests (Depends-on): Likewise.
51086         * modules/sprintf-posix-tests (Depends-on): Likewise.
51087         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51088         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51089         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51090         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51091
51092 2008-03-31  Bruno Haible  <bruno@clisp.org>
51093
51094         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51095         * doc/posix-functions/strtod.texi: Likewise.
51096
51097 2008-03-31  Bruno Haible  <bruno@clisp.org>
51098
51099         * tests/test-strtod.c (main): Don't use C99 syntax.
51100
51101 2008-03-31  Bruno Haible  <bruno@clisp.org>
51102
51103         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51104         Reported by Eric Blake.
51105
51106 2008-03-31  Jim Meyering  <meyering@redhat.com>
51107
51108         Don't compare actual signbit return values.
51109         * tests/test-strtod.c (main): Rather, compare only their
51110         zero/non-zero nature.
51111
51112 2008-03-31  Eric Blake  <ebb9@byu.net>
51113
51114         More strtod documentation.
51115         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51116         failures as distinct bugs.
51117
51118 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51119
51120         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51121         Problem reported by Erik Benada in
51122         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51123
51124 2008-03-30  Bruno Haible  <bruno@clisp.org>
51125
51126         * tests/test-strtod.c: Add comments about which assertion fails on which
51127         platform.
51128         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51129
51130 2008-03-30  Eric Blake  <ebb9@byu.net>
51131
51132         Test signbit behavior on zeros.
51133         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51134         (test_signbitd, test_signbitl): Likewise.
51135
51136         More strtod touchups.
51137         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51138         sign of negative underflow, for now.  Use .5, not .1.
51139         * doc/posix-functions/strtod.texi (strtod): Mention these
51140         limitations.
51141         Reported by Jim Meyering.
51142
51143 2008-03-30  Bruno Haible  <bruno@clisp.org>
51144
51145         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51146         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51147
51148 2008-03-30  Bruno Haible  <bruno@clisp.org>
51149
51150         Avoid failure when attempting to return empty iconv results on some
51151         platforms.
51152         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51153         allocation, don't report ENOMEM when the resulting string is empty.
51154
51155 2008-03-30  Bruno Haible  <bruno@clisp.org>
51156
51157         Fix buffer overrun.
51158         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51159         Don't consider the width for tmp_length. Check count against tmp_length
51160         before doing the padding. Ensure enough allocation during padding.
51161
51162 2008-03-30  Eric Blake  <ebb9@byu.net>
51163
51164         strtod touchups.
51165         * lib/strtod.c (strtod): Avoid compiler warnings.
51166         Reported by Jim Meyering.
51167
51168 2008-03-30  Bruno Haible  <bruno@clisp.org>
51169
51170         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51171         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51172         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51173         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51174         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51175         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51176         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51177         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51178
51179         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51180         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51181         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51182         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51183         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51184         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51185         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51186         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51187
51188         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51189         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51190         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51191         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51192         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51193         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51194         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51195         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51196
51197         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51198         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51199
51200         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51201         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51202
51203         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51204         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51205
51206         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51207         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51208         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51209
51210         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51211         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51212         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51213
51214         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51216         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51217
51218         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51219         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51220         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51221
51222         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51223         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51225         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51226         (Depends-on): Add EOVERFLOW.
51227         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51228         (Depends-on): Add EOVERFLOW.
51229         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51230         (Depends-on): Add EOVERFLOW.
51231         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51232         (Depends-on): Add EOVERFLOW.
51233         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51234         (Depends-on): Add EOVERFLOW.
51235         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51236         (Depends-on): Add EOVERFLOW.
51237         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51238         (Depends-on): Add EOVERFLOW.
51239         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51240         (Depends-on): Add EOVERFLOW.
51241
51242         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51243         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51244         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51245
51246         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51247         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51248         * modules/snprintf (Depends-on): Add EOVERFLOW.
51249
51250         * lib/poll.c (EOVERFLOW): Remove fallback.
51251         * modules/poll (Depends-on): Add EOVERFLOW.
51252
51253         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51254         * modules/getugroups (Depends-on): Add EOVERFLOW.
51255
51256         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51257         * modules/getdelim (Depends-on): Add EOVERFLOW.
51258
51259         * lib/ftell.c (EOVERFLOW): Remove fallback.
51260         * modules/ftell (Depends-on): Add EOVERFLOW.
51261
51262         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51263         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51264         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51265
51266         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51267
51268         * modules/EOVERFLOW-tests: New file.
51269         * tests/test-EOVERFLOW.c: New file.
51270
51271         * modules/EOVERFLOW: New file.
51272         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51273
51274 2008-03-30  Bruno Haible  <bruno@clisp.org>
51275
51276         Fix bug introduced on 2007-06-10.
51277         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51278         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51279
51280 2008-03-30  Bruno Haible  <bruno@clisp.org>
51281
51282         Improve freadseek's efficiency after ungetc.
51283         * lib/freadseek.c: Include freadahead.h.
51284         (freadptrinc): New function, extracted from freadseek.
51285         (freadseek): Use it in a loop. Use freadahead to determine the number
51286         of loop iterations.
51287         * modules/freadseek (Depends-on): Add freadahead.
51288         (configure.ac): Require AC_C_INLINE.
51289
51290 2008-03-30  Bruno Haible  <bruno@clisp.org>
51291
51292         * lib/freadseek.c (freadseek): Don't ignore the return value of
51293         freadptr.
51294
51295 2008-03-29  Eric Blake  <ebb9@byu.net>
51296
51297         Add hex float support.
51298         * modules/strtod (Depends-on): Add c-ctype.
51299         (Link): Mention POW_LIB.
51300         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51301         whitespace between 'e' and exponent.
51302         * tests/test-strtod.c (main): Enable hex float tests.
51303         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51304         now provides.
51305
51306         Document various strtod bugs, with some fixes.
51307         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51308         "-0x", "inf", "nan", and hex constants.
51309         * doc/posix-functions/atof.texi (atof): Likewise.
51310         * modules/stdlib (Makefile.am): Support strtod.
51311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51312         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51313         detect additional strtod bugs.
51314         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51315         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51316         bool where appropriate.  Parse 'inf' and 'nan'.
51317         * tests/test-strtod.c: New file.
51318         * modules/strtod (Depends-on): Add stdbool, stdlib.
51319         (configure.ac): Turn on module indicator.
51320         * modules/strtod-tests: New module.
51321
51322 2008-03-29  Eric Blake  <ebb9@byu.net>
51323
51324         Fix ftell on mingw.
51325         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51326         * modules/ftell-tests (Depends-on): Add binary-io.
51327         * modules/ftello-tests (Depends-on): Likewise.
51328         * tests/test-ftell.c (main): Enhance test to cover behavior after
51329         ungetc.  Enforce binary mode.
51330         * tests/test-ftello.c (main): Likewise.
51331
51332         Pass test-freadseek on cygwin.
51333         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51334         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51335         ungetc buffer.
51336
51337         * tests/test-fflush2.c (main): Fix typo.
51338
51339 2008-03-29  Bruno Haible  <bruno@clisp.org>
51340
51341         * tests/test-fflush2.c (main): Temporarily disable the contents of
51342         this test.
51343         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51344         Reported by Eric Blake.
51345
51346 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51347
51348         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51349         (GC_SHA224_DIGEST_SIZE): Add.
51350
51351         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51352         (gc_hash_digest_length): Likewise.
51353         (gc_hash_buffer): Likewise.
51354
51355 2008-03-25  Bruno Haible  <bruno@clisp.org>
51356
51357         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51358         detail which gettext release to use.
51359         Reported by Simon Josefsson.
51360
51361 2008-03-26  Jim Meyering  <meyering@redhat.com>
51362
51363         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51364         * modules/gnumakefile (clean-GNUmakefile): Also, use
51365         test ... && ... || : syntax rather than if-then ... fi.
51366
51367         gnumakefile: Don't double-quote-expand $(VPATH) value.
51368         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51369
51370 2008-03-24  Eric Blake  <ebb9@byu.net>
51371
51372         Alter GNUmakefile to install into top directory.
51373         * modules/maintainer-makefile: Split, and add dependency...
51374         * modules/gnumakefile: to this new module.
51375         * build-aux/GNUmakefile: Move...
51376         * top/GNUmakefile: ...here.
51377         * build-aux/maint.mk: Move...
51378         * top/maint.mk: ...here.
51379         * MODULES.html.sh (Support for maintaining...): Document new
51380         module.
51381
51382 2008-03-23  Bruno Haible  <bruno@clisp.org>
51383
51384         * gnulib-tool: New options --vc-files, --no-vc-files.
51385         (func_usage): Document them.
51386         (vc_files): New variable.
51387         (func_import): Consider vc_files.
51388         (func_create_testdir): Set vc_files to empty.
51389         Suggested by Jim Meyering and Karl Berry.
51390
51391 2008-03-23  Bruno Haible  <bruno@clisp.org>
51392
51393         Fix regex compilation error on HP-UX 11.
51394         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51395         * modules/regex (Files): Add m4/mbstate_t.m4.
51396         Reported by Ton Voon <ton.voon@altinity.com>.
51397
51398 2008-03-23  Bruno Haible  <bruno@clisp.org>
51399
51400         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51401
51402 2008-03-23  Eric Blake  <ebb9@byu.net>
51403             Bruno Haible  <bruno@clisp.org>
51404
51405         Install files from top/ in the destination directory.
51406         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51407         augmentation also for the files from top/.
51408         (func_import, func_create_testdir): Rewrite file names:
51409         top/filename -> filename.
51410
51411 2008-03-23  Bruno Haible  <bruno@clisp.org>
51412
51413         Tweak "gnulib --version" output.
51414         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51415
51416 2008-03-23  Bruno Haible  <bruno@clisp.org>
51417
51418         Tweak "gnulib --version" output.
51419         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51420         rather than contents of ChangeLog, when possible.
51421
51422 2008-03-21  Eric Blake  <ebb9@byu.net>
51423
51424         More --version tweaks.
51425         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51426         date of last ChangeLog entry.
51427
51428 2008-03-21  Jim Meyering  <meyering@redhat.com>
51429
51430         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51431
51432 2008-03-20  Eric Blake  <ebb9@byu.net>
51433
51434         VPATH fix.
51435         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51436
51437 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51438
51439         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51440         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51441
51442 2008-03-20  Eric Blake  <ebb9@byu.net>
51443
51444         Sync GNUmakefile with coreutils.
51445         * build-aux/GNUmakefile (have-Makefile): Rename...
51446         (_have-Makefile): ...to this, for namespace consideration.
51447         (GNUmakefile.cfg): Include, if present.
51448         (_autoreconf): Define a default.
51449         (_is-dist-target): New rule for rebuilds to pick up intra-release
51450         version.
51451         (maint-cfg.mk): Rename...
51452         (cfg.mk): ...to this.
51453
51454 2008-03-18  Jim Meyering  <meyering@redhat.com>
51455
51456         New script and module: mktempd
51457         * MODULES.html.sh (maint+release support): Add mktempd.
51458         * build-aux/mktempd: New file.
51459         * modules/mktempd: New file.
51460
51461 2008-03-15  Jim Meyering  <meyering@redhat.com>
51462
51463         Undo last change.
51464         * lib/sha1.c, lib/md5.c: 63 != ~63.
51465         Reported by Andreas Schwab.
51466
51467         sha1.c, md5.c: Hoist a redundant expression.
51468         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51469         "ctx->buflen" only once, before calling *_process_block.
51470         * lib/md5.c (md5_process_bytes): Likewise.
51471
51472 2008-03-14  Eric Blake  <ebb9@byu.net>
51473
51474         Bump copyright year in files generated by gnulib-tool.
51475         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51476         gnulib-tool, rather than hard-coding it.
51477
51478         Fix 'gnulib-tool --version' output to work with git.
51479         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51480         (startup): ...here.
51481         (func_version): Use it to invoke git-version-gen, rather than
51482         relying on CVS keyword expansion.  Modernize wording.
51483         (cvsdatestamp, last_checkin_date, version): Kill unused
51484         variables.
51485
51486 2008-03-12  Jim Meyering  <meyering@redhat.com>
51487
51488         Recognize optional cast of the argument to free.
51489         * build-aux/useless-if-before-free: Update regexps.
51490
51491         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51492
51493 2008-03-11  Bruno Haible  <bruno@clisp.org>
51494
51495         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51496         by a single package.
51497         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51498         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51499         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51500         Reported by Sam Steingold <sds@gnu.org>.
51501
51502 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51503
51504         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51505         repositories.
51506
51507 2008-03-11  Bruno Haible  <bruno@clisp.org>
51508
51509         Avoid conflicts between local macro definitions.
51510         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51511         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51512
51513 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51514             Bruno Haible  <bruno@clisp.org>
51515
51516         Make va_copy work with some version of xlc on AIX 5.1.
51517         * lib/stdarg.in.h: New file.
51518         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51519         On AIX, use a <stdarg.h> file substitute.
51520         * modules/stdarg (Files): Add lib/stdarg.in.h.
51521         (Depends-on): Add include_next.
51522         (Makefile.am): Build a stdarg.h substitute if requested.
51523         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51524
51525 2008-03-10  Bruno Haible  <bruno@clisp.org>
51526
51527         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51528         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51529         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51530
51531 2008-03-10  Bruno Haible  <bruno@clisp.org>
51532
51533         * modules/stdlib (Depends-on): Add include_next, remove
51534         absolute-header.
51535
51536 2008-03-09  Bruno Haible  <bruno@clisp.org>
51537
51538         * lib/freadahead.h (freadahead): Document more precisely.
51539         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51540         the sum of both buffer sizes.
51541         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51542         * NEWS: Document the change.
51543
51544 2008-03-09  Bruno Haible  <bruno@clisp.org>
51545
51546         Extend freadptr to return also the buffer size.
51547         * lib/freadptr.h (freadptr): Add sizep argument.
51548         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51549         (freadptr): Add sizep argument. Determine buffer size like freadahead
51550         does.
51551         * tests/test-freadptr.c: Don't include freadahead.h.
51552         (main): Adapt for new calling convention of freadptr.
51553         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51554         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51555         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51556         tests/test-freadptr2.sh.
51557         (Depends): Remove freadahead.
51558         (TESTS): Add test-freadptr2.sh.
51559         (check_PROGRAMS): Add test-freadptr2.
51560
51561 2008-03-09  Bruno Haible  <bruno@clisp.org>
51562
51563         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51564         Report and solution by Simon Josefsson.
51565
51566 2008-03-06  Bruno Haible  <bruno@clisp.org>
51567
51568         Make fflush after ungetc work on BSD platforms.
51569         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51570         * tests/test-fflush2.c: New file.
51571         * tests/test-fflush2.sh: New file.
51572         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51573         tests/test-fflush2.c.
51574         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51575         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51576
51577 2008-03-06  Eric Blake  <ebb9@byu.net>
51578
51579         Likewise for ftello.
51580         * modules/ftello (Dependencies): Add extensions.
51581         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51582
51583 2008-03-06  Bruno Haible  <bruno@clisp.org>
51584
51585         * modules/fseeko (Dependencies): Add extensions.
51586         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51587         Needed on glibc systems.
51588
51589 2008-03-06  Bruno Haible  <bruno@clisp.org>
51590
51591         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51592         email address.
51593         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51594
51595 2008-03-06  Bruno Haible  <bruno@clisp.org>
51596
51597         * users.txt: Add libgnupdf.
51598
51599 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51600
51601         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51602         (Header File Substitutes, Function Substitutes,
51603         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51604         (Build robot for gnulib): Fix typo.
51605
51606 2008-03-06  Bruno Haible  <bruno@clisp.org>
51607
51608         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51609         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51610
51611 2008-03-06  Bruno Haible  <bruno@clisp.org>
51612
51613         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51614         * doc/gnulib.texi: Include it.
51615
51616 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51617
51618         * modules/func (License): Change license to unlimited; there was
51619         no LGPL parts in the module anyway.
51620
51621 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51622
51623         * modules/__func__: Renamed to modules/func.
51624         * modules/__func__-tests: Renamed to modules/func-tests.
51625         * tests/test-__func__.c: Renamed to tests/test-func.c.
51626         * m4/__func__.m4: Renamed to m4/func.m4.
51627         * doc/gnulib.texi (__func__): Section renamed to func.
51628         Suggested by Eric Blake <ebb9@byu.net>.
51629
51630 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51631
51632         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51633         about __func__.  Make example self-contained.  Suggested by Eric
51634         Blake <ebb9@byu.net>.
51635
51636         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51637         Suggested by Eric Blake <ebb9@byu.net>.
51638
51639 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51640
51641         * modules/__func__: New file.
51642         * modules/__func__-tests: New file.
51643         * tests/test-__func__.c: New file.
51644         * m4/__func__.m4: New file.
51645         * doc/gnulib.texi (__func__): Document __func__ module.
51646
51647 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51648
51649         * modules/byteswap (License): Re-license as LGPLv2+.
51650
51651 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51652
51653         * doc/Makefile: Add pdf target.
51654
51655 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51656
51657         * modules/inline (License): Use 'unlimited', since there are only
51658         *.m4 files in this module.
51659
51660 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51661             Bruno Haible  <bruno@clisp.org>
51662
51663         Add support for HP C 7.1 on OpenVMS 8.3.
51664         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51665
51666 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51667
51668         Update VMS specifics.
51669         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51670
51671 2008-03-02  Jim Meyering  <meyering@redhat.com>
51672
51673         Remove the last dependency on the "free" module.
51674         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51675         Reported by Bob Proulx.
51676
51677         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51678
51679         Remove useless "if" tests before free.  Deprecate "free" module.
51680         * doc/posix-functions/free.texi: Mention that this
51681         module is no longer useful.
51682         * modules/free (Notice): Say this module is obsolete.
51683         * modules/readutmp (Depends-on): Remove free.
51684         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51685         * lib/putenv.c (putenv): Likewise.
51686         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51687         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51688         * tests/test-c-strcasestr.c (main): Likewise.
51689         * tests/test-c-strstr.c (main): Likewise.
51690         * tests/test-mbscasestr1.c (main): Likewise.
51691         * tests/test-mbscasestr2.c (main): Likewise.
51692         * tests/test-mbsstr1.c (main): Likewise.
51693         * tests/test-mbsstr2.c (main): Likewise.
51694         * tests/test-memmem.c (main): Likewise.
51695         * tests/test-strcasestr.c (main): Likewise.
51696         * tests/test-striconv.c (main): Likewise.
51697         * tests/test-striconveh.c (main): Likewise.
51698         * tests/test-striconveha.c (main): Likewise.
51699         * tests/test-strstr.c (main): Likewise.
51700
51701         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51702
51703         bootstrap: sync from coreutils again
51704         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51705
51706 2008-03-01  Jim Meyering  <meyering@redhat.com>
51707
51708         bootstrap: sync from coreutils
51709         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51710         also when the target doesn't exist.
51711
51712 2008-03-01  Eric Blake  <ebb9@byu.net>
51713
51714         Fix bugs in last patch.
51715         * lib/memchr2.c (memchr2): Fix typo.
51716         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51717         extension.
51718         Reported by Bruce Korb.
51719
51720         New module 'memchr2'.
51721         * modules/memchr2: New file.
51722         * modules/memchr2-tests: Likewise.
51723         * lib/memchr2.h: Likewise.
51724         * lib/memchr2.c: Likewise, based on memchr.c.
51725         * tests/test-memchr2.c: New test.
51726         * MODULES.html.sh (String handling): Add memchr2.
51727
51728 2008-02-29  Bruno Haible  <bruno@clisp.org>
51729
51730         * modules/freadseek-tests: New file.
51731         * tests/test-freadseek.sh: New file.
51732         * tests/test-freadseek.c: New file.
51733
51734         New module 'freadseek'.
51735         * modules/freadseek: New file.
51736         * lib/freadseek.h: New file.
51737         * lib/freadseek.c: New file.
51738         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51739
51740 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51741
51742         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51743         wydawca.
51744
51745         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51746         program_invocation_name and program_invocation_short_name are
51747         present.
51748
51749 2008-02-28  Bruno Haible  <bruno@clisp.org>
51750
51751         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51752         * tests/test-freadptr.sh: Also test non-seekable stdin.
51753
51754 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51755
51756         * build-aux/bootstrap (source_base, m4_base)
51757         (doc_base, tests_base): New variables.
51758         (gnulib_tool_options): Do not hardcode base directories, use
51759         the above variables instead.
51760
51761 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51762
51763         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51764
51765 2008-02-28  Bruno Haible  <bruno@clisp.org>
51766
51767         * modules/freadptr-tests: New file.
51768         * tests/test-freadptr.sh: New file.
51769         * tests/test-freadptr.c: New file.
51770
51771         New module 'freadptr'.
51772         * modules/freadptr: New file.
51773         * lib/freadptr.h: New file.
51774         * lib/freadptr.c: New file.
51775         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51776
51777 2008-02-26  Karl Berry  <karl@freefriends.org>
51778
51779         Sync from Libtool:
51780         * libltdl/argz.c (argz_add, argz_count): New functions.
51781         * libltdl/argz.in.h: Declare them.
51782         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51783
51784 2008-02-22  Bruno Haible  <bruno@clisp.org>
51785
51786         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51787         is a pointer type.  Needed for HP-UX 10.
51788         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51789         * doc/posix-functions/gmtime_r.texi: Likewise.
51790         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51791
51792 2008-02-24  Bruno Haible  <bruno@clisp.org>
51793
51794         * modules/environ-tests: New file.
51795         * tests/test-environ.c: New file.
51796
51797         New module 'environ'.
51798         * modules/environ: New file.
51799         * lib/unistd.in.h (environ): New declaration.
51800         * m4/environ.m4: New file.
51801         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51802         after use.
51803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51804         HAVE_DECL_ENVIRON.
51805         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51806         HAVE_DECL_ENVIRON.
51807         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51808         wrong claim that 'environ' is missing on some systems.
51809         * modules/execute (Depends-on): Add environ.
51810         * lib/execute.c (environ): Remove fallback declaration.
51811         * modules/pipe (Depends-on): Add environ.
51812         * lib/pipe.c (environ): Remove fallback declaration.
51813         * modules/setenv (Depends-on): Add environ.
51814         * lib/setenv.c (environ): Remove fallback declaration.
51815         * modules/unsetenv (Depends-on): Add environ.
51816         * lib/unsetenv.c (environ): Remove fallback declaration.
51817         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51818         m4/environ.m4.
51819         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51820         (gl_PREREQ_UNSETENV): Likewise.
51821
51822 2008-02-24  Bruno Haible  <bruno@clisp.org>
51823
51824         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51825
51826 2008-02-20  Bob Proulx  <bob@proulx.com>
51827
51828         Enable use of older two part flavor 'git describe'.
51829         * build-aux/git-version-gen: If using the older two part flavor of
51830         git version then recreate the third part now present in the
51831         newer three part flavor of git describe.
51832
51833 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51834
51835         * lib/fts.c (fts_build): Typo correction to comment.
51836
51837 2008-02-17  Bruno Haible  <bruno@clisp.org>
51838
51839         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51840         generating no-op conflicts.
51841
51842 2008-02-17  Bruno Haible  <bruno@clisp.org>
51843
51844         Speed up by 10%.
51845         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51846         result_entries, rather than an index-based loop.
51847
51848 2008-02-17  Bruno Haible  <bruno@clisp.org>
51849
51850         Speed up by 25%.
51851         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51852         'hashcode_cached'.
51853         (entry_create): New function.
51854         (entry_hashcode): Use the cached hashcode if possible.
51855         (read_changelog_file, try_split_merged_entry): Use entry_create.
51856
51857 2008-02-17  Bruno Haible  <bruno@clisp.org>
51858
51859         Speed up from O(n^2) to O(n) for long ChangeLog files.
51860         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51861         (read_changelog_file): Change implementation of entries_reversed list
51862         to rbtreehash.
51863         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51864
51865 2008-02-17  Bruno Haible  <bruno@clisp.org>
51866
51867         New option --split-merged-entry.
51868         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51869         (find_paragraph_end, try_split_merged_entry): New functions.
51870         (long_options): Add option --split-merged-entry.
51871         (usage): Document option --split-merged-entry.
51872         (main): Implement option --split-merged-entry.
51873         Reported by Eric Blake.
51874
51875 2008-02-17  Bruno Haible  <bruno@clisp.org>
51876
51877         * lib/git-merge-changelog.c: Include c-strstr.h.
51878         (main): Support the "git pull --rebase" situation.
51879         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51880         Reported by Eric Blake.
51881
51882 2008-02-16  Eric Blake  <ebb9@byu.net>
51883
51884         Avoid doubling \ in common case of "c-maybe" quoting style.
51885         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51886         eliding outer quotes.
51887         * lib/quotearg.h: Document this.
51888         * tests/test-quotearg.c (result_strings, inputs, results_g)
51889         (flag_results, locale_results): Test it by adding a new string to
51890         each test group.
51891         (compare_strings): Test new string.
51892
51893 2008-02-13  Eric Blake  <ebb9@byu.net>
51894
51895         Avoid trigraph quoting in default output.
51896         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51897         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51898         unless explicitly requested.
51899         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51900
51901 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51902
51903         Don't rely on signed integer overflowing to negative value.
51904         * lib/getugroups.c (getugroups): Include <limits.h>.
51905         Instead, compare against INT_MAX, and increment only if the test passes.
51906
51907 2008-02-13  Jim Meyering  <meyering@redhat.com>
51908         and Eric Blake  <ebb9@byu.net>
51909
51910         Avoid shadowing warning and compile errors on Linux.
51911         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51912         forwarding macros on Linux.
51913         (dcgettext): Define a stub, for Linux.
51914         (results_g, main): Avoid warnings.
51915
51916 2008-02-12  Eric Blake  <ebb9@byu.net>
51917
51918         Silence warning in last patch.
51919         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51920
51921         Quotearg part 4: add tests, fix c-maybe colon quoting.
51922         * lib/quotearg.h: Improve documentation.
51923         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51924         escapes when adding outer quotes.  When quoting trigraphs, use
51925         valid C notation.  When quoting NUL, omit extra characters if next
51926         character is not digit.  Alter prototype.
51927         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51928         callers.
51929         * modules/quotearg-tests: New module.
51930         * tests/test-quotearg.c: New test.
51931
51932 2008-02-07  Eric Blake  <ebb9@byu.net>
51933
51934         Quotearg part 3: add flag to control outer quote elision.
51935         * lib/quotearg.h (c_maybe_quoting_style): New style.
51936         (enum quoting_flags): Better documentation of flags.
51937         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51938         c-maybe style.
51939         (quotearg_buffer_restyled): Handle new flag to elide outer
51940         quotes.
51941
51942         Quotearg part 2: add flag that can control NUL elision.
51943         * lib/quotearg.h (set_quoting_flags): New prototype.
51944         * lib/quotearg.c (struct quoting_options): Add flag field.
51945         (set_quoting_flags): New function.
51946         (quotearg_buffer_restyled): Add flags parameter.
51947         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51948         (quotearg_n_options): Set the flag, since length cannot be
51949         returned.
51950         (quoting_options_from_style): Default flags correctly.
51951
51952         Quotearg part 1: more wrappers, restore quotearg_char state.
51953         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51954         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51955         (quotearg_colon_mem): New wrappers.
51956         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51957         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51958         functions.
51959         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51960         (quotearg_colon_mem): New functions.
51961
51962 2008-02-11  Bruno Haible  <bruno@clisp.org>
51963
51964         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51965         library in the current directory: it does not work with parallel make.
51966         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51967
51968 2008-02-11  Bruno Haible  <bruno@clisp.org>
51969
51970         * .gitattributes: New file.
51971
51972 2008-02-11  Jim Meyering  <meyering@redhat.com>
51973
51974         useless-if-before-free: Fix reversed exit values.
51975         * build-aux/useless-if-before-free: Use correct values
51976         for EXIT_MATCH and EXIT_NO_MATCH.
51977
51978         * build-aux/useless-if-before-free: Close stdout carefully.
51979
51980 2008-02-10  Bruno Haible  <bruno@clisp.org>
51981
51982         New module 'git-merge-changelog'.
51983         * modules/git-merge-changelog: New file.
51984         * lib/git-merge-changelog.c: New file.
51985
51986 2008-02-10  Jim Meyering  <meyering@redhat.com>
51987
51988         useless-if-before-free: New option: --list (-l).
51989
51990         useless-if-before-free: Don't exit immediately upon open failure.
51991         * build-aux/useless-if-before-free: Exit 2 for errors.
51992         Upon failure to open a file, don't exit immediately.
51993         Rather, just warn and continue with any remaining files.
51994
51995 2008-02-10  Bruno Haible  <bruno@clisp.org>
51996
51997         New abstract list operation 'node_set_value'.
51998         * lib/gl_list.h (gl_list_node_set_value): New function.
51999         (struct gl_list_implementation): New field node_set_value.
52000         * lib/gl_list.c (gl_list_node_set_value): New function.
52001         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52002         (gl_array_list_implementation): Update.
52003         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52004         (gl_carray_list_implementation): Update.
52005         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52006         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52007         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52008         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52009         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52010         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52011         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52012         Update.
52013         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52014         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52015         (gl_sublist_list_implementation): Update.
52016
52017 2008-02-10  Bruno Haible  <bruno@clisp.org>
52018
52019         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52020         Needed when ELEMENT is #defined to 'some_type *'.
52021
52022 2008-02-10  Jim Meyering  <meyering@redhat.com>
52023
52024         New script and module: useless-if-before-free
52025         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52026         * build-aux/useless-if-before-free: New file.
52027         * modules/useless-if-before-free: New file.
52028
52029         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52030
52031         xstrtol_error: Fix typo.
52032         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52033         s/exit_failure/exit_status/.
52034
52035 2008-02-09  Jim Meyering  <meyering@redhat.com>
52036
52037         New script and module: gitlog-to-changelog
52038         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52039         * modules/gitlog-to-changelog: New file.
52040         * build-aux/gitlog-to-changelog: New file.
52041
52042 2008-02-08  Jim Meyering  <meyering@redhat.com>
52043
52044         Avoid two "parameter unused" warnings.
52045         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52046         Mark "st" as used.
52047
52048         Use "git COMMAND", not "git-COMMAND".
52049         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52050         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52051         * build-aux/git-version-gen: Use "git status", not "git-status".
52052
52053 2008-02-07  Bruno Haible  <bruno@clisp.org>
52054
52055         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52056         Avoids a crash on Windows Vista.
52057         Reported by Adam Strzelecki <ono@java.pl> via
52058         Simon Josefsson <simon@josefsson.org>.
52059
52060 2008-02-06  Bruno Haible  <bruno@clisp.org>
52061
52062         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52063         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52064         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52066         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52067         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52068         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52069         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52070         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52071         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52072         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52073         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52074         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52075         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52076         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52077         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52078         left-adjust flag.
52079         * tests/test-snprintf-posix.h (test_function): Likewise.
52080         * tests/test-sprintf-posix.h (test_function): Likewise.
52081         * tests/test-vasprintf-posix.c (test_function): Likewise.
52082         * doc/posix-functions/fprintf.texi: Update.
52083         * doc/posix-functions/printf.texi: Update.
52084         * doc/posix-functions/snprintf.texi: Update.
52085         * doc/posix-functions/sprintf.texi: Update.
52086         * doc/posix-functions/vfprintf.texi: Update.
52087         * doc/posix-functions/vprintf.texi: Update.
52088         * doc/posix-functions/vsnprintf.texi: Update.
52089         * doc/posix-functions/vsprintf.texi: Update.
52090         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52091
52092 2008-02-06  Bruno Haible  <bruno@clisp.org>
52093
52094         Fix bug introduced on 2008-01-26.
52095         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52096
52097 2008-02-06  Bruno Haible  <bruno@clisp.org>
52098
52099         Fix bug introduced on 2007-06-10.
52100         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52101         !NEED_PRINTF_FLAG_ZERO.
52102
52103 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52104
52105         getloadavg: use libperfstat on AIX5
52106         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52107
52108 2008-02-03  Bruno Haible  <bruno@clisp.org>
52109
52110         * lib/diffseq.h: Add comments about required #includes.
52111         Reported by Michael Biggs <gnulib@doubleplum.net>.
52112
52113 2008-02-01  Bruno Haible  <bruno@clisp.org>
52114
52115         * users.txt: Add gnuit.
52116
52117 2008-01-31  Bruno Haible  <bruno@clisp.org>
52118
52119         * lib/md4.c (set_uint32): Mark as inline.
52120         * lib/md5.c (set_uint32): Likewise.
52121         * lib/sha1.c (set_uint32): Likewise.
52122         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52123         * m4/md5.m4 (gl_MD5): Likewise.
52124         * m4/sha1.m4 (gl_SHA1): Likewise.
52125
52126 2008-01-31  Jim Meyering  <meyering@redhat.com>
52127
52128         Use "sizeof VAR", rather than a literal "4".
52129         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52130         * lib/md4.c (md4_read_ctx): Likewise.
52131         * lib/sha1.c (sha1_read_ctx): Likewise.
52132
52133 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52134
52135         * tests/test-sha1.c: New file, based on test-md5.c.
52136
52137         * modules/crypto/sha1-tests: New file.
52138
52139 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52140
52141         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52142
52143 2008-01-31  Jim Meyering  <meyering@redhat.com>
52144
52145         Prefer "sizeof v" over the equivalent "4".
52146         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52147         * lib/md5.c (set_uint32): Likewise.
52148         * lib/sha1.c (set_uint32): Likewise.
52149
52150 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52151
52152         * lib/sha1.c (set_uint32): Mark function as static.
52153
52154 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52155
52156         md2: clarify comments to say that alignment is not required.
52157         * lib/md2.h: Remove warning about alignment in comment.
52158         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52159         never been required.
52160
52161 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52162
52163         md4: adapt alignment constraint fix from sha1.
52164         * lib/md4.c (set_uint32): New function, from sha1.c
52165         (md4_read_ctx): Use it.
52166         (md4_finish_ctx): Doc fix.
52167         * lib/md4.h: Doc fix.
52168
52169 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52170
52171         md5: adapt alignment constraint fix from sha1.
52172         * lib/md5.c (set_uint32): New function, from sha1.c
52173         (md5_read_ctx): Use it.
52174         (md5_finish_ctx): Doc fix.
52175         * lib/md5.h: Doc fix.
52176
52177 2008-01-30  Peter Palfrader  <weasel@debian.org>
52178
52179         sha1: remove the result buffer alignment constraint
52180         * lib/sha1.c (set_uint32): New function.
52181         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52182         constraint.
52183         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52184         * lib/sha1.h: Likewise.
52185
52186 2008-01-30  Andreas Schwab  <schwab@suse.de>
52187             Bruno Haible  <bruno@clisp.org>
52188
52189         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52190         correct definition of LDBL_MIN_EXP.
52191
52192 2008-01-30  Karl Berry  <karl@gnu.org>
52193
52194         * config/srclist-update: try to preserve x bit on updates.
52195         * config/srclistvars.sh: update for karl.
52196
52197 2008-01-29  Jim Meyering  <meyering@redhat.com>
52198
52199         vasnprintf.c: Avoid warning about unused label
52200         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52201         "overflow" label definition and associated code with the
52202         same cpp condition that guards the sole use of that label.
52203
52204 2008-01-26  Bruno Haible  <bruno@clisp.org>
52205
52206         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52207         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52208         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52209         * lib/isnanl-nolibm.h (isnanl): Likewise.
52210         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52211
52212 2008-01-26  Bruno Haible  <bruno@clisp.org>
52213
52214         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52215         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52216
52217 2008-01-26  Bruno Haible  <bruno@clisp.org>
52218
52219         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52220         GCC >= 4.0 built-in.
52221         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52222
52223 2008-01-26  Bruno Haible  <bruno@clisp.org>
52224
52225         Rename isnan, applicable to 'double' only, to isnand.
52226         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52227         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52228         (configure.ac): Update.
52229         (Include): Replace "isnan.h" with "isnand.h".
52230         * m4/isnand.m4: Renamed from m4/isnan.m4.
52231         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52232         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52233         instead of isnan.c.
52234         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52235         instead of HAVE_ISNAN_IN_LIBC.
52236         (isnand): Renamed from isnan.
52237         * lib/isnand.c: New file.
52238         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52239         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52240         (Makefile.am): Update.
52241         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52242         Include isnand.h instead of isnan.h.
52243         (main): Test isnand instead of isnan.
52244         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52245         isnan-nolibm.
52246         * modules/frexp (Depends-on): Likewise.
52247         * modules/frexp-tests (Depends-on): Likewise.
52248         * modules/frexp-nolibm (Depends-on): Likewise.
52249         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52250         * modules/isfinite (Depends-on): Likewise.
52251         * modules/round-tests (Depends-on): Likewise.
52252         * modules/signbit (Depends-on): Likewise.
52253         * modules/signbit-tests (Depends-on): Likewise.
52254         * modules/snprintf-posix (Depends-on): Likewise.
52255         * modules/sprintf-posix (Depends-on): Likewise.
52256         * modules/trunc-tests (Depends-on): Likewise.
52257         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52258         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52259         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52260         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52261         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52262         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52263         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52264         * modules/vasnprintf-posix (Depends-on): Likewise.
52265         * modules/vasprintf-posix (Depends-on): Likewise.
52266         * modules/vfprintf-posix (Depends-on): Likewise.
52267         * modules/vsnprintf-posix (Depends-on): Likewise.
52268         * modules/vsprintf-posix (Depends-on): Likewise.
52269         * lib/frexp.c: Include isnand.h instead of isnan.h.
52270         (ISNAN): Set to isnand instead of isnan.
52271         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52272         (gl_isfinited): Use isnand instead of isnan.
52273         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52274         (gl_signbitd): Use isnand instead of isnan.
52275         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52276         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52277         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52278         (main): Use isnand instead of isnan.
52279         * tests/test-round1.c: Include isnand.h.
52280         (main): Use isnand instead of isnan.
52281         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52282         (ISNAN): Set to isnand instead of isnan.
52283         * tests/test-trunc1.c: Include isnand.h.
52284         (main): Use isnand instead of isnan.
52285         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52286         (equal): Use isnand instead of isnan.
52287         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52288         isnand-nolibm.
52289         * NEWS: Mention the change.
52290
52291 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52292             Bruno Haible  <bruno@clisp.org>
52293
52294         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52295         the GCC builtins for signbits are present and set
52296         REPLACE_SIGNBIT_USING_GCC if so.
52297         * lib/math.in.h (signbit): Define using GCC builtins if
52298         REPLACE_SIGNBIT_USING_GCC is set.
52299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52300         REPLACE_SIGNBIT_USING_GCC.
52301         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52302
52303 2008-01-25  Jim Meyering  <meyering@redhat.com>
52304
52305         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52306         * lib/poll.c: Include <config.h>, not "config.h".
52307         * tests/test-getaddrinfo.c: Likewise.
52308
52309 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52310
52311         * modules/sockets-tests: New file.
52312
52313 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52314
52315         * modules/sockets: New module, can be used to call WSA_Startup and
52316         WSA_Cleanup when needed.
52317
52318         * lib/sockets.h, lib/sockets.c: New files.
52319
52320         * m4/sockets.m4: New file.
52321
52322         * tests/test-sockets.c: New file.
52323
52324 2008-01-19  Bruno Haible  <bruno@clisp.org>
52325
52326         * doc/posix-headers: Renamed from doc/headers.
52327         * doc/posix-functions: Renamed from doc/functions.
52328         * doc/gnulib.texi: Update.
52329
52330 2008-01-19  Bruno Haible  <bruno@clisp.org>
52331
52332         * doc/glibc-functions/strcasestr.texi: Include contents of
52333         doc/functions/strcasestr.texi, fixing the list of platforms.
52334         * doc/functions/strcasestr.texi: Remove file.
52335
52336 2008-01-19  Bruno Haible  <bruno@clisp.org>
52337
52338         * doc/glibc-functions/memmem.texi: Include contents of
52339         doc/functions/memmem.texi.
52340         * doc/functions/memmem.texi: Remove file.
52341
52342 2008-01-18  Bruno Haible  <bruno@clisp.org>
52343
52344         * doc/glibc-functions/*.texi: New files.
52345         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52346         to use the new files.
52347
52348 2008-01-17  Bruno Haible  <bruno@clisp.org>
52349
52350         * tests/test-gethostname.c (main): Fix printf statement.
52351
52352 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52353
52354         * modules/gethostname-tests: New file.
52355
52356         * tests/test-gethostname.c: New file.
52357
52358 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52359
52360         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52361         used by the UNAME case.  Reported by Bruno Haible
52362         <bruno@clisp.org>.
52363
52364 2008-01-17  Eric Blake  <ebb9@byu.net>
52365
52366         Convert c-strcasestr to be more efficient.
52367         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52368         (Depends-on): Add c-strcase, remove malloca, strnlen.
52369         * tests/test-c-strcasestr.c (main): Enhance test.
52370         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52371
52372 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52373
52374         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52375         Use it in creating po/Makevars.
52376
52377 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52378
52379         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52380         Applications that requires it should initialize libgcrypt
52381         manually.
52382
52383 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52384
52385         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52386
52387 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52388
52389         Fix problem with getdate on mingw32 reported by Simon Josefsson
52390         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52391         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52392         tzname", when deciding whether to declare tzname.
52393         * lib/strftime.c (tzname): Likewise.
52394
52395 2008-01-15  Bruno Haible  <bruno@clisp.org>
52396
52397         Work around a MacOS X 10.5 bug in frexpl().
52398         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52399         * doc/functions/frexpl.texi: Document the bug.
52400         Reported by Elias Pipping <pipping@gentoo.org>.
52401
52402 2008-01-14  Eric Blake  <ebb9@byu.net>
52403
52404         Touch up previous patch.
52405         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52406         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52407
52408         Convert strcasestr module to use Two-Way algorithm.
52409         * modules/strcasestr-simple: New module, based on the old
52410         strcasestr, but with Two-Way rather than KMP.
52411         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52412         * lib/string.in.h (rpl_strcasestr): Declare.
52413         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52414         performance.
52415         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52416         * modules/string (Makefile.am): Support strcasestr.
52417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52418         * modules/strcasestr-tests (Depends-on): Check for alarm.
52419         * tests/test-strcasestr.c: Augment test.
52420         * lib/str-two-way.h: Clean up stray macro.
52421         * NEWS: Document new module.
52422         * MODULES.html.sh (string handling): Likewise.
52423         * doc/functions/strcasestr.texi: New file.
52424         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52425         here, since it is not a POSIX function.
52426
52427 2008-01-14  Colin Watson  <cjwatson@debian.org>
52428             Bruno Haible  <bruno@clisp.org>
52429
52430         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52431         works fine; if not, set REPLACE_STRSIGNAL.
52432         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52433         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52434         REPLACE_STRSIGNAL.
52435         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52436         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52437         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52438
52439 2008-01-14  Bruno Haible  <bruno@clisp.org>
52440
52441         * modules/strsignal (Include): Change to <string.h>.
52442
52443 2008-01-14  Colin Watson  <cjwatson@debian.org>
52444
52445         * modules/argp (Notice): Add a notice recommending to change
52446         XGETTEXT_OPTIONS.
52447         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52448
52449 2008-01-13  Colin Watson  <cjwatson@debian.org>
52450
52451         * modules/strsignal-tests: New file.
52452         * tests/test-strsignal.c: New file.
52453
52454         * lib/strsignal.c: New file, from glibc with modifications.
52455         * lib/siglist.h: New file, from glibc with modifications.
52456         * lib/string.in.h (strsignal): New declaration.
52457         * m4/strsignal.m4: New file.
52458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52459         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52460         * modules/strsignal: New file.
52461         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52462         HAVE_DECL_STRSIGNAL.
52463
52464 2008-01-13  Bruno Haible  <bruno@clisp.org>
52465
52466         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52467         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52468         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52469         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52470
52471 2008-01-13  Bruno Haible  <bruno@clisp.org>
52472
52473         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52474         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52475         * lib/argp.h (__attribute__): Likewise.
52476         * lib/c-stack.c (__attribute__): Likewise.
52477         * lib/error.h (__attribute__): Likewise.
52478         * lib/fts.c (__attribute__): Likewise.
52479         * lib/openat.h (__attribute__): Likewise.
52480         * lib/stdio.in.h (__attribute__): Likewise.
52481         * lib/string.in.h (__attribute__): Likewise.
52482         * lib/utimens.c (__attribute__): Likewise.
52483         * lib/vasnprintf.h (__attribute__): Likewise.
52484         * lib/xalloc.h (__attribute__): Likewise.
52485         * lib/xprintf.h (__attribute__): Likewise.
52486         * lib/xstrtol.h (__attribute__): Likewise.
52487         * lib/xvasprintf.h (__attribute__): Likewise.
52488
52489 2008-01-12  Bruno Haible  <bruno@clisp.org>
52490
52491         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52492         * doc/glibc-headers/a.out.texi: New file.
52493         * doc/glibc-headers/aliases.texi: New file.
52494         * doc/glibc-headers/alloca.texi: New file.
52495         * doc/glibc-headers/ar.texi: New file.
52496         * doc/glibc-headers/argp.texi: New file.
52497         * doc/glibc-headers/argz.texi: New file.
52498         * doc/glibc-headers/byteswap.texi: New file.
52499         * doc/glibc-headers/crypt.texi: New file.
52500         * doc/glibc-headers/endian.texi: New file.
52501         * doc/glibc-headers/envz.texi: New file.
52502         * doc/glibc-headers/err.texi: New file.
52503         * doc/glibc-headers/error.texi: New file.
52504         * doc/glibc-headers/execinfo.texi: New file.
52505         * doc/glibc-headers/fpu_control.texi: New file.
52506         * doc/glibc-headers/fstab.texi: New file.
52507         * doc/glibc-headers/fts.texi: New file.
52508         * doc/glibc-headers/getopt.texi: New file.
52509         * doc/glibc-headers/ieee754.texi: New file.
52510         * doc/glibc-headers/ifaddrs.texi: New file.
52511         * doc/glibc-headers/libintl.texi: New file.
52512         * doc/glibc-headers/mcheck.texi: New file.
52513         * doc/glibc-headers/mntent.texi: New file.
52514         * doc/glibc-headers/obstack.texi: New file.
52515         * doc/glibc-headers/paths.texi: New file.
52516         * doc/glibc-headers/printf.texi: New file.
52517         * doc/glibc-headers/pty.texi: New file.
52518         * doc/glibc-headers/resolv.texi: New file.
52519         * doc/glibc-headers/shadow.texi: New file.
52520         * doc/glibc-headers/sysexits.texi: New file.
52521         * doc/glibc-headers/ttyent.texi: New file.
52522
52523 2008-01-12  Jim Meyering  <meyering@redhat.com>
52524
52525         announce-gen: emit Gnulib's git-based version string.
52526         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52527         New option --gnulib-version=V, where V is expected to be
52528         the output of running git describe in the gnulib directory.
52529         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52530         not useful, and plan to stop publishing an xdelta file with each
52531         coreutils release.
52532
52533         * build-aux/announce-gen: Also check for lzma-compressed files.
52534
52535 2008-01-11  Bruno Haible  <bruno@clisp.org>
52536
52537         * tests/test-memmem.c (main): Increase maximum allowed time.
52538         * tests/test-strstr.c (main): Likewise.
52539
52540 2008-01-11  Bruno Haible  <bruno@clisp.org>
52541
52542         * doc/functions/memmem.texi: Add more precisions about platforms.
52543         * doc/functions/strstr.texi: Likewise.
52544
52545 2008-01-10  Eric Blake  <ebb9@byu.net>
52546
52547         * m4/strstr.m4: Delete cruft from copy-n-paste.
52548         Reported by Bruno Haible.
52549
52550 2008-01-10  Bruno Haible  <bruno@clisp.org>
52551
52552         Make c-strstr rely on strstr.
52553         * lib/c-strstr.c: Don't include str-kmp.h.
52554         (c_strstr): Define in terms of strstr.
52555         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52556         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52557
52558 2008-01-10  Bruno Haible  <bruno@clisp.org>
52559
52560         * doc/gnulib.texi (String Functions in C Locale): New section.
52561         * doc/c-ctype.texi: New file.
52562         * doc/c-strcase.texi: New file.
52563         * doc/c-strcaseeq.texi: New file.
52564         * doc/c-strcasestr.texi: New file.
52565         * doc/c-strstr.texi: New file.
52566         * doc/c-strtod.texi: New file.
52567         * doc/c-strtold.texi: New file.
52568
52569 2008-01-10  Eric Blake  <ebb9@byu.net>
52570
52571         * lib/relocatable.h: Fix a comment.
52572
52573 2008-01-10  Eric Blake  <ebb9@byu.net>
52574
52575         Share two-way algorithm.
52576         * lib/str-two-way.h: New file, merged from...
52577         * lib/memmem.c: ...here...
52578         * lib/strstr.c: ...and here.
52579         * modules/memmem (Files): Use it.
52580         * modules/strstr (Files): Likewise.
52581
52582         Avoid quadratic strstr implementations.
52583         * lib/strstr.c: New file.
52584         * m4/strstr.m4: Likewise.
52585         * modules/strstr: Likewise.
52586         * modules/strstr-tests: Likewise.
52587         * tests/test-strstr.c: Likewise.
52588         * lib/string.in.h (rpl_strstr): Declare.
52589         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52591         * modules/string (Makefile.am): Likewise.
52592         * MODULES.html.sh (string handling): Mention new module.
52593         * doc/functions/strstr.texi (strstr): Document the bug.
52594
52595 2008-01-10  Bruno Haible  <bruno@clisp.org>
52596
52597         * lib/relocatable.h (relocate): State whether result is freshly
52598         allocated or not.
52599         * lib/relocatable.c (relocate): Return a freshly allocated string
52600         instead of a pointer to a privately held string.
52601         Reported by Sylvain Beucler <beuc@gnu.org>.
52602
52603 2008-01-10  Colin Watson  <cjwatson@debian.org>
52604
52605         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52606         s/S_ISNLK/S_ISLNK/.
52607
52608 2008-01-09  Bruno Haible  <bruno@clisp.org>
52609
52610         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52611         and other files.
52612         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52613         if it's only a guess.
52614         * modules/memmem: Simplify by depending on memmem-simple.
52615
52616 2008-01-09  Bruno Haible  <bruno@clisp.org>
52617
52618         Work around OpenBSD 4.0 tdelete() bug.
52619         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52620         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52621         macros and don't redefine the enum values.
52622         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52623         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52624         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52625
52626 2008-01-09  Bruno Haible  <bruno@clisp.org>
52627
52628         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52629         (main): Don't perform the tests if setlocale did not install a UTF-8
52630         locale. Needed on OpenBSD 4.0.
52631         * modules/wcwidth-tests (Depends-on): Add localcharset.
52632
52633 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52634
52635         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52636         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52637         * NEWS: announce this.
52638         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52639
52640 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52641         and Eric Blake  <ebb9@byu.net>
52642
52643         Add memmem-simple module.
52644         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52645         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52646         * modules/memmem-simple: New file.
52647         * modules/memmem (Description): Tweak.
52648         * MODULES.html.sh (string handling): Mention new module.
52649         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52650         addressed by memmem-simple.
52651         * NEWS: Document the difference.
52652
52653 2008-01-09  Eric Blake  <ebb9@byu.net>
52654
52655         Give gcc some memmem optimization hints.
52656         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52657         (strcasestr): Declare as pure.
52658         * modules/memmem (Maintainer): Claim my implementation.
52659
52660 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52661
52662         Support AIX 6.1 and higher.
52663         * build-aux/config.libpath: Likewise.
52664         * build-aux/config.rpath: Likewise.
52665
52666 2008-01-08  Jim Meyering  <meyering@redhat.com>
52667             Bruno Haible  <bruno@clisp.org>
52668
52669         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52670         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52671         Reported by Peter Fales in
52672         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52673
52674 2008-01-08  Bruno Haible  <bruno@clisp.org>
52675
52676         * modules/unictype/category-of (Depends-on): Add
52677         unictype/category-none.
52678         * modules/unictype/category-and-tests (Depends-on): Add
52679         unictype/category-{L,N,Lu,Nd}.
52680         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52681         * modules/unictype/category-or-tests (Depends-on): Add
52682         unictype/category-{L,N}.
52683         * modules/unictype/category-name-tests (Depends-on): Add
52684         unictype/category-{Z,Nl}.
52685         Reported by Simon Josefsson.
52686
52687 2008-01-08  Bruno Haible  <bruno@clisp.org>
52688
52689         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52690         convention better.
52691         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52692         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52693         Reported by Peter Miller <millerp@canb.auug.org.au>.
52694
52695 2008-01-08  Eric Blake  <ebb9@byu.net>
52696
52697         Rewrite memmem to guarantee linear complexity without malloc.
52698         * lib/memmem.c (memmem): Use Two-Way rather than
52699         Knuth-Morris-Pratt, to allow O(1) space usage.
52700         (critical_factorization, two_way_short_needle)
52701         (two_way_long_needle): New functions.
52702         (knuth_morris_pratt): Delete.
52703         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52704         Add stdint.
52705         * tests/test-memmem.c (main): Add tests for periodic needle and
52706         sublinear performance.
52707         * doc/functions/memmem.texi (memmem): Document other deficiencies
52708         in cygwin and older glibc.
52709
52710 2008-01-08  Bruno Haible  <bruno@clisp.org>
52711
52712         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52713         augmentation.
52714
52715 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52716
52717         Add a configure time option: --disable-acl.
52718         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52719         AC_ARG_ENABLE(acl).
52720
52721 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52722
52723         * tests/test-localename.c: Don't include obsolete "setenv.h".
52724
52725         * modules/localename-tests (Depends-on): Need unsetenv.
52726
52727 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52728
52729         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52730
52731 2008-01-06  Colin Watson  <cjwatson@debian.org>
52732
52733         * users.txt: Add man-db.
52734
52735 2008-01-07  Bruno Haible  <bruno@clisp.org>
52736
52737         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52738         previous section name.
52739
52740 2008-01-07  Bruno Haible  <bruno@clisp.org>
52741
52742         * lib/progname.c (set_program_name): Don't strip off a leading
52743         "lt-" prefix outside a .libs directory.
52744         Suggested by Paul Eggert.
52745
52746 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52747             Bruno Haible  <bruno@clisp.org>
52748
52749         Improve memory cleanup in 'relocatable' module.
52750         * lib/relocatable.h (compute_curr_prefix): Change return type to
52751         'char *'.
52752         * lib/relocatable.c (compute_curr_prefix): Change return type to
52753         'char *'. Free curr_installdir after use.
52754         (relocate): Free curr_prefix_better after use.
52755         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52756
52757 2008-01-01  Bruno Haible  <bruno@clisp.org>
52758
52759         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52760         failure on older glibc systems.
52761         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52762
52763 2008-01-05  Eric Blake  <ebb9@byu.net>
52764
52765         Avoid quadratic system memmem.
52766         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52767         Reported by Ralf Wildenhues.
52768
52769         Fix memmem test for mingw.
52770         * modules/memmem-tests (configure.ac): Check for alarm.
52771         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52772         it.
52773         * doc/functions/memmem.texi: New file.
52774         * doc/gnulib.texi (Function Substitutes): Add memmem.
52775         Reported by Bruno Haible.
52776
52777 2008-01-04  Bruno Haible  <bruno@clisp.org>
52778
52779         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52780         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52781         gl_HEADER_STRING_H_DEFAULTS.
52782
52783 2008-01-04  Eric Blake  <ebb9@byu.net>
52784
52785         Shorten duration of memmem test.
52786         * tests/test-memmem.c (main): Use alarm to declare failure if test
52787         is taking too long.
52788         Reported by Ralf Wildenhues.
52789
52790 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52791
52792         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52793         string, needed by strerror.
52794
52795 2008-01-03  Colin Watson  <cjwatson@debian.org>
52796             Bruno Haible  <bruno@clisp.org>
52797
52798         * doc/gnulib-tool.texi (Localization): New section.
52799
52800 2008-01-02  Bruno Haible  <bruno@clisp.org>
52801
52802         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52803         variables to 'unsigned char *' type.
52804         Reported by Paul Eggert.
52805
52806 2008-01-02  Jim Meyering  <jim@meyering.net>
52807
52808         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52809
52810 2007-12-31  Jim Meyering  <jim@meyering.net>
52811
52812         Avoid use of private FTS type name.
52813         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52814
52815 2007-12-30  Karl Berry  <karl@gnu.org>
52816
52817         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52818         work around defect in Texinfo and/or the standalone Info browser.
52819
52820 2007-12-30  Bruno Haible  <bruno@clisp.org>
52821
52822         Unify 5 copies of the KMP code.
52823         * lib/str-kmp.h: New file.
52824         * lib/c-strcasestr.c: Include str-kmp.h.
52825         (knuth_morris_pratt): Remove function.
52826         (c_strcasestr): Update.
52827         * lib/c-strstr.c: Include str-kmp.h.
52828         (knuth_morris_pratt): Remove function.
52829         (c_strcasestr): Update.
52830         * lib/mbscasestr.c: Include str-kmp.h.
52831         (knuth_morris_pratt_unibyte): Remove function.
52832         * lib/mbsstr.c: Include str-kmp.h.
52833         (knuth_morris_pratt_unibyte): Remove function.
52834         * lib/strcasestr.c: Include str-kmp.h.
52835         (knuth_morris_pratt): Remove function.
52836         (strcasestr): Update.
52837         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52838         * modules/c-strstr (Files): Likewise.
52839         * modules/mbscasestr (Files): Likewise.
52840         * modules/mbsstr (Files): Likewise.
52841         * modules/strcasestr (Files): Likewise.
52842         Suggested by Paul Eggert.
52843
52844 2007-12-30  Bruno Haible  <bruno@clisp.org>
52845
52846         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52847         defined.
52848
52849 2007-12-30  Bruno Haible  <bruno@clisp.org>
52850
52851         * lib/xmalloca.h: Include xalloc.h.
52852         (xnmalloca): New macro.
52853
52854 2007-12-30  Bruno Haible  <bruno@clisp.org>
52855
52856         * lib/malloca.h (nmalloca): New macro.
52857         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52858         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52859         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52860         knuth_morris_pratt_multibyte): Likewise.
52861         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52862         knuth_morris_pratt_multibyte): Likewise.
52863         * lib/memmem.c (knuth_morris_pratt): Likewise.
52864         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52865
52866 2007-12-25  Bruno Haible  <bruno@clisp.org>
52867
52868         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52869         * lib/glob.c: Don't include openat.h.
52870         (link_exists2_p): Add back the code that deals with the
52871         !GLOB_ALTDIRFUNC case.
52872         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52873         let it do the filename concatenation.
52874         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52875         * modules/glob (Depends-on): Remove openat.
52876
52877 2007-12-31  Bruno Haible  <bruno@clisp.org>
52878
52879         * modules/dirfd (License): Change to LGPLv2+.
52880         Approved by Jim Meyering.
52881
52882 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52883
52884         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52885         when multiplying M by sizeof (size_t).
52886
52887 2007-12-10  Martin Lambers  <marlam@marlam.de>
52888
52889         Override getpagesize on mingw.
52890         * lib/getpagesize.c: New file.
52891         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52892         * modules/getpagesize (Files): Add lib/getpagesize.c.
52893         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52895         REPLACE_GETPAGESIZE.
52896         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52897
52898 2007-12-25  Bruno Haible  <bruno@clisp.org>
52899
52900         * modules/localcharset (Notice): New field.
52901         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52902         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52903
52904 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52905             Bruno Haible  <bruno@clisp.org>
52906
52907         Avoid using the syntax symbol() in formatted documentation.
52908         * MODULES.html.sh (func_module): When replacing symbol() with a
52909         hyperlink, remove the parentheses. Show an error if some remain.
52910         Recognize and render the '...' syntax.
52911         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52912         Rework. Add paragraph about GCC's inlining.
52913         * doc/alloca.texi: Likewise.
52914         * doc/error.texi: Remove parentheses from symbol reference.
52915         * doc/gnulib-intro.texi: Likewise.
52916         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52917         * modules/fnmatch (Description): Reword to say "the ... function".
52918         * modules/full-read (Description): Likewise.
52919         * modules/full-write (Description): Likewise.
52920         * modules/safe-read (Description): Likewise.
52921         * modules/safe-write (Description): Likewise.
52922         * modules/strchrnul (Description): Likewise.
52923         * modules/trim (Description): Likewise.
52924         * modules/error (Description): Remove parentheses from symbol
52925         references.
52926         * modules/verror (Description): Likewise.
52927         Reported by Karl Berry.
52928
52929 2007-12-25  Bruno Haible  <bruno@clisp.org>
52930
52931         Fixup after 2007-10-16 commit.
52932         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52933
52934 2007-12-24  Bruno Haible  <bruno@clisp.org>
52935
52936         Make --enable-relocatable work with DESTDIR.
52937         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52938         to compute installdir from destprog.
52939         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52940         also set the RELOC_DESTDIR variable.
52941         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52942
52943 2007-12-24  Bruno Haible  <bruno@clisp.org>
52944
52945         Fix link error due to xalloc_die().
52946         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52947         of xreadlink.
52948         * lib/relocwrapper.c: Update comments.
52949         * build-aux/install-reloc: Remove xreadlink.c from file list.
52950         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52951         xreadlink.c.
52952         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52953
52954 2007-12-24  Bruno Haible  <bruno@clisp.org>
52955
52956         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52957         * lib/setenv.h: Remove file.
52958         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52959         lib/setenv.h.
52960         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52961         (Depends-on): Add stdlib.
52962         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52963         gl_FUNC_UNSETENV.
52964         (Include): Replace setenv.h with <stdlib.h>.
52965         * modules/unsetenv: New file.
52966         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52967         * lib/unsetenv.c: Include <stdlib.h> first.
52968         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52969         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52970         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52971         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52972         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52973         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52974         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52975         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52976         * doc/functions/unsetenv.texi: Update.
52977         * modules/xsetenv (Depends-on): Add unsetenv.
52978         * modules/getdate (Depends-on): Likewise.
52979         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52980         * lib/xsetenv.c: Don't include setenv.h.
52981         * lib/getdate.y: Likewise.
52982         * lib/relocwrapper.c: Likewise.
52983         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52984         (Depends-on): Add stdlib.
52985         * NEWS: Mention the changes.
52986         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52987
52988 2007-12-23  Bruno Haible  <bruno@clisp.org>
52989
52990         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52991         indentation.
52992
52993 2007-12-23  Bruno Haible  <bruno@clisp.org>
52994
52995         * lib/c-strcasestr.c: Add more comments.
52996         * lib/c-strstr.c: Likewise.
52997         * lib/mbscasestr.c: Likewise.
52998         * lib/mbsstr.c: Likewise.
52999         * lib/strcasestr.c: Likewise.
53000         * lib/memmem.c: Likewise.
53001
53002 2007-12-23  Bruno Haible  <bruno@clisp.org>
53003
53004         * tests/test-memmem.c: Include <string.h> first.
53005
53006 2007-12-22  Bruno Haible  <bruno@clisp.org>
53007
53008         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53009         the contents of $testsbase.
53010         Reported by Ralf Wildenhues.
53011
53012 2007-12-22  Bruno Haible  <bruno@clisp.org>
53013
53014         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53015         two variables local_ldadd_before, local_ldadd_last.
53016
53017 2007-12-20  Eric Blake  <ebb9@byu.net>
53018
53019         Work around circular library issue when cross-compiling.
53020         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53021         that progname.o does not need to pull in rpl_memcmp.
53022
53023 2007-12-19  Eric Blake  <ebb9@byu.net>
53024
53025         Fix memmem to avoid O(n^2) worst-case complexity.
53026         * lib/memmem.c (knuth_morris_pratt): New function.
53027         (memmem): Use it if first few naive iterations fail.
53028         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53029         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53030         * modules/memchr (License): Likewise.
53031         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53032         malloca.
53033         * tests/test-memmem.c: Rewrite, borrowing ideas from
53034         test-mbsstr1.c; the old version wouldn't even compile!
53035         * modules/memmem-tests: New file.
53036         * lib/string.in.h (rpl_memmem): Add declaration.
53037         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53038         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53039         REPLACE_MEMMEM.
53040
53041 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53042
53043         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53044         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53045         before any system include files, and undef after them all.  This
53046         should fix a problem on VMS reported by John E. Malmberg in
53047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53048
53049 2007-12-17  Eric Blake  <ebb9@byu.net>
53050
53051         Revert addition of verify, for BSD/OS.
53052         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53053         can't handle large files, for the sake of obsolete platforms.
53054         * modules/fseeko (Depends-on): Remove verify.
53055         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53056         * doc/functions/ftello.texi (ftello): Likewise.
53057         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53058         Reported by Larry Jones.
53059
53060 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53061
53062         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53063         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53064
53065 2007-12-17  Jim Meyering  <meyering@redhat.com>
53066
53067         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53068         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53069         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53070         * modules/getcwd (Depends-on): Add openat.
53071         Reported by Petr Salinger.
53072
53073 2007-12-17  Bruno Haible  <bruno@clisp.org>
53074
53075         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53076         avoid a segmentation fault of the configure test on x86_64 systems.
53077
53078 2007-12-15  Jim Meyering  <meyering@redhat.com>
53079
53080         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53081
53082 2007-12-13  Eric Blake  <ebb9@byu.net>
53083
53084         Another fseek test.
53085         * tests/test-fseek.c (main): Also test ungetc handling.
53086         * tests/test-fseeko.c (main): Likewise.
53087         * modules/fseeko (Depends-on): Add verify.
53088         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53089         large.
53090         Reported by Larry Jones.
53091
53092         Fix fseeko on mingw.
53093         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53094         seek.
53095
53096         Beef up fseek tests.
53097         * tests/test-fseek.c (main): Also test eof handling.
53098         * tests/test-fseeko.c (main): Likewise.
53099         Reported by Larry Jones.
53100
53101 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53102
53103         Fix fseeko on BSD-based platforms.
53104         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53105         successful seek.
53106
53107 2007-12-12  Eric Blake  <ebb9@byu.net>
53108
53109         Allow circular dependency of separate libtests.a
53110         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53111         when use_libtests.
53112
53113 2007-12-11  Eric Blake  <ebb9@byu.net>
53114
53115         Fix bug with -0.0L in previous patch.
53116         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53117         * tests/test-isnan.c (main): Also test on zeroes.
53118         * tests/test-isnanf.c (main): Likewise.
53119         * tests/test-isnanl.h (main): Likewise.
53120
53121         Detect pseudo-denormals on x86 even when cross-compiling.
53122         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53123         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53124         invalid bit patterns that happen to satisfy ==.
53125
53126         Avoid link failures with separate libtests.a.
53127         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53128         last, to satisfy circular dependencies.
53129
53130 2007-12-11  Eric Blake  <ebb9@byu.net>
53131         and Bruno Haible  <bruno@clisp.org>
53132
53133         Fix OpenBSD 4.0 <float.h> handling of long double.
53134         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53135         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53136         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53137
53138 2007-12-11  Jim Meyering  <meyering@redhat.com>
53139
53140         * users.txt: Add libvirt.
53141
53142         Support versions of autoconf prior to 2.59c.
53143         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53144         if it is not already defined.
53145
53146 2007-12-09  Bruno Haible  <bruno@clisp.org>
53147
53148         Let 'gnulib-tool --import' collect sources needed for the tests in
53149         tests/ rather than in lib/.
53150         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53151         argument. If true, add rules to generate libtests.a, and put libtests.a
53152         into $(LDADD). Consider source files in subdirectories and set
53153         uses_subdirs.
53154         (func_emit_initmacro_start, func_emit_initmacro_end,
53155         func_emit_initmacro_done): Pass all arguments explicitly.
53156         (func_import): Determine two module lists main_modules,
53157         testsrelated_modules. Determine use_libtests. Determine two variables
53158         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53159         instead of just sed_transform_lib_file. Determine two variables
53160         main_files and testsrelated_files. Compute 'files' as the union of
53161         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53162         func_add_or_update. In the generated gnulib-comp.m4, collect the
53163         object files for tests/ in different variables than those for lib/.
53164         Substitute LIBTESTS_LIBDEPS.
53165         (func_create_testdir): Combine the uses_subdirs results from
53166         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53167
53168 2007-12-09  Bruno Haible  <bruno@clisp.org>
53169
53170         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53171         the build-aux directory.
53172
53173 2007-12-09  Bruno Haible  <bruno@clisp.org>
53174
53175         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53176         introduced on 2006-09-09.
53177
53178 2007-12-07  Jim Meyering  <meyering@redhat.com>
53179
53180         Let these macros work also with autoconf-2.59.
53181         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53182         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53183         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53184
53185 2007-12-06  Jim Meyering  <meyering@redhat.com>
53186
53187         Avoid a configure-time syntax error in gl_FUNC_ACL.
53188         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53189         function in each branch, before testing the cache variable.
53190
53191 2007-12-04  Eric Blake  <ebb9@byu.net>
53192
53193         Make scripts executable.
53194         * build-aux/config.guess: Add execute permissions.
53195         * build-aux/config.sub: Likewise.
53196         * build-aux/gendocs.sh: Likewise.
53197
53198         Fix frexp on mingw.
53199         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53200         cross-compiling.
53201         * doc/functions/frexp.texi (frexp): Document the bug.
53202
53203         Make cygwin fseeko check more reliable.
53204         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53205         version numbers, rather than unrelated feature check.
53206         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53207         * doc/functions/ftello.texi (ftello): Likewise.
53208         Reported by Bruno Haible.
53209
53210         * m4/strerror.m4: Bump version number.
53211
53212 2007-12-03  Bruno Haible  <bruno@clisp.org>
53213
53214         * doc/functions/mprotect.texi: Mention the mingw problem.
53215
53216 2007-12-03  Eric Blake  <ebb9@byu.net>
53217
53218         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53219         REPLACE_STRERROR is initialized before this macro.
53220
53221 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53222
53223         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53224         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53225         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53226         put -lsec in even for programs other than 'ls'.  This fixes a problem
53227         for gettext reported by Bruno Haible in
53228         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53229         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53230         Add support for Solaris 10.  This isn't efficient, but should get the
53231         job done for now.
53232
53233 2007-12-03  James Youngman  <jay@gnu.org>
53234
53235         * doc/regexprops-generic.texi: change "an close-group" to "a
53236         close-group" and "illegal" to "not allowed".
53237
53238 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53239
53240         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53241         pr_byname.h. Needed for the rare case when the maintainer has done
53242         "make maintainer-clean" in the source directory and then attempts a
53243         build outside the source directory.
53244         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53245         scripts_byname.h.
53246
53247 2007-12-02  Martin Lambers <marlam@marlam.de>
53248             Bruno Haible  <bruno@clisp.org>
53249
53250         * lib/getpagesize.h: Remove file.
53251         * lib/unistd.in.h: Include declaration of getpagesize here.
53252         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53253         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53254         HAVE_SYS_PARAM_H.
53255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53256         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53257         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53258         (Depends-on): Add unistd.
53259         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53260         (Include): Use <unistd.h> instead of getpagesize.h.
53261         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53262         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53263         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53264         gl_GETPAGESIZE invocation, already handled by module dependency.
53265         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53266
53267 2007-12-02  Bruno Haible  <bruno@clisp.org>
53268
53269         * modules/strings-tests: New file.
53270         * tests/test-strings.c: New file.
53271
53272         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53273         * lib/strings.in.h: New file.
53274         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53275         * m4/strings_h.m4: New file.
53276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53277         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53278         * modules/strings: New file.
53279         * modules/string (Makefile.am): Update.
53280         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53281         Reported by Karl Berry.
53282
53283 2007-12-01  Eric Blake  <ebb9@byu.net>
53284
53285         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53286         accomodate fix in cygwin 1.5.25.
53287
53288 2007-12-01  Jim Meyering  <meyering@redhat.com>
53289
53290         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53291         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53292         that would inhibit utf8-optimization of a regexp containing line-
53293         or buffer-anchors, e.g., `^', `$'.
53294
53295 2007-11-30  Bruno Haible  <bruno@clisp.org>
53296
53297         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53298         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53299         glthread_recursive_lock_init.
53300         * lib/lock.c (glthread_recursive_lock_init)
53301         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53302         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53303
53304 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53305
53306         New function qset_acl, like set_acl but with syscall semantics.
53307         * lib/acl.h (qset_acl): New decl.
53308         * lib/acl.c (qset_acl): New function.
53309         (set_acl): Use new function.  Use more-consistent diagnostics.
53310
53311 2007-11-28  Jim Meyering  <meyering@redhat.com>
53312
53313         * modules/physmem (License): Change from GPL to LGPLv2+.
53314
53315 2007-11-26  Bruno Haible  <bruno@clisp.org>
53316
53317         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53318         'long double' type has excess precision.
53319         Reported by Jim Meyering in
53320         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53321
53322 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53323
53324         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53325         Sync from <http://gnu.org/licenses>.
53326         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53327         with license text from same location.
53328         * doc/maintain.texi, doc/standards.texi:  Sync from
53329         <http://savannah.gnu.org/projects/gnustandards>.
53330
53331 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53332         and Jim Meyering  <meyering@redhat.com>
53333
53334         Adjust getdate' grammar to accept a slightly more regular language.
53335         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53336         Before, the former was rejected.
53337         * lib/getdate.y (digits_to_date_time): New function, factored
53338         out of ...
53339         (number): ...here.  Just call digits_to_date_time.
53340         (hybrid): New non-terminal to handle an <unsigned number,
53341         signed relative offset> sequence consistently.
53342
53343 2007-11-18  Jim Meyering  <meyering@redhat.com>
53344
53345         Pull my changes from coreutils:
53346         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53347         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53348         use of $gnulib_tool_option_extras, so that it's separated from the
53349         preceding argument.
53350
53351         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53352         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53353         parent destination directories before copying a file into place.
53354
53355 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53356
53357         bootstrap: work also with 4-argument variant of AC_INIT
53358         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53359
53360 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53361
53362         Port test-getaddrinfo to Solaris.
53363         Problem reported by Bruno Haible in
53364         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53365         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53366         explanation of setting 'hints'.
53367         Don't reject an implementation merely because it returns EAI_SERVICE.
53368         (EAI_SERVICE): Define to 0 if not defined.
53369
53370 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53371
53372         The license of gnu-make and posix-shell is now "GPLed build tool".
53373         * modules/gnu-make (License): Likewise.
53374         * modules/posix-shell (License): Likewise.
53375
53376         New module posix-shell, for determining a POSIX shell
53377         or perhaps something that is close enough to a POSIX shell.
53378         * m4/posix-shell.m4: New file.
53379         * modules/posix-shell: New file.
53380
53381         * MODULES.html.sh: Mention new module.
53382
53383         New module gnu-make, for determining whether we're using GNU Make.
53384         * m4/gnu-make.m4: New file.
53385         * modules/gnu-make: New file.
53386         * MODULES.html.sh: Mention new module.
53387
53388 2007-11-14  Jim Meyering  <meyering@redhat.com>
53389
53390         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53391         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53392         use this macro to create a function _definition_.
53393         Remove useless "#undef ARGMATCH_DIE".
53394
53395 2007-11-14  Bruno Haible  <bruno@clisp.org>
53396
53397         * lib/config.charset: Update for OpenBSD 4.1.
53398         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53399
53400 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53401
53402         Document 64-bit #if problems in stdint.texi.
53403         * doc/headers/stdint.texi (stdint.h): Mention problems with
53404         64-bit-#if, and how to work around them.
53405
53406         Don't insist on 'long long int' support in the preprocessor.  It
53407         breaks too many things.  For example, PRIdMAX still uses a 'long
53408         long int' format with the latest Sun compiler, even though
53409         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53410         preprocessor problem.  This causes the latest coreutils to dump
53411         core on Solaris 10 sparc with the Sun C compiler.
53412         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53413         the troublesome expressions at configure-time, not at #if-time.
53414         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53415         preprocessor.
53416         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53417         compile-time C checks, done at 'configure'-time.
53418         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53419         * modules/inttypes (Makefile): Substitute the new symbols that
53420         gl_INTTYPES_H now generates.
53421         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53422
53423 2007-11-12  Bruno Haible  <bruno@clisp.org>
53424
53425         Tests for Unicode character classification functions.
53426
53427         * modules/unictype/bidicategory-byname-tests: New file.
53428         * modules/unictype/bidicategory-name-tests: New file.
53429         * modules/unictype/bidicategory-of-tests: New file.
53430         * modules/unictype/bidicategory-test-tests: New file.
53431         * modules/unictype/block-list-tests: New file.
53432         * modules/unictype/block-of-tests: New file.
53433         * modules/unictype/block-test-tests: New file.
53434         * modules/unictype/category-C-tests: New file.
53435         * modules/unictype/category-Cc-tests: New file.
53436         * modules/unictype/category-Cf-tests: New file.
53437         * modules/unictype/category-Cn-tests: New file.
53438         * modules/unictype/category-Co-tests: New file.
53439         * modules/unictype/category-Cs-tests: New file.
53440         * modules/unictype/category-L-tests: New file.
53441         * modules/unictype/category-Ll-tests: New file.
53442         * modules/unictype/category-Lm-tests: New file.
53443         * modules/unictype/category-Lo-tests: New file.
53444         * modules/unictype/category-Lt-tests: New file.
53445         * modules/unictype/category-Lu-tests: New file.
53446         * modules/unictype/category-M-tests: New file.
53447         * modules/unictype/category-Mc-tests: New file.
53448         * modules/unictype/category-Me-tests: New file.
53449         * modules/unictype/category-Mn-tests: New file.
53450         * modules/unictype/category-N-tests: New file.
53451         * modules/unictype/category-Nd-tests: New file.
53452         * modules/unictype/category-Nl-tests: New file.
53453         * modules/unictype/category-No-tests: New file.
53454         * modules/unictype/category-P-tests: New file.
53455         * modules/unictype/category-Pc-tests: New file.
53456         * modules/unictype/category-Pd-tests: New file.
53457         * modules/unictype/category-Pe-tests: New file.
53458         * modules/unictype/category-Pf-tests: New file.
53459         * modules/unictype/category-Pi-tests: New file.
53460         * modules/unictype/category-Po-tests: New file.
53461         * modules/unictype/category-Ps-tests: New file.
53462         * modules/unictype/category-S-tests: New file.
53463         * modules/unictype/category-Sc-tests: New file.
53464         * modules/unictype/category-Sk-tests: New file.
53465         * modules/unictype/category-Sm-tests: New file.
53466         * modules/unictype/category-So-tests: New file.
53467         * modules/unictype/category-Z-tests: New file.
53468         * modules/unictype/category-Zl-tests: New file.
53469         * modules/unictype/category-Zp-tests: New file.
53470         * modules/unictype/category-Zs-tests: New file.
53471         * modules/unictype/category-and-not-tests: New file.
53472         * modules/unictype/category-and-tests: New file.
53473         * modules/unictype/category-byname-tests: New file.
53474         * modules/unictype/category-name-tests: New file.
53475         * modules/unictype/category-none-tests: New file.
53476         * modules/unictype/category-of-tests: New file.
53477         * modules/unictype/category-or-tests: New file.
53478         * modules/unictype/category-test-withtable-tests: New file.
53479         * modules/unictype/combining-class-tests: New file.
53480         * modules/unictype/ctype-alnum-tests: New file.
53481         * modules/unictype/ctype-alpha-tests: New file.
53482         * modules/unictype/ctype-blank-tests: New file.
53483         * modules/unictype/ctype-cntrl-tests: New file.
53484         * modules/unictype/ctype-digit-tests: New file.
53485         * modules/unictype/ctype-graph-tests: New file.
53486         * modules/unictype/ctype-lower-tests: New file.
53487         * modules/unictype/ctype-print-tests: New file.
53488         * modules/unictype/ctype-punct-tests: New file.
53489         * modules/unictype/ctype-space-tests: New file.
53490         * modules/unictype/ctype-upper-tests: New file.
53491         * modules/unictype/ctype-xdigit-tests: New file.
53492         * modules/unictype/decimal-digit-tests: New file.
53493         * modules/unictype/digit-tests: New file.
53494         * modules/unictype/mirror-tests: New file.
53495         * modules/unictype/numeric-tests: New file.
53496         * modules/unictype/property-alphabetic-tests: New file.
53497         * modules/unictype/property-ascii-hex-digit-tests: New file.
53498         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53499         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53500         * modules/unictype/property-bidi-block-separator-tests: New file.
53501         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53502         * modules/unictype/property-bidi-common-separator-tests: New file.
53503         * modules/unictype/property-bidi-control-tests: New file.
53504         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53505         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53506         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53507         * modules/unictype/property-bidi-european-digit-tests: New file.
53508         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53509         * modules/unictype/property-bidi-left-to-right-tests: New file.
53510         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53511         * modules/unictype/property-bidi-other-neutral-tests: New file.
53512         * modules/unictype/property-bidi-pdf-tests: New file.
53513         * modules/unictype/property-bidi-segment-separator-tests: New file.
53514         * modules/unictype/property-bidi-whitespace-tests: New file.
53515         * modules/unictype/property-byname-tests: New file.
53516         * modules/unictype/property-combining-tests: New file.
53517         * modules/unictype/property-composite-tests: New file.
53518         * modules/unictype/property-currency-symbol-tests: New file.
53519         * modules/unictype/property-dash-tests: New file.
53520         * modules/unictype/property-decimal-digit-tests: New file.
53521         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53522         * modules/unictype/property-deprecated-tests: New file.
53523         * modules/unictype/property-diacritic-tests: New file.
53524         * modules/unictype/property-extender-tests: New file.
53525         * modules/unictype/property-format-control-tests: New file.
53526         * modules/unictype/property-grapheme-base-tests: New file.
53527         * modules/unictype/property-grapheme-extend-tests: New file.
53528         * modules/unictype/property-grapheme-link-tests: New file.
53529         * modules/unictype/property-hex-digit-tests: New file.
53530         * modules/unictype/property-hyphen-tests: New file.
53531         * modules/unictype/property-id-continue-tests: New file.
53532         * modules/unictype/property-id-start-tests: New file.
53533         * modules/unictype/property-ideographic-tests: New file.
53534         * modules/unictype/property-ids-binary-operator-tests: New file.
53535         * modules/unictype/property-ids-trinary-operator-tests: New file.
53536         * modules/unictype/property-ignorable-control-tests: New file.
53537         * modules/unictype/property-iso-control-tests: New file.
53538         * modules/unictype/property-join-control-tests: New file.
53539         * modules/unictype/property-left-of-pair-tests: New file.
53540         * modules/unictype/property-line-separator-tests: New file.
53541         * modules/unictype/property-logical-order-exception-tests: New file.
53542         * modules/unictype/property-lowercase-tests: New file.
53543         * modules/unictype/property-math-tests: New file.
53544         * modules/unictype/property-non-break-tests: New file.
53545         * modules/unictype/property-not-a-character-tests: New file.
53546         * modules/unictype/property-numeric-tests: New file.
53547         * modules/unictype/property-other-alphabetic-tests: New file.
53548         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53549         * modules/unictype/property-other-grapheme-extend-tests: New file.
53550         * modules/unictype/property-other-id-continue-tests: New file.
53551         * modules/unictype/property-other-id-start-tests: New file.
53552         * modules/unictype/property-other-lowercase-tests: New file.
53553         * modules/unictype/property-other-math-tests: New file.
53554         * modules/unictype/property-other-uppercase-tests: New file.
53555         * modules/unictype/property-paired-punctuation-tests: New file.
53556         * modules/unictype/property-paragraph-separator-tests: New file.
53557         * modules/unictype/property-pattern-syntax-tests: New file.
53558         * modules/unictype/property-pattern-white-space-tests: New file.
53559         * modules/unictype/property-private-use-tests: New file.
53560         * modules/unictype/property-punctuation-tests: New file.
53561         * modules/unictype/property-quotation-mark-tests: New file.
53562         * modules/unictype/property-radical-tests: New file.
53563         * modules/unictype/property-sentence-terminal-tests: New file.
53564         * modules/unictype/property-soft-dotted-tests: New file.
53565         * modules/unictype/property-space-tests: New file.
53566         * modules/unictype/property-terminal-punctuation-tests: New file.
53567         * modules/unictype/property-test-tests: New file.
53568         * modules/unictype/property-titlecase-tests: New file.
53569         * modules/unictype/property-unassigned-code-value-tests: New file.
53570         * modules/unictype/property-unified-ideograph-tests: New file.
53571         * modules/unictype/property-uppercase-tests: New file.
53572         * modules/unictype/property-variation-selector-tests: New file.
53573         * modules/unictype/property-white-space-tests: New file.
53574         * modules/unictype/property-xid-continue-tests: New file.
53575         * modules/unictype/property-xid-start-tests: New file.
53576         * modules/unictype/property-zero-width-tests: New file.
53577         * modules/unictype/scripts-tests: New file.
53578         * modules/unictype/syntax-c-ident-tests: New file.
53579         * modules/unictype/syntax-c-whitespace-tests: New file.
53580         * modules/unictype/syntax-java-ident-tests: New file.
53581         * modules/unictype/syntax-java-whitespace-tests: New file.
53582         * tests/unictype/test-bidi_byname.c: New file.
53583         * tests/unictype/test-bidi_name.c: New file.
53584         * tests/unictype/test-bidi_of.c: New file.
53585         * tests/unictype/test-bidi_test.c: New file.
53586         * tests/unictype/test-block_list.c: New file.
53587         * tests/unictype/test-block_of.c: New file.
53588         * tests/unictype/test-block_test.c: New file.
53589         * tests/unictype/test-categ_and.c: New file.
53590         * tests/unictype/test-categ_and_not.c: New file.
53591         * tests/unictype/test-categ_byname.c: New file.
53592         * tests/unictype/test-categ_name.c: New file.
53593         * tests/unictype/test-categ_none.c: New file.
53594         * tests/unictype/test-categ_of.c: New file.
53595         * tests/unictype/test-categ_or.c: New file.
53596         * tests/unictype/test-categ_test_withtable.c: New file.
53597         * tests/unictype/test-combining.c: New file.
53598         * tests/unictype/test-decdigit.c: New file.
53599         * tests/unictype/test-digit.c: New file.
53600         * tests/unictype/test-mirror.c: New file.
53601         * tests/unictype/test-numeric.c: New file.
53602         * tests/unictype/test-pr_byname.c: New file.
53603         * tests/unictype/test-pr_test.c: New file.
53604         * tests/unictype/test-predicate-part1.h: New file.
53605         * tests/unictype/test-predicate-part2.h: New file.
53606         * tests/unictype/test-scripts.c: New file.
53607         * tests/unictype/test-sy_c_ident.c: New file.
53608         * tests/unictype/test-sy_java_ident.c: New file.
53609
53610         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53611         for Unicode 5.0.0.
53612         * tests/unictype/test-categ_Cc.c: Likewise.
53613         * tests/unictype/test-categ_Cf.c: Likewise.
53614         * tests/unictype/test-categ_Cn.c: Likewise.
53615         * tests/unictype/test-categ_Co.c: Likewise.
53616         * tests/unictype/test-categ_Cs.c: Likewise.
53617         * tests/unictype/test-categ_L.c: Likewise.
53618         * tests/unictype/test-categ_Ll.c: Likewise.
53619         * tests/unictype/test-categ_Lm.c: Likewise.
53620         * tests/unictype/test-categ_Lo.c: Likewise.
53621         * tests/unictype/test-categ_Lt.c: Likewise.
53622         * tests/unictype/test-categ_Lu.c: Likewise.
53623         * tests/unictype/test-categ_M.c: Likewise.
53624         * tests/unictype/test-categ_Mc.c: Likewise.
53625         * tests/unictype/test-categ_Me.c: Likewise.
53626         * tests/unictype/test-categ_Mn.c: Likewise.
53627         * tests/unictype/test-categ_N.c: Likewise.
53628         * tests/unictype/test-categ_Nd.c: Likewise.
53629         * tests/unictype/test-categ_Nl.c: Likewise.
53630         * tests/unictype/test-categ_No.c: Likewise.
53631         * tests/unictype/test-categ_P.c: Likewise.
53632         * tests/unictype/test-categ_Pc.c: Likewise.
53633         * tests/unictype/test-categ_Pd.c: Likewise.
53634         * tests/unictype/test-categ_Pe.c: Likewise.
53635         * tests/unictype/test-categ_Pf.c: Likewise.
53636         * tests/unictype/test-categ_Pi.c: Likewise.
53637         * tests/unictype/test-categ_Po.c: Likewise.
53638         * tests/unictype/test-categ_Ps.c: Likewise.
53639         * tests/unictype/test-categ_S.c: Likewise.
53640         * tests/unictype/test-categ_Sc.c: Likewise.
53641         * tests/unictype/test-categ_Sk.c: Likewise.
53642         * tests/unictype/test-categ_Sm.c: Likewise.
53643         * tests/unictype/test-categ_So.c: Likewise.
53644         * tests/unictype/test-categ_Z.c: Likewise.
53645         * tests/unictype/test-categ_Zl.c: Likewise.
53646         * tests/unictype/test-categ_Zp.c: Likewise.
53647         * tests/unictype/test-categ_Zs.c: Likewise.
53648         * tests/unictype/test-ctype_alnum.c: Likewise.
53649         * tests/unictype/test-ctype_alpha.c: Likewise.
53650         * tests/unictype/test-ctype_blank.c: Likewise.
53651         * tests/unictype/test-ctype_cntrl.c: Likewise.
53652         * tests/unictype/test-ctype_digit.c: Likewise.
53653         * tests/unictype/test-ctype_graph.c: Likewise.
53654         * tests/unictype/test-ctype_lower.c: Likewise.
53655         * tests/unictype/test-ctype_print.c: Likewise.
53656         * tests/unictype/test-ctype_punct.c: Likewise.
53657         * tests/unictype/test-ctype_space.c: Likewise.
53658         * tests/unictype/test-ctype_upper.c: Likewise.
53659         * tests/unictype/test-ctype_xdigit.c: Likewise.
53660         * tests/unictype/test-decdigit.h: Likewise.
53661         * tests/unictype/test-digit.h: Likewise.
53662         * tests/unictype/test-numeric.h: Likewise.
53663         * tests/unictype/test-pr_alphabetic.c: Likewise.
53664         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53665         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53666         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53667         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53668         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53669         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53670         * tests/unictype/test-pr_bidi_control.c: Likewise.
53671         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53672         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53673         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53674         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53675         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53676         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53677         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53678         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53679         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53680         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53681         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53682         * tests/unictype/test-pr_combining.c: Likewise.
53683         * tests/unictype/test-pr_composite.c: Likewise.
53684         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53685         * tests/unictype/test-pr_dash.c: Likewise.
53686         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53687         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53688         * tests/unictype/test-pr_deprecated.c: Likewise.
53689         * tests/unictype/test-pr_diacritic.c: Likewise.
53690         * tests/unictype/test-pr_extender.c: Likewise.
53691         * tests/unictype/test-pr_format_control.c: Likewise.
53692         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53693         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53694         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53695         * tests/unictype/test-pr_hex_digit.c: Likewise.
53696         * tests/unictype/test-pr_hyphen.c: Likewise.
53697         * tests/unictype/test-pr_id_continue.c: Likewise.
53698         * tests/unictype/test-pr_id_start.c: Likewise.
53699         * tests/unictype/test-pr_ideographic.c: Likewise.
53700         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53701         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53702         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53703         * tests/unictype/test-pr_iso_control.c: Likewise.
53704         * tests/unictype/test-pr_join_control.c: Likewise.
53705         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53706         * tests/unictype/test-pr_line_separator.c: Likewise.
53707         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53708         * tests/unictype/test-pr_lowercase.c: Likewise.
53709         * tests/unictype/test-pr_math.c: Likewise.
53710         * tests/unictype/test-pr_non_break.c: Likewise.
53711         * tests/unictype/test-pr_not_a_character.c: Likewise.
53712         * tests/unictype/test-pr_numeric.c: Likewise.
53713         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53714         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53715         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53716         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53717         * tests/unictype/test-pr_other_id_start.c: Likewise.
53718         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53719         * tests/unictype/test-pr_other_math.c: Likewise.
53720         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53721         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53722         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53723         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53724         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53725         * tests/unictype/test-pr_private_use.c: Likewise.
53726         * tests/unictype/test-pr_punctuation.c: Likewise.
53727         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53728         * tests/unictype/test-pr_radical.c: Likewise.
53729         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53730         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53731         * tests/unictype/test-pr_space.c: Likewise.
53732         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53733         * tests/unictype/test-pr_titlecase.c: Likewise.
53734         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53735         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53736         * tests/unictype/test-pr_uppercase.c: Likewise.
53737         * tests/unictype/test-pr_variation_selector.c: Likewise.
53738         * tests/unictype/test-pr_white_space.c: Likewise.
53739         * tests/unictype/test-pr_xid_continue.c: Likewise.
53740         * tests/unictype/test-pr_xid_start.c: Likewise.
53741         * tests/unictype/test-pr_zero_width.c: Likewise.
53742         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53743         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53744
53745 2007-11-12  Bruno Haible  <bruno@clisp.org>
53746
53747         Unicode character classification functions.
53748         * lib/unictype.h: New file.
53749         * modules/unictype/base: New file.
53750         * modules/unictype/category-L: New file.
53751         * modules/unictype/category-Lu: New file.
53752         * modules/unictype/category-Ll: New file.
53753         * modules/unictype/category-Lt: New file.
53754         * modules/unictype/category-Lm: New file.
53755         * modules/unictype/category-Lo: New file.
53756         * modules/unictype/category-M: New file.
53757         * modules/unictype/category-Mn: New file.
53758         * modules/unictype/category-Mc: New file.
53759         * modules/unictype/category-Me: New file.
53760         * modules/unictype/category-N: New file.
53761         * modules/unictype/category-Nd: New file.
53762         * modules/unictype/category-Nl: New file.
53763         * modules/unictype/category-No: New file.
53764         * modules/unictype/category-P: New file.
53765         * modules/unictype/category-Pc: New file.
53766         * modules/unictype/category-Pd: New file.
53767         * modules/unictype/category-Ps: New file.
53768         * modules/unictype/category-Pe: New file.
53769         * modules/unictype/category-Pi: New file.
53770         * modules/unictype/category-Pf: New file.
53771         * modules/unictype/category-Po: New file.
53772         * modules/unictype/category-S: New file.
53773         * modules/unictype/category-Sm: New file.
53774         * modules/unictype/category-Sc: New file.
53775         * modules/unictype/category-Sk: New file.
53776         * modules/unictype/category-So: New file.
53777         * modules/unictype/category-Z: New file.
53778         * modules/unictype/category-Zs: New file.
53779         * modules/unictype/category-Zl: New file.
53780         * modules/unictype/category-Zp: New file.
53781         * modules/unictype/category-C: New file.
53782         * modules/unictype/category-Cc: New file.
53783         * modules/unictype/category-Cf: New file.
53784         * modules/unictype/category-Cs: New file.
53785         * modules/unictype/category-Co: New file.
53786         * modules/unictype/category-Cn: New file.
53787         * modules/unictype/category-or: New file.
53788         * modules/unictype/category-of: New file.
53789         * modules/unictype/category-test: New file.
53790         * modules/unictype/category-test-withtable: New file.
53791         * modules/unictype/category-byname: New file.
53792         * modules/unictype/category-none: New file.
53793         * modules/unictype/category-and: New file.
53794         * modules/unictype/category-and-not: New file.
53795         * modules/unictype/category-name: New file.
53796         * modules/unictype/combining-class: New file.
53797         * modules/unictype/category-all: New file.
53798         * modules/unictype/bidicategory-all: New file.
53799         * modules/unictype/bidicategory-byname: New file.
53800         * modules/unictype/bidicategory-name: New file.
53801         * modules/unictype/bidicategory-of: New file.
53802         * modules/unictype/bidicategory-test: New file.
53803         * modules/unictype/decimal-digit: New file.
53804         * modules/unictype/digit: New file.
53805         * modules/unictype/numeric: New file.
53806         * modules/unictype/mirror: New file.
53807         * modules/unictype/property-white-space: New file.
53808         * modules/unictype/property-alphabetic: New file.
53809         * modules/unictype/property-other-alphabetic: New file.
53810         * modules/unictype/property-not-a-character: New file.
53811         * modules/unictype/property-default-ignorable-code-point: New file.
53812         * modules/unictype/property-other-default-ignorable-code-point: New
53813         file.
53814         * modules/unictype/property-deprecated: New file.
53815         * modules/unictype/property-logical-order-exception: New file.
53816         * modules/unictype/property-variation-selector: New file.
53817         * modules/unictype/property-private-use: New file.
53818         * modules/unictype/property-unassigned-code-value: New file.
53819         * modules/unictype/property-uppercase: New file.
53820         * modules/unictype/property-other-uppercase: New file.
53821         * modules/unictype/property-lowercase: New file.
53822         * modules/unictype/property-other-lowercase: New file.
53823         * modules/unictype/property-titlecase: New file.
53824         * modules/unictype/property-soft-dotted: New file.
53825         * modules/unictype/property-id-start: New file.
53826         * modules/unictype/property-other-id-start: New file.
53827         * modules/unictype/property-id-continue: New file.
53828         * modules/unictype/property-other-id-continue: New file.
53829         * modules/unictype/property-xid-start: New file.
53830         * modules/unictype/property-xid-continue: New file.
53831         * modules/unictype/property-pattern-white-space: New file.
53832         * modules/unictype/property-pattern-syntax: New file.
53833         * modules/unictype/property-join-control: New file.
53834         * modules/unictype/property-grapheme-base: New file.
53835         * modules/unictype/property-grapheme-extend: New file.
53836         * modules/unictype/property-other-grapheme-extend: New file.
53837         * modules/unictype/property-grapheme-link: New file.
53838         * modules/unictype/property-bidi-control: New file.
53839         * modules/unictype/property-bidi-left-to-right: New file.
53840         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53841         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53842         * modules/unictype/property-bidi-european-digit: New file.
53843         * modules/unictype/property-bidi-eur-num-separator: New file.
53844         * modules/unictype/property-bidi-eur-num-terminator: New file.
53845         * modules/unictype/property-bidi-arabic-digit: New file.
53846         * modules/unictype/property-bidi-common-separator: New file.
53847         * modules/unictype/property-bidi-block-separator: New file.
53848         * modules/unictype/property-bidi-segment-separator: New file.
53849         * modules/unictype/property-bidi-whitespace: New file.
53850         * modules/unictype/property-bidi-non-spacing-mark: New file.
53851         * modules/unictype/property-bidi-boundary-neutral: New file.
53852         * modules/unictype/property-bidi-pdf: New file.
53853         * modules/unictype/property-bidi-embedding-or-override: New file.
53854         * modules/unictype/property-bidi-other-neutral: New file.
53855         * modules/unictype/property-hex-digit: New file.
53856         * modules/unictype/property-ascii-hex-digit: New file.
53857         * modules/unictype/property-ideographic: New file.
53858         * modules/unictype/property-unified-ideograph: New file.
53859         * modules/unictype/property-radical: New file.
53860         * modules/unictype/property-ids-binary-operator: New file.
53861         * modules/unictype/property-ids-trinary-operator: New file.
53862         * modules/unictype/property-zero-width: New file.
53863         * modules/unictype/property-space: New file.
53864         * modules/unictype/property-non-break: New file.
53865         * modules/unictype/property-iso-control: New file.
53866         * modules/unictype/property-format-control: New file.
53867         * modules/unictype/property-dash: New file.
53868         * modules/unictype/property-hyphen: New file.
53869         * modules/unictype/property-punctuation: New file.
53870         * modules/unictype/property-line-separator: New file.
53871         * modules/unictype/property-paragraph-separator: New file.
53872         * modules/unictype/property-quotation-mark: New file.
53873         * modules/unictype/property-sentence-terminal: New file.
53874         * modules/unictype/property-terminal-punctuation: New file.
53875         * modules/unictype/property-currency-symbol: New file.
53876         * modules/unictype/property-math: New file.
53877         * modules/unictype/property-other-math: New file.
53878         * modules/unictype/property-paired-punctuation: New file.
53879         * modules/unictype/property-left-of-pair: New file.
53880         * modules/unictype/property-combining: New file.
53881         * modules/unictype/property-composite: New file.
53882         * modules/unictype/property-decimal-digit: New file.
53883         * modules/unictype/property-numeric: New file.
53884         * modules/unictype/property-diacritic: New file.
53885         * modules/unictype/property-extender: New file.
53886         * modules/unictype/property-ignorable-control: New file.
53887         * modules/unictype/property-test: New file.
53888         * modules/unictype/property-byname: New file.
53889         * modules/unictype/property-all: New file.
53890         * modules/unictype/scripts: New file.
53891         * modules/unictype/scripts-all: New file.
53892         * modules/unictype/block-of: New file.
53893         * modules/unictype/block-test: New file.
53894         * modules/unictype/block-list: New file.
53895         * modules/unictype/block-all: New file.
53896         * modules/unictype/syntax-c-whitespace: New file.
53897         * modules/unictype/syntax-java-whitespace: New file.
53898         * modules/unictype/syntax-c-ident: New file.
53899         * modules/unictype/syntax-java-ident: New file.
53900         * modules/unictype/ctype-alnum: New file.
53901         * modules/unictype/ctype-alpha: New file.
53902         * modules/unictype/ctype-cntrl: New file.
53903         * modules/unictype/ctype-digit: New file.
53904         * modules/unictype/ctype-graph: New file.
53905         * modules/unictype/ctype-lower: New file.
53906         * modules/unictype/ctype-print: New file.
53907         * modules/unictype/ctype-punct: New file.
53908         * modules/unictype/ctype-space: New file.
53909         * modules/unictype/ctype-upper: New file.
53910         * modules/unictype/ctype-xdigit: New file.
53911         * modules/unictype/ctype-blank: New file.
53912         * lib/unictype/bidi_byname.c: New file.
53913         * lib/unictype/bidi_name.c: New file.
53914         * lib/unictype/bidi_of.c: New file.
53915         * lib/unictype/bidi_test.c: New file.
53916         * lib/unictype/bitmap.h: New file.
53917         * lib/unictype/block_test.c: New file.
53918         * lib/unictype/blocks.c: New file.
53919         * lib/unictype/categ_C.c: New file.
53920         * lib/unictype/categ_Cc.c: New file.
53921         * lib/unictype/categ_Cf.c: New file.
53922         * lib/unictype/categ_Cn.c: New file.
53923         * lib/unictype/categ_Co.c: New file.
53924         * lib/unictype/categ_Cs.c: New file.
53925         * lib/unictype/categ_L.c: New file.
53926         * lib/unictype/categ_Ll.c: New file.
53927         * lib/unictype/categ_Lm.c: New file.
53928         * lib/unictype/categ_Lo.c: New file.
53929         * lib/unictype/categ_Lt.c: New file.
53930         * lib/unictype/categ_Lu.c: New file.
53931         * lib/unictype/categ_M.c: New file.
53932         * lib/unictype/categ_Mc.c: New file.
53933         * lib/unictype/categ_Me.c: New file.
53934         * lib/unictype/categ_Mn.c: New file.
53935         * lib/unictype/categ_N.c: New file.
53936         * lib/unictype/categ_Nd.c: New file.
53937         * lib/unictype/categ_Nl.c: New file.
53938         * lib/unictype/categ_No.c: New file.
53939         * lib/unictype/categ_P.c: New file.
53940         * lib/unictype/categ_Pc.c: New file.
53941         * lib/unictype/categ_Pd.c: New file.
53942         * lib/unictype/categ_Pe.c: New file.
53943         * lib/unictype/categ_Pf.c: New file.
53944         * lib/unictype/categ_Pi.c: New file.
53945         * lib/unictype/categ_Po.c: New file.
53946         * lib/unictype/categ_Ps.c: New file.
53947         * lib/unictype/categ_S.c: New file.
53948         * lib/unictype/categ_Sc.c: New file.
53949         * lib/unictype/categ_Sk.c: New file.
53950         * lib/unictype/categ_Sm.c: New file.
53951         * lib/unictype/categ_So.c: New file.
53952         * lib/unictype/categ_Z.c: New file.
53953         * lib/unictype/categ_Zl.c: New file.
53954         * lib/unictype/categ_Zp.c: New file.
53955         * lib/unictype/categ_Zs.c: New file.
53956         * lib/unictype/categ_and.c: New file.
53957         * lib/unictype/categ_and_not.c: New file.
53958         * lib/unictype/categ_byname.c: New file.
53959         * lib/unictype/categ_name.c: New file.
53960         * lib/unictype/categ_none.c: New file.
53961         * lib/unictype/categ_of.c: New file.
53962         * lib/unictype/categ_or.c: New file.
53963         * lib/unictype/categ_test.c: New file.
53964         * lib/unictype/combining.c: New file.
53965         * lib/unictype/ctype_alnum.c: New file.
53966         * lib/unictype/ctype_alpha.c: New file.
53967         * lib/unictype/ctype_blank.c: New file.
53968         * lib/unictype/ctype_cntrl.c: New file.
53969         * lib/unictype/ctype_digit.c: New file.
53970         * lib/unictype/ctype_graph.c: New file.
53971         * lib/unictype/ctype_lower.c: New file.
53972         * lib/unictype/ctype_print.c: New file.
53973         * lib/unictype/ctype_punct.c: New file.
53974         * lib/unictype/ctype_space.c: New file.
53975         * lib/unictype/ctype_upper.c: New file.
53976         * lib/unictype/ctype_xdigit.c: New file.
53977         * lib/unictype/decdigit.c: New file.
53978         * lib/unictype/digit.c: New file.
53979         * lib/unictype/identsyntaxmap.h: New file.
53980         * lib/unictype/mirror.c: New file.
53981         * lib/unictype/numeric.c: New file.
53982         * lib/unictype/pr_alphabetic.c: New file.
53983         * lib/unictype/pr_ascii_hex_digit.c: New file.
53984         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53985         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53986         * lib/unictype/pr_bidi_block_separator.c: New file.
53987         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53988         * lib/unictype/pr_bidi_common_separator.c: New file.
53989         * lib/unictype/pr_bidi_control.c: New file.
53990         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53991         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53992         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53993         * lib/unictype/pr_bidi_european_digit.c: New file.
53994         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53995         * lib/unictype/pr_bidi_left_to_right.c: New file.
53996         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53997         * lib/unictype/pr_bidi_other_neutral.c: New file.
53998         * lib/unictype/pr_bidi_pdf.c: New file.
53999         * lib/unictype/pr_bidi_segment_separator.c: New file.
54000         * lib/unictype/pr_bidi_whitespace.c: New file.
54001         * lib/unictype/pr_byname.c: New file.
54002         * lib/unictype/pr_byname.gperf: New file.
54003         * lib/unictype/pr_combining.c: New file.
54004         * lib/unictype/pr_composite.c: New file.
54005         * lib/unictype/pr_currency_symbol.c: New file.
54006         * lib/unictype/pr_dash.c: New file.
54007         * lib/unictype/pr_decimal_digit.c: New file.
54008         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54009         * lib/unictype/pr_deprecated.c: New file.
54010         * lib/unictype/pr_diacritic.c: New file.
54011         * lib/unictype/pr_extender.c: New file.
54012         * lib/unictype/pr_format_control.c: New file.
54013         * lib/unictype/pr_grapheme_base.c: New file.
54014         * lib/unictype/pr_grapheme_extend.c: New file.
54015         * lib/unictype/pr_grapheme_link.c: New file.
54016         * lib/unictype/pr_hex_digit.c: New file.
54017         * lib/unictype/pr_hyphen.c: New file.
54018         * lib/unictype/pr_id_continue.c: New file.
54019         * lib/unictype/pr_id_start.c: New file.
54020         * lib/unictype/pr_ideographic.c: New file.
54021         * lib/unictype/pr_ids_binary_operator.c: New file.
54022         * lib/unictype/pr_ids_trinary_operator.c: New file.
54023         * lib/unictype/pr_ignorable_control.c: New file.
54024         * lib/unictype/pr_iso_control.c: New file.
54025         * lib/unictype/pr_join_control.c: New file.
54026         * lib/unictype/pr_left_of_pair.c: New file.
54027         * lib/unictype/pr_line_separator.c: New file.
54028         * lib/unictype/pr_logical_order_exception.c: New file.
54029         * lib/unictype/pr_lowercase.c: New file.
54030         * lib/unictype/pr_math.c: New file.
54031         * lib/unictype/pr_non_break.c: New file.
54032         * lib/unictype/pr_not_a_character.c: New file.
54033         * lib/unictype/pr_numeric.c: New file.
54034         * lib/unictype/pr_other_alphabetic.c: New file.
54035         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54036         * lib/unictype/pr_other_grapheme_extend.c: New file.
54037         * lib/unictype/pr_other_id_continue.c: New file.
54038         * lib/unictype/pr_other_id_start.c: New file.
54039         * lib/unictype/pr_other_lowercase.c: New file.
54040         * lib/unictype/pr_other_math.c: New file.
54041         * lib/unictype/pr_other_uppercase.c: New file.
54042         * lib/unictype/pr_paired_punctuation.c: New file.
54043         * lib/unictype/pr_paragraph_separator.c: New file.
54044         * lib/unictype/pr_pattern_syntax.c: New file.
54045         * lib/unictype/pr_pattern_white_space.c: New file.
54046         * lib/unictype/pr_private_use.c: New file.
54047         * lib/unictype/pr_punctuation.c: New file.
54048         * lib/unictype/pr_quotation_mark.c: New file.
54049         * lib/unictype/pr_radical.c: New file.
54050         * lib/unictype/pr_sentence_terminal.c: New file.
54051         * lib/unictype/pr_soft_dotted.c: New file.
54052         * lib/unictype/pr_space.c: New file.
54053         * lib/unictype/pr_terminal_punctuation.c: New file.
54054         * lib/unictype/pr_test.c: New file.
54055         * lib/unictype/pr_titlecase.c: New file.
54056         * lib/unictype/pr_unassigned_code_value.c: New file.
54057         * lib/unictype/pr_unified_ideograph.c: New file.
54058         * lib/unictype/pr_uppercase.c: New file.
54059         * lib/unictype/pr_variation_selector.c: New file.
54060         * lib/unictype/pr_white_space.c: New file.
54061         * lib/unictype/pr_xid_continue.c: New file.
54062         * lib/unictype/pr_xid_start.c: New file.
54063         * lib/unictype/pr_zero_width.c: New file.
54064         * lib/unictype/scripts.c: New file.
54065         * lib/unictype/sy_c_ident.c: New file.
54066         * lib/unictype/sy_c_whitespace.c: New file.
54067         * lib/unictype/sy_java_ident.c: New file.
54068         * lib/unictype/sy_java_whitespace.c: New file.
54069
54070         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54071         Unicode 5.0.0.
54072         * lib/unictype/blocks.h: Likewise.
54073         * lib/unictype/categ_C.h: Likewise.
54074         * lib/unictype/categ_Cc.h: Likewise.
54075         * lib/unictype/categ_Cf.h: Likewise.
54076         * lib/unictype/categ_Cn.h: Likewise.
54077         * lib/unictype/categ_Co.h: Likewise.
54078         * lib/unictype/categ_Cs.h: Likewise.
54079         * lib/unictype/categ_L.h: Likewise.
54080         * lib/unictype/categ_Ll.h: Likewise.
54081         * lib/unictype/categ_Lm.h: Likewise.
54082         * lib/unictype/categ_Lo.h: Likewise.
54083         * lib/unictype/categ_Lt.h: Likewise.
54084         * lib/unictype/categ_Lu.h: Likewise.
54085         * lib/unictype/categ_M.h: Likewise.
54086         * lib/unictype/categ_Mc.h: Likewise.
54087         * lib/unictype/categ_Me.h: Likewise.
54088         * lib/unictype/categ_Mn.h: Likewise.
54089         * lib/unictype/categ_N.h: Likewise.
54090         * lib/unictype/categ_Nd.h: Likewise.
54091         * lib/unictype/categ_Nl.h: Likewise.
54092         * lib/unictype/categ_No.h: Likewise.
54093         * lib/unictype/categ_P.h: Likewise.
54094         * lib/unictype/categ_Pc.h: Likewise.
54095         * lib/unictype/categ_Pd.h: Likewise.
54096         * lib/unictype/categ_Pe.h: Likewise.
54097         * lib/unictype/categ_Pf.h: Likewise.
54098         * lib/unictype/categ_Pi.h: Likewise.
54099         * lib/unictype/categ_Po.h: Likewise.
54100         * lib/unictype/categ_Ps.h: Likewise.
54101         * lib/unictype/categ_S.h: Likewise.
54102         * lib/unictype/categ_Sc.h: Likewise.
54103         * lib/unictype/categ_Sk.h: Likewise.
54104         * lib/unictype/categ_Sm.h: Likewise.
54105         * lib/unictype/categ_So.h: Likewise.
54106         * lib/unictype/categ_Z.h: Likewise.
54107         * lib/unictype/categ_Zl.h: Likewise.
54108         * lib/unictype/categ_Zp.h: Likewise.
54109         * lib/unictype/categ_Zs.h: Likewise.
54110         * lib/unictype/categ_of.h: Likewise.
54111         * lib/unictype/combining.h: Likewise.
54112         * lib/unictype/ctype_alnum.h: Likewise.
54113         * lib/unictype/ctype_alpha.h: Likewise.
54114         * lib/unictype/ctype_blank.h: Likewise.
54115         * lib/unictype/ctype_cntrl.h: Likewise.
54116         * lib/unictype/ctype_digit.h: Likewise.
54117         * lib/unictype/ctype_graph.h: Likewise.
54118         * lib/unictype/ctype_lower.h: Likewise.
54119         * lib/unictype/ctype_print.h: Likewise.
54120         * lib/unictype/ctype_punct.h: Likewise.
54121         * lib/unictype/ctype_space.h: Likewise.
54122         * lib/unictype/ctype_upper.h: Likewise.
54123         * lib/unictype/ctype_xdigit.h: Likewise.
54124         * lib/unictype/decdigit.h: Likewise.
54125         * lib/unictype/digit.h: Likewise.
54126         * lib/unictype/mirror.h: Likewise.
54127         * lib/unictype/numeric.h: Likewise.
54128         * lib/unictype/pr_alphabetic.h: Likewise.
54129         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54130         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54131         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54132         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54133         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54134         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54135         * lib/unictype/pr_bidi_control.h: Likewise.
54136         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54137         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54138         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54139         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54140         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54141         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54142         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54143         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54144         * lib/unictype/pr_bidi_pdf.h: Likewise.
54145         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54146         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54147         * lib/unictype/pr_combining.h: Likewise.
54148         * lib/unictype/pr_composite.h: Likewise.
54149         * lib/unictype/pr_currency_symbol.h: Likewise.
54150         * lib/unictype/pr_dash.h: Likewise.
54151         * lib/unictype/pr_decimal_digit.h: Likewise.
54152         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54153         * lib/unictype/pr_deprecated.h: Likewise.
54154         * lib/unictype/pr_diacritic.h: Likewise.
54155         * lib/unictype/pr_extender.h: Likewise.
54156         * lib/unictype/pr_format_control.h: Likewise.
54157         * lib/unictype/pr_grapheme_base.h: Likewise.
54158         * lib/unictype/pr_grapheme_extend.h: Likewise.
54159         * lib/unictype/pr_grapheme_link.h: Likewise.
54160         * lib/unictype/pr_hex_digit.h: Likewise.
54161         * lib/unictype/pr_hyphen.h: Likewise.
54162         * lib/unictype/pr_id_continue.h: Likewise.
54163         * lib/unictype/pr_id_start.h: Likewise.
54164         * lib/unictype/pr_ideographic.h: Likewise.
54165         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54166         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54167         * lib/unictype/pr_ignorable_control.h: Likewise.
54168         * lib/unictype/pr_iso_control.h: Likewise.
54169         * lib/unictype/pr_join_control.h: Likewise.
54170         * lib/unictype/pr_left_of_pair.h: Likewise.
54171         * lib/unictype/pr_line_separator.h: Likewise.
54172         * lib/unictype/pr_logical_order_exception.h: Likewise.
54173         * lib/unictype/pr_lowercase.h: Likewise.
54174         * lib/unictype/pr_math.h: Likewise.
54175         * lib/unictype/pr_non_break.h: Likewise.
54176         * lib/unictype/pr_not_a_character.h: Likewise.
54177         * lib/unictype/pr_numeric.h: Likewise.
54178         * lib/unictype/pr_other_alphabetic.h: Likewise.
54179         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54180         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54181         * lib/unictype/pr_other_id_continue.h: Likewise.
54182         * lib/unictype/pr_other_id_start.h: Likewise.
54183         * lib/unictype/pr_other_lowercase.h: Likewise.
54184         * lib/unictype/pr_other_math.h: Likewise.
54185         * lib/unictype/pr_other_uppercase.h: Likewise.
54186         * lib/unictype/pr_paired_punctuation.h: Likewise.
54187         * lib/unictype/pr_paragraph_separator.h: Likewise.
54188         * lib/unictype/pr_pattern_syntax.h: Likewise.
54189         * lib/unictype/pr_pattern_white_space.h: Likewise.
54190         * lib/unictype/pr_private_use.h: Likewise.
54191         * lib/unictype/pr_punctuation.h: Likewise.
54192         * lib/unictype/pr_quotation_mark.h: Likewise.
54193         * lib/unictype/pr_radical.h: Likewise.
54194         * lib/unictype/pr_sentence_terminal.h: Likewise.
54195         * lib/unictype/pr_soft_dotted.h: Likewise.
54196         * lib/unictype/pr_space.h: Likewise.
54197         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54198         * lib/unictype/pr_titlecase.h: Likewise.
54199         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54200         * lib/unictype/pr_unified_ideograph.h: Likewise.
54201         * lib/unictype/pr_uppercase.h: Likewise.
54202         * lib/unictype/pr_variation_selector.h: Likewise.
54203         * lib/unictype/pr_white_space.h: Likewise.
54204         * lib/unictype/pr_xid_continue.h: Likewise.
54205         * lib/unictype/pr_xid_start.h: Likewise.
54206         * lib/unictype/pr_zero_width.h: Likewise.
54207         * lib/unictype/scripts.h: Likewise.
54208         * lib/unictype/scripts_byname.gperf: Likewise.
54209         * lib/unictype/sy_c_ident.h: Likewise.
54210         * lib/unictype/sy_c_whitespace.h: Likewise.
54211         * lib/unictype/sy_java_ident.h: Likewise.
54212         * lib/unictype/sy_java_whitespace.h: Likewise.
54213
54214         * lib/unictype/Makefile: New file.
54215         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54216         glibc.
54217         * lib/unictype/3level.h: New file, copied from glibc.
54218         * lib/unictype/3levelbit.h: New file.
54219
54220 2007-11-11  Bruno Haible  <bruno@clisp.org>
54221
54222         * modules/gperf: New file.
54223         * modules/iconv_open (Depends-on): Add it.
54224         (Makefile.am): Remove the GPERF definition.
54225
54226 2007-11-11  Bruno Haible  <bruno@clisp.org>
54227
54228         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54229         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54230
54231 2007-11-11  Bruno Haible  <bruno@clisp.org>
54232
54233         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54234         (usage): Remove function.
54235
54236 2007-11-11  Bruno Haible  <bruno@clisp.org>
54237
54238         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54239         gl_FUNC_CEILF_LIBS.
54240         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54241         gl_FUNC_CEIL_LIBS.
54242         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54243         gl_FUNC_CEILL_LIBS.
54244         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54245         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54246         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54247
54248 2007-11-11  Bruno Haible  <bruno@clisp.org>
54249
54250         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54251         roundf were declared but do not exist on functions.
54252         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54253         roundl were declared but do not exist on functions.
54254         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54255         HAVE_FLOORL_AND_CEILL, respectively.
54256         Needed for Sun C on Solaris 10.
54257
54258 2007-11-11  Bruno Haible  <bruno@clisp.org>
54259
54260         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54261         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54262         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54263         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54264         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54265         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54266         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54267         HAVE_DECL_ROUNDF.
54268         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54269         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54271         of HAVE_DECL_ROUND*.
54272         * modules/math (Makefile.am): Update.
54273
54274 2007-11-10  Bruno Haible  <bruno@clisp.org>
54275
54276         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54277         ptrdiff_t as m4/intl.m4.
54278
54279 2007-11-10  Jim Meyering  <meyering@redhat.com>
54280
54281         Avoid link failure for the argmatch test.
54282         * tests/test-argmatch.c (usage): Define function to avoid a link
54283         failure: argmatch_die requires a usage function.
54284
54285 2007-11-09  Bruno Haible  <bruno@clisp.org>
54286
54287         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54288         * doc/functions/vsnprintf.texi: Likewise.
54289         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54290         with a size argument < 2.
54291
54292 2007-11-09  Bruno Haible  <bruno@clisp.org>
54293
54294         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54295         buffer. Fixes an inefficiency introduced on 2007-11-03.
54296
54297 2007-11-09  Bruno Haible  <bruno@clisp.org>
54298
54299         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54300         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54301
54302 2007-11-08  Jim Meyering  <meyering@redhat.com>
54303
54304         Change cache variable name prefix "jm_" to "gl_" everywhere.
54305         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54306         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54307         * m4/uptime.m4: s/gl_/jm_/
54308
54309 2007-11-07  Bruno Haible  <bruno@clisp.org>
54310
54311         Update to GNU gettext 0.17.
54312         * m4/intl.m4: Update to GNU gettext 0.17.
54313         * m4/po.m4: Likewise.
54314         * modules/gettext (Files): Remove m4/ulonglong.m4.
54315         (configure.ac): Require gettext infrastructure from version 0.17.
54316
54317 2007-11-06  Bruno Haible  <bruno@clisp.org>
54318
54319         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54320         symbolic values are not defined in a public header.
54321         * lib/freadable.c (freadable) [QNX]: Likewise.
54322         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54323         * lib/freading.c (freading) [QNX]: Likewise.
54324         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54325         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54326         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54327         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54328         Reported by Alain Magloire.
54329
54330         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54331
54332 2007-11-05  Bruno Haible  <bruno@clisp.org>
54333
54334         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54335         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54336         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54337         Reported by Eric Blake.
54338
54339 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54340             Bruno Haible  <bruno@clisp.org>
54341
54342         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54343         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54344         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54345         (malloc): Undefine also before including <stdlib.h>.
54346         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54347         Needed on OSF/1 4.0.
54348
54349 2007-11-05  Jim Meyering  <meyering@redhat.com>
54350
54351         git-version-gen: sync from coreutils.
54352         * build-aux/git-version-gen: Add comments.
54353         Change the first '-' to '.' in the snapshot version string,
54354         e.g., 6.9-377-08144 -> 6.9.377-08144
54355         Remove first parameter.
54356         Don't declare a version "-dirty" merely because a time
54357         stamp has changed.
54358
54359 2007-11-04  Bruno Haible  <bruno@clisp.org>
54360
54361         * lib/lock.h: Protect all macro definitions containing an 'if'
54362         statement through a "do { ... } while (0)".
54363         * lib/tls.h: Likewise.
54364
54365 2007-11-04  Bruno Haible  <bruno@clisp.org>
54366
54367         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54368
54369 2007-11-04  Bruno Haible  <bruno@clisp.org>
54370
54371         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54372         * modules/fprintf-posix (Depends-on): Add nocrash.
54373         * modules/snprintf-posix (Depends-on): Likewise.
54374         * modules/sprintf-posix (Depends-on): Likewise.
54375         * modules/vasnprintf-posix (Depends-on): Likewise.
54376         * modules/vasprintf-posix (Depends-on): Likewise.
54377         * modules/vfprintf-posix (Depends-on): Likewise.
54378         * modules/vsnprintf-posix (Depends-on): Likewise.
54379         * modules/vsprintf-posix (Depends-on): Likewise.
54380         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54381         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54382         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54383         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54384         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54385         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54386         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54387
54388 2007-11-04  Bruno Haible  <bruno@clisp.org>
54389
54390         * modules/nocrash: New file.
54391         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54392         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54393
54394 2007-11-04  Bruno Haible  <bruno@clisp.org>
54395
54396         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54397         precision handling.
54398         * tests/test-vasprintf-posix.c (test_function): Likewise.
54399         * tests/test-snprintf-posix.h (test_function): Likewise.
54400         * tests/test-sprintf-posix.h (test_function): Likewise.
54401
54402         Fix *printf behaviour for large precisions on mingw and BeOS.
54403         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54404         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54405         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54406         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54407         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54408         gl_PRINTF_PRECISION and test its result. Invoke
54409         gl_PREREQ_VASNPRINTF_PRECISION.
54410         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54411         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54412         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54413         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54414         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54415         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54416         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54417         * doc/functions/fprintf.texi: Update.
54418         * doc/functions/printf.texi: Update.
54419         * doc/functions/snprintf.texi: Update.
54420         * doc/functions/sprintf.texi: Update.
54421         * doc/functions/vfprintf.texi: Update.
54422         * doc/functions/vprintf.texi: Update.
54423         * doc/functions/vsnprintf.texi: Update.
54424         * doc/functions/vsprintf.texi: Update.
54425
54426 2007-11-04  Bruno Haible  <bruno@clisp.org>
54427
54428         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54429
54430 2007-11-04  Bruno Haible  <bruno@clisp.org>
54431
54432         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54433         Reported by Sylvain Beucler <beuc@gnu.org>.
54434
54435 2007-11-03  Bruno Haible  <bruno@clisp.org>
54436
54437         * tests/test-fprintf-posix2.sh: New file.
54438         * tests/test-fprintf-posix2.c: New file.
54439         * modules/fprintf-posix-tests (Files): Add them.
54440         (TESTS): Add test-fprintf-posix2.sh.
54441         (configure.ac): Check for getrlimit and setrlimit.
54442         (check_PROGRAMS): Add test-fprintf-posix2.
54443
54444         * tests/test-printf-posix2.sh: New file.
54445         * tests/test-printf-posix2.c: New file.
54446         * modules/printf-posix-tests (Files): Add them.
54447         (TESTS): Add test-printf-posix2.sh.
54448         (configure.ac): Check for getrlimit and setrlimit.
54449         (check_PROGRAMS): Add test-printf-posix2.
54450
54451         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54452         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54453         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54454         (decode_double): New function, copied from decode_long_double.
54455         (scale10_round_decimal_decoded): New function, extracted from
54456         scale10_round_decimal_long_double.
54457         (scale10_round_decimal_long_double): Use it.
54458         (scale10_round_decimal_double): New function.
54459         (floorlog10): New function.
54460         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54462         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54463         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54464         gl_PRINTF_ENOMEM and test its result. Invoke
54465         gl_PREREQ_VASNPRINTF_ENOMEM.
54466         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54467         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54468         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54469         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54470         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54471         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54472         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54473         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54474         * modules/snprintf-posix (Depends-on): Likewise.
54475         * modules/sprintf-posix (Depends-on): Likewise.
54476         * modules/vasnprintf-posix (Depends-on): Likewise.
54477         * modules/vasprintf-posix (Depends-on): Likewise.
54478         * modules/vfprintf-posix (Depends-on): Likewise.
54479         * modules/vsnprintf-posix (Depends-on): Likewise.
54480         * modules/vsprintf-posix (Depends-on): Likewise.
54481         * doc/functions/fprintf.texi: Update.
54482         * doc/functions/printf.texi: Update.
54483         * doc/functions/snprintf.texi: Update.
54484         * doc/functions/sprintf.texi: Update.
54485         * doc/functions/vfprintf.texi: Update.
54486         * doc/functions/vprintf.texi: Update.
54487         * doc/functions/vsnprintf.texi: Update.
54488         * doc/functions/vsprintf.texi: Update.
54489
54490 2007-11-03  Bruno Haible  <bruno@clisp.org>
54491
54492         * modules/frexp-nolibm-tests: New file.
54493
54494         * modules/frexp-nolibm: New file.
54495         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54496
54497 2007-11-03  Bruno Haible  <bruno@clisp.org>
54498
54499         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54500         value is C99 compliant.
54501         Needed for OSF/1 5.1.
54502
54503 2007-11-03  Bruno Haible  <bruno@clisp.org>
54504
54505         Fix out-of-memory handling of vasnprintf.
54506         * lib/printf-parse.c: Include <errno.h>.
54507         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54508         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54509         is already set.
54510
54511 2007-11-02  Eric Blake  <ebb9@byu.net>
54512
54513         Fix tests on cygwin.
54514         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54515
54516 2007-11-01  Bruno Haible  <bruno@clisp.org>
54517
54518         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54519         warning.
54520         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54521         needed for POSIX compatibility.
54522
54523 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54524
54525         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54526         for compatibility with GNU.
54527
54528 2007-11-01  Bruno Haible  <bruno@clisp.org>
54529
54530         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54531         (putenv): Renamed from rpl_putenv. Change argument type from
54532         'const char *' to 'char *'.
54533         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54534         of defining putenv in config.h, just set REPLACE_PUTENV.
54535         * modules/putenv (Depends-on): Add stdlib.
54536         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54537         (Include): Use <stdlib.h>.
54538         * lib/stdlib.in.h (putenv): New declaration.
54539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54540         REPLACE_PUTENV.
54541         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54542         REPLACE_PUTENV.
54543         Needed for MacOS X 10.5.0.
54544         Reported by Peter O'Gorman <peter@pogma.com>.
54545
54546 2007-11-01  Jim Meyering  <meyering@redhat.com>
54547
54548         Treat an empty date string exactly like "0".
54549         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54550         if the remaining date string (to be parsed) is empty, use "0".
54551         Reported by Mischa Molhoek and discussed in this thread:
54552         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54553
54554 2007-10-31  Bruno Haible  <bruno@clisp.org>
54555
54556         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54557         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54558         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54559         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54560         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54561         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54562
54563 2007-10-31  Bruno Haible  <bruno@clisp.org>
54564
54565         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54566         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54567         (AC_TYPE_LONG_LONG_INT): Use it.
54568         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54569         it as well.
54570         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54571         to m4/longlong.m4.
54572         * modules/stdint (Files): Remove m4/ulonglong.m4.
54573         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54574         m4/ulonglong.m4.
54575         * modules/strtoumax (Files): Likewise.
54576
54577 2007-10-30  Bruno Haible  <bruno@clisp.org>
54578
54579         * modules/xvasprintf-posix: New file.
54580         Suggested by Eric Blake.
54581
54582 2007-10-30  Bruno Haible  <bruno@clisp.org>
54583
54584         * modules/xprintf-posix-tests: New file.
54585         * tests/test-xprintf-posix.sh: New file.
54586         * tests/test-xprintf-posix.c: New file.
54587         * tests/test-xfprintf-posix.c: New file.
54588
54589         * modules/xprintf-posix: New file.
54590
54591 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54592
54593         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54594         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54595         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54596
54597 2007-10-29  Bruno Haible  <bruno@clisp.org>
54598
54599         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54600         contain the special marker '_cv_'.
54601         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54602         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54603         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54604         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54605         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54606         Reported by Ralf Wildenhues.
54607
54608 2007-10-29  Bruno Haible  <bruno@clisp.org>
54609
54610         * gnulib-tool (func_import): When --lgpl is not specified, set
54611         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54612         GPLv3.
54613         Reported by Simon Josefsson.
54614
54615 2007-10-28  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54618         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54619         HAVE_DECL_ISFINITE.
54620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54621         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54622         HAVE_DECL_ISFINITE.
54623
54624 2007-10-28  Bruno Haible  <bruno@clisp.org>
54625
54626         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54627         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54628
54629 2007-10-28  Bruno Haible  <bruno@clisp.org>
54630
54631         Fix link errors with Sun C 5.0 on Solaris 10.
54632         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54633         function is declared but not present in the compiler's libm.
54634         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54635         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54636         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54637         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54638         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54639         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54640         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54642         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54643         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54644         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54645         HAVE_DECL_FLOORL.
54646
54647 2007-10-28  Bruno Haible  <bruno@clisp.org>
54648
54649         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54650         gl_FUNC_FLOORL. Cache the result.
54651         (gl_FUNC_FLOORL): Use it.
54652         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54653         gl_FUNC_CEILL. Cache the result.
54654         (gl_FUNC_CEILL): Use it.
54655
54656         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54657         gl_FUNC_FLOOR. Cache the result.
54658         (gl_FUNC_FLOOR): Use it.
54659         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54660         gl_FUNC_CEIL. Cache the result.
54661         (gl_FUNC_CEIL): Use it.
54662
54663         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54664         gl_FUNC_FLOORF. Cache the result.
54665         (gl_FUNC_FLOORF): Use it.
54666         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54667         gl_FUNC_CEILF. Cache the result.
54668         (gl_FUNC_CEILF): Use it.
54669
54670 2007-10-28  Bruno Haible  <bruno@clisp.org>
54671
54672         * gnulib-tool: Allow specifying the LGPL version number through
54673         --lgpl=2 or --lgpl=3.
54674         (func_usage): Document --lgpl with argument.
54675         Handle --lgpl=... arguments.
54676         (func_import): Recognize also gl_LGPL calls with an argument. When
54677         --lgpl=2 is used and the module's license is just LGPL, report an
54678         error. Set sed_transform_lib_file according to the lgpl variable. In
54679         the generated files, use --lgpl or gl_LGPL invocations with argument,
54680         if necessary.
54681         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54682         an LGPv2+ license.
54683         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54684         gl_LGPL macro.
54685
54686 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54687             Bruno Haible  <bruno@clisp.org>
54688
54689         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54690         (u16_uctomb_aux): Likewise.
54691         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54692         !HAVE_INLINE.
54693         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54694
54695 2007-10-28  Bruno Haible  <bruno@clisp.org>
54696
54697         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54698         Invoke AM_GETTEXT_OPTION if it exists.
54699         * modules/vasprintf: Likewise.
54700         * modules/verror: Likewise.
54701         * modules/xprintf: Likewise.
54702         * modules/xvasprintf: Likewise.
54703
54704 2007-10-27  Ben Pfaff  <blp@gnu.org>
54705
54706         * lib/math.in.h: Define isfinite macro and prototypes for
54707         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54708         implementations.
54709         * m4/math_h.m4: New substitutions for isfinite module.
54710         * lib/isfinite.c: New file.
54711         * m4/isfinite.m4: New file.
54712         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54713         * modules/isfinite: New file.
54714         * modules/isfinite-tests: New file.
54715         * tests/tests-isfinite.c: New file.
54716         * doc/functions/isfinite.texi: Mention isfinite module.
54717         * MODULES.html.sh: Mention new module.
54718
54719 2007-10-27  Ben Pfaff  <blp@gnu.org>
54720
54721         Ralf Wildenhues reported that Tru64 4.0D declares the round
54722         functions but does not have definitions.
54723         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54724         cannot be found in any library, set the output variable to
54725         "missing" instead of "".
54726         * m4/round.m4: Also use our substitute if we cannot find round in
54727         any library, even if it is declared.
54728         * m4/roundf.m4: Likewise for roundf.
54729         * m4/roundl.m4: Likewise for roundl.
54730         * lib/math.in.h: Undefine roundf, round, roundl before defining
54731         their replacements, to allow for hypothetical systems where these
54732         may be defined as macros but not available in libraries.
54733
54734 2007-10-27  Bruno Haible  <bruno@clisp.org>
54735
54736         * doc/gnulib.texi: Invoke @firstparagraphindent.
54737         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54738         changes in gnulib.
54739         (Source changes): New section.
54740
54741 2007-10-26  Bruno Haible  <bruno@clisp.org>
54742
54743         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54744         borrowed from autoconf.
54745
54746 2007-10-26  Bruno Haible  <bruno@clisp.org>
54747
54748         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54749         strerror returned the empty string. Needed on HP-UX 11.00.
54750
54751 2007-10-24  Micah Cowan  <micah@cowan.name>
54752
54753         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54754         * build-aux/bootstrap: Remove support for now-unnecessary option,
54755         --cvs-user, and envvars CVS_USER, CVS_RSH.
54756
54757 2007-10-24  Jim Meyering  <meyering@redhat.com>
54758
54759         Avoid diagnostics from sha1sum when there is no cached checksum.
54760         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54761         if the po.s1 file hasn't been created yet.
54762
54763         * build-aux/bootstrap: Sync from coreutils:
54764         2007-10-24  Jim Meyering  <meyering@redhat.com>
54765         Get gnulib from the git repository, not from an obsolete cvs one.
54766         * build-aux/bootstrap: Suggestion from Micah Cowan.
54767         2007-10-04  Jim Meyering  <jim@meyering.net>
54768         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54769         (update_po_files): Work also when there are no .po files in po/.
54770
54771 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54772
54773         * README: Append ".git" to git and cg examples.
54774         Problem reported by Benoit Sigoure.
54775
54776 2007-10-23  Micah Cowan  <micah@cowan.name>
54777
54778         * users.txt: Add wget.
54779
54780 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54781
54782         Fix linking of some unistdio tests on FreeBSD.
54783         * modules/unistdio/u16-vsnprintf-tests
54784         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54785         * modules/unistdio/u16-vsprintf-tests
54786         (test_u16_vsnprintf1_LDADD): Likewise.
54787         * modules/unistdio/u32-vsnprintf-tests
54788         (test_u32_vsnprintf1_LDADD): Likewise.
54789         * modules/unistdio/u32-vsprintf-tests
54790         (test_u32_vsprintf1_LDADD): Likewise.
54791         * modules/unistdio/u8-vsnprintf-tests
54792         (test_u8_vsnprintf1_LDADD): Likewise.
54793         * modules/unistdio/u8-vsprintf-tests
54794         (test_u8_vsprintf1_LDADD): Likewise.
54795         * modules/unistdio/ulc-vsnprintf-tests
54796         (test_ulc_vsnprintf1_LDADD): Likewise.
54797         * modules/unistdio/ulc-vsprintf-tests
54798         (test_ulc_vsprintf1_LDADD): Likewise.
54799
54800         Fix linking of some uniconv tests on FreeBSD.
54801         * modules/uniconv/u16-conv-from-enc-tests
54802         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54803         * modules/uniconv/u16-conv-to-enc-tests
54804         (test_u16_conv_to_enc_LDADD): Likewise.
54805         * modules/uniconv/u16-strconv-from-enc-tests
54806         (test_u16_strconv_from_enc_LDADD): Likewise.
54807         * modules/uniconv/u16-strconv-to-enc-tests
54808         (test_u16_strconv_to_enc_LDADD): Likewise.
54809         * modules/uniconv/u32-conv-from-enc-tests
54810         (test_u32_conv_from_enc_LDADD): Likewise.
54811         * modules/uniconv/u32-conv-to-enc-tests
54812         (test_u32_conv_to_enc_LDADD): Likewise.
54813         * modules/uniconv/u32-strconv-from-enc-tests
54814         (test_u32_strconv_from_enc_LDADD): Likewise.
54815         * modules/uniconv/u32-strconv-to-enc-tests
54816         (test_u32_strconv_to_enc_LDADD): Likewise.
54817         * modules/uniconv/u8-conv-from-enc-tests
54818         (test_u8_conv_from_enc_LDADD): Likewise.
54819         * modules/uniconv/u8-conv-to-enc-tests
54820         (test_u8_conv_to_enc_LDADD): Likewise.
54821         * modules/uniconv/u8-strconv-from-enc-tests
54822         (test_u8_strconv_from_enc_LDADD): Likewise.
54823         * modules/uniconv/u8-strconv-to-enc-tests
54824         (test_u8_strconv_to_enc_LDADD): Likewise.
54825
54826 2007-10-22  Bruno Haible  <bruno@clisp.org>
54827
54828         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54829         size.
54830
54831 2007-10-22  Eric Blake  <ebb9@byu.net>
54832
54833         Tweak x*printf documentation.
54834         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54835         variable name and comments.
54836         Suggested by Bruno Haible.
54837
54838 2007-10-22  Bruno Haible  <bruno@clisp.org>
54839
54840         * lib/acl.c (copy_acl): Fix file name in comment.
54841
54842 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54843
54844         Fix Tru64 problem with stdbool.h.
54845         * lib/stdbool.in.h (false, true):
54846         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54847         Don't declare as an enum in this situation; it runs afoul of Tru64.
54848         Problem reported by Steven M. Schweda in
54849         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54850
54851 2007-10-22  Eric Blake  <ebb9@byu.net>
54852
54853         Also wrap vf?printf.
54854         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54855         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54856         (xvprintf, xvfprintf): New functions.
54857
54858 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54859
54860         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54861         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54862
54863         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54864         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54865
54866 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54867
54868         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54869         by Bruno Haible.
54870
54871 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54872
54873         * lib/getloadavg.c
54874         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54875         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54876
54877         * tests/test-i-ring.c: Work for C89.
54878
54879 2007-10-22  Bruno Haible  <bruno@clisp.org>
54880
54881         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54882         -1u, in preprocessor expression, so that we don't test for the bug
54883         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54884         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54885
54886 2007-10-22  Eric Blake  <ebb9@byu.net>
54887
54888         * tests/test-yesno.sh: Silence stderr during test.
54889
54890 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54891
54892         * modules/crypto/gc-camellia: New file.
54893
54894         * m4/gc-camellia.m4: New file.
54895
54896         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54897
54898         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54899
54900 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54901
54902         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54903         --help to stdout.  Reported by sms@antinode.org (Steven
54904         M. Schweda).
54905
54906 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54907
54908         * users.txt: Fix link to libksba.
54909
54910 2007-10-21  Ben Pfaff  <blp@gnu.org>
54911
54912         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54913         round.c roundf implementation that depends on floorf and ceilf to
54914         be tested unconditionally.
54915
54916 2007-10-21  Ben Pfaff  <blp@gnu.org>
54917
54918         * m4/check-libm-func.m4: Removed.
54919         * m4/check-math-lib.m4: New file.
54920         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54921         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54922         definition and lack of AC_LIBOBJ([roundf]).
54923         * m4/roundl.m4: Ditto, and similarly for roundl.
54924         * modules/round: Reference new m4 file.
54925         * modules/roundf: Ditto.
54926         * modules/roundl: Ditto.
54927         * tests/test-round2.c (main): Use ROUND instead of round.
54928         Bug report from Bruno Haible.
54929
54930 2007-10-21  Bruno Haible  <bruno@clisp.org>
54931
54932         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54933         context.
54934
54935 2007-10-21  Bruno Haible  <bruno@clisp.org>
54936
54937         * tests/test-wcwidth.c (main): Allow negative result for some control
54938         characters.
54939
54940         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54941         Needed on OSF/1 5.1.
54942
54943 2007-10-21  Bruno Haible  <bruno@clisp.org>
54944
54945         * tests/test-floorf1.c: Include isnanf.h.
54946         (main): Use isnanf() instead of isnan().
54947         * tests/test-ceilf1.c: Include isnanf.h.
54948         (main): Use isnanf() instead of isnan().
54949         * tests/test-truncf1.c: Include isnanf.h.
54950         (main): Use isnanf() instead of isnan().
54951         * tests/test-roundf1.c: Include isnanf.h.
54952         (main): Use isnanf() instead of isnan().
54953
54954 2007-10-21  Eric Blake  <ebb9@byu.net>
54955
54956         * users.txt: Update URL for m4.
54957
54958 2007-10-21  Bruno Haible  <bruno@clisp.org>
54959
54960         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54961
54962 2007-10-21  Bruno Haible  <bruno@clisp.org>
54963
54964         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54965         Git's management files if the CVS files are not present.
54966
54967 2007-10-20  Bruno Haible  <bruno@clisp.org>
54968
54969         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54970         gcc-3.4.x.
54971
54972 2007-10-20  Ben Pfaff  <blp@gnu.org>
54973
54974         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54975         implementations.
54976         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54977         * lib/round.c: New file.
54978         * lib/roundf.c: New file.
54979         * lib/roundl.c: New file.
54980         * m4/round.m4: New file.
54981         * m4/roundf.m4: New file.
54982         * m4/roundl.m4: New file.
54983         * m4/check-libm-func-m4: New file.
54984         * modules/math: Replace round, roundf, roundl related @VARS@ in
54985         math.in.h.
54986         * modules/round: New file.
54987         * modules/round-tests: New file.
54988         * modules/roundf: New file.
54989         * modules/roundf-tests: New file.
54990         * modules/roundl: New file.
54991         * modules/roundl-tests: New file.
54992         * tests/test-round1.c: New file.
54993         * tests/test-round2.c: New file.
54994         * tests/test-roundf1.c: New file.
54995         * tests/test-roundf2.c: New file.
54996         * tests/test-roundl.c: New file.
54997         * doc/functions/round.texi: Mention round module.
54998         * doc/functions/roundf.texi: Mention roundf module.
54999         * doc/functions/roundl.texi: Mention roundl module.
55000         * MODULES.html.sh: Mention new modules.
55001         Thanks to Bruno Haible for suggestions.
55002
55003 2007-10-20  Jim Meyering  <meyering@redhat.com>
55004
55005         * lib/xprintf.c: Include <config.h> unconditionally.
55006
55007         Change xprintf's license to GPL.
55008         * modules/xprintf (License): s/LGPL/GPL/, since this module
55009         depends on modules (exit and exitfail) which are GPL.
55010         Suggestion from Bruno Haible.
55011
55012         xprintf fixes.
55013         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55014         Use a clearer diagnostic.
55015         Patch from Bruno Haible.
55016
55017 2007-10-20  Bruno Haible  <bruno@clisp.org>
55018
55019         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55020         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55021         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55022
55023 2007-10-20  Bruno Haible  <bruno@clisp.org>
55024
55025         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55026         precision in the comparison result > x - 1 or similar.
55027         * tests/test-ceilf2.c (correct_result_p): Likewise.
55028         * tests/test-truncf2.c (correct_result_p): Likewise.
55029         * tests/test-trunc2.c (correct_result_p): Likewise.
55030         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55031
55032 2007-10-20  Bruno Haible  <bruno@clisp.org>
55033
55034         * modules/ceil: New file.
55035         * m4/ceil.m4: New file.
55036         * doc/functions/ceil.texi: Mention the 'ceil' module.
55037
55038 2007-10-20  Bruno Haible  <bruno@clisp.org>
55039
55040         * modules/floor: New file.
55041         * m4/floor.m4: New file.
55042         * doc/functions/floor.texi: Mention the 'floor' module.
55043
55044 2007-10-20  Bruno Haible  <bruno@clisp.org>
55045
55046         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55047         of %a.
55048         * modules/floorf-tests (Depends-on): Likewise.
55049         * modules/truncf-tests (Depends-on): Likewise.
55050         * modules/trunc-tests (Depends-on): Likewise.
55051         Reported by Ben Pfaff.
55052
55053 2007-10-19  Jim Meyering  <meyering@redhat.com>
55054
55055         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55056         Don't bother testing specific errno values.  Just test ferror.
55057
55058         New module: xprintf
55059         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55060
55061 2007-10-19  Bruno Haible  <bruno@clisp.org>
55062
55063         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55064         syntax.
55065         * modules/javaexec (Makefile.am): Likewise.
55066         * modules/relocatable-prog (Makefile.am): Likewise.
55067         Suggested by Jim Meyering.
55068
55069 2007-10-18  Bruno Haible  <bruno@clisp.org>
55070
55071         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55072         Reported by Jim Meyering.
55073
55074 2007-10-18  Eric Blake  <ebb9@byu.net>
55075
55076         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55077
55078 2007-10-18  Bruno Haible  <bruno@clisp.org>
55079
55080         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55081         the format string into writable memory. Needed in Fortify conditions.
55082
55083 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55084             Bruno Haible  <bruno@clisp.org>
55085
55086         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55087         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55088         * modules/trim (Depends-on): Add mbchar.
55089         (configure.ac): Add gl_FUNC_MBRTOWC.
55090         (Makefile.am): Augment lib_SOURCES.
55091
55092 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55093
55094         Modify glob.c to use fstatat and dirfd, to simplify it.
55095         Suggested by Eric Blake.
55096         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55097         Don't include <stdbool.h>; not used.
55098         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55099         (link_exists_p): Simplify implementation, since we can now assume
55100         dirfd and fstatat.
55101         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55102
55103 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55104
55105         * gnulib-tool (func_get_dependencies): Fix sed script to
55106         match only tests.
55107
55108 2007-10-17  Bruno Haible  <bruno@clisp.org>
55109
55110         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55111         allow locale names without encoding suffix.
55112         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55113         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55114
55115 2007-10-16  Bruno Haible  <bruno@clisp.org>
55116
55117         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55118         * lib/getgroups.c (getgroups): Likewise.
55119         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55120
55121 2007-10-16  Bruno Haible  <bruno@clisp.org>
55122
55123         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55124         * modules/malloc-posix (License): Likewise.
55125         * modules/realloc-posix (License): Likewise.
55126         * modules/calloc-posix (License): Likewise.
55127         * modules/intprops (License): Change from GPL to LGPL, with
55128         Paul Eggert's approval.
55129
55130 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55131
55132         Merge glibc changes into lib/glob.c.
55133
55134         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55135         2007-10-15 04:59:03 UTC.  Here are the changes:
55136
55137         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55138
55139         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55140
55141         * lib/glob.c: Add some branch prediction throughout.
55142
55143         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55144
55145         [BZ #5103]
55146         * lib/glob.c (glob): Recognize patterns starting \/.
55147
55148         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55149
55150         [BZ #3996]
55151         * lib/glob.c (attribute_hidden): Define if not defined.
55152         (glob): Unescape dirname, filename or username when needed and not
55153         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55154         is NULL.  Handle unescaped [ in pattern without closing ].
55155         Don't pass GLOB_CHECK down to recursive glob for directories.
55156         (__glob_pattern_type): New function.
55157         (__glob_pattern_p): Implement using __glob_pattern_type.
55158         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55159         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55160         Remove unreachable code.
55161
55162         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55163
55164         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55165         explain why there are no leaks.
55166
55167         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55168
55169         [BZ #3253]
55170         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55171         time, rather allocate increasingly bigger arrays of pointers, if
55172         possible with alloca, if too large with malloc.
55173
55174 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55175
55176         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55177         Problem reported by H.Merijn Brand in
55178         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55179         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55180         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55181
55182 2007-10-15  Bruno Haible  <bruno@clisp.org>
55183
55184         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55185         with explicit rpl_ prefix.
55186         * lib/fopen.c (fopen): Likewise.
55187         * lib/freopen.c (freopen): Likewise.
55188         * lib/iconv.c (iconv): Likewise.
55189         * lib/iconv_close.c (iconv_close): Likewise.
55190
55191 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55192
55193         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55194
55195 2007-10-15  Bruno Haible  <bruno@clisp.org>
55196
55197         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55198         <stddef.h> instead of <stdlib.h> since we only need NULL.
55199         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55200
55201 2007-10-15  Bruno Haible  <bruno@clisp.org>
55202
55203         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55204         Replace paragraph talking about LIBOBJS.
55205         Reported by Colin Watson <cjwatson@debian.org>.
55206
55207 2007-10-15  Bruno Haible  <bruno@clisp.org>
55208
55209         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55210         <stdlib.h> before using NULL.
55211
55212 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55213
55214         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55215         Reported by Albert Chin <china@thewrittenword.com>.
55216
55217 2007-10-14  Bruno Haible  <bruno@clisp.org>
55218
55219         * modules/iconv_open-utf-tests: New file.
55220         * tests/test-iconv-utf.c: New file.
55221
55222         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55223         * modules/iconv_open-utf: New file.
55224         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55225         (iconv, iconv_close): New declarations.
55226         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55227         be defined.
55228         (iconv_open): Add special handling of conversion between UTF-8 and
55229         UTF-{16,32}{BE,LE}.
55230         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55231         * lib/iconv_close.c: New file.
55232         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55233         gl_FUNC_ICONV_OPEN.
55234         (gl_FUNC_ICONV_OPEN): Use it.
55235         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55236         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55237         and REPLACE_ICONV_UTF.
55238         * modules/iconv_open (Depends-on): Add c-strcase.
55239         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55240         ICONV_CONST.
55241         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55242
55243 2007-10-13  Albert Chin  <china@thewrittenword.com>
55244             Bruno Haible  <bruno@clisp.org>
55245
55246         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55247         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55248
55249 2007-10-13  Bruno Haible  <bruno@clisp.org>
55250
55251         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55252         defined, use the ISO C99 inline semantics.
55253         * lib/argp.h (ARGP_EI): Likewise.
55254
55255 2007-10-13  Bruno Haible  <bruno@clisp.org>
55256
55257         Handle 'inline' change in gcc 4.3.0.
55258         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55259         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55260         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55261         argp_fmtstream_point): Disable 'extern' declaration if the function
55262         definition is going to be provided inline.
55263         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55264         semantics, not the ISO C99 inline semantics.
55265         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55266         'extern' declaration if the function definition is going to be provided
55267         inline.
55268         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55269         the GNU C inline semantics, not the ISO C99 inline semantics. With
55270         GCC 4.2, avoid a warning.
55271
55272 2007-10-13  Bruno Haible  <bruno@clisp.org>
55273
55274         * lib/freading.h (freading): Enable the use of __freading for
55275         glibc >= 2.7.
55276         * lib/freading.c (freading): Likewise.
55277
55278 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55279
55280         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55281         "warning: C99 inline functions are not supported; using GNU89".
55282
55283 2007-10-12  Bruno Haible  <bruno@clisp.org>
55284
55285         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55286         of 2.
55287         * tests/test-ceilf2.c: New file.
55288         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55289
55290         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55291         * modules/ceilf-tests: Update.
55292
55293 2007-10-12  Bruno Haible  <bruno@clisp.org>
55294
55295         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55296         of 2.
55297         * tests/test-floorf2.c: New file.
55298         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55299
55300         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55301         * modules/floorf-tests: Update.
55302
55303 2007-10-12  Bruno Haible  <bruno@clisp.org>
55304
55305         * tests/test-trunc2.c: New file.
55306         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55307
55308         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55309         * modules/trunc-tests: Update.
55310
55311 2007-10-12  Bruno Haible  <bruno@clisp.org>
55312
55313         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55314         of 2.
55315         * tests/test-truncf2.c: New file.
55316         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55317
55318         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55319         * modules/truncf-tests: Update.
55320
55321 2007-10-11  Eric Blake  <ebb9@byu.net>
55322
55323         Don't claim strerror is broken on Interix.
55324         * doc/functions/strerror.texi (strerror): Known broken systems are
55325         now Solaris 8, and not Interix.
55326         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55327         Interix on cross-compile.
55328         Reported by Martin Koeppe in
55329         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55330
55331 2007-10-11  Bruno Haible  <bruno@clisp.org>
55332
55333         * modules/i-ring-tests: New file.
55334         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55335         instead of assert.
55336
55337 2007-10-11  Bruno Haible  <bruno@clisp.org>
55338
55339         * modules/filenamecat-tests: New file.
55340         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55341         * lib/filenamecat.c: Remove test code.
55342
55343 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55344
55345         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55346
55347         * lib/strerror.c: Include <string.h> always, to test interface,
55348         and to remove the need for the dummy.
55349         Include intprops.h to compute width instead of doing it ourselves
55350         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55351         (strerror): Define it to return NULL if there's no system strerror.
55352         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55353         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55354         ancient pre-strerror Unix systems well any more.  Saying "unknown
55355         system error" is enough.
55356         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55357         simpler strerror.c implementation.
55358         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55359         Simplify the tests to reflect the simpler strerror implementation.
55360         * modules/strerror (Depends-on): Add intprops.
55361
55362 2007-10-09  Eric Blake  <ebb9@byu.net>
55363
55364         Silence test-fpending.
55365         * modules/fpending-tests (Files): Add wrapper script.
55366         * tests/test-fpending.sh: New file.
55367
55368 2007-10-09  Bruno Haible  <bruno@clisp.org>
55369
55370         * MODULES.html.sh (func_module): Don't create a hyperlink for
55371         function names like 'printf_frexp'.
55372         (Misc): Add crc, memxor.
55373         (Characteristics of floating types): New section.
55374         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55375         isnanf-nolibm, signbit, trunc, truncf, truncl.
55376         (Enhancements for ISO C 99 functions): New subsection Input/output.
55377         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55378         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55379         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55380         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55381         (Enhancements for POSIX:2001 functions): Add chdir-long.
55382         (File system functions): Add areadlink, chdir-safer, read-file.
55383         Remove cycle-check.
55384         (File system as inode set): New section.
55385         (Date and time): Add gethrxtime.
55386         (Multithreading): Add openmp.
55387         (Internationalization functions): Add localename.
55388         (Unicode string functions): Add unistr/u*-mbsnlen.
55389         (Support for maintaining and releasing projects): Add git-version-gen.
55390         (Lone files): Remove directories.
55391
55392 2007-10-08  Ben Pfaff  <blp@gnu.org>
55393
55394         * lib/xmalloca.h: Fix typo in comment.
55395
55396 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55397
55398         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55399         when avoiding problems with integer overflow.  Use a portable test
55400         instead.
55401
55402 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55403
55404         * modules/dummy (License): Change to LGPLv2+.
55405         * modules/float (License): Likewise
55406         * modules/realloc (License): Likewise
55407         * modules/stdlib (License): Likewise
55408
55409 2007-10-07  Bruno Haible  <bruno@clisp.org>
55410
55411         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55412         * floor.c (TWO_MANT_DIG): Likewise.
55413         * ceil.c (TWO_MANT_DIG): Likewise.
55414         Reported by Ben Pfaff.
55415
55416 2007-10-07  Bruno Haible  <bruno@clisp.org>
55417
55418         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55419         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55420         * lib/frexp.c (FUNC): Likewise.
55421         * lib/printf-frexp.h (printf_frexp): Likewise.
55422         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55423         * lib/printf-frexp.c (FUNC): Likewise.
55424         Suggested by Jim Meyering.
55425
55426 2007-10-07  Jim Meyering  <meyering@redhat.com>
55427
55428         Make xnanosleep's integer overflow test more robust.
55429         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55430         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55431
55432 2007-10-07  Bruno Haible  <bruno@clisp.org>
55433
55434         * NEWS: Mention the license change.
55435
55436         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55437         abbreviations in the modules files.
55438
55439         Change copyright notice from GPLv2+ to GPLv3+.
55440         * README: Change copyright notice.
55441         * MODULES.html.sh: Likewise.
55442         * build-aux/bootstrap.conf: Likewise.
55443         * build-aux/config.libpath: Likewise.
55444         * build-aux/csharpcomp.sh.in: Likewise.
55445         * build-aux/csharpexec.sh.in: Likewise.
55446         * build-aux/install-reloc: Likewise.
55447         * build-aux/javacomp.sh.in: Likewise.
55448         * build-aux/javaexec.sh.in: Likewise.
55449         * build-aux/ldd.sh.in: Likewise.
55450         * build-aux/reloc-ldflags: Likewise.
55451         * build-aux/relocatable.sh.in: Likewise.
55452         * build-aux/x-to-1.in: Likewise.
55453         * check-module: Likewise.
55454         * config/srclistvars.sh: Likewise.
55455         * gnulib-tool: Likewise.
55456         * lib/acl-internal.h: Likewise.
55457         * lib/acl.c: Likewise.
55458         * lib/acl.h: Likewise.
55459         * lib/acl_entries.c: Likewise.
55460         * lib/areadlink-with-size.c: Likewise.
55461         * lib/areadlink.c: Likewise.
55462         * lib/areadlink.h: Likewise.
55463         * lib/argmatch.c: Likewise.
55464         * lib/argmatch.h: Likewise.
55465         * lib/argp-ba.c: Likewise.
55466         * lib/argp-eexst.c: Likewise.
55467         * lib/argp-fmtstream.c: Likewise.
55468         * lib/argp-fmtstream.h: Likewise.
55469         * lib/argp-fs-xinl.c: Likewise.
55470         * lib/argp-help.c: Likewise.
55471         * lib/argp-namefrob.h: Likewise.
55472         * lib/argp-parse.c: Likewise.
55473         * lib/argp-pin.c: Likewise.
55474         * lib/argp-pv.c: Likewise.
55475         * lib/argp-pvh.c: Likewise.
55476         * lib/argp-xinl.c: Likewise.
55477         * lib/argp.h: Likewise.
55478         * lib/at-func.c: Likewise.
55479         * lib/atanl.c: Likewise.
55480         * lib/backupfile.c: Likewise.
55481         * lib/backupfile.h: Likewise.
55482         * lib/basename.c: Likewise.
55483         * lib/binary-io.h: Likewise.
55484         * lib/byteswap.in.h: Likewise.
55485         * lib/c-stack.c: Likewise.
55486         * lib/c-stack.h: Likewise.
55487         * lib/c-strcasestr.c: Likewise.
55488         * lib/c-strcasestr.h: Likewise.
55489         * lib/c-strstr.c: Likewise.
55490         * lib/c-strstr.h: Likewise.
55491         * lib/c-strtod.c: Likewise.
55492         * lib/calloc.c: Likewise.
55493         * lib/canon-host.c: Likewise.
55494         * lib/canon-host.h: Likewise.
55495         * lib/canonicalize-lgpl.c: Likewise.
55496         * lib/canonicalize.c: Likewise.
55497         * lib/canonicalize.h: Likewise.
55498         * lib/ceil.c: Likewise.
55499         * lib/ceilf.c: Likewise.
55500         * lib/ceill.c: Likewise.
55501         * lib/chdir-long.c: Likewise.
55502         * lib/chdir-long.h: Likewise.
55503         * lib/chdir-safer.c: Likewise.
55504         * lib/chdir-safer.h: Likewise.
55505         * lib/chown.c: Likewise.
55506         * lib/classpath.c: Likewise.
55507         * lib/classpath.h: Likewise.
55508         * lib/clean-temp.c: Likewise.
55509         * lib/clean-temp.h: Likewise.
55510         * lib/cloexec.c: Likewise.
55511         * lib/close-stream.c: Likewise.
55512         * lib/closein.c: Likewise.
55513         * lib/closein.h: Likewise.
55514         * lib/closeout.c: Likewise.
55515         * lib/closeout.h: Likewise.
55516         * lib/concat-filename.c: Likewise.
55517         * lib/copy-file.c: Likewise.
55518         * lib/copy-file.h: Likewise.
55519         * lib/count-one-bits.h: Likewise.
55520         * lib/crc.c: Likewise.
55521         * lib/crc.h: Likewise.
55522         * lib/creat-safer.c: Likewise.
55523         * lib/csharpcomp.c: Likewise.
55524         * lib/csharpcomp.h: Likewise.
55525         * lib/csharpexec.c: Likewise.
55526         * lib/csharpexec.h: Likewise.
55527         * lib/cycle-check.c: Likewise.
55528         * lib/cycle-check.h: Likewise.
55529         * lib/diacrit.c: Likewise.
55530         * lib/diacrit.h: Likewise.
55531         * lib/diffseq.h: Likewise.
55532         * lib/dirchownmod.c: Likewise.
55533         * lib/dirent.in.h: Likewise.
55534         * lib/dirfd.c: Likewise.
55535         * lib/dirfd.h: Likewise.
55536         * lib/dirname.c: Likewise.
55537         * lib/dirname.h: Likewise.
55538         * lib/dummy.c: Likewise.
55539         * lib/dup-safer.c: Likewise.
55540         * lib/dup2.c: Likewise.
55541         * lib/eealloc.h: Likewise.
55542         * lib/error.c: Likewise.
55543         * lib/error.h: Likewise.
55544         * lib/euidaccess.c: Likewise.
55545         * lib/exclude.c: Likewise.
55546         * lib/exclude.h: Likewise.
55547         * lib/execute.c: Likewise.
55548         * lib/execute.h: Likewise.
55549         * lib/exitfail.c: Likewise.
55550         * lib/exitfail.h: Likewise.
55551         * lib/expl.c: Likewise.
55552         * lib/fatal-signal.c: Likewise.
55553         * lib/fatal-signal.h: Likewise.
55554         * lib/fbufmode.c: Likewise.
55555         * lib/fbufmode.h: Likewise.
55556         * lib/fchdir.c: Likewise.
55557         * lib/fchmodat.c: Likewise.
55558         * lib/fchownat.c: Likewise.
55559         * lib/fcntl--.h: Likewise.
55560         * lib/fcntl-safer.h: Likewise.
55561         * lib/fcntl.in.h: Likewise.
55562         * lib/fd-safer.c: Likewise.
55563         * lib/fflush.c: Likewise.
55564         * lib/file-has-acl.c: Likewise.
55565         * lib/file-set.c: Likewise.
55566         * lib/file-type.c: Likewise.
55567         * lib/file-type.h: Likewise.
55568         * lib/fileblocks.c: Likewise.
55569         * lib/filemode.c: Likewise.
55570         * lib/filemode.h: Likewise.
55571         * lib/filename.h: Likewise.
55572         * lib/filenamecat.c: Likewise.
55573         * lib/filenamecat.h: Likewise.
55574         * lib/findprog.c: Likewise.
55575         * lib/findprog.h: Likewise.
55576         * lib/float.in.h: Likewise.
55577         * lib/floor.c: Likewise.
55578         * lib/floorf.c: Likewise.
55579         * lib/floorl.c: Likewise.
55580         * lib/fopen-safer.c: Likewise.
55581         * lib/fopen.c: Likewise.
55582         * lib/fpending.c: Likewise.
55583         * lib/fpending.h: Likewise.
55584         * lib/fprintf.c: Likewise.
55585         * lib/fprintftime.h: Likewise.
55586         * lib/fpucw.h: Likewise.
55587         * lib/fpurge.c: Likewise.
55588         * lib/fpurge.h: Likewise.
55589         * lib/freadable.c: Likewise.
55590         * lib/freadable.h: Likewise.
55591         * lib/freadahead.c: Likewise.
55592         * lib/freadahead.h: Likewise.
55593         * lib/freading.c: Likewise.
55594         * lib/freading.h: Likewise.
55595         * lib/free.c: Likewise.
55596         * lib/freopen.c: Likewise.
55597         * lib/frexp.c: Likewise.
55598         * lib/frexpl.c: Likewise.
55599         * lib/fseek.c: Likewise.
55600         * lib/fseterr.c: Likewise.
55601         * lib/fseterr.h: Likewise.
55602         * lib/fstatat.c: Likewise.
55603         * lib/fstrcmp.c: Likewise.
55604         * lib/fstrcmp.h: Likewise.
55605         * lib/fsusage.c: Likewise.
55606         * lib/fsusage.h: Likewise.
55607         * lib/ftell.c: Likewise.
55608         * lib/ftello.c: Likewise.
55609         * lib/fts-cycle.c: Likewise.
55610         * lib/fts.c: Likewise.
55611         * lib/fts_.h: Likewise.
55612         * lib/full-read.c: Likewise.
55613         * lib/full-read.h: Likewise.
55614         * lib/full-write.c: Likewise.
55615         * lib/full-write.h: Likewise.
55616         * lib/fwritable.c: Likewise.
55617         * lib/fwritable.h: Likewise.
55618         * lib/fwriteerror.c: Likewise.
55619         * lib/fwriteerror.h: Likewise.
55620         * lib/fwriting.c: Likewise.
55621         * lib/fwriting.h: Likewise.
55622         * lib/gcd.c: Likewise.
55623         * lib/gcd.h: Likewise.
55624         * lib/getcwd.c: Likewise.
55625         * lib/getdate.h: Likewise.
55626         * lib/getdate.y: Likewise.
55627         * lib/getdomainname.c: Likewise.
55628         * lib/getdomainname.h: Likewise.
55629         * lib/getgroups.c: Likewise.
55630         * lib/gethostname.c: Likewise.
55631         * lib/gethrxtime.c: Likewise.
55632         * lib/gethrxtime.h: Likewise.
55633         * lib/getloadavg.c: Likewise.
55634         * lib/getndelim2.c: Likewise.
55635         * lib/getndelim2.h: Likewise.
55636         * lib/getnline.c: Likewise.
55637         * lib/getnline.h: Likewise.
55638         * lib/getopt.c: Likewise.
55639         * lib/getopt.in.h: Likewise.
55640         * lib/getopt1.c: Likewise.
55641         * lib/getopt_int.h: Likewise.
55642         * lib/getpagesize.h: Likewise.
55643         * lib/getsubopt.c: Likewise.
55644         * lib/gettime.c: Likewise.
55645         * lib/getugroups.c: Likewise.
55646         * lib/getugroups.h: Likewise.
55647         * lib/getusershell.c: Likewise.
55648         * lib/gl_anyavltree_list1.h: Likewise.
55649         * lib/gl_anyavltree_list2.h: Likewise.
55650         * lib/gl_anyhash_list1.h: Likewise.
55651         * lib/gl_anyhash_list2.h: Likewise.
55652         * lib/gl_anylinked_list1.h: Likewise.
55653         * lib/gl_anylinked_list2.h: Likewise.
55654         * lib/gl_anyrbtree_list1.h: Likewise.
55655         * lib/gl_anyrbtree_list2.h: Likewise.
55656         * lib/gl_anytree_list1.h: Likewise.
55657         * lib/gl_anytree_list2.h: Likewise.
55658         * lib/gl_anytree_oset.h: Likewise.
55659         * lib/gl_anytreehash_list1.h: Likewise.
55660         * lib/gl_anytreehash_list2.h: Likewise.
55661         * lib/gl_array_list.c: Likewise.
55662         * lib/gl_array_list.h: Likewise.
55663         * lib/gl_array_oset.c: Likewise.
55664         * lib/gl_array_oset.h: Likewise.
55665         * lib/gl_avltree_list.c: Likewise.
55666         * lib/gl_avltree_list.h: Likewise.
55667         * lib/gl_avltree_oset.c: Likewise.
55668         * lib/gl_avltree_oset.h: Likewise.
55669         * lib/gl_avltreehash_list.c: Likewise.
55670         * lib/gl_avltreehash_list.h: Likewise.
55671         * lib/gl_carray_list.c: Likewise.
55672         * lib/gl_carray_list.h: Likewise.
55673         * lib/gl_linked_list.c: Likewise.
55674         * lib/gl_linked_list.h: Likewise.
55675         * lib/gl_linkedhash_list.c: Likewise.
55676         * lib/gl_linkedhash_list.h: Likewise.
55677         * lib/gl_list.c: Likewise.
55678         * lib/gl_list.h: Likewise.
55679         * lib/gl_oset.c: Likewise.
55680         * lib/gl_oset.h: Likewise.
55681         * lib/gl_rbtree_list.c: Likewise.
55682         * lib/gl_rbtree_list.h: Likewise.
55683         * lib/gl_rbtree_oset.c: Likewise.
55684         * lib/gl_rbtree_oset.h: Likewise.
55685         * lib/gl_rbtreehash_list.c: Likewise.
55686         * lib/gl_rbtreehash_list.h: Likewise.
55687         * lib/gl_sublist.c: Likewise.
55688         * lib/gl_sublist.h: Likewise.
55689         * lib/group-member.c: Likewise.
55690         * lib/group-member.h: Likewise.
55691         * lib/hard-locale.c: Likewise.
55692         * lib/hard-locale.h: Likewise.
55693         * lib/hash-pjw.c: Likewise.
55694         * lib/hash-pjw.h: Likewise.
55695         * lib/hash-triple.c: Likewise.
55696         * lib/hash.c: Likewise.
55697         * lib/hash.h: Likewise.
55698         * lib/human.c: Likewise.
55699         * lib/human.h: Likewise.
55700         * lib/i-ring.c: Likewise.
55701         * lib/i-ring.h: Likewise.
55702         * lib/idcache.c: Likewise.
55703         * lib/imaxabs.c: Likewise.
55704         * lib/imaxdiv.c: Likewise.
55705         * lib/inet_pton.c: Likewise.
55706         * lib/inet_pton.h: Likewise.
55707         * lib/intprops.h: Likewise.
55708         * lib/inttostr.c: Likewise.
55709         * lib/inttostr.h: Likewise.
55710         * lib/inttypes.in.h: Likewise.
55711         * lib/isapipe.c: Likewise.
55712         * lib/isdir.c: Likewise.
55713         * lib/isnan.c: Likewise.
55714         * lib/isnan.h: Likewise.
55715         * lib/isnanf.c: Likewise.
55716         * lib/isnanf.h: Likewise.
55717         * lib/isnanl-nolibm.h: Likewise.
55718         * lib/isnanl.c: Likewise.
55719         * lib/isnanl.h: Likewise.
55720         * lib/javacomp.c: Likewise.
55721         * lib/javacomp.h: Likewise.
55722         * lib/javaexec.c: Likewise.
55723         * lib/javaexec.h: Likewise.
55724         * lib/javaversion.c: Likewise.
55725         * lib/javaversion.h: Likewise.
55726         * lib/javaversion.java: Likewise.
55727         * lib/lbrkprop.h: Likewise.
55728         * lib/lchmod.h: Likewise.
55729         * lib/lchown.c: Likewise.
55730         * lib/ldexpl.c: Likewise.
55731         * lib/linebreak.c: Likewise.
55732         * lib/linebreak.h: Likewise.
55733         * lib/linebuffer.c: Likewise.
55734         * lib/linebuffer.h: Likewise.
55735         * lib/locale.in.h: Likewise.
55736         * lib/logl.c: Likewise.
55737         * lib/long-options.c: Likewise.
55738         * lib/long-options.h: Likewise.
55739         * lib/lstat.c: Likewise.
55740         * lib/lstat.h: Likewise.
55741         * lib/math.in.h: Likewise.
55742         * lib/mbchar.c: Likewise.
55743         * lib/mbchar.h: Likewise.
55744         * lib/mbfile.h: Likewise.
55745         * lib/mbiter.h: Likewise.
55746         * lib/mbscasecmp.c: Likewise.
55747         * lib/mbscasestr.c: Likewise.
55748         * lib/mbschr.c: Likewise.
55749         * lib/mbscspn.c: Likewise.
55750         * lib/mbslen.c: Likewise.
55751         * lib/mbsncasecmp.c: Likewise.
55752         * lib/mbsnlen.c: Likewise.
55753         * lib/mbspbrk.c: Likewise.
55754         * lib/mbspcasecmp.c: Likewise.
55755         * lib/mbsrchr.c: Likewise.
55756         * lib/mbssep.c: Likewise.
55757         * lib/mbsspn.c: Likewise.
55758         * lib/mbsstr.c: Likewise.
55759         * lib/mbstok_r.c: Likewise.
55760         * lib/mbswidth.c: Likewise.
55761         * lib/mbswidth.h: Likewise.
55762         * lib/mbuiter.h: Likewise.
55763         * lib/memcasecmp.c: Likewise.
55764         * lib/memcasecmp.h: Likewise.
55765         * lib/memchr.c: Likewise.
55766         * lib/memcmp.c: Likewise.
55767         * lib/memcoll.c: Likewise.
55768         * lib/memcoll.h: Likewise.
55769         * lib/memcpy.c: Likewise.
55770         * lib/memrchr.c: Likewise.
55771         * lib/mkancesdirs.c: Likewise.
55772         * lib/mkdir-p.c: Likewise.
55773         * lib/mkdir-p.h: Likewise.
55774         * lib/mkdir.c: Likewise.
55775         * lib/mkdirat.c: Likewise.
55776         * lib/mkdtemp.c: Likewise.
55777         * lib/mkstemp-safer.c: Likewise.
55778         * lib/mkstemp.c: Likewise.
55779         * lib/modechange.c: Likewise.
55780         * lib/modechange.h: Likewise.
55781         * lib/mountlist.c: Likewise.
55782         * lib/mountlist.h: Likewise.
55783         * lib/mpsort.c: Likewise.
55784         * lib/nanosleep.c: Likewise.
55785         * lib/obstack.c: Likewise.
55786         * lib/obstack.h: Likewise.
55787         * lib/open-safer.c: Likewise.
55788         * lib/open.c: Likewise.
55789         * lib/openat-die.c: Likewise.
55790         * lib/openat-priv.h: Likewise.
55791         * lib/openat-proc.c: Likewise.
55792         * lib/openat.c: Likewise.
55793         * lib/openat.h: Likewise.
55794         * lib/pagealign_alloc.c: Likewise.
55795         * lib/pagealign_alloc.h: Likewise.
55796         * lib/physmem.c: Likewise.
55797         * lib/physmem.h: Likewise.
55798         * lib/pipe-safer.c: Likewise.
55799         * lib/pipe.c: Likewise.
55800         * lib/pipe.h: Likewise.
55801         * lib/posixtm.c: Likewise.
55802         * lib/posixtm.h: Likewise.
55803         * lib/posixver.c: Likewise.
55804         * lib/printf-frexp.c: Likewise.
55805         * lib/printf-frexp.h: Likewise.
55806         * lib/printf-frexpl.c: Likewise.
55807         * lib/printf-frexpl.h: Likewise.
55808         * lib/printf.c: Likewise.
55809         * lib/progname.c: Likewise.
55810         * lib/progname.h: Likewise.
55811         * lib/progreloc.c: Likewise.
55812         * lib/putenv.c: Likewise.
55813         * lib/quote.c: Likewise.
55814         * lib/quote.h: Likewise.
55815         * lib/quotearg.c: Likewise.
55816         * lib/quotearg.h: Likewise.
55817         * lib/raise.c: Likewise.
55818         * lib/readline.c: Likewise.
55819         * lib/readline.h: Likewise.
55820         * lib/readlink.c: Likewise.
55821         * lib/readtokens.c: Likewise.
55822         * lib/readtokens.h: Likewise.
55823         * lib/readtokens0.c: Likewise.
55824         * lib/readtokens0.h: Likewise.
55825         * lib/readutmp.c: Likewise.
55826         * lib/readutmp.h: Likewise.
55827         * lib/realloc.c: Likewise.
55828         * lib/relocwrapper.c: Likewise.
55829         * lib/rename-dest-slash.c: Likewise.
55830         * lib/rename.c: Likewise.
55831         * lib/rmdir.c: Likewise.
55832         * lib/rpmatch.c: Likewise.
55833         * lib/safe-read.c: Likewise.
55834         * lib/safe-read.h: Likewise.
55835         * lib/safe-write.c: Likewise.
55836         * lib/safe-write.h: Likewise.
55837         * lib/same-inode.h: Likewise.
55838         * lib/same.c: Likewise.
55839         * lib/same.h: Likewise.
55840         * lib/save-cwd.c: Likewise.
55841         * lib/save-cwd.h: Likewise.
55842         * lib/savedir.c: Likewise.
55843         * lib/savedir.h: Likewise.
55844         * lib/savewd.c: Likewise.
55845         * lib/savewd.h: Likewise.
55846         * lib/search.in.h: Likewise.
55847         * lib/setenv.c: Likewise.
55848         * lib/setenv.h: Likewise.
55849         * lib/settime.c: Likewise.
55850         * lib/sh-quote.c: Likewise.
55851         * lib/sh-quote.h: Likewise.
55852         * lib/sig2str.c: Likewise.
55853         * lib/sig2str.h: Likewise.
55854         * lib/signal.in.h: Likewise.
55855         * lib/signbitd.c: Likewise.
55856         * lib/signbitf.c: Likewise.
55857         * lib/signbitl.c: Likewise.
55858         * lib/sigprocmask.c: Likewise.
55859         * lib/sincosl.c: Likewise.
55860         * lib/sleep.c: Likewise.
55861         * lib/sprintf.c: Likewise.
55862         * lib/sqrtl.c: Likewise.
55863         * lib/stat-time.h: Likewise.
55864         * lib/stdio--.h: Likewise.
55865         * lib/stdio-safer.h: Likewise.
55866         * lib/stdlib--.h: Likewise.
55867         * lib/stdlib-safer.h: Likewise.
55868         * lib/stdlib.in.h: Likewise.
55869         * lib/stpcpy.c: Likewise.
55870         * lib/stpncpy.c: Likewise.
55871         * lib/strchrnul.c: Likewise.
55872         * lib/strcspn.c: Likewise.
55873         * lib/strerror.c: Likewise.
55874         * lib/strftime.c: Likewise.
55875         * lib/strftime.h: Likewise.
55876         * lib/striconveh.c: Likewise.
55877         * lib/striconveh.h: Likewise.
55878         * lib/striconveha.c: Likewise.
55879         * lib/striconveha.h: Likewise.
55880         * lib/stripslash.c: Likewise.
55881         * lib/strnlen1.c: Likewise.
55882         * lib/strnlen1.h: Likewise.
55883         * lib/strtod.c: Likewise.
55884         * lib/strtoimax.c: Likewise.
55885         * lib/strtok_r.c: Likewise.
55886         * lib/strtol.c: Likewise.
55887         * lib/strtoll.c: Likewise.
55888         * lib/strtoul.c: Likewise.
55889         * lib/strtoull.c: Likewise.
55890         * lib/sysexits.in.h: Likewise.
55891         * lib/tempname.c: Likewise.
55892         * lib/tempname.h: Likewise.
55893         * lib/timespec.h: Likewise.
55894         * lib/tls.c: Likewise.
55895         * lib/tls.h: Likewise.
55896         * lib/tmpdir.c: Likewise.
55897         * lib/tmpdir.h: Likewise.
55898         * lib/tmpfile-safer.c: Likewise.
55899         * lib/tmpfile.c: Likewise.
55900         * lib/trigl.c: Likewise.
55901         * lib/trigl.h: Likewise.
55902         * lib/trim.c: Likewise.
55903         * lib/trim.h: Likewise.
55904         * lib/trunc.c: Likewise.
55905         * lib/truncf.c: Likewise.
55906         * lib/truncl.c: Likewise.
55907         * lib/tsearch.c: Likewise.
55908         * lib/unicodeio.c: Likewise.
55909         * lib/unicodeio.h: Likewise.
55910         * lib/unistd--.h: Likewise.
55911         * lib/unistd-safer.h: Likewise.
55912         * lib/unistdio/ulc-fprintf.c: Likewise.
55913         * lib/unistdio/ulc-vfprintf.c: Likewise.
55914         * lib/unlinkdir.c: Likewise.
55915         * lib/unlinkdir.h: Likewise.
55916         * lib/unlocked-io.h: Likewise.
55917         * lib/unsetenv.c: Likewise.
55918         * lib/userspec.c: Likewise.
55919         * lib/utime.c: Likewise.
55920         * lib/utimecmp.c: Likewise.
55921         * lib/utimecmp.h: Likewise.
55922         * lib/utimens.c: Likewise.
55923         * lib/verify.h: Likewise.
55924         * lib/verror.c: Likewise.
55925         * lib/verror.h: Likewise.
55926         * lib/version-etc-fsf.c: Likewise.
55927         * lib/version-etc.c: Likewise.
55928         * lib/version-etc.h: Likewise.
55929         * lib/vfprintf.c: Likewise.
55930         * lib/vprintf.c: Likewise.
55931         * lib/vsprintf.c: Likewise.
55932         * lib/w32spawn.h: Likewise.
55933         * lib/wait-process.c: Likewise.
55934         * lib/wait-process.h: Likewise.
55935         * lib/wcwidth.c: Likewise.
55936         * lib/write-any-file.c: Likewise.
55937         * lib/xalloc-die.c: Likewise.
55938         * lib/xalloc.h: Likewise.
55939         * lib/xasprintf.c: Likewise.
55940         * lib/xgetcwd.c: Likewise.
55941         * lib/xgetcwd.h: Likewise.
55942         * lib/xgetdomainname.c: Likewise.
55943         * lib/xgetdomainname.h: Likewise.
55944         * lib/xgethostname.c: Likewise.
55945         * lib/xmalloc.c: Likewise.
55946         * lib/xmalloca.c: Likewise.
55947         * lib/xmalloca.h: Likewise.
55948         * lib/xmemcoll.c: Likewise.
55949         * lib/xnanosleep.c: Likewise.
55950         * lib/xreadlink.c: Likewise.
55951         * lib/xreadlink.h: Likewise.
55952         * lib/xsetenv.c: Likewise.
55953         * lib/xsetenv.h: Likewise.
55954         * lib/xstriconv.c: Likewise.
55955         * lib/xstriconv.h: Likewise.
55956         * lib/xstrndup.c: Likewise.
55957         * lib/xstrndup.h: Likewise.
55958         * lib/xstrtod.c: Likewise.
55959         * lib/xstrtod.h: Likewise.
55960         * lib/xstrtol-error.c: Likewise.
55961         * lib/xstrtol.c: Likewise.
55962         * lib/xstrtol.h: Likewise.
55963         * lib/xtime.h: Likewise.
55964         * lib/xvasprintf.c: Likewise.
55965         * lib/xvasprintf.h: Likewise.
55966         * lib/yesno.c: Likewise.
55967         * lib/yesno.h: Likewise.
55968         * posix-modules: Likewise.
55969         * tests/test-alloca-opt.c: Likewise.
55970         * tests/test-arcfour.c: Likewise.
55971         * tests/test-arctwo.c: Likewise.
55972         * tests/test-argmatch.c: Likewise.
55973         * tests/test-argp-2.sh: Likewise.
55974         * tests/test-argp.c: Likewise.
55975         * tests/test-arpa_inet.c: Likewise.
55976         * tests/test-array_list.c: Likewise.
55977         * tests/test-array_oset.c: Likewise.
55978         * tests/test-atexit.c: Likewise.
55979         * tests/test-avltree_list.c: Likewise.
55980         * tests/test-avltree_oset.c: Likewise.
55981         * tests/test-avltreehash_list.c: Likewise.
55982         * tests/test-base64.c: Likewise.
55983         * tests/test-binary-io.c: Likewise.
55984         * tests/test-byteswap.c: Likewise.
55985         * tests/test-c-ctype.c: Likewise.
55986         * tests/test-c-strcasecmp.c: Likewise.
55987         * tests/test-c-strcasestr.c: Likewise.
55988         * tests/test-c-strncasecmp.c: Likewise.
55989         * tests/test-c-strstr.c: Likewise.
55990         * tests/test-canonicalize-lgpl.c: Likewise.
55991         * tests/test-canonicalize.c: Likewise.
55992         * tests/test-carray_list.c: Likewise.
55993         * tests/test-ceilf.c: Likewise.
55994         * tests/test-ceill.c: Likewise.
55995         * tests/test-count-one-bits.c: Likewise.
55996         * tests/test-crc.c: Likewise.
55997         * tests/test-dirname.c: Likewise.
55998         * tests/test-fbufmode.c: Likewise.
55999         * tests/test-fcntl.c: Likewise.
56000         * tests/test-fflush.c: Likewise.
56001         * tests/test-floorf.c: Likewise.
56002         * tests/test-floorl.c: Likewise.
56003         * tests/test-fopen.c: Likewise.
56004         * tests/test-fprintf-posix.c: Likewise.
56005         * tests/test-fprintf-posix.h: Likewise.
56006         * tests/test-fpurge.c: Likewise.
56007         * tests/test-freadable.c: Likewise.
56008         * tests/test-freadahead.c: Likewise.
56009         * tests/test-freading.c: Likewise.
56010         * tests/test-freopen.c: Likewise.
56011         * tests/test-frexp.c: Likewise.
56012         * tests/test-frexpl.c: Likewise.
56013         * tests/test-fseek.c: Likewise.
56014         * tests/test-fseeko.c: Likewise.
56015         * tests/test-fseterr.c: Likewise.
56016         * tests/test-fstrcmp.c: Likewise.
56017         * tests/test-ftell.c: Likewise.
56018         * tests/test-ftello.c: Likewise.
56019         * tests/test-fwritable.c: Likewise.
56020         * tests/test-fwriting.c: Likewise.
56021         * tests/test-getaddrinfo.c: Likewise.
56022         * tests/test-getpass.c: Likewise.
56023         * tests/test-gettimeofday.c: Likewise.
56024         * tests/test-hmac-md5.c: Likewise.
56025         * tests/test-hmac-sha1.c: Likewise.
56026         * tests/test-iconv.c: Likewise.
56027         * tests/test-iconvme.c: Likewise.
56028         * tests/test-inttypes.c: Likewise.
56029         * tests/test-isnan.c: Likewise.
56030         * tests/test-isnanf.c: Likewise.
56031         * tests/test-isnanl-nolibm.c: Likewise.
56032         * tests/test-isnanl.c: Likewise.
56033         * tests/test-isnanl.h: Likewise.
56034         * tests/test-ldexpl.c: Likewise.
56035         * tests/test-linked_list.c: Likewise.
56036         * tests/test-linkedhash_list.c: Likewise.
56037         * tests/test-locale.c: Likewise.
56038         * tests/test-localename.c: Likewise.
56039         * tests/test-lock.c: Likewise.
56040         * tests/test-lseek.c: Likewise.
56041         * tests/test-malloca.c: Likewise.
56042         * tests/test-math.c: Likewise.
56043         * tests/test-mbscasecmp.c: Likewise.
56044         * tests/test-mbscasestr1.c: Likewise.
56045         * tests/test-mbscasestr2.c: Likewise.
56046         * tests/test-mbscasestr3.c: Likewise.
56047         * tests/test-mbscasestr4.c: Likewise.
56048         * tests/test-mbschr.c: Likewise.
56049         * tests/test-mbscspn.c: Likewise.
56050         * tests/test-mbsncasecmp.c: Likewise.
56051         * tests/test-mbspbrk.c: Likewise.
56052         * tests/test-mbspcasecmp.c: Likewise.
56053         * tests/test-mbsrchr.c: Likewise.
56054         * tests/test-mbsspn.c: Likewise.
56055         * tests/test-mbsstr1.c: Likewise.
56056         * tests/test-mbsstr2.c: Likewise.
56057         * tests/test-mbsstr3.c: Likewise.
56058         * tests/test-md5.c: Likewise.
56059         * tests/test-memmem.c: Likewise.
56060         * tests/test-netinet_in.c: Likewise.
56061         * tests/test-open.c: Likewise.
56062         * tests/test-printf-frexp.c: Likewise.
56063         * tests/test-printf-frexpl.c: Likewise.
56064         * tests/test-printf-posix.c: Likewise.
56065         * tests/test-printf-posix.h: Likewise.
56066         * tests/test-rbtree_list.c: Likewise.
56067         * tests/test-rbtree_oset.c: Likewise.
56068         * tests/test-rbtreehash_list.c: Likewise.
56069         * tests/test-read-file.c: Likewise.
56070         * tests/test-rijndael.c: Likewise.
56071         * tests/test-search.c: Likewise.
56072         * tests/test-signbit.c: Likewise.
56073         * tests/test-sleep.c: Likewise.
56074         * tests/test-snprintf-posix.c: Likewise.
56075         * tests/test-snprintf-posix.h: Likewise.
56076         * tests/test-snprintf.c: Likewise.
56077         * tests/test-sprintf-posix.c: Likewise.
56078         * tests/test-sprintf-posix.h: Likewise.
56079         * tests/test-stat-time.c: Likewise.
56080         * tests/test-stdbool.c: Likewise.
56081         * tests/test-stdint.c: Likewise.
56082         * tests/test-stdio.c: Likewise.
56083         * tests/test-stdlib.c: Likewise.
56084         * tests/test-stpncpy.c: Likewise.
56085         * tests/test-strcasestr.c: Likewise.
56086         * tests/test-striconv.c: Likewise.
56087         * tests/test-striconveh.c: Likewise.
56088         * tests/test-striconveha.c: Likewise.
56089         * tests/test-string.c: Likewise.
56090         * tests/test-sys_select.c: Likewise.
56091         * tests/test-sys_socket.c: Likewise.
56092         * tests/test-sys_stat.c: Likewise.
56093         * tests/test-sys_time.c: Likewise.
56094         * tests/test-sysexits.c: Likewise.
56095         * tests/test-time.c: Likewise.
56096         * tests/test-tls.c: Likewise.
56097         * tests/test-trunc.c: Likewise.
56098         * tests/test-truncf.c: Likewise.
56099         * tests/test-truncl.c: Likewise.
56100         * tests/test-unistd.c: Likewise.
56101         * tests/test-vasnprintf-posix.c: Likewise.
56102         * tests/test-vasnprintf-posix2.c: Likewise.
56103         * tests/test-vasnprintf.c: Likewise.
56104         * tests/test-vasprintf-posix.c: Likewise.
56105         * tests/test-vasprintf.c: Likewise.
56106         * tests/test-verify.c: Likewise.
56107         * tests/test-vfprintf-posix.c: Likewise.
56108         * tests/test-vprintf-posix.c: Likewise.
56109         * tests/test-vsnprintf-posix.c: Likewise.
56110         * tests/test-vsnprintf.c: Likewise.
56111         * tests/test-vsprintf-posix.c: Likewise.
56112         * tests/test-wchar.c: Likewise.
56113         * tests/test-wctype.c: Likewise.
56114         * tests/test-wcwidth.c: Likewise.
56115         * tests/test-xstrtol.c: Likewise.
56116         * tests/test-xvasprintf.c: Likewise.
56117         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56118         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56119         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56120         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56121         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56122         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56123         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56124         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56125         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56126         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56127         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56128         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56129         * tests/uniname/test-uninames.c: Likewise.
56130         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56131         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56132         * tests/unistdio/test-u16-printf1.h: Likewise.
56133         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56134         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56135         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56136         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56137         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56138         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56139         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56140         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56141         * tests/unistdio/test-u32-printf1.h: Likewise.
56142         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56143         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56144         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56145         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56146         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56147         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56148         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56149         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56150         * tests/unistdio/test-u8-printf1.h: Likewise.
56151         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56152         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56153         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56154         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56155         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56156         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56157         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56158         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56159         * tests/unistdio/test-ulc-printf1.h: Likewise.
56160         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56161         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56162         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56163         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56164         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56165         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56166         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56167         * tests/uniwidth/test-u16-width.c: Likewise.
56168         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56169         * tests/uniwidth/test-u32-width.c: Likewise.
56170         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56171         * tests/uniwidth/test-u8-width.c: Likewise.
56172         * tests/uniwidth/test-uc_width.c: Likewise.
56173         * config/srclist-update: Likewise.
56174         (fixlicense): Update to GPLv3+.
56175
56176         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56177         * tests/test-tsearch.c: Change copyright notice.
56178
56179         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56180         * lib/c-strcaseeq.h: Change copyright notice.
56181         * lib/streq.h: Likewise.
56182         * lib/uniconv.h: Likewise.
56183         * lib/uniconv/u-conv-from-enc.h: Likewise.
56184         * lib/uniconv/u-conv-to-enc.h: Likewise.
56185         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56186         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56187         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56188         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56189         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56190         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56191         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56192         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56193         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56194         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56195         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56196         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56197         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56198         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56199         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56200         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56201         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56202         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56203         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56204         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56205         * lib/uniname.h: Likewise.
56206         * lib/uniname/uniname.c: Likewise.
56207         * lib/unistdio.h: Likewise.
56208         * lib/unistdio/u-asnprintf.h: Likewise.
56209         * lib/unistdio/u-asprintf.h: Likewise.
56210         * lib/unistdio/u-printf-args.c: Likewise.
56211         * lib/unistdio/u-printf-args.h: Likewise.
56212         * lib/unistdio/u-printf-parse.h: Likewise.
56213         * lib/unistdio/u-snprintf.h: Likewise.
56214         * lib/unistdio/u-sprintf.h: Likewise.
56215         * lib/unistdio/u-vasprintf.h: Likewise.
56216         * lib/unistdio/u-vsnprintf.h: Likewise.
56217         * lib/unistdio/u-vsprintf.h: Likewise.
56218         * lib/unistdio/u16-asnprintf.c: Likewise.
56219         * lib/unistdio/u16-asprintf.c: Likewise.
56220         * lib/unistdio/u16-printf-parse.c: Likewise.
56221         * lib/unistdio/u16-snprintf.c: Likewise.
56222         * lib/unistdio/u16-sprintf.c: Likewise.
56223         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56224         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56225         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56226         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56227         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56228         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56229         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56230         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56231         * lib/unistdio/u16-vasnprintf.c: Likewise.
56232         * lib/unistdio/u16-vasprintf.c: Likewise.
56233         * lib/unistdio/u16-vsnprintf.c: Likewise.
56234         * lib/unistdio/u16-vsprintf.c: Likewise.
56235         * lib/unistdio/u32-asnprintf.c: Likewise.
56236         * lib/unistdio/u32-asprintf.c: Likewise.
56237         * lib/unistdio/u32-printf-parse.c: Likewise.
56238         * lib/unistdio/u32-snprintf.c: Likewise.
56239         * lib/unistdio/u32-sprintf.c: Likewise.
56240         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56241         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56242         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56243         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56244         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56245         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56246         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56247         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56248         * lib/unistdio/u32-vasnprintf.c: Likewise.
56249         * lib/unistdio/u32-vasprintf.c: Likewise.
56250         * lib/unistdio/u32-vsnprintf.c: Likewise.
56251         * lib/unistdio/u32-vsprintf.c: Likewise.
56252         * lib/unistdio/u8-asnprintf.c: Likewise.
56253         * lib/unistdio/u8-asprintf.c: Likewise.
56254         * lib/unistdio/u8-printf-parse.c: Likewise.
56255         * lib/unistdio/u8-snprintf.c: Likewise.
56256         * lib/unistdio/u8-sprintf.c: Likewise.
56257         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56258         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56259         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56260         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56261         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56262         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56263         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56264         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56265         * lib/unistdio/u8-vasnprintf.c: Likewise.
56266         * lib/unistdio/u8-vasprintf.c: Likewise.
56267         * lib/unistdio/u8-vsnprintf.c: Likewise.
56268         * lib/unistdio/u8-vsprintf.c: Likewise.
56269         * lib/unistdio/ulc-asnprintf.c: Likewise.
56270         * lib/unistdio/ulc-asprintf.c: Likewise.
56271         * lib/unistdio/ulc-printf-parse.c: Likewise.
56272         * lib/unistdio/ulc-snprintf.c: Likewise.
56273         * lib/unistdio/ulc-sprintf.c: Likewise.
56274         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56275         * lib/unistdio/ulc-vasprintf.c: Likewise.
56276         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56277         * lib/unistdio/ulc-vsprintf.c: Likewise.
56278         * lib/unistr.h: Likewise.
56279         * lib/unistr/u-cpy-alloc.h: Likewise.
56280         * lib/unistr/u-cpy.h: Likewise.
56281         * lib/unistr/u-endswith.h: Likewise.
56282         * lib/unistr/u-move.h: Likewise.
56283         * lib/unistr/u-set.h: Likewise.
56284         * lib/unistr/u-startswith.h: Likewise.
56285         * lib/unistr/u-stpcpy.h: Likewise.
56286         * lib/unistr/u-stpncpy.h: Likewise.
56287         * lib/unistr/u-strcat.h: Likewise.
56288         * lib/unistr/u-strcpy.h: Likewise.
56289         * lib/unistr/u-strcspn.h: Likewise.
56290         * lib/unistr/u-strdup.h: Likewise.
56291         * lib/unistr/u-strlen.h: Likewise.
56292         * lib/unistr/u-strncat.h: Likewise.
56293         * lib/unistr/u-strncpy.h: Likewise.
56294         * lib/unistr/u-strnlen.h: Likewise.
56295         * lib/unistr/u-strpbrk.h: Likewise.
56296         * lib/unistr/u-strspn.h: Likewise.
56297         * lib/unistr/u-strstr.h: Likewise.
56298         * lib/unistr/u-strtok.h: Likewise.
56299         * lib/unistr/u16-check.c: Likewise.
56300         * lib/unistr/u16-chr.c: Likewise.
56301         * lib/unistr/u16-cmp.c: Likewise.
56302         * lib/unistr/u16-cpy-alloc.c: Likewise.
56303         * lib/unistr/u16-cpy.c: Likewise.
56304         * lib/unistr/u16-endswith.c: Likewise.
56305         * lib/unistr/u16-mblen.c: Likewise.
56306         * lib/unistr/u16-mbsnlen.c: Likewise.
56307         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56308         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56309         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56310         * lib/unistr/u16-mbtouc.c: Likewise.
56311         * lib/unistr/u16-mbtoucr.c: Likewise.
56312         * lib/unistr/u16-move.c: Likewise.
56313         * lib/unistr/u16-next.c: Likewise.
56314         * lib/unistr/u16-prev.c: Likewise.
56315         * lib/unistr/u16-set.c: Likewise.
56316         * lib/unistr/u16-startswith.c: Likewise.
56317         * lib/unistr/u16-stpcpy.c: Likewise.
56318         * lib/unistr/u16-stpncpy.c: Likewise.
56319         * lib/unistr/u16-strcat.c: Likewise.
56320         * lib/unistr/u16-strchr.c: Likewise.
56321         * lib/unistr/u16-strcmp.c: Likewise.
56322         * lib/unistr/u16-strcpy.c: Likewise.
56323         * lib/unistr/u16-strcspn.c: Likewise.
56324         * lib/unistr/u16-strdup.c: Likewise.
56325         * lib/unistr/u16-strlen.c: Likewise.
56326         * lib/unistr/u16-strmblen.c: Likewise.
56327         * lib/unistr/u16-strmbtouc.c: Likewise.
56328         * lib/unistr/u16-strncat.c: Likewise.
56329         * lib/unistr/u16-strncmp.c: Likewise.
56330         * lib/unistr/u16-strncpy.c: Likewise.
56331         * lib/unistr/u16-strnlen.c: Likewise.
56332         * lib/unistr/u16-strpbrk.c: Likewise.
56333         * lib/unistr/u16-strrchr.c: Likewise.
56334         * lib/unistr/u16-strspn.c: Likewise.
56335         * lib/unistr/u16-strstr.c: Likewise.
56336         * lib/unistr/u16-strtok.c: Likewise.
56337         * lib/unistr/u16-to-u32.c: Likewise.
56338         * lib/unistr/u16-to-u8.c: Likewise.
56339         * lib/unistr/u16-uctomb-aux.c: Likewise.
56340         * lib/unistr/u16-uctomb.c: Likewise.
56341         * lib/unistr/u32-check.c: Likewise.
56342         * lib/unistr/u32-chr.c: Likewise.
56343         * lib/unistr/u32-cmp.c: Likewise.
56344         * lib/unistr/u32-cpy-alloc.c: Likewise.
56345         * lib/unistr/u32-cpy.c: Likewise.
56346         * lib/unistr/u32-endswith.c: Likewise.
56347         * lib/unistr/u32-mblen.c: Likewise.
56348         * lib/unistr/u32-mbsnlen.c: Likewise.
56349         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56350         * lib/unistr/u32-mbtouc.c: Likewise.
56351         * lib/unistr/u32-mbtoucr.c: Likewise.
56352         * lib/unistr/u32-move.c: Likewise.
56353         * lib/unistr/u32-next.c: Likewise.
56354         * lib/unistr/u32-prev.c: Likewise.
56355         * lib/unistr/u32-set.c: Likewise.
56356         * lib/unistr/u32-startswith.c: Likewise.
56357         * lib/unistr/u32-stpcpy.c: Likewise.
56358         * lib/unistr/u32-stpncpy.c: Likewise.
56359         * lib/unistr/u32-strcat.c: Likewise.
56360         * lib/unistr/u32-strchr.c: Likewise.
56361         * lib/unistr/u32-strcmp.c: Likewise.
56362         * lib/unistr/u32-strcpy.c: Likewise.
56363         * lib/unistr/u32-strcspn.c: Likewise.
56364         * lib/unistr/u32-strdup.c: Likewise.
56365         * lib/unistr/u32-strlen.c: Likewise.
56366         * lib/unistr/u32-strmblen.c: Likewise.
56367         * lib/unistr/u32-strmbtouc.c: Likewise.
56368         * lib/unistr/u32-strncat.c: Likewise.
56369         * lib/unistr/u32-strncmp.c: Likewise.
56370         * lib/unistr/u32-strncpy.c: Likewise.
56371         * lib/unistr/u32-strnlen.c: Likewise.
56372         * lib/unistr/u32-strpbrk.c: Likewise.
56373         * lib/unistr/u32-strrchr.c: Likewise.
56374         * lib/unistr/u32-strspn.c: Likewise.
56375         * lib/unistr/u32-strstr.c: Likewise.
56376         * lib/unistr/u32-strtok.c: Likewise.
56377         * lib/unistr/u32-to-u16.c: Likewise.
56378         * lib/unistr/u32-to-u8.c: Likewise.
56379         * lib/unistr/u32-uctomb.c: Likewise.
56380         * lib/unistr/u8-check.c: Likewise.
56381         * lib/unistr/u8-chr.c: Likewise.
56382         * lib/unistr/u8-cmp.c: Likewise.
56383         * lib/unistr/u8-cpy-alloc.c: Likewise.
56384         * lib/unistr/u8-cpy.c: Likewise.
56385         * lib/unistr/u8-endswith.c: Likewise.
56386         * lib/unistr/u8-mblen.c: Likewise.
56387         * lib/unistr/u8-mbsnlen.c: Likewise.
56388         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56389         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56390         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56391         * lib/unistr/u8-mbtouc.c: Likewise.
56392         * lib/unistr/u8-mbtoucr.c: Likewise.
56393         * lib/unistr/u8-move.c: Likewise.
56394         * lib/unistr/u8-next.c: Likewise.
56395         * lib/unistr/u8-prev.c: Likewise.
56396         * lib/unistr/u8-set.c: Likewise.
56397         * lib/unistr/u8-startswith.c: Likewise.
56398         * lib/unistr/u8-stpcpy.c: Likewise.
56399         * lib/unistr/u8-stpncpy.c: Likewise.
56400         * lib/unistr/u8-strcat.c: Likewise.
56401         * lib/unistr/u8-strchr.c: Likewise.
56402         * lib/unistr/u8-strcmp.c: Likewise.
56403         * lib/unistr/u8-strcpy.c: Likewise.
56404         * lib/unistr/u8-strcspn.c: Likewise.
56405         * lib/unistr/u8-strdup.c: Likewise.
56406         * lib/unistr/u8-strlen.c: Likewise.
56407         * lib/unistr/u8-strmblen.c: Likewise.
56408         * lib/unistr/u8-strmbtouc.c: Likewise.
56409         * lib/unistr/u8-strncat.c: Likewise.
56410         * lib/unistr/u8-strncmp.c: Likewise.
56411         * lib/unistr/u8-strncpy.c: Likewise.
56412         * lib/unistr/u8-strnlen.c: Likewise.
56413         * lib/unistr/u8-strpbrk.c: Likewise.
56414         * lib/unistr/u8-strrchr.c: Likewise.
56415         * lib/unistr/u8-strspn.c: Likewise.
56416         * lib/unistr/u8-strstr.c: Likewise.
56417         * lib/unistr/u8-strtok.c: Likewise.
56418         * lib/unistr/u8-to-u16.c: Likewise.
56419         * lib/unistr/u8-to-u32.c: Likewise.
56420         * lib/unistr/u8-uctomb-aux.c: Likewise.
56421         * lib/unistr/u8-uctomb.c: Likewise.
56422         * lib/unitypes.h: Likewise.
56423         * lib/uniwidth.h: Likewise.
56424         * lib/uniwidth/cjk.h: Likewise.
56425         * lib/uniwidth/u16-strwidth.c: Likewise.
56426         * lib/uniwidth/u16-width.c: Likewise.
56427         * lib/uniwidth/u32-strwidth.c: Likewise.
56428         * lib/uniwidth/u32-width.c: Likewise.
56429         * lib/uniwidth/u8-strwidth.c: Likewise.
56430         * lib/uniwidth/u8-width.c: Likewise.
56431         * lib/uniwidth/width.c: Likewise.
56432
56433 2007-10-07  Bruno Haible  <bruno@clisp.org>
56434
56435         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56436         The file is still under LGPL (see modules/inttypes).
56437
56438 2007-10-06  Bruno Haible  <bruno@clisp.org>
56439
56440         * modules/trunc (Dependencies): Add 'extensions'.
56441         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56442         Reported by Ben Pfaff <blp@gnu.org>.
56443
56444 2007-10-06  Bruno Haible  <bruno@clisp.org>
56445
56446         * modules/freopen-tests: New file.
56447         * tests/test-freopen.c: New file.
56448
56449         * modules/fopen-tests: New file.
56450         * tests/test-fopen.c: New file.
56451
56452         * modules/fopen: New file.
56453         * lib/fopen.c: New file.
56454         * m4/fopen.m4: New file.
56455         * modules/freopen: New file.
56456         * lib/freopen.c: New file.
56457         * m4/freopen.m4: New file.
56458         * lib/stdio.in.h (fopen, freopen): New declarations.
56459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56460         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56461         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56462         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56463         * doc/functions/fopen.texi: Mention the 'fopen' module.
56464         * doc/functions/freopen.texi: Mention the 'freopen' module.
56465
56466 2007-10-06  Bruno Haible  <bruno@clisp.org>
56467
56468         * modules/open-tests: New file.
56469         * tests/test-open.c: New file.
56470
56471         * modules/open: New file.
56472         * lib/open.c: New file.
56473         * m4/open.m4: New file.
56474         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56475         lib/open.c does.
56476         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56477         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56478         macros.
56479         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56480         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56481         REPLACE_OPEN.
56482         * doc/functions/open.texi: Mention the 'open' module.
56483
56484 2007-10-04  Bruno Haible  <bruno@clisp.org>
56485
56486         * modules/ceill-tests: New file.
56487         * tests/test-ceill.c: New file.
56488
56489         * modules/ceill: New file.
56490         * lib/ceill.c: Replace entire file.
56491         * m4/ceill.m4: New file.
56492         * lib/math.in.h (ceill): Replace declaration.
56493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56494         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56495         * doc/functions/ceill.texi: Mention the 'ceill' module.
56496         * modules/mathl (Files): Remove lib/ceill.c.
56497         (Depends-on): Add ceill.
56498
56499 2007-10-04  Bruno Haible  <bruno@clisp.org>
56500
56501         * modules/ceilf-tests: New file.
56502         * tests/test-ceilf.c: New file.
56503
56504         * modules/ceilf: New file.
56505         * lib/ceil.c: New file.
56506         * lib/ceilf.c: New file.
56507         * m4/ceilf.m4: New file.
56508         * lib/math.in.h (ceilf): New declaration.
56509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56510         HAVE_DECL_CEILF.
56511         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56512         HAVE_DECL_CEILF.
56513         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56514
56515 2007-10-04  Bruno Haible  <bruno@clisp.org>
56516
56517         * modules/floorl-tests: New file.
56518         * tests/test-floorl.c: New file.
56519
56520         * modules/floorl: New file.
56521         * lib/floorl.c: Replace entire file.
56522         * m4/floorl.m4: New file.
56523         * lib/math.in.h (floorl): Replace declaration.
56524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56525         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56526         * doc/functions/floorl.texi: Mention the 'floorl' module.
56527         * modules/mathl (Files): Remove lib/floorl.c.
56528         (Depends-on): Add floorl.
56529
56530 2007-10-04  Bruno Haible  <bruno@clisp.org>
56531
56532         * modules/floorf-tests: New file.
56533         * tests/test-floorf.c: New file.
56534
56535         * modules/floorf: New file.
56536         * lib/floor.c: New file.
56537         * lib/floorf.c: New file.
56538         * m4/floorf.m4: New file.
56539         * lib/math.in.h (floorf): New declaration.
56540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56541         HAVE_DECL_FLOORF.
56542         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56543         HAVE_DECL_FLOORF.
56544         * doc/functions/floorf.texi: Mention the 'floorf' module.
56545
56546 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56547             Bruno Haible  <bruno@clisp.org>
56548
56549         Advertise for the Git server instead of the CVS server.
56550         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56551         repository instead of the CVS one.
56552         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56553         about all VCS systems generically.
56554         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56555
56556 2007-10-04  Bruno Haible  <bruno@clisp.org>
56557
56558         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56559         means.
56560         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56561
56562 2007-10-04  Bruno Haible  <bruno@clisp.org>
56563
56564         * modules/truncl-tests: New file.
56565         * tests/test-truncl.c: New file.
56566
56567         * modules/truncl: New file.
56568         * lib/truncl.c: New file.
56569         * m4/truncl.m4: New file.
56570         * lib/math.in.h (truncl): New declaration.
56571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56572         HAVE_DECL_TRUNCL.
56573         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56574         HAVE_DECL_TRUNCL.
56575         * doc/functions/truncl.texi: Mention the 'truncl' module.
56576
56577 2007-10-04  Bruno Haible  <bruno@clisp.org>
56578
56579         * modules/truncf-tests: New file.
56580         * tests/test-truncf.c: New file.
56581
56582         * modules/truncf: New file.
56583         * lib/trunc.c: Make paramerizable through USE_* macros.
56584         * lib/truncf.c: New file.
56585         * m4/truncf.m4: New file.
56586         * lib/math.in.h (truncf): New declaration.
56587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56588         HAVE_DECL_TRUNCF.
56589         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56590         HAVE_DECL_TRUNCF.
56591         * doc/functions/truncf.texi: Mention the 'truncf' module.
56592
56593 2007-10-03  Bruno Haible  <bruno@clisp.org>
56594
56595         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56596         augmentation also for tests modules.
56597         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56598         * modules/atexit-tests (Makefile.am): Likewise.
56599         * modules/binary-io-tests (Makefile.am): Likewise.
56600         * modules/c-strcase-tests (Makefile.am): Likewise.
56601         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56602         * modules/canonicalize-tests (Makefile.am): Likewise.
56603         * modules/closein-tests (Makefile.am): Likewise.
56604         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56605         * modules/freadahead-tests (Makefile.am): Likewise.
56606         * modules/fseek-tests (Makefile.am): Likewise.
56607         * modules/fseeko-tests (Makefile.am): Likewise.
56608         * modules/ftell-tests (Makefile.am): Likewise.
56609         * modules/ftello-tests (Makefile.am): Likewise.
56610         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56611         * modules/isnanl-tests (Makefile.am): Likewise.
56612         * modules/lseek-tests (Makefile.am): Likewise.
56613         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56614         * modules/mbscasestr-tests (Makefile.am): Likewise.
56615         * modules/mbschr-tests (Makefile.am): Likewise.
56616         * modules/mbscspn-tests (Makefile.am): Likewise.
56617         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56618         * modules/mbspbrk-tests (Makefile.am): Likewise.
56619         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56620         * modules/mbsrchr-tests (Makefile.am): Likewise.
56621         * modules/mbsspn-tests (Makefile.am): Likewise.
56622         * modules/mbsstr-tests (Makefile.am): Likewise.
56623         * modules/printf-posix-tests (Makefile.am): Likewise.
56624         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56625         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56626         * modules/tsearch-tests (Makefile.am): Likewise.
56627         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56628         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56629         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56630         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56631         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56632         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56633         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56634         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56635         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56636         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56637         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56638         * modules/xstrtol-tests (Makefile.am): Likewise.
56639         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56640         * modules/yesno-tests (Makefile.am): Likewise.
56641
56642 2007-10-03  Bruno Haible  <bruno@clisp.org>
56643
56644         * modules/trunc-tests: New file.
56645         * tests/test-trunc.c: New file.
56646
56647         * modules/trunc: New file.
56648         * lib/trunc.c: New file.
56649         * m4/trunc.m4: New file.
56650         * lib/math.in.h (trunc): New declaration.
56651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56652         HAVE_DECL_TRUNC.
56653         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56654         HAVE_DECL_TRUNC.
56655         * doc/functions/trunc.texi: Mention the 'trunc' module.
56656
56657 2007-10-03  Bruno Haible  <bruno@clisp.org>
56658
56659         * tests/test-fpending.c: New file, mostly copied
56660         from coreutils/lib/t-fpending.c.
56661         * modules/fpending-tests: New file.
56662
56663 2007-10-03  Bruno Haible  <bruno@clisp.org>
56664
56665         Port the stdio extensions to QNX (untested).
56666         * lib/fseterr.c (fseterr): Add support for QNX.
56667         * lib/fbufmode.c (fbufmode): Likewise.
56668         * lib/freadable.c (freadable): Likewise.
56669         * lib/fwritable.c (fwritable): Likewise.
56670         * lib/freading.c (freading): Likewise.
56671         * lib/fwriting.c (fwriting): Likewise.
56672         * lib/freadahead.c (freadahed): Likewise.
56673         * lib/fpurge.c (fpurge): Likewise.
56674         * lib/fseeko.c (rpl_fseeko): Likewise.
56675
56676 2007-10-03  Bruno Haible  <bruno@clisp.org>
56677             Jim Meyering  <jim@meyering.net>
56678             Eric Blake  <ebb9@byu.net>
56679
56680         * doc/relocatable.texi: Use @command instead of @program.
56681
56682 2007-10-02  Jim Meyering  <jim@meyering.net>
56683
56684         Perform one more "_.h" -> ".in.h" substitution.
56685         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56686         instead of unistd_.h here, too.
56687
56688 2007-10-01  Bruno Haible  <bruno@clisp.org>
56689
56690         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56691         Needed for the alloca-opt module.
56692
56693 2007-09-30  Bruno Haible  <bruno@clisp.org>
56694
56695         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56696         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56697         alloca_.h.
56698         * lib/argz.in.h: Renamed from lib/argz_.h.
56699         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56700         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56701         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56702         byteswap_.h.
56703         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56704         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56705         dirent_.h.
56706         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56707         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56708         fcntl_.h.
56709         * lib/float.in.h: Renamed from lib/float_.h.
56710         * modules/float (Files, Makefile.am): Use float.in.h instead of
56711         float_.h.
56712         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56713         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56714         fnmatch_.h.
56715         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56716         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56717         getopt_.h.
56718         * lib/glob.in.h: Renamed from lib/glob_.h.
56719         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56720         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56721         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56722         iconv_.h.
56723         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56724         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56725         inttypes_.h.
56726         * lib/locale.in.h: Renamed from lib/locale_.h.
56727         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56728         locale_.h.
56729         * lib/math.in.h: Renamed from lib/math_.h.
56730         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56731         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56732         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56733         of netinet_in_.h. Add dependency.
56734         * lib/poll.in.h: Renamed from lib/poll_.h.
56735         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56736         * lib/search.in.h: Renamed from lib/search_.h.
56737         * modules/search (Files, Makefile.am): Use search.in.h instead of
56738         search_.h.
56739         * lib/signal.in.h: Renamed from lib/signal_.h.
56740         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56741         _signal.h.
56742         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56743         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56744         stdbool_.h.
56745         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56746         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56747         stdint_.h.
56748         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56749         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56750         stdio_.h.
56751         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56752         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56753         stdlib_.h.
56754         * lib/string.in.h: Renamed from lib/string_.h.
56755         * modules/string (Files, Makefile.am): Use string.in.h instead of
56756         string_.h.
56757         * doc/gnulib-tool.texi (Initial import): Update.
56758         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56759         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56760         of sys_select_.h. Add dependency.
56761         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56762         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56763         of sys_socket_.h.
56764         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56765         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56766         sys_stat_.h.
56767         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56768         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56769         sys_time_.h.
56770         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56771         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56772         sysexits_.h.
56773         * lib/time.in.h: Renamed from lib/time_.h.
56774         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56775         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56776         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56777         unistd_.h.
56778         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56779         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56780         wchar_.h.
56781         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56782         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56783         wctype_.h.
56784         * build-aux/bootstrap (slurp): Update.
56785         * lib/.cppi-disable: Update.
56786
56787 2007-09-30  Bruno Haible  <bruno@clisp.org>
56788
56789         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56790         Needed on BeOS.
56791
56792 2007-09-30  Bruno Haible  <bruno@clisp.org>
56793
56794         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56795
56796 2007-09-29  Bruno Haible  <bruno@clisp.org>
56797
56798         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56799
56800 2007-09-29  Bruno Haible  <bruno@clisp.org>
56801
56802         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56803         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56804         * build-aux/install-reloc: Compile also areadlink.c.
56805         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56806
56807 2007-09-29  Bruno Haible  <bruno@clisp.org>
56808
56809         * gnulib-tool (func_emit_initmacro_done): Indentation.
56810
56811 2007-09-29  Bruno Haible  <bruno@clisp.org>
56812
56813         * README: Add CVS checkout update instructions.
56814         Info from Bob Proulx <bob@proulx.com>.
56815
56816 2007-09-28  Eric Blake  <ebb9@byu.net>
56817
56818         Provide move-if-change.
56819         * build-aux/move-if-change: New file, based on best practice
56820         rather than any canonical upstream location.
56821
56822 2007-09-28  Jim Meyering  <jim@meyering.net>
56823
56824         Fix canonicalize loop-detection corner case.
56825         Do not attempt to stat the symlink values stored via seen_triple.
56826         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56827         on linux-2.6.18, (but not 2.6.22).
56828         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56829         triple_compare.  The former compares dev,ino,filename, while the latter
56830         would actually stat dirname(filename) when dev and ino were equal.
56831         * lib/hash-triple.c: Install <string.h>.
56832         (STREQ): Define.
56833         (triple_compare_ino_str): New function.
56834         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56835
56836 2007-09-28  Eric Blake  <ebb9@byu.net>
56837
56838         Enforce that AC_REPLACE_FUNCS files exist.
56839         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56840         override check for typos.
56841
56842         Fix test-closein on Solaris 10.
56843         * tests/test-closein.c (main): Don't assume stdin can be inherited
56844         closed on all systems.
56845         * tests/test-closein.sh: Likewise.
56846         Reported by Piotr Tarnowski.
56847
56848 2007-09-28  Jim Meyering  <jim@meyering.net>
56849
56850         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56851
56852 2007-09-27  Jim Meyering  <jim@meyering.net>
56853
56854         canonicalize: Avoid a false-positive cycle failure.
56855         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56856         Sort.  Remove cycle-check.
56857         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56858         not cycle-check.h.
56859         (seen_triple): New function.
56860         (canonicalize_filename_mode): Use it instead of cycle-check.
56861         * tests/test-canonicalize.c: Add a test for this bug.
56862         * tests/test-canonicalize.sh: Set up and run the test.
56863
56864         New module, file-set, from coreutils.
56865         * modules/file-set: Define it.
56866         * lib/file-set.c, lib/file-set.h: Implement.
56867
56868         New module, hash-triple, from coreutils.
56869         * modules/hash-triple: Define it.
56870         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56871
56872 2007-09-25  Eric Blake  <ebb9@byu.net>
56873
56874         Fix strerror on Interix.
56875         * lib/string_.h (strerror): Declare replacement.
56876         * doc/functions/strerror.texi (strerror): Document the Interix
56877         shortcoming.
56878         * modules/string (Makefile.am): Support new hooks.
56879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56880         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56881         gl_FUNC_STRERROR_SEPARATE.
56882         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56883         * lib/strerror.c (rpl_strerror): Provide replacement.
56884         * modules/strerror (Depends-on): Add string.
56885         (configure.ac): Detect use of module.
56886         * tests/test-strerror.c: New file.
56887         * modules/strerror-tests: New test module.
56888         * modules/argp (Depends-on): Add strerror.
56889         * modules/error (Depends-on): Likewise.
56890         Reported by Martin Koeppe.
56891
56892 2007-09-24  Bruno Haible  <bruno@clisp.org>
56893
56894         * README: Update git instructions.
56895
56896 2007-09-24  Eric Blake  <ebb9@byu.net>
56897
56898         Revert fpending breakage from 2007-09-08.
56899         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56900         __fpending.c.
56901
56902 2007-09-24  Jim Meyering  <jim@meyering.net>
56903
56904         filenamecat.c: Add a test.
56905         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56906         showing how the function works when DIR is the empty string.
56907
56908 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56909
56910         * tests/test-canonicalize.sh: Turn on executable bit.
56911
56912 2007-09-19  Eric Blake  <ebb9@byu.net>
56913
56914         * README: Update CVS instructions.
56915
56916 2007-09-18  Bruno Haible  <bruno@clisp.org>
56917
56918         * modules/areadlink: New file.
56919         * lib/areadlink.h (areadlink): New declaration.
56920         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56921
56922 2007-09-17  Jim Meyering  <jim@meyering.net>
56923
56924         * lib/savewd.c (ESTALE) [!defined]: Define.
56925         Reported to be required on Interix by Martin Koeppe.
56926
56927 2007-09-17  Bruno Haible  <bruno@clisp.org>
56928
56929         * gnulib-tool (func_version): Use $version.
56930
56931 2007-09-16  Bruno Haible  <bruno@clisp.org>
56932
56933         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56934         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56935         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56936         Reported by Greg Schafer <gschafer@zip.com.au>.
56937
56938 2007-09-15  Bruno Haible  <bruno@clisp.org>
56939
56940         * gnulib-tool (sed): Try a little harder to make bash understand the
56941         alias.
56942         Reported by Bruce Korb <bruce.korb@gmail.com>.
56943
56944 2007-09-13  Eric Blake  <ebb9@byu.net>
56945
56946         * ChangeLog: Remove conflict markers.
56947
56948 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56949
56950         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56951         Reported by Bruno Haible <bruno@clisp.org>.
56952
56953 2007-09-12  Bruno Haible  <bruno@clisp.org>
56954
56955         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56956         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56957         is not defined.
56958
56959 2007-09-12  Eric Blake  <ebb9@byu.net>
56960
56961         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56962         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56963         Autoconf definition.
56964         * modules/euidaccess (Depends-on): Add extensions, for
56965         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56966         * modules/fnmatch (Depends-on): Likewise.
56967         * modules/getaddrinfo (Depends-on): Likewise.
56968         * modules/getdelim (Depends-on): Likewise.
56969         * modules/getline (Depends-on): Likewise.
56970         * modules/getsubopt (Depends-on): Likewise.
56971         * modules/gettext (Depends-on): Likewise.
56972         * modules/group-member (Depends-on): Likewise.
56973         * modules/mbchar (Depends-on): Likewise.
56974         * modules/memmem (Depends-on): Likewise.
56975         * modules/mempcpy (Depends-on): Likewise.
56976         * modules/memrchr (Depends-on): Likewise.
56977         * modules/pagealign_alloc (Depends-on): Likewise.
56978         * modules/readutmp (Depends-on): Likewise.
56979         * modules/stpcpy (Depends-on): Likewise.
56980         * modules/stpncpy (Depends-on): Likewise.
56981         * modules/strchrnul (Depends-on): Likewise.
56982         * modules/strndup (Depends-on): Likewise.
56983         * modules/strsep (Depends-on): Likewise.
56984         * modules/strverscmp (Depends-on): Likewise.
56985         * modules/vasprintf (Depends-on): Likewise.
56986         * modules/wcwidth (Depends-on): Likewise.
56987         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56988         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56989         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56990         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56991         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56992         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56993         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56994         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56995         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56996         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56997         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56998         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56999         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57000         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57001         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57002         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57003         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57004         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57005         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57006         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57007         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57008         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57009         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57010         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57011         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57012         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57013         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57014         so that lock.m4 can be used in gettext without extensions module.
57015
57016 2007-09-11  Bruno Haible  <bruno@clisp.org>
57017
57018         * m4/isc-posix.m4: Remove file.
57019         Suggested by Eric Blake.
57020
57021 2007-09-11  Eric Blake  <ebb9@byu.net>
57022
57023         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57024
57025 2007-09-10  Bruno Haible  <bruno@clisp.org>
57026
57027         * posix-modules: Fix typo in error message.
57028         Reported by Matt <mkraai@beckman.com>.
57029
57030 2007-09-09  Bruno Haible  <bruno@clisp.org>
57031
57032         * doc/functions/getdelim.texi: Update list of platforms lacking the
57033         function.
57034         * doc/functions/getline.texi: Likewise.
57035
57036 2007-09-09  Jim Meyering  <jim@meyering.net>
57037
57038         * lib/hash.c (hash_initialize): Detect calloc failure.
57039         Reported by Bruno Haible.
57040
57041 2007-09-09  Bruno Haible  <bruno@clisp.org>
57042
57043         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57044         malloc or realloc fails.
57045
57046 2007-09-09  Bruno Haible  <bruno@clisp.org>
57047
57048         * modules/getcwd (Depends-on): Add malloc-posix.
57049         * modules/glob (Depends-on): Likewise.
57050         * modules/putenv (Depends-on): Likewise.
57051         * modules/strdup (Depends-on): Likewise.
57052         * modules/getdelim (Depends-on): Add realloc-posix.
57053         * modules/read-file (Depends-on): Likewise.
57054
57055 2007-09-09  Bruno Haible  <bruno@clisp.org>
57056
57057         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57058         (gl_FUNC_MALLOC_POSIX): Require it.
57059         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57060         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57061         * modules/realloc (Files): Add m4/malloc.m4.
57062         * modules/calloc (Files): Likewise.
57063
57064 2007-09-09  Bruno Haible  <bruno@clisp.org>
57065
57066         * modules/malloc-posix: New file.
57067         * modules/malloc (Depends-on): Add malloc-posix.
57068         * lib/malloc.c: Include errno.h.
57069         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57070         and a POSIX-compatible malloc into a single function. Set ENOMEM
57071         when returning NULL.
57072         * m4/malloc.m4: New file.
57073         * doc/functions/malloc.texi: Mention the malloc-posix module.
57074         * lib/stdlib_.h (malloc): New declaration.
57075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57076         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57077         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57078         and HAVE_MALLOC_POSIX.
57079
57080 2007-09-09  Bruno Haible  <bruno@clisp.org>
57081
57082         * modules/realloc-posix: New file.
57083         * modules/realloc (Depends-on): Add realloc-posix.
57084         * lib/realloc.c: Include errno.h.
57085         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57086         and a POSIX-compatible realloc into a single function. Set ENOMEM
57087         when returning NULL.
57088         * m4/realloc.m4: New file.
57089         * doc/functions/realloc.texi: Mention the realloc-posix module.
57090         * lib/stdlib_.h (realloc): New declaration.
57091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57092         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57093         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57094         and HAVE_REALLOC_POSIX.
57095
57096 2007-09-09  Bruno Haible  <bruno@clisp.org>
57097
57098         * modules/calloc-posix: New file.
57099         * modules/calloc (Depends-on): Add calloc-posix.
57100         * lib/calloc.c: Include errno.h.
57101         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57102         and a POSIX-compatible calloc into a single function. Set ENOMEM
57103         when returning NULL.
57104         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57105         * doc/functions/calloc.texi: Mention the calloc-posix module.
57106         * lib/stdlib_.h (calloc): New declaration.
57107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57108         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57109         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57110         and HAVE_CALLOC_POSIX.
57111
57112 2007-09-09  Bruno Haible  <bruno@clisp.org>
57113
57114         Allow for modules to show an arbitrary notice.
57115         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57116         * gnulib-tool: New option --extract-notice.
57117         (func_usage): Document it.
57118         (sed_extract_prog): Update.
57119         (func_get_notice): New function.
57120         (func_modules_notice): New function.
57121         (func_import, func_create_testdir): Invoke it.
57122         Suggested by Jim Meyering.
57123
57124 2007-09-09  Bruno Haible  <bruno@clisp.org>
57125
57126         * gnulib-tool: New options --verbose, --quiet.
57127         (func_usage): Document them.
57128         (verbose): New variable.
57129         (func_execute_command): New function.
57130         (func_import): Don't show the module list and the file list if
57131         $verbose < 0.
57132         (func_create_testdir): Likewise. Use func_execute_command.
57133         (func_create_megatestdir): Use func_execute_command.
57134
57135 2007-09-08  Bruno Haible  <bruno@clisp.org>
57136
57137         * gnulib-tool (func_import): Prefer rsync over wget when available,
57138         for fetching the PO files.
57139
57140 2007-09-08  Bruno Haible  <bruno@clisp.org>
57141
57142         * posix-modules: New file. Portions copied from gnulib-tool.
57143         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57144
57145 2007-09-08  Jim Meyering  <jim@meyering.net>
57146
57147         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57148         * lib/fpending.h: Rename from __fpending.h.
57149         * lib/fpending.c: Rename from __fpending.c.
57150         Include "fpending.h", not "__fpending.h".
57151         * lib/__fpending.h, lib/__fpending.c: Remove files.
57152         * modules/fpending (Files): Reflect new file names.
57153         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57154
57155 2007-09-08  Bruno Haible  <bruno@clisp.org>
57156
57157         * m4/inttypes-h.m4: Remove stub file.
57158
57159 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57160
57161         * doc/headers/stdint.texi: Discuss #include_next issue.
57162
57163 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57164
57165         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57166
57167 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57168
57169         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57170         in variable name.
57171
57172 2007-09-03  Jim Meyering  <jim@meyering.net>
57173
57174         New module: git-version-gen.
57175         * modules/git-version-gen: New file.
57176
57177         Import changes from coreutils for bootstrap script.
57178
57179         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57180
57181         bootstrap: uses rsync to download the .po files
57182         * build-aux/bootstrap (po_download_command_format): New global.
57183         (download_po_files): Use rsync.
57184         (update_po_files): Don't remove .po files after download,
57185         so future rsync runs can take advantage of the copies.
57186
57187         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57188
57189         Solve the unnecessary-.po-file-regeneration problem once and for all.
57190         * build-aux/bootstrap (download_po_files): New function, renamed from
57191         get_translations.  Now, downloads, but doesn't update LINGUAS.
57192         (update_po_files): New function.
57193
57194         bootstrap: Ignore more.
57195         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57196         uniwidth to e.g., lib/.gitignore.
57197         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57198
57199         * build-aux/bootstrap: New setting: vc_ignore.
57200         (insert_sorted_if_absent): Create $file if absent.
57201         Adapt to new, possibly empty, list: $vc_ignore.
57202
57203         bootstrap: generate more ignorable names
57204         * build-aux/bootstrap (slurp): When generating ignorable names,
57205         also map .sin to .sed, .gperf to .c, and .y to .c.
57206
57207 2007-09-03  Jim Meyering  <jim@meyering.net>
57208
57209         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57210         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57211
57212 2007-09-02  Bruno Haible  <bruno@clisp.org>
57213
57214         Fix mis-recognition of 'mcs' on QNX 6.
57215         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57216         output contains the string "Mono".
57217         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57218         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57219
57220 2007-09-01  Bruno Haible  <bruno@clisp.org>
57221
57222         Fix collision between uniwidth/* and linebreak modules.
57223         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57224         u32_width): Remove declarations.
57225         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57226         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57227         streq3, streq2, streq1, streq0): Remove functions.
57228         (STREQ): Remove macro.
57229         (is_cjk_encoding): Remove function.
57230         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57231         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57232         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57233         * NEWS: Document the change.
57234
57235 2007-09-01  Bruno Haible  <bruno@clisp.org>
57236
57237         * lib/streq.h: Add double-inclusion guard.
57238
57239 2007-09-01  Karl Berry  <karl@gnu.org>
57240
57241         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57242
57243 2007-08-28  Jim Meyering  <jim@meyering.net>
57244
57245         Rename mreadlink_with_size to areadlink_with_size.
57246         * NEWS: Document the change.
57247         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57248         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57249         * lib/mreadlink.h: Rename this to...
57250         * lib/areadlink.h: ...this.
57251         * modules/mreadlink-with-size: Rename this to...
57252         * modules/areadlink-with-size: ...this.
57253         * lib/canonicalize.c: Reflect the renaming.
57254         * modules/canonicalize: Likewise.
57255
57256 2007-08-26  Bruno Haible  <bruno@clisp.org>
57257
57258         * gnulib-tool (func_import): When deciding which files to remove,
57259         consider also dangling symbolic links.
57260         Reported by Eric Blake.
57261
57262 2007-08-26  Bruno Haible  <bruno@clisp.org>
57263
57264         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57265
57266 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57267
57268         * lib/readline.c: Don't include getline.h, the prototype is now
57269         found in stdio.h.
57270
57271 2007-08-23  Jim Meyering  <jim@meyering.net>
57272
57273         Getdelim touchup.
57274         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57275         around the funlockfile call, since funlockfile never sets errno.
57276         Don't set errno upon failed realloc.
57277
57278 2007-08-22  Eric Blake  <ebb9@byu.net>
57279
57280         Getline touchups.
57281         * lib/getdelim.c (getdelim): Revert regression that required *n to
57282         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57283         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57284         getdelim, rather than whether implementation is missing.
57285         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57286         * lib/stdio_.h (getline): Also declare if replacement is
57287         required.
57288         * doc/functions/getdelim.texi: New file.
57289         * doc/functions/getline.texi: Likewise.
57290         * doc/gnulib.texi (Function Substitutes): Add new files.
57291         Reported by Bruno Haible.
57292
57293 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57294
57295         * users.txt: Add Guile.
57296
57297 2007-08-22  Eric Blake  <ebb9@byu.net>
57298
57299         * tests/test-getdelim.c (main): Use remove, not unlink.
57300         * tests/test-getline.c (main): Likewise.
57301
57302         Move getline and getdelim into stdio.h, per POSIX 200x.
57303         * modules/getline (Files): Remove getline.h.
57304         (Depends-on): Add stdio.
57305         (configure.ac): Add module indicator.
57306         * modules/getdelim (Files): Remove getdelim.h.
57307         (Depends-on): Add stdio.
57308         (configure.ac): Add module indicator.
57309         * modules/stdio (Makefile.am): Work with new indicators.
57310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57311         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57312         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57313         * lib/getdelim.h: Delete.
57314         * lib/getline.h: Delete.
57315         * lib/stdio_.h (getdelim, getline): Declare.
57316         * modules/getdelim-tests: New module.
57317         * modules/getline-tests: Likewise.
57318         * tests/test-getdelim.c: New file.
57319         * tests/test-getline.c: Likewise.
57320         * NEWS: Document the change.
57321         * lib/getline.c: Update choice of header.
57322         * lib/csharpcomp.c: Likewise.
57323         * lib/getpass.c: Likewise.
57324         * lib/javacomp.c: Likewise.
57325         * lib/javaversion.c: Likewise.
57326         * lib/yesno.c: Likewise.
57327         * lib/getdelim.c: Likewise.
57328         (getdelim): Set errno on failure, and avoid memory leak.
57329
57330 2007-08-19  Bruno Haible  <bruno@clisp.org>
57331
57332         * modules/closein (Depends-on): Add freadahead.
57333         * lib/closein.c: Include freadahead.h.
57334         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57335         is zero.
57336
57337 2007-08-19  Bruno Haible  <bruno@clisp.org>
57338
57339         * modules/freadahead-tests: New file.
57340         * tests/test-freadahead.sh: New file.
57341         * tests/test-freadahead.c: New file.
57342
57343         * modules/freadahead: New file.
57344         * lib/freadahead.h: New file.
57345         * lib/freadahead.c: New file.
57346         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57347         fbufmode, fpurge, freadable, fwritable.
57348
57349 2007-08-19  Eric Blake  <ebb9@byu.net>
57350
57351         Test yesno in combination with closein.
57352         * lib/yesno.c (yesno): Document use of stdin.
57353         * modules/yesno-tests (Files): New module.
57354         * tests/test-yesno.c (main): New file.
57355         * tests/test-yesno.sh: Likewise.
57356
57357 2007-08-19  Bruno Haible  <bruno@clisp.org>
57358
57359         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57360         * lib/fseeko.c (rpl_fseeko): Likewise.
57361         * lib/fseterr.c (fseterr): Likewise.
57362
57363 2007-08-19  Bruno Haible  <bruno@clisp.org>
57364
57365         * tests/test-lseek.c (main): Disable a test for BeOS.
57366         * doc/functions/lseek.texi: Document the BeOS bug.
57367
57368 2007-08-19  Bruno Haible  <bruno@clisp.org>
57369             Eric Blake  <ebb9@byu.net>
57370
57371         * lib/lseek.c: Include <sys/stat.h>.
57372         (rpl_lseek): Add workaround code also for Unix platforms.
57373         Needed for BeOS.
57374         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57375         * doc/functions/lseek.texi: Document BeOS definiency.
57376
57377 2007-08-18  Bruno Haible  <bruno@clisp.org>
57378
57379         * modules/fstrcmp-tests: New file.
57380         * tests/test-fstrcmp.c: New file.
57381
57382 2007-08-18  Bruno Haible  <bruno@clisp.org>
57383
57384         * modules/fstrcmp: New file, from GNU gettext with modifications.
57385         * lib/fstrcmp.h: New file, from GNU gettext.
57386         * lib/fstrcmp.c: New file, from GNU gettext.
57387         * MODULES.html.sh (String handling): Add fstrcmp.
57388
57389 2007-08-18  Bruno Haible  <bruno@clisp.org>
57390
57391         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57392         'bool'.
57393         (diag, compareseq): Remove const from the ctxt argument.
57394         (USE_HEURISTIC): Undefine at the end.
57395
57396 2007-08-18  Jim Meyering  <jim@meyering.net>
57397
57398         New file: lib/idcache.h
57399         * NEWS: Mention the addition.
57400         * modules/idcache (Files): Add lib/idcache.h
57401         * lib/idcache.c: Include "idcache.h".
57402         Don't include <sys/types.h>.
57403         Add a FIXME comment.
57404         Move file-scoped "static" declarations to the top.
57405         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57406
57407 2007-08-17  Bruno Haible  <bruno@clisp.org>
57408         and Paul Eggert  <eggert@cs.ucla.edu>
57409
57410         * MODULES.html.sh: Add diffseq.
57411         * modules/diffseq: New file.
57412         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57413         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57414
57415 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57416
57417         Import changes from coreutils for bootstrap script.
57418
57419         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57420
57421         * build-aux/bootstrap (slurp): Work even in environments where
57422         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57423         current code does not slurp files whose names start with ".", and
57424         this looks like it might be a troublesome area.
57425
57426         2007-07-11  Jim Meyering  <jim@meyering.net>
57427
57428         If there's a GPL vN copyright comment, require that N == 3.
57429
57430         2007-07-08  Jim Meyering  <jim@meyering.net>
57431
57432         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57433         * build-aux/bootstrap (mam_template): Move definition out of loop.
57434
57435         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57436
57437         * build-aux/bootstrap (symlink_to_dir): Rename function from
57438         symlink_to_gnulib.  Add a directory parameter.  Update all
57439         callers.
57440         (cp_mark_as_generated): Also check for -- and link to -- files in
57441         gl/.
57442
57443         2007-07-08  Jim Meyering  <jim@meyering.net>
57444
57445         Adapt to deeper hierarchy in gnulib.
57446         * build-aux/bootstrap (symlink_to_dir): If the destination
57447         directory doesn't exist, create it. This is required at least for
57448         "lib/uniwidth/cjk.h".
57449
57450         2007-05-15  Jim Meyering  <jim@meyering.net>
57451
57452         * build-aux/bootstrap: Now that generated Makefile.am files
57453         are no longer under version control, they must be created at
57454         bootstrap time.
57455
57456 2007-08-14  Ben Pfaff  <blp@gnu.org>
57457
57458         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57459
57460 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57461
57462         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57463         given the changes below.
57464         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57465         even on hosts that have padding bits beyond the supported 64.
57466
57467 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57468
57469         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57470         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57471         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57472         depends on it.
57473         (xstrtol_error): Remove.
57474         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57475         but with a different signature.
57476         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57477         * lib/xstrtol-error.c: Include exitfail.h.
57478         (xstrtol_fatal): New function, with a different signature from the
57479         old xstrtol_error, so that the caller need not worry about passing
57480         in an exit status, or about storage management of the option argument.
57481         (xstrtol_error): Now a static function.  Redo signature to
57482         implement xstrtol_fatal.  Output the correct number of hyphens in
57483         front of the option so that the caller need not worry about
57484         storage management.
57485         (N_): New macro.
57486         (_): Remove; not used now.
57487         * modules/xstrtol: Depend on getopt.
57488         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57489         of old STRTOL_FATAL_ERROR macro.
57490         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57491         of test program.
57492         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57493         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57494
57495 2007-08-08  Eric Blake  <ebb9@byu.net>
57496
57497         * lib/xstrtol-error.c: Add missing include.
57498
57499         Move xstrtol messages into gnulib domain, when --pobase is used.
57500         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57501         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57502         * modules/xstrtol (Files): Distribute new file.
57503         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57504         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57505         * tests/test-xstrtol.c: ...into new file.
57506         * tests/test-xstrtoul.c: Also test xstrtoul.
57507         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57508         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57509         * tests/test-xstrtol.sh: Drive the tests.
57510         * tests/test-xstrtoimax.sh: Likewise.
57511         * tests/test-xstrtoumax.sh: Likewise.
57512         * modules/xstrtol-tests: New module.
57513         * modules/xstrtoimax-tests: Likewise.
57514         * modules/xstrtoumax-tests: Likewise.
57515
57516 2007-08-08  Jim Meyering  <jim@meyering.net>
57517
57518         New function: mfile_name_concat.
57519         * lib/filenamecat.c (mfile_name_concat): New function, just like
57520         file_name_concat, but return NULL upon failure rather than exiting
57521         with a diagnostic.
57522         * lib/filenamecat.h: Declare it.
57523
57524 2007-08-07  Bruno Haible  <bruno@clisp.org>
57525
57526         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57527         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57528         warning from gcc.
57529         Reported by Eric Blake.
57530
57531 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57532
57533         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57534         * modules/crypto/arcfour (License): Likewise.
57535         * modules/crypto/des-tests (License): Likewise.
57536         * modules/crypto/gc-arctwo-tests (License): Likewise.
57537         * modules/crypto/gc-des-tests (License): Likewise.
57538         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57539         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57540         * modules/crypto/gc-md2-tests (License): Likewise.
57541         * modules/crypto/gc-md4-tests (License): Likewise.
57542         * modules/crypto/gc-md5-tests (License): Likewise.
57543         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57544         * modules/crypto/gc-rijndael-tests (License): Likewise.
57545         * modules/crypto/gc-sha1-tests (License): Likewise.
57546         * modules/crypto/gc-tests (License): Likewise.
57547         * modules/crypto/hmac-md5 (License): Likewise.
57548         * modules/crypto/hmac-sha1 (License): Likewise.
57549         * modules/crypto/md2-tests (License): Likewise.
57550         * modules/crypto/md4-tests (License): Likewise.
57551         * modules/crypto/md5 (License): Likewise.
57552         * modules/crypto/rijndael (License): Likewise.
57553         * modules/crypto/sha1 (License): Likewise.
57554         * modules/memxor (License): Likewise.
57555
57556 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57557         and Bruno Haible  <bruno@clisp.org>
57558
57559         * NEWS: Describe interface changes to human, xstrtol.
57560         * lib/human.h: Include <xstrtol.h>.
57561         (human_options): Return enum strtol_error, not int.  Remove
57562         bool arg; take int * instead.
57563         * lib/human.c: Don't include "gettext.h".
57564         (_): Remove; no longer used.
57565         Don't include <xstrtol.h>, since human.h does it.
57566         (human_options): Adjust to abovementioned interface changes.
57567         Do not report error to stderr; that's now the caller's
57568         responsibility.
57569         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57570         interface change.
57571         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57572         Str, Argument_type_string.  All uses changed.  Put " argument"
57573         in diagnostics to make them clearer.  Change wording of suffix
57574         message for clarity.
57575         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57576         Argument_type_string.
57577         (STRTOL_FATAL_WARN): Remove; no longer used.
57578         * modules/human (Depends-on): Remove gettext-h.
57579
57580 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57581
57582         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57583
57584 2007-07-31  Bruno Haible  <bruno@clisp.org>
57585
57586         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57587         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57588         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57589
57590 2007-07-31  Bruno Haible  <bruno@clisp.org>
57591
57592         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57593         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57594
57595 2007-07-30  Bruno Haible  <bruno@clisp.org>
57596
57597         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57598         * modules/c-ctype (License): Likewise.
57599         * modules/c-strcase (License): Likewise.
57600         * modules/check-version (License): Likewise.
57601         * modules/iconv (License): Likewise.
57602         * modules/iconv_open (License): Likewise.
57603         * modules/read-file (License): Likewise.
57604         * modules/striconv (License): Likewise.
57605         * modules/strverscmp (License): Likewise.
57606         * modules/vasprintf (License): Likewise.
57607         * modules/crypto/des (License): Likewise.
57608         * modules/crypto/gc (License): Likewise.
57609         * modules/crypto/gc-arcfour (License): Likewise.
57610         * modules/crypto/gc-arctwo (License): Likewise.
57611         * modules/crypto/gc-des (License): Likewise.
57612         * modules/crypto/gc-hmac-md5 (License): Likewise.
57613         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57614         * modules/crypto/gc-md2 (License): Likewise.
57615         * modules/crypto/gc-md4 (License): Likewise.
57616         * modules/crypto/gc-md5 (License): Likewise.
57617         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57618         * modules/crypto/gc-random (License): Likewise.
57619         * modules/crypto/gc-rijndael (License): Likewise.
57620         * modules/crypto/gc-sha1 (License): Likewise.
57621         * modules/crypto/md2 (License): Likewise.
57622         * modules/crypto/md4 (License): Likewise.
57623
57624 2007-07-30  Jim Meyering  <jim@meyering.net>
57625
57626         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57627         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57628         it has valid stat data.  This bug would cause du not to count the
57629         sizes of inaccessible directories.
57630         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57631         in <http://bugzilla.redhat.com/250077>.
57632
57633 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57634             Bruno Haible  <bruno@clisp.org>
57635
57636         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57637         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57638         #include_next, gives a diagnostic about it, but reports no error in
57639         the exit code.
57640         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57641
57642 2007-07-24  Ben Pfaff  <blp@gnu.org>
57643
57644         Improve name: "count-one-bits" is better than "popcount".
57645         * MODULES.html.sh: Update name.
57646         * lib/popcount.h: Renamed lib/count-one-bits.h.
57647         (popcount): Renamed count_one_bits.
57648         (popcountl): Renamed count_one_bits_l.
57649         (popcountll): Renamed count_one_bits_ll.
57650         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57651         * modules/popcount: Renamed module/count-one-bits.
57652         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57653         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57654
57655 2007-07-23  Ben Pfaff  <blp@gnu.org>
57656
57657         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57658         better code generation, and add U to large constants to avoid
57659         warnings, in non-GCC case.
57660         Suggested by Bruno Haible.
57661
57662 2007-07-23  Ben Pfaff  <blp@gnu.org>
57663
57664         * lib/popcount.h: Use verify_true instead of if...abort.
57665         * modules/popcount: Depend on verify module.
57666         Suggested by Jim Meyering.
57667
57668 2007-07-23  Bruno Haible  <bruno@clisp.org>
57669
57670         * gnulib-tool (func_import): Create a .cvsignore file also when the
57671         directory is not yet in CVS but the toplevel directory is. When
57672         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57673         Reported by Karl Berry.
57674
57675 2007-07-22  Ben Pfaff  <blp@gnu.org>
57676
57677         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57678         case.
57679         Suggested by Eric Blake.
57680
57681 2007-07-22  Ben Pfaff  <blp@gnu.org>
57682
57683         New module: popcount.
57684         * MODULES.html.sh: Add popcount.
57685         * modules/popcount: New file.
57686         * modules/popcount-tests: New file.
57687         * tests/test-popcount.c: New file.
57688         * lib/popcount.h: New file.
57689         * m4/popcount.m4: New file.
57690
57691 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57692
57693         * build-aux/announce-gen: Update to GPLv3.
57694
57695         * build-aux/config.guess: Update from config.
57696
57697 2007-07-21  Bruno Haible  <bruno@clisp.org>
57698
57699         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57700         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57701
57702 2007-07-20  Jim Meyering  <jim@meyering.net>
57703
57704         * check-module: Diagnose a self-dependency.
57705
57706 2007-07-19  Bruno Haible  <bruno@clisp.org>
57707
57708         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57709         empty.
57710         Reported by Eric Blake.
57711
57712 2007-07-18  Bruno Haible  <bruno@clisp.org>
57713
57714         * gnulib-tool: New options --po-base, --po-domain.
57715         (func_usage): Document them.
57716         (pobase, po_domain): New variables.
57717         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57718         DEFAULT_TEXT_DOMAIN.
57719         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57720         (func_import): Consider pobase and po_domain. Create a po/ directory.
57721         (func_create_testdir): Set pobase and po_domain to empty.
57722         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57723         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57724
57725 2007-07-18  Bruno Haible  <bruno@clisp.org>
57726
57727         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57728         EXTRA_DIST augmentation for files in build-aux/.
57729
57730 2007-07-16  Bruno Haible  <bruno@clisp.org>
57731
57732         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57733         * modules/getdelim (License): Likewise.
57734
57735 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57736
57737         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57738         * modules/d-type (License): Likewise.
57739         * modules/extensions (License): Likewise.
57740         * modules/fnmatch (License): Likewise.
57741         * modules/fseeko (License): Likewise.
57742         * modules/getaddrinfo (License): Likewise.
57743         * modules/getline (License): Likewise.
57744         * modules/getlogin_r (License): Likewise.
57745         * modules/getpass (License): Likewise.
57746         * modules/gettimeofday (License): Likewise.
57747         * modules/glob (License): Likewise.
57748         * modules/inet_ntop (License): Likewise.
57749         * modules/malloc (License): Likewise.
57750         * modules/malloca (License): Likewise.
57751         * modules/memmem (License): Likewise.
57752         * modules/mempcpy (License): Likewise.
57753         * modules/memset (License): Likewise.
57754         * modules/minmax (License): Likewise.
57755         * modules/mktime (License): Likewise.
57756         * modules/netinet_in (License): Likewise.
57757         * modules/pathmax (License): Likewise.
57758         * modules/poll (License): Likewise.
57759         * modules/regex (License): Likewise.
57760         * modules/snprintf (License): Likewise.
57761         * modules/stdbool (License): Likewise.
57762         * modules/stdint (License): Likewise.
57763         * modules/stdio (License): Likewise.
57764         * modules/strcase (License): Likewise.
57765         * modules/strcasestr (License): Likewise.
57766         * modules/strdup (License): Likewise.
57767         * modules/string (License): Likewise.
57768         * modules/strndup (License): Likewise.
57769         * modules/strnlen (License): Likewise.
57770         * modules/strpbrk (License): Likewise.
57771         * modules/strptime (License): Likewise.
57772         * modules/strsep (License): Likewise.
57773         * modules/sys_select (License): Likewise.
57774         * modules/sys_socket (License): Likewise.
57775         * modules/sys_stat (License): Likewise.
57776         * modules/sys_time (License): Likewise.
57777         * modules/time (License): Likewise.
57778         * modules/time_r (License): Likewise.
57779         * modules/timegm (License): Likewise.
57780         * modules/unistd (License): Likewise.
57781         * modules/vsnprintf (License): Likewise.
57782         * modules/wctype (License): Likewise.
57783
57784 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57785
57786         * modules/argz (License): LGPLv2+.
57787
57788 2007-07-15  Karl Berry  <karl@gnu.org>
57789
57790         * doc/gnulib.texi: revise node structure per new fdl.texi.
57791
57792 2007-07-14  Bruno Haible  <bruno@clisp.org>
57793
57794         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57795         the output file.
57796         * lib/uniname/uninames.h: Regenerated.
57797
57798 2007-07-14  Karl Berry  <karl@gnu.org>
57799
57800         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57801         omitting sectioning and index commands.
57802
57803 2007-07-13  Bruno Haible  <bruno@clisp.org>
57804
57805         New gnulib-tool option --more-symlinks.
57806         * gnulib-tool (func_usage): Document --more-symlinks.
57807         (do_copyrights): New variable.
57808         Recognize option --more-symlinks.
57809         (func_import): Don't add a copyright notice transform to
57810         sed_transform_lib_file if do_copyrights is empty.
57811
57812 2007-07-13  Bruno Haible  <bruno@clisp.org>
57813
57814         * lib/vasnprintf.c (decimal_point_char): Define also if
57815         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57816         && !NEED_PRINTF_DIRECTIVE_A.
57817         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57818         Gary V. Vaughan <gary@gnu.org>.
57819
57820 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57821
57822         * lib/inttypes_.h: Undo previous change, since it was fixed
57823         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57824
57825 2007-07-13  Bruno Haible  <bruno@clisp.org>
57826
57827         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57828         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57829
57830 2007-07-13  Jim Meyering  <jim@meyering.net>
57831
57832         df: Don't fail for Tru64's "file-on-file mount".
57833         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57834         so we fall through and use statfs instead.  Details here:
57835         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57836         Reported by Albert Chin.
57837
57838 2007-07-13  Bruno Haible  <bruno@clisp.org>
57839
57840         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57841         * modules/configmake (License): Likewise.
57842         * modules/gettext (License): Likewise.
57843         * modules/gettext-h (License): Likewise.
57844         * modules/include_next (License): Likewise.
57845         * modules/link-warning (License): Likewise.
57846         * modules/localcharset (License): Likewise.
57847         * modules/localename (License): Likewise.
57848         * modules/lock (License): Likewise.
57849         * modules/relocatable-lib-lgpl (License): Likewise.
57850         * modules/size_max (License): Likewise.
57851         * modules/vasnprintf (License): Likewise.
57852         * modules/wchar (License): Likewise.
57853         * modules/xsize (License): Likewise.
57854
57855 2007-07-13  Bruno Haible  <bruno@clisp.org>
57856
57857         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57858         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57859
57860 2007-07-12  Bruno Haible  <bruno@clisp.org>
57861
57862         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57863         in the modules files.
57864
57865 2007-07-11  Karl Berry  <karl@gnu.org>
57866
57867         * MODULES.html.sh (func_module): use
57868          sed -e '\|^'"${includefile}"'$|d'
57869          instead of /.../d, to avoid errors on $includefile's containing /.
57870
57871 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57872
57873         * gnulib-tool (func_import): Avoid duplication of --avoid
57874         statements
57875         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57876         names to `_' in variable names.
57877
57878 2007-07-10  Eric Blake  <ebb9@byu.net>
57879
57880         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57881         * NEWS: Document this change.
57882
57883 2007-07-08  Bruno Haible  <bruno@clisp.org>
57884
57885         Update to Unicode 5.0.
57886         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57887         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57888         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57889         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57890         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57891         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57892         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57893         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57894         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57895         U+10A3F, U+1D242..U+1D244.
57896         (nonspacing_table_ind): Update.
57897         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57898         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57899
57900 2007-07-08  Bruno Haible  <bruno@clisp.org>
57901
57902         Update to Unicode 5.0.
57903         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57904         code transform. Extend the name index field of unicode_name_to_code and
57905         unicode_code_to_name from 16 to 24 bits.
57906         * lib/uniname/uniname.c (unicode_character_name,
57907         unicode_name_character): Add the range 0x12xxx to the code transform.
57908         * lib/uniname/uninames.h: Regenerated.
57909         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57910
57911 2007-07-07  Bruno Haible  <bruno@clisp.org>
57912
57913         * modules/wcwidth-tests: New file.
57914         * tests/test-wcwidth.c: New file.
57915
57916         Work around MacOS X wcwidth() bug.
57917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57918         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57919         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57920         original wcwidth in non-UTF-8 locales.
57921         * modules/wcwidth (Depends-on): Add localcharset, streq,
57922         uniwidth/width.
57923         * doc/functions/wcwidth.texi: Update.
57924
57925 2007-07-07  Bruno Haible  <bruno@clisp.org>
57926
57927         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57928         (wcwidth): New declaration.
57929         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57930         macros.
57931         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57932         here. Prepare for creating <wchar.h> unconditionally.
57933         * modules/wchar (Depends-on): Add link-warning.
57934         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57935         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57936         * lib/wcwidth.h: Remove file.
57937         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57938         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57939         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57940         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57941         (Include): Replace wcwidth.h with <wchar.h>.
57942         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57943         * lib/mbchar.h: Don't include wcwidth.h.
57944         * lib/mbswidth.c: Likewise.
57945         * NEWS: Mention the change.
57946
57947 2007-07-07  Bruno Haible  <bruno@clisp.org>
57948
57949         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57950         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57951         definition with an external declaration.
57952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57953         defined as a function. Remove AC_C_INLINE requirement.
57954         * modules/wcwidth (Files): Add lib/wcwidth.c.
57955         (Makefile.am): Remove redundant statement.
57956
57957 2007-07-07  Bruno Haible  <bruno@clisp.org>
57958
57959         * MODULES.html.sh (Unicode string functions): Add the new modules.
57960
57961         * tests/uniwidth/test-u32-strwidth.c: New file.
57962         * modules/uniwidth/u32-strwidth-tests: New file.
57963
57964         * lib/uniwidth/u32-strwidth.c: New file.
57965         * modules/uniwidth/u32-strwidth: New file.
57966
57967         * tests/uniwidth/test-u16-strwidth.c: New file.
57968         * modules/uniwidth/u16-strwidth-tests: New file.
57969
57970         * lib/uniwidth/u16-strwidth.c: New file.
57971         * modules/uniwidth/u16-strwidth: New file.
57972
57973         * tests/uniwidth/test-u8-strwidth.c: New file.
57974         * modules/uniwidth/u8-strwidth-tests: New file.
57975
57976         * lib/uniwidth/u8-strwidth.c: New file.
57977         * modules/uniwidth/u8-strwidth: New file.
57978
57979         * tests/uniwidth/test-u32-width.c: New file.
57980         * modules/uniwidth/u32-width-tests: New file.
57981
57982         * lib/uniwidth/u32-width.c: New file.
57983         * modules/uniwidth/u32-width: New file.
57984
57985         * tests/uniwidth/test-u16-width.c: New file.
57986         * modules/uniwidth/u16-width-tests: New file.
57987
57988         * lib/uniwidth/u16-width.c: New file.
57989         * modules/uniwidth/u16-width: New file.
57990
57991         * tests/uniwidth/test-u8-width.c: New file.
57992         * modules/uniwidth/u8-width-tests: New file.
57993
57994         * lib/uniwidth/u8-width.c: New file.
57995         * modules/uniwidth/u8-width: New file.
57996
57997         * tests/uniwidth/test-uc_width.c: New file.
57998         * modules/uniwidth/width-tests: New file.
57999
58000         * lib/uniwidth/width.c: New file, from GNU libiconv.
58001         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58002         * modules/uniwidth/width: New file.
58003
58004         * lib/uniwidth.h: New file, from GNU libiconv.
58005         * modules/uniwidth/base: New file.
58006
58007 2007-07-07  Bruno Haible  <bruno@clisp.org>
58008
58009         * lib/uniname.h: New file, from GNU gettext.
58010         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58011         * lib/uniname/uninames.h: New file, from GNU gettext.
58012         * lib/uniname/uniname.c: New file, from GNU gettext.
58013         * tests/uniname/test-uninames.sh: New file.
58014         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58015         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58016         * modules/uniname/base: New file.
58017         * modules/uniname/uniname: New file.
58018         * modules/uniname/uniname-tests: New file.
58019         * MODULES.html.sh (Unicode string functions): Add the new modules.
58020
58021 2007-07-06  Bruno Haible  <bruno@clisp.org>
58022
58023         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58024
58025 2007-07-06  Bruno Haible  <bruno@clisp.org>
58026
58027         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58028         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58029         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58030         include <sys/time.h>.
58031         Reported by Eric Blake.
58032
58033 2007-07-06  Eric Blake  <ebb9@byu.net>
58034
58035         Fix testing canonicalize on cygwin.
58036         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58037         Revert patch from 2007-06-19.
58038         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58039         canonicalize module is also in use.
58040         * tests/test-canonicalize.c: New file.
58041         * tests/test-canonicalize.sh: Likewise.
58042         * modules/canonicalize-tests: Likewise.
58043
58044 2007-07-06  Jim Meyering  <jim@meyering.net>
58045
58046         * lib/getugroups.c (getugroups): Detect getgrent failure.
58047         Adjust comment to reflect reality: this function may return -1.
58048
58049 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58050
58051         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58052         the new TP address.
58053         (usage): Fix typo
58054         (gnulib_mk): New variable.
58055
58056 2007-07-05  Jim Meyering  <jim@meyering.net>
58057
58058         Don't let endgrent clobber errno, no matter how improbable.
58059         * lib/getugroups.c (getugroups): Save and restore errno around
58060         endgrent call.
58061
58062         Close the group DB even when failing with 2^31 or more members.
58063         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58064
58065 2007-07-04  Jim Meyering  <jim@meyering.net>
58066
58067         * lib/getugroups.h: New file.
58068         * lib/getugroups.c: Include "getugroups.h".
58069         Remove uses of "register" keyword.
58070         Move local variable, "cp", down into scope where used.
58071         Give "username" parameter the "const" attribute.
58072         * modules/getugroups (Files): Add lib/getugroups.h
58073
58074 2007-07-04  Karl Berry  <karl@gnu.org>
58075
58076         * MODULES.html.sh (func_all_modules): Complete rename of
58077         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58078
58079 2007-07-02  Bruno Haible  <bruno@clisp.org>
58080
58081         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58082         mode, when inttypes.h comes from gnulib.
58083         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58084
58085 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58086
58087         * NEWS: Mention lgpl module name change.
58088
58089         * modules/lgpl-2.1: Renamed from lgpl.
58090
58091         * NEWS: Mention gpl module name change.
58092
58093         * modules/gpl-3.0: New file, based on gpl-2.0.
58094
58095         * modules/gpl-2.0: Renamed from gpl.
58096
58097         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58098         doc/gpl-2.0.texi.
58099
58100 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58101
58102         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58103         #define __STDC_LIMIT_MACROS temporarily while including
58104         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58105         Problem reported by Joel E. Denny in
58106         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58107
58108 2007-07-01  Bruno Haible  <bruno@clisp.org>
58109
58110         * lib/unistdio.h: New file.
58111         * lib/unistdio/u-asnprintf.h: New file.
58112         * lib/unistdio/u-asprintf.h: New file.
58113         * lib/unistdio/u-printf-args.c: New file.
58114         * lib/unistdio/u-printf-args.h: New file.
58115         * lib/unistdio/u-printf-parse.h: New file.
58116         * lib/unistdio/u-snprintf.h: New file.
58117         * lib/unistdio/u-sprintf.h: New file.
58118         * lib/unistdio/u-vasprintf.h: New file.
58119         * lib/unistdio/u-vsnprintf.h: New file.
58120         * lib/unistdio/u-vsprintf.h: New file.
58121         * lib/unistdio/ulc-asnprintf.c: New file.
58122         * lib/unistdio/ulc-asprintf.c: New file.
58123         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58124         * lib/unistdio/ulc-printf-parse.c: New file.
58125         * lib/unistdio/ulc-snprintf.c: New file.
58126         * lib/unistdio/ulc-sprintf.c: New file.
58127         * lib/unistdio/ulc-vasnprintf.c: New file.
58128         * lib/unistdio/ulc-vasprintf.c: New file.
58129         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58130         * lib/unistdio/ulc-vsnprintf.c: New file.
58131         * lib/unistdio/ulc-vsprintf.c: New file.
58132         * lib/unistdio/u8-asnprintf.c: New file.
58133         * lib/unistdio/u8-asprintf.c: New file.
58134         * lib/unistdio/u8-printf-parse.c: New file.
58135         * lib/unistdio/u8-snprintf.c: New file.
58136         * lib/unistdio/u8-sprintf.c: New file.
58137         * lib/unistdio/u8-vasnprintf.c: New file.
58138         * lib/unistdio/u8-vasprintf.c: New file.
58139         * lib/unistdio/u8-vsnprintf.c: New file.
58140         * lib/unistdio/u8-vsprintf.c: New file.
58141         * lib/unistdio/u8-u8-asnprintf.c: New file.
58142         * lib/unistdio/u8-u8-asprintf.c: New file.
58143         * lib/unistdio/u8-u8-snprintf.c: New file.
58144         * lib/unistdio/u8-u8-sprintf.c: New file.
58145         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58146         * lib/unistdio/u8-u8-vasprintf.c: New file.
58147         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58148         * lib/unistdio/u8-u8-vsprintf.c: New file.
58149         * lib/unistdio/u16-asnprintf.c: New file.
58150         * lib/unistdio/u16-asprintf.c: New file.
58151         * lib/unistdio/u16-printf-parse.c: New file.
58152         * lib/unistdio/u16-snprintf.c: New file.
58153         * lib/unistdio/u16-sprintf.c: New file.
58154         * lib/unistdio/u16-vasnprintf.c: New file.
58155         * lib/unistdio/u16-vasprintf.c: New file.
58156         * lib/unistdio/u16-vsnprintf.c: New file.
58157         * lib/unistdio/u16-vsprintf.c: New file.
58158         * lib/unistdio/u16-u16-asnprintf.c: New file.
58159         * lib/unistdio/u16-u16-asprintf.c: New file.
58160         * lib/unistdio/u16-u16-snprintf.c: New file.
58161         * lib/unistdio/u16-u16-sprintf.c: New file.
58162         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58163         * lib/unistdio/u16-u16-vasprintf.c: New file.
58164         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58165         * lib/unistdio/u16-u16-vsprintf.c: New file.
58166         * lib/unistdio/u32-asnprintf.c: New file.
58167         * lib/unistdio/u32-asprintf.c: New file.
58168         * lib/unistdio/u32-printf-parse.c: New file.
58169         * lib/unistdio/u32-snprintf.c: New file.
58170         * lib/unistdio/u32-sprintf.c: New file.
58171         * lib/unistdio/u32-vasnprintf.c: New file.
58172         * lib/unistdio/u32-vasprintf.c: New file.
58173         * lib/unistdio/u32-vsnprintf.c: New file.
58174         * lib/unistdio/u32-vsprintf.c: New file.
58175         * lib/unistdio/u32-u32-asnprintf.c: New file.
58176         * lib/unistdio/u32-u32-asprintf.c: New file.
58177         * lib/unistdio/u32-u32-snprintf.c: New file.
58178         * lib/unistdio/u32-u32-sprintf.c: New file.
58179         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58180         * lib/unistdio/u32-u32-vasprintf.c: New file.
58181         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58182         * lib/unistdio/u32-u32-vsprintf.c: New file.
58183         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58184         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58185         * tests/unistdio/test-ulc-printf1.h: New file.
58186         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58187         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58188         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58189         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58190         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58191         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58192         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58193         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58194         * tests/unistdio/test-u8-asnprintf1.c: New file.
58195         * tests/unistdio/test-u8-asnprintf1.h: New file.
58196         * tests/unistdio/test-u8-printf1.h: New file.
58197         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58198         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58199         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58200         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58201         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58202         * tests/unistdio/test-u8-vasprintf1.c: New file.
58203         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58204         * tests/unistdio/test-u8-vsprintf1.c: New file.
58205         * tests/unistdio/test-u16-asnprintf1.c: New file.
58206         * tests/unistdio/test-u16-asnprintf1.h: New file.
58207         * tests/unistdio/test-u16-printf1.h: New file.
58208         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58209         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58210         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58211         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58212         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58213         * tests/unistdio/test-u16-vasprintf1.c: New file.
58214         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58215         * tests/unistdio/test-u16-vsprintf1.c: New file.
58216         * tests/unistdio/test-u32-asnprintf1.c: New file.
58217         * tests/unistdio/test-u32-asnprintf1.h: New file.
58218         * tests/unistdio/test-u32-printf1.h: New file.
58219         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58220         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58221         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58222         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58223         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58224         * tests/unistdio/test-u32-vasprintf1.c: New file.
58225         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58226         * tests/unistdio/test-u32-vsprintf1.c: New file.
58227         * modules/unistdio/base: New file.
58228         * modules/unistdio/u-printf-args: New file.
58229         * modules/unistdio/ulc-asnprintf: New file.
58230         * modules/unistdio/ulc-asprintf: New file.
58231         * modules/unistdio/ulc-fprintf: New file.
58232         * modules/unistdio/ulc-printf-parse: New file.
58233         * modules/unistdio/ulc-snprintf: New file.
58234         * modules/unistdio/ulc-sprintf: New file.
58235         * modules/unistdio/ulc-vasnprintf: New file.
58236         * modules/unistdio/ulc-vasprintf: New file.
58237         * modules/unistdio/ulc-vfprintf: New file.
58238         * modules/unistdio/ulc-vsnprintf: New file.
58239         * modules/unistdio/ulc-vsprintf: New file.
58240         * modules/unistdio/u8-asnprintf: New file.
58241         * modules/unistdio/u8-asprintf: New file.
58242         * modules/unistdio/u8-printf-parse: New file.
58243         * modules/unistdio/u8-snprintf: New file.
58244         * modules/unistdio/u8-sprintf: New file.
58245         * modules/unistdio/u8-vasnprintf: New file.
58246         * modules/unistdio/u8-vasprintf: New file.
58247         * modules/unistdio/u8-vsnprintf: New file.
58248         * modules/unistdio/u8-vsprintf: New file.
58249         * modules/unistdio/u8-u8-asnprintf: New file.
58250         * modules/unistdio/u8-u8-asprintf: New file.
58251         * modules/unistdio/u8-u8-snprintf: New file.
58252         * modules/unistdio/u8-u8-sprintf: New file.
58253         * modules/unistdio/u8-u8-vasnprintf: New file.
58254         * modules/unistdio/u8-u8-vasprintf: New file.
58255         * modules/unistdio/u8-u8-vsnprintf: New file.
58256         * modules/unistdio/u8-u8-vsprintf: New file.
58257         * modules/unistdio/u16-asnprintf: New file.
58258         * modules/unistdio/u16-asprintf: New file.
58259         * modules/unistdio/u16-printf-parse: New file.
58260         * modules/unistdio/u16-snprintf: New file.
58261         * modules/unistdio/u16-sprintf: New file.
58262         * modules/unistdio/u16-vasnprintf: New file.
58263         * modules/unistdio/u16-vasprintf: New file.
58264         * modules/unistdio/u16-vsnprintf: New file.
58265         * modules/unistdio/u16-vsprintf: New file.
58266         * modules/unistdio/u16-u16-asnprintf: New file.
58267         * modules/unistdio/u16-u16-asprintf: New file.
58268         * modules/unistdio/u16-u16-snprintf: New file.
58269         * modules/unistdio/u16-u16-sprintf: New file.
58270         * modules/unistdio/u16-u16-vasnprintf: New file.
58271         * modules/unistdio/u16-u16-vasprintf: New file.
58272         * modules/unistdio/u16-u16-vsnprintf: New file.
58273         * modules/unistdio/u16-u16-vsprintf: New file.
58274         * modules/unistdio/u32-asnprintf: New file.
58275         * modules/unistdio/u32-asprintf: New file.
58276         * modules/unistdio/u32-printf-parse: New file.
58277         * modules/unistdio/u32-snprintf: New file.
58278         * modules/unistdio/u32-sprintf: New file.
58279         * modules/unistdio/u32-vasnprintf: New file.
58280         * modules/unistdio/u32-vasprintf: New file.
58281         * modules/unistdio/u32-vsnprintf: New file.
58282         * modules/unistdio/u32-vsprintf: New file.
58283         * modules/unistdio/u32-u32-asnprintf: New file.
58284         * modules/unistdio/u32-u32-asprintf: New file.
58285         * modules/unistdio/u32-u32-snprintf: New file.
58286         * modules/unistdio/u32-u32-sprintf: New file.
58287         * modules/unistdio/u32-u32-vasnprintf: New file.
58288         * modules/unistdio/u32-u32-vasprintf: New file.
58289         * modules/unistdio/u32-u32-vsnprintf: New file.
58290         * modules/unistdio/u32-u32-vsprintf: New file.
58291         * modules/unistdio/ulc-asnprintf-tests: New file.
58292         * modules/unistdio/ulc-vasnprintf-tests: New file.
58293         * modules/unistdio/ulc-vasprintf-tests: New file.
58294         * modules/unistdio/ulc-vsnprintf-tests: New file.
58295         * modules/unistdio/ulc-vsprintf-tests: New file.
58296         * modules/unistdio/u8-asnprintf-tests: New file.
58297         * modules/unistdio/u8-vasnprintf-tests: New file.
58298         * modules/unistdio/u8-vasprintf-tests: New file.
58299         * modules/unistdio/u8-vsnprintf-tests: New file.
58300         * modules/unistdio/u8-vsprintf-tests: New file.
58301         * modules/unistdio/u16-asnprintf-tests: New file.
58302         * modules/unistdio/u16-vasnprintf-tests: New file.
58303         * modules/unistdio/u16-vasprintf-tests: New file.
58304         * modules/unistdio/u16-vsnprintf-tests: New file.
58305         * modules/unistdio/u16-vsprintf-tests: New file.
58306         * modules/unistdio/u32-asnprintf-tests: New file.
58307         * modules/unistdio/u32-vasnprintf-tests: New file.
58308         * modules/unistdio/u32-vasprintf-tests: New file.
58309         * modules/unistdio/u32-vsnprintf-tests: New file.
58310         * modules/unistdio/u32-vsprintf-tests: New file.
58311         * MODULES.html.sh (Unicode string functions): Add the new modules.
58312
58313 2007-07-01  Bruno Haible  <bruno@clisp.org>
58314
58315         * lib/sprintf.c (sprintf): Limit the available length estimation,
58316         to avoid address wraparound.
58317         * lib/vsprintf.c (vsprintf): Likewise.
58318         * modules/sprintf-posix (Dependencies): Add stdint.
58319         * modules/vsprintf-posix (Dependencies): Likewise.
58320
58321 2007-07-01  Bruno Haible  <bruno@clisp.org>
58322
58323         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58324         Windows PATH as well. Conservative double-quoting. Comments.
58325
58326 2007-07-01  Bruno Haible  <bruno@clisp.org>
58327             Eric Blake  <ebb9@byu.net>
58328             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58329
58330         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58331         empty components in $PATH, denoting '.'.
58332
58333 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58334
58335         * gnulib-tool: Fix indentation.
58336         (func_create_megatestdir): Likewise.
58337         Report by Bruno Haible.
58338
58339 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58340
58341         Sync from Automake.
58342         * build-aux/gnupload: Fix shell portability issues with for loops.
58343         Report by Karl Berry.
58344
58345 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58346
58347         * build-aux/maint.mk (POURL): Use translationproject.org.
58348
58349 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58350             Bruno Haible  <bruno@clisp.org>
58351
58352         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58353         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58354         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58355         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58356         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58357
58358 2007-06-27  Bruno Haible  <bruno@clisp.org>
58359
58360         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58361         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58362
58363 2007-06-26  Karl Berry  <karl@gnu.org>
58364
58365         * MODULES.html.sh: remove xreadlink-with-size.
58366
58367 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58368
58369         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58370         method that I hope also handles the double-include problem noted
58371         by Bruno Haible in
58372         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58373
58374 2007-06-23  Bruno Haible  <bruno@clisp.org>
58375
58376         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58377         Don't let the 'mostlyclean' target fail if the last subdirectory could
58378         not be removed.
58379         Reported by Karl Berry.
58380
58381 2007-06-23  Bruno Haible  <bruno@clisp.org>
58382
58383         * gnulib-tool (echo): Add a speedier workaround for ksh.
58384         * tests/test-echo.sh: Likewise.
58385
58386 2007-06-23  Bruno Haible  <bruno@clisp.org>
58387
58388         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58389         * tests/test-echo.sh: Likewise.
58390
58391 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58392
58393         * gnulib-tool (IFS): Initialize early, so we don't set it to
58394         empty later.
58395         (self_abspathname): Rewrite algorithm to set it, reindent.
58396         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58397         (func_create_megatestdir): Merge some sed scripts.
58398
58399 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58400
58401         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58402         exposed by Sun Studio 11 cc on Solaris 8.
58403
58404 2007-06-22  Bruno Haible  <bruno@clisp.org>
58405
58406         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58407         backslashes.
58408         * tests/test-echo.sh: New file.
58409
58410 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58411
58412         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58413         simplify `sed_replace_build_aux' scripts, they are portable but
58414         echoing them with `echo' is not.
58415         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58416
58417 2007-06-21  Karl Berry  <karl@gnu.org>
58418
58419         * config/srclist.txt: guess we can't handle the licenses via
58420         srclist at the moment.
58421
58422 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58423
58424         * MODULES.html.sh: Add include_next.
58425         * modules/include_next: New file.
58426
58427 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58428
58429         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58430         INCLUDE_NEXT.
58431         (gl_CHECK_NEXT_HEADERS): New macro.
58432         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58433         the obsolescent gl_ABSOLUTE_HEADER.
58434         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58435         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58436         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58437         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58438         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58439         * m4/math_h.m4 (gl_MATH_H): Likewise.
58440         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58441         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58442         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58443         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58444         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58445         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58446         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58447         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58448         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58449         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58450         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58451         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58452         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58453         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58454         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58455         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58456         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58457         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58458         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58459         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58460         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58461         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58462         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58463         * lib/float_.h: Likewise.
58464         * lib/inttypes_.h: Likewise.
58465         * lib/math_.h: Likewise.
58466         * lib/search_.h: Likewise.
58467         * lib/signal_.h: Likewise.
58468         * lib/stdint_.h: Likewise.
58469         * lib/stdio_.h: Likewise.
58470         * lib/stdlib_.h: Likewise.
58471         * lib/string_.h: Likewise.
58472         * lib/sys_stat_.h: Likewise.
58473         * lib/sys_time_.h: Likewise.
58474         * lib/time_.h: Likewise.
58475         * lib/unistd_.h: Likewise.
58476         * lib/wchar_.h: Likewise.
58477         * lib/wctype_.h: Likewise.
58478         * lib/dirent_.h: Likewise.
58479         * lib/iconv_.h: Likewise.
58480         * lib/locale_.h: Likewise.
58481         * lib/netinet_in_.h: Likewise.
58482         * lib/sys_select_.h: Likewise.
58483         * lib/sys_socket_.h: Likewise.
58484         * lib/sysexits_.h: Likewise.
58485         * modules/fcntl (Depends-on): Depend on include_next, not
58486         absolute_header.
58487         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58488         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58489         * modules/fchdir: Likewise.
58490         * modules/float: Likewise.
58491         * modules/iconv_open: Likewise.
58492         * modules/inttypes: Likewise.
58493         * modules/locale: Likewise.
58494         * modules/math: Likewise.
58495         * modules/netinet_in: Likewise.
58496         * modules/search: Likewise.
58497         * modules/signal: Likewise.
58498         * modules/stdint: Likewise.
58499         * modules/stdio: Likewise.
58500         * modules/stdlib: Likewise.
58501         * modules/string: Likewise.
58502         * modules/sys_select: Likewise.
58503         * modules/sys_socket: Likewise.
58504         * modules/sys_stat: Likewise.
58505         * modules/sys_time: Likewise.
58506         * modules/sysexits: Likewise.
58507         * modules/time: Likewise.
58508         * modules/unistd: Likewise.
58509         * modules/wchar: Likewise.
58510         * modules/wctype: Likewise.
58511         * modules/sys_stat: Change maintainer to "all".
58512         * modules/unistd: Likewise.
58513
58514 2007-06-20  Karl Berry  <karl@gnu.org>
58515
58516         * config/srclist.txt: track www changes in license files.
58517
58518 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58519
58520         * build-aux/bootstrap: Remove stray dot.
58521         Make sure build_aux settings are honored when linking
58522         gnulib_extra_files.
58523
58524 2007-06-19  Eric Blake  <ebb9@byu.net>
58525
58526         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58527         Allow compilation on cygwin.
58528
58529 2007-06-19  Jim Meyering  <jim@meyering.net>
58530
58531         xreadlink-with-size: Remove module.  No longer used.
58532         Ex-callers now use xreadlink or mreadlink-with-size.
58533         * modules/xreadlink-with-size: Remove module.
58534         * lib/xreadlink-with-size.c: Remove file.
58535         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58536         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58537         just before the function definition *is* accurate.
58538
58539         Eliminate one way canonicalize_filename_mode could exit.
58540         * lib/canonicalize.c (canonicalize_filename_mode):
58541         Use mreadlink_with_size, not xreadlink_with_size.
58542
58543 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58544
58545         Detect porting problems to FreeBSD/arm, which has time_t wider than
58546         long int.  Original problem reported for GNU diff by Xin Li in
58547         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58548         * modules/getdate (Depends-on): Add intprops, verify.
58549         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58550         is an integer type no wider than long int.
58551
58552 2007-06-18  Jim Meyering  <jim@meyering.net>
58553
58554         New module: mreadlink-with-size.
58555         * MODULES.html.sh: Add mreadlink-with-size.
58556         * modules/mreadlink-with-size: New module
58557         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58558         not xreadlink-with-size.
58559         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58560
58561 2007-06-16  Bruno Haible  <bruno@clisp.org>
58562
58563         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58564         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58565         Reported by Gary V. Vaughan <gary@gnu.org>.
58566
58567 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58568
58569         Revamp lchown so that it lives in unistd.h where it belongs.
58570         * lib/lchown.h: Remove.
58571         * lib/dirchownmod.c: Don't include lib/lchown.h.
58572         * lib/fchownat.c: Likewise.
58573         * lib/openat.c: Likewise.
58574         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58575         does not follow symlinks.
58576         (EOPNOTSUPP): Define if not defined.
58577         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58578         is defined to 0.
58579         (lchown): New decl.
58580         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58581         Do not check for lchown decl.
58582         Set REPLACE_LCHOWN.
58583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58584         REPLACE_LCHOWN.
58585         * modules/chown: Make it clear it follows symlinks.
58586         * modules/lchown: Make it clear it doesn't follow symlinks.
58587         (Files): Remove lib/lchown.h
58588         (Depends-on): Add unistd.
58589         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58590         (Include): Include <unistd.h>, not "lchown.h".
58591         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58592         REPLACE_LCHOWN.
58593
58594 2007-06-15  Jim Meyering  <jim@meyering.net>
58595
58596         Change license (GPL to LGPL) of fsusage and dependents.
58597         * modules/fsusage (License): Change to LGPL.
58598         * modules/full-read (License): Likewise.
58599         * modules/full-write (License): Likewise.
58600         * modules/safe-read (License): Likewise.
58601         * modules/safe-write (License): Likewise.
58602
58603 2007-06-14  Ben Pfaff  <blp@gnu.org>
58604
58605         Missing part of allocsa -> malloca transition.
58606         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58607         gl_MALLOCA.
58608
58609 2007-06-12  Bruno Haible  <bruno@clisp.org>
58610
58611         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58612         to ia64, x86_64, i386.
58613         Reported by Eric Blake.
58614
58615 2007-06-12  Bruno Haible  <bruno@clisp.org>
58616
58617         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58618         cross-compiling to x86_64.
58619
58620 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58621
58622         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58623         glitch reported by Ralf Wildenhues in
58624         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58625
58626         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58627         Vin Shelton.
58628
58629 2007-06-11  Bruno Haible  <bruno@clisp.org>
58630
58631         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58632         replacement string.
58633         Reported by Eric Blake.
58634
58635 2007-06-10  Bruno Haible  <bruno@clisp.org>
58636
58637         Prepare vasnprintf code for use with Unicode strings.
58638         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58639         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58640         TYPE_U32_STRING.
58641         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58642         a_u32_string variants.
58643         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58644         * lib/printf-args.c: Don't include config.h and the specification
58645         header if PRINTF_FETCHARGS is already defined.
58646         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58647         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58648         TYPE_U16_STRING, TYPE_U32_STRING.
58649         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58650         u16_directive, u16_directives, u32_directive, u32_directives): New
58651         types.
58652         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58653         New declarations.
58654         * lib/printf-parse.c: Don't include config.h and the specification
58655         header if PRINTF_PARSE is already defined. Eliminate the set of
58656         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58657         them now. Include c-ctype.h.
58658         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58659         directive and CHAR_T_ONLY_ASCII.
58660         * lib/vasnprintf.c: Don't include config.h and the specification header
58661         if VASNPRINTF is already defined.
58662         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58663         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58664         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58665         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58666         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58667         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58668         code accordingly.
58669         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58670         pad_ourselves also in this case, with the 'c' and 's' directives, and
58671         with a different notion of "width".
58672         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58673
58674 2007-06-10  Bruno Haible  <bruno@clisp.org>
58675
58676         * modules/unistr/u32-mbsnlen: New file.
58677         * lib/unistr/u32-mbsnlen.c: New file.
58678
58679         * modules/unistr/u16-mbsnlen: New file.
58680         * lib/unistr/u16-mbsnlen.c: New file.
58681
58682         * modules/unistr/u8-mbsnlen: New file.
58683         * lib/unistr/u8-mbsnlen.c: New file.
58684
58685         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58686         declarations.
58687
58688 2007-06-10  Bruno Haible  <bruno@clisp.org>
58689
58690         * lib/string_.h (mbsnlen): New declaration.
58691         * lib/mbsnlen.c: New file.
58692         * m4/mbsnlen.m4: New file.
58693         * modules/mbsnlen: New file.
58694         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58695         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58696         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58697
58698 2007-06-10  Bruno Haible  <bruno@clisp.org>
58699
58700         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58701
58702 2007-06-10  Bruno Haible  <bruno@clisp.org>
58703
58704         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58705         * lib/mbuiter.h: Likewise.
58706
58707 2007-06-10  Bruno Haible  <bruno@clisp.org>
58708
58709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58710         declaration.
58711
58712 2007-06-10  Karl Berry  <karl@gnu.org>
58713
58714         * config/srclist.txt: remove gettext entries, Bruno prefers
58715         to update individually.
58716
58717 2007-06-10  Bruno Haible  <bruno@clisp.org>
58718
58719         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58720         'maxlen'. Ensure only length + width bytes are allocated, not
58721         length + 1 + width.
58722
58723 2007-06-09  Bruno Haible  <bruno@clisp.org>
58724
58725         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58726         (CHAR_T): Remove macro.
58727         (VASNPRINTF): Update.
58728
58729 2007-06-09  Bruno Haible  <bruno@clisp.org>
58730
58731         * MODULES.html.sh (Unicode string functions): Add the new modules.
58732
58733         * modules/uniconv/u32-conv-to-enc: New file.
58734         * lib/uniconv/u32-conv-to-enc.c: New file.
58735         * modules/uniconv/u32-conv-to-enc-tests: New file.
58736         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58737
58738         * modules/uniconv/u16-conv-to-enc: New file.
58739         * lib/uniconv/u16-conv-to-enc.c: New file.
58740         * lib/uniconv/u-conv-to-enc.h: New file.
58741         * modules/uniconv/u16-conv-to-enc-tests: New file.
58742         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58743
58744         * modules/uniconv/u8-conv-to-enc: New file.
58745         * lib/uniconv/u8-conv-to-enc.c: New file.
58746         * modules/uniconv/u8-conv-to-enc-tests: New file.
58747         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58748
58749         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58750         u32_conv_to_encoding): New declarations.
58751
58752 2007-06-09  Bruno Haible  <bruno@clisp.org>
58753
58754         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58755
58756 2007-06-09  Bruno Haible  <bruno@clisp.org>
58757
58758         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58759         * modules/malloca: Renamed from modules/allocsa, updated.
58760         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58761         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58762         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58763         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58764         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58765         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58766         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58767         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58768         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58769         * modules/c-strcasestr (Depends-on): Update.
58770         * lib/c-strcasestr.c: Update.
58771         * modules/c-strstr (Depends-on): Update.
58772         * lib/c-strstr.c: Update.
58773         * modules/canonicalize-lgpl (Depends-on): Update.
58774         * lib/canonicalize-lgpl.c: Update.
58775         * modules/clean-temp (Depends-on): Update.
58776         * lib/clean-temp.c: Update.
58777         * modules/csharpcomp (Depends-on): Update.
58778         * lib/csharpcomp.c: Update.
58779         * modules/csharpexec (Depends-on): Update.
58780         * lib/csharpexec.c: Update.
58781         * modules/javacomp (Depends-on): Update.
58782         * lib/javacomp.c: Update.
58783         * modules/javaexec (Depends-on): Update.
58784         * lib/javaexec.c: Update.
58785         * modules/mbscasestr (Depends-on): Update.
58786         * lib/mbscasestr.c: Update.
58787         * modules/mbsstr (Depends-on): Update.
58788         * lib/mbsstr.c: Update.
58789         * modules/setenv (Depends-on): Update.
58790         * lib/setenv.c: Update.
58791         * modules/strcasestr (Depends-on): Update.
58792         * lib/strcasestr.c: Update.
58793         * modules/striconveha (Depends-on): Update.
58794         * lib/striconveha.c: Update.
58795         * modules/relocatable-prog-wrapper (Files): Update.
58796         * lib/relocwrapper.c: Update.
58797         * build-aux/install-reloc: Update.
58798         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58799
58800 2007-06-08  Bruno Haible  <bruno@clisp.org>
58801
58802         Port to uClibc.
58803         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58804         * lib/fpurge.c (fpurge): Likewise.
58805         * lib/freading.c (freading): Likewise.
58806         * lib/fseeko.c (rpl_fseeko): Likewise.
58807         * lib/fseterr.c (fseterr): Likewise.
58808         * lib/fwriting.c (fwriting): Likewise.
58809         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58810
58811 2007-06-08  Bruno Haible  <bruno@clisp.org>
58812
58813         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58814         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58815         * modules/gettext (Files): Add m4/intlmacosx.m4.
58816
58817 2007-06-07  Bruno Haible  <bruno@clisp.org>
58818
58819         * modules/localename-tests: New file.
58820         * tests/test-localename.c: New file.
58821
58822         New module 'localename'.
58823         * lib/localename.h: New file.
58824         * lib/localename.c: New file, from GNU gettext.
58825         * m4/localename.m4: New file.
58826         * modules/localename: New file.
58827
58828 2007-06-07  Bruno Haible  <bruno@clisp.org>
58829
58830         Work around the lack of <wchar.h> on some builds of uClibc.
58831         * doc/headers/wchar.texi: Update.
58832         * lib/wchar_.h: Include <wchar.h> only if it exists.
58833         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58834         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58835         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58836         doesn't exist.
58837         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58838         * modules/mbfile (Depends-on): Add wchar.
58839         * modules/mbiter (Depends-on): Likewise.
58840         * modules/mbuiter (Depends-on): Likewise.
58841         Reported by Simon Josefsson.
58842
58843 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58844
58845         Work around problem reported by Steven M. Schweda in
58846         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58847         Tru64 5.1B with the Compaq compiler environment installed declares
58848         an 'isblank' function but does not define it in the C library.
58849         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58850         * lib/regex_internal.h (isblank): Likewise.
58851         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58852         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58853
58854 2007-06-05  Bruno Haible  <bruno@clisp.org>
58855
58856         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58857         ia64.
58858         * modules/printf-safe: New file.
58859         * modules/fprintf-posix (Depends-on): Add printf-safe.
58860         * modules/printf-posix (Depends-on): Likewise.
58861         * modules/snprintf-posix (Depends-on): Likewise.
58862         * modules/sprintf-posix (Depends-on): Likewise.
58863         * modules/vasnprintf-posix (Depends-on): Likewise.
58864         * modules/vasprintf-posix (Depends-on): Likewise.
58865         * modules/vfprintf-posix (Depends-on): Likewise.
58866         * modules/vprintf-posix (Depends-on): Likewise.
58867         * modules/vsnprintf-posix (Depends-on): Likewise.
58868         * modules/vsprintf-posix (Depends-on): Likewise.
58869         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58870         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58871         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58872         "no" on i386, x86_64, ia64.
58873         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58874         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58875         on i386, x86_64, ia64.
58876         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58877         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58878         on i386, x86_64, ia64.
58879         * tests/test-vasnprintf-posix.c: Include float.h.
58880         (LDBL80_WORDS): New macro.
58881         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58882         on i386, x86_64, ia64.
58883         * tests/test-vasprintf-posix.c: Include float.h.
58884         (LDBL80_WORDS): New macro.
58885         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58886         on i386, x86_64, ia64.
58887         * tests/test-snprintf-posix.c: Include float.h.
58888         * tests/test-sprintf-posix.c: Likewise.
58889         * tests/test-vsnprintf-posix.c: Likewise.
58890         * tests/test-vsprintf-posix.c: Likewise.
58891
58892 2007-06-05  Bruno Haible  <bruno@clisp.org>
58893
58894         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58895         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58896         non-IEEE numbers on i386, x86_64, ia64.
58897         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58898         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58899         * tests/test-isnanl.h: Include float.h.
58900         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58901
58902 2007-06-05  Bruno Haible  <bruno@clisp.org>
58903
58904         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58905         also the %a / %A. Handle the %a / %A code before this extra handling.
58906
58907 2007-06-05  Bruno Haible  <bruno@clisp.org>
58908
58909         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58910         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58911
58912 2007-06-05  Bruno Haible  <bruno@clisp.org>
58913
58914         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58915         typo in variable name.
58916
58917 2007-06-05  Eric Blake  <ebb9@byu.net>
58918
58919         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58920         Reported by Simon Josefsson.
58921
58922 2007-06-04  Bruno Haible  <bruno@clisp.org>
58923
58924         Avoid test failures on some PowerPC platforms.
58925         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58926         Define differently for PowerPC.
58927         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58928         Reported by Gary V. Vaughan <gary@gnu.org>.
58929
58930 2007-06-02  Bruno Haible  <bruno@clisp.org>
58931
58932         Fix test-stdint failure on FreeBSD/ia64.
58933         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58934         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58935         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58936         * doc/headers/stdint.texi: Update.
58937
58938 2007-06-01  Bruno Haible  <bruno@clisp.org>
58939
58940         * tests/test-binary-io.c (main): Pass a third argument to open().
58941         Reported by Gary V. Vaughan <gary@gnu.org>.
58942
58943 2007-06-01  Bruno Haible  <bruno@clisp.org>
58944
58945         * doc/functions/frexpl.texi: Update for mingw.
58946
58947 2007-06-01  Bruno Haible  <bruno@clisp.org>
58948
58949         * tests/test-lseek.c (main): Disable test of errno for invalid third
58950         argument.
58951         * doc/functions/lseek.texi: Update.
58952         Reported by Gary V. Vaughan <gary@gnu.org>.
58953
58954 2007-05-28  Bruno Haible  <bruno@clisp.org>
58955
58956         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58957
58958 2007-05-31  Eric Blake  <ebb9@byu.net>
58959
58960         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58961         cross compiling.
58962
58963 2007-05-30  Eric Blake  <ebb9@byu.net>
58964         and Bruno Haible  <bruno@clisp.org>
58965
58966         Work around mingw test failures exposed by m4-1.4.9b.
58967         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58968         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58969         moment.
58970
58971 2007-05-30  Bruno Haible  <bruno@clisp.org>
58972
58973         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58974         assuming that they are closed. Needed on HP-UX 11.
58975
58976 2007-05-29  Bruno Haible  <bruno@clisp.org>
58977
58978         Fix a problem with #include_next.
58979         * lib/dirent_.h: Split the double-inclusion guard.
58980         * lib/fcntl_.h: Likewise.
58981         * lib/float_.h: Likewise.
58982         * lib/iconv_.h: Likewise.
58983         * lib/inttypes_.h: Likewise.
58984         * lib/locale_.h: Likewise.
58985         * lib/math_.h: Likewise.
58986         * lib/netinet_in_.h: Likewise.
58987         * lib/search_.h: Likewise.
58988         * lib/signal_.h: Likewise.
58989         * lib/stdint_.h: Likewise.
58990         * lib/stdio_.h: Likewise.
58991         * lib/stdlib_.h: Likewise.
58992         * lib/string_.h: Likewise.
58993         * lib/sys_select_.h: Likewise.
58994         * lib/sys_socket_.h: Likewise.
58995         * lib/sys_stat_.h: Likewise.
58996         * lib/sys_time_.h: Likewise.
58997         * lib/sysexits_.h: Likewise.
58998         * lib/time_.h: Likewise.
58999         * lib/unistd_.h: Likewise.
59000         * lib/wchar_.h: Likewise.
59001         * lib/wctype_.h: Likewise.
59002
59003 2007-05-29  Bruno Haible  <bruno@clisp.org>
59004
59005         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59006         for the moment.
59007
59008 2007-05-29  Bruno Haible  <bruno@clisp.org>
59009
59010         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59011         invocation.
59012         Reported by Eric Blake.
59013
59014 2007-05-29  Bruno Haible  <bruno@clisp.org>
59015
59016         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59017         compiling case.
59018
59019 2007-05-29  Eric Blake  <ebb9@byu.net>
59020             Bruno Haible  <bruno@clisp.org>
59021
59022         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59023         cross compiles.
59024
59025 2007-05-28  Eric Blake  <ebb9@byu.net>
59026
59027         * modules/closein-tests (test_closein_LDADD): Support test on
59028         cygwin with libtool.
59029
59030 2007-05-28  Bruno Haible  <bruno@clisp.org>
59031
59032         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59033         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59034         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59035         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59036         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59037         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59038         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59039         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59040         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59041
59042 2007-05-28  Eric Blake  <ebb9@byu.net>
59043
59044         Unconditionally include <config.h> in unit tests.
59045         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59046         * tests/test-allocsa.c, tests/test-arcfour.c,
59047         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59048         tests/test-array_list.c, tests/test-array_oset.c,
59049         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59050         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59051         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59052         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59053         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59054         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59055         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59056         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59057         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59058         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59059         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59060         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59061         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59062         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59063         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59064         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59065         test-md5.c, test-memmem.c, test-printf-posix.c,
59066         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59067         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59068         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59069         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59070         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59071         test-vasnprintf-posix2.c, test-vasnprintf.c,
59072         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59073         test-vfprintf-posix.c, test-vprintf-posix.c,
59074         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59075         test-xvasprintf.c: Likewise.
59076
59077 2007-05-28  Bruno Haible  <bruno@clisp.org>
59078
59079         * gnulib-tool (func_import): Remember the --with-tests command-line
59080         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59081         Reported by Eric Blake.
59082
59083 2007-05-28  Bruno Haible  <bruno@clisp.org>
59084
59085         * modules/ftell-tests: New file.
59086         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59087         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59088
59089         * lib/ftell.c: New file.
59090         * modules/ftell: New file.
59091         * m4/ftell.m4: New file.
59092         * doc/functions/ftell.texi: Update.
59093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59094         REPLACE_FTELL.
59095         * lib/stdio_.h (rpl_ftell): New declaration.
59096         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59097         REPLACE_FTELL.
59098
59099 2007-05-28  Eric Blake  <ebb9@byu.net>
59100
59101         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59102
59103 2007-05-28  Bruno Haible  <bruno@clisp.org>
59104
59105         * modules/fseek-tests: New file.
59106         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59107         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59108
59109         * lib/fseek.c: New file.
59110         * modules/fseek: New file.
59111         * m4/fseek.m4: New file.
59112         * doc/functions/fseek.texi: Update.
59113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59114         REPLACE_FSEEK.
59115         * lib/stdio_.h (rpl_fseek): New declaration.
59116         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59117         REPLACE_FSEEK.
59118
59119 2007-05-28  Bruno Haible  <bruno@clisp.org>
59120
59121         * lib/stdio_.h (fflush): More comments.
59122
59123 2007-05-28  Bruno Haible  <bruno@clisp.org>
59124
59125         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59126         runtime test.
59127
59128 2007-05-28  Eric Blake  <ebb9@byu.net>
59129
59130         Improve lseek module.
59131         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59132         * lib/unistd_.h (lseek): Scale back link warning message.
59133         * tests/test-lseek.c: Beef up test.
59134         * tests/test-lseek.sh: Exercise more facets of lseek.
59135         Reported by Bruno Haible.
59136
59137 2007-05-28  Bruno Haible  <bruno@clisp.org>
59138
59139         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59140         to define.
59141
59142 2007-05-27  Bruno Haible  <bruno@clisp.org>
59143
59144         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59145
59146 2007-05-27  Bruno Haible  <bruno@clisp.org>
59147
59148         * modules/openmp: New file.
59149         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59150         Noah Misch.
59151
59152 2007-05-26  Bruno Haible  <bruno@clisp.org>
59153
59154         * modules/chdir-long (Depends-on): Add fchdir.
59155         * modules/chdir-safer (Depends-on): Likewise.
59156         * modules/fts (Depends-on): Likewise.
59157         * modules/fts-lgpl (Depends-on): Likewise.
59158         * modules/openat (Depends-on): Likewise.
59159         * modules/savewd (Depends-on): Likewise.
59160
59161 2007-05-24  Eric Blake  <ebb9@byu.net>
59162
59163         Fix lseek on mingw.
59164         * modules/lseek: New module.
59165         * m4/lseek.m4: New file.
59166         * lib/lseek.c: New file.
59167         * modules/lseek-tests: New file.
59168         * tests/test-lseek.c: New file.
59169         * tests/test-lseek.sh: New file.
59170         * MODULES.html.sh: Document lseek module.
59171         * modules/fflush (Depends-on): Add lseek, fseeko.
59172         * modules/fseeko (Depends-on): Likewise.
59173         * modules/ftello (Depends-on): Likewise.
59174         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59175         broken.
59176         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59177         broken.
59178         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59179         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59180         * lib/ftello.c (rpl_ftello): Likewise.
59181         * tests/test-fseeko.c (main): Test this.
59182         * tests/test-fseeko.sh: Likewise.
59183         * tests/test-ftello.c (main): Likewise.
59184         * tests/test-ftello.sh: Likewise.
59185         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59186         implies replacing fseek.
59187         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59188         HAVE_FTELLO.
59189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59190         * modules/unistd (Makefile.am): Likewise.
59191         * lib/unistd_.h (lseek): Declare a replacement.
59192         * doc/functions/lseek.texi (lseek): Document this fix.
59193         * doc/functions/fseek.texi (fseek): Likewise.
59194         * doc/functions/ftell.texi (ftell): Likewise.
59195
59196 2007-05-24  Bruno Haible  <bruno@clisp.org>
59197
59198         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59199         in the printed representation of a NaN.
59200         * tests/test-vasprintf-posix.c (test_function): Likewise.
59201         * tests/test-snprintf-posix.h (test_function): Likewise.
59202         * tests/test-sprintf-posix.h (test_function): Likewise.
59203         Reported by Eric Blake.
59204
59205 2007-05-23  Eric Blake  <ebb9@byu.net>
59206
59207         Fix fseeko/ftello on cygwin 1.5.24.
59208         * doc/functions/fseeko.texi (fseeko): Document the fix.
59209         * doc/functions/ftello.texi (ftello): Document the fix.
59210         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59211         * doc/functions/stdout.text (stdout): New file.
59212         * doc/functions/stderr.text (stderr): New file.
59213         * doc/gnulib.texi (Function Substitutes): Use new files.
59214         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59215         prior to 1.7.0.
59216         * tests/test-ftello.c (main): Likewise for ftello.
59217         * tests/test-fseeko.sh: New file.
59218         * tests/test-ftello.sh: New file.
59219         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59220         with seekable stdin.
59221         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59222         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59223         (gl_REPLACE_FSEEKO): New macro.
59224         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59225         * modules/fseeko (Files): Distribute fseeko.c.
59226         * modules/ftello (Files): Distribute ftello.c.
59227         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59228         mode.
59229         * lib/ftello.c (rpl_ftello): New file.
59230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59231         fseeko, ftello.
59232         (gl_STDIN_LARGE_OFFSET): New macro.
59233         * modules/stdio (Makefile.am): Perform the replacement.
59234         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59235
59236 2007-05-23  Bruno Haible  <bruno@clisp.org>
59237
59238         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59239         GNULIB_POSIXCHECK is defined.
59240
59241 2007-05-21  Bruno Haible  <bruno@clisp.org>
59242
59243         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59244         Check also the output for NaN arguments. When cross-compiling, guess
59245         no on IRIX.
59246         * lib/vasnprintf.c: Update comments.
59247         * tests/test-vasnprintf-posix.c (strisnan): New function.
59248         (test_function): Use it.
59249         * tests/test-vasprintf-posix.c (strisnan): New function.
59250         (test_function): Use it.
59251         * tests/test-snprintf-posix.h (strisnan): New function.
59252         (test_function): Use it.
59253         * tests/test-sprintf-posix.h (strisnan): New function.
59254         (test_function): Use it.
59255         Reported by Eric Blake.
59256
59257 2007-05-20  Bruno Haible  <bruno@clisp.org>
59258
59259         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59260         numbers that fails on BeOS.
59261         * doc/functions/frexpl.texi: Update.
59262
59263 2007-05-20  Jim Meyering  <jim@meyering.net>
59264
59265         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59266         forced upon us by glibc-2.6.
59267
59268 2007-05-20  Bruno Haible  <bruno@clisp.org>
59269
59270         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59271         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59272         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59273         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59274         NEED_PRINTF_INFINITE.
59275         (is_infinitel): New function.
59276         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59278         gl_PREREQ_VASNPRINTF_INFINITE.
59279         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59280         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59281         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59282         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59283         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59284         gl_PREREQ_VASNPRINTF_INFINITE.
59285         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59286         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59287         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59289         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59292         * doc/functions/fprintf.texi: Update.
59293         * doc/functions/printf.texi: Update.
59294         * doc/functions/snprintf.texi: Update.
59295         * doc/functions/sprintf.texi: Update.
59296         * doc/functions/vfprintf.texi: Update.
59297         * doc/functions/vprintf.texi: Update.
59298         * doc/functions/vsnprintf.texi: Update.
59299         * doc/functions/vsprintf.texi: Update.
59300
59301 2007-05-20  Bruno Haible  <bruno@clisp.org>
59302
59303         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59304         was not found in libc.
59305         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59306
59307 2007-05-20  Bruno Haible  <bruno@clisp.org>
59308
59309         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59310         printed as "-nan" instead of "nan".
59311         * tests/test-vasprintf-posix.c (test_function): Likewise.
59312         * tests/test-snprintf-posix.h (test_function): Likewise.
59313         * tests/test-sprintf-posix.h (test_function): Likewise.
59314         Needed for HP-UX 11.
59315
59316 2007-05-20  Jim Meyering  <jim@meyering.net>
59317
59318         Fix buggy test for the fchownat-deref bug.
59319         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59320         symlink required for the run-test.  Without it, this test would
59321         always declare that fchownat doesn't work, and client code would
59322         unnecessarily use the replacement function with fixed libc.
59323         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59324         Reported by Greg Schafer.
59325
59326 2007-05-19  Bruno Haible  <bruno@clisp.org>
59327
59328         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59329         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59330         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59331         Needed for IRIX 6.5 and Solaris 2.5.1.
59332
59333 2007-05-19  Bruno Haible  <bruno@clisp.org>
59334
59335         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59336         (test_function): Skip tests involving -0.0 on platforms where
59337         -0.0 = 0.0.
59338         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59339         (test_function): Skip tests involving -0.0 on platforms where
59340         -0.0 = 0.0.
59341         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59342         (test_function): Skip tests involving -0.0 on platforms where
59343         -0.0 = 0.0.
59344         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59345         (test_function): Skip tests involving -0.0 on platforms where
59346         -0.0 = 0.0.
59347         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59348         tests.
59349         * tests/test-printf-posix.h (test_function): Likewise.
59350         * tests/test-printf-posix.output: Remove all -0.0 related results.
59351         Needed for IRIX 6.5.
59352
59353 2007-05-19  Bruno Haible  <bruno@clisp.org>
59354
59355         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59356         printed as "nan0x7fffffff" instead of "nan".
59357         * tests/test-vasprintf-posix.c (test_function): Likewise.
59358         * tests/test-snprintf-posix.h (test_function): Likewise.
59359         * tests/test-sprintf-posix.h (test_function): Likewise.
59360         * tests/test-fprintf-posix.h (NaN): Remove macro.
59361         (test_function): Remove all NaN related tests.
59362         * tests/test-printf-posix.h (NaN): Remove macro.
59363         (test_function): Remove all NaN related tests.
59364         * tests/test-printf-posix.output: Remove all NaN related results.
59365         Needed for IRIX 6.5.
59366
59367 2007-05-19  Bruno Haible  <bruno@clisp.org>
59368
59369         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59370         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59371
59372 2007-05-19  Bruno Haible  <bruno@clisp.org>
59373
59374         * lib/float_.h: New file.
59375         * m4/float_h.m4: New file.
59376         * modules/float: New file.
59377         * modules/isnanl (Dependencies): Add float.
59378         * modules/isnanl-nolibm (Dependencies): Likewise.
59379         * modules/mathl (Dependencies): Likewise.
59380         * modules/printf-frexpl (Dependencies): Likewise.
59381         * modules/signbit (Dependencies): Likewise.
59382         * modules/vasnprintf (Dependencies): Likewise.
59383         * doc/headers/float.texi: Update.
59384
59385 2007-05-19  Jim Meyering  <jim@meyering.net>
59386
59387         * lib/utimens.c (gl_futimens): Rename from futimens,
59388         now that glibc-2.6 declares futimens.
59389         * lib/utimens.h: Likewise.
59390
59391 2007-05-19  Bruno Haible  <bruno@clisp.org>
59392
59393         Avoid test failures on mingw.
59394         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59395         * tests/test-printf-posix.sh: Likewise.
59396         * tests/test-vfprintf-posix.sh: Likewise.
59397         * tests/test-vprintf-posix.sh: Likewise.
59398
59399 2007-05-19  Bruno Haible  <bruno@clisp.org>
59400
59401         Fix *printf result for NaN, Inf, -0.0 on mingw.
59402         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59403         * lib/vasnprintf.c: Include math.h and isnan.h.
59404         (is_infinite_or_zero): New function.
59405         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59406         values in the %f, %F, %e, %E, %g, %G directives.
59407         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59408         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59409         gl_PRINTF_INFINITE and test its result. Invoke
59410         gl_PREREQ_VASNPRINTF_INFINITE.
59411         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59412         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59413         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59414         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59415         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59416         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59417         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59418         * doc/functions/fprintf.texi: Update.
59419         * doc/functions/printf.texi: Update.
59420         * doc/functions/snprintf.texi: Update.
59421         * doc/functions/sprintf.texi: Update.
59422         * doc/functions/vfprintf.texi: Update.
59423         * doc/functions/vprintf.texi: Update.
59424         * doc/functions/vsnprintf.texi: Update.
59425         * doc/functions/vsprintf.texi: Update.
59426
59427 2007-05-19  Bruno Haible  <bruno@clisp.org>
59428
59429         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59430         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59431         Instead of multiplying with 10^k, set extra_zeroes to k.
59432         (scale10_round_long_double): Remove function.
59433
59434 2007-05-18  Bruno Haible  <bruno@clisp.org>
59435
59436         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59437         introduced on 2007-05-06.
59438
59439 2007-05-18  Bruno Haible  <bruno@clisp.org>
59440
59441         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59442         %g directives.
59443         * tests/test-vasprintf-posix.c (test_function): Likewise.
59444         * tests/test-snprintf-posix.h (test_function): Likewise.
59445         * tests/test-sprintf-posix.h (test_function): Likewise.
59446
59447 2007-05-18  Bruno Haible  <bruno@clisp.org>
59448
59449         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59450         (strmatch): New function.
59451         (test_function): Test the %f directive on numbers of various exponents.
59452         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59453         (strmatch): New function.
59454         (test_function): Test the %f directive on numbers of various exponents.
59455         * tests/test-snprintf-posix.h (strmatch): New function.
59456         (test_function): Test the %f directive on numbers of various exponents.
59457         * tests/test-sprintf-posix.h (strmatch): New function.
59458         (test_function): Test the %f directive on numbers of various exponents.
59459         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59460         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59461         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59462         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59463
59464 2007-05-18  Bruno Haible  <bruno@clisp.org>
59465
59466         Add support for 'long double' number output.
59467         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59468         * lib/vasnprintf.c: Include math.h and float+.h.
59469         (mp_limb_t): New type.
59470         (GMP_LIMB_BITS): New macro.
59471         (mp_twolimb_t): New type.
59472         (GMP_TWOLIMB_BITS): New macro.
59473         (mpn_t): New type.
59474         (multiply, divide, convert_to_decimal, decode_long_double,
59475         scale10_round_long_double, scale10_round_decimal_long_double,
59476         floorlog10l): New functions.
59477         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59478         for the %f, %F, %e, %E, %g, %G directives.
59479         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59480         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59481         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59482         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59483         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59484         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59485         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59486         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59487         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59488         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59490         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59491         * modules/snprintf-posix (Depends-on): Likewise.
59492         * modules/sprintf-posix (Depends-on): Likewise.
59493         * modules/vasnprintf-posix (Depends-on): Likewise.
59494         * modules/vasprintf-posix (Depends-on): Likewise.
59495         * modules/vfprintf-posix (Depends-on): Likewise.
59496         * modules/vsnprintf-posix (Depends-on): Likewise.
59497         * modules/vsprintf-posix (Depends-on): Likewise.
59498         * modules/vasnprintf (Files): Add lib/float+.h.
59499         * doc/functions/fprintf.texi: Update.
59500         * doc/functions/printf.texi: Update.
59501         * doc/functions/snprintf.texi: Update.
59502         * doc/functions/sprintf.texi: Update.
59503         * doc/functions/vfprintf.texi: Update.
59504         * doc/functions/vprintf.texi: Update.
59505         * doc/functions/vsnprintf.texi: Update.
59506         * doc/functions/vsprintf.texi: Update.
59507
59508 2007-05-18  Bruno Haible  <bruno@clisp.org>
59509
59510         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59511
59512 2007-05-18  Bruno Haible  <bruno@clisp.org>
59513
59514         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59515         for printing 64-bit integers. Needed for mingw.
59516
59517 2007-05-18  Bruno Haible  <bruno@clisp.org>
59518
59519         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59520         gl_FUNC_FREXPL_WORKS.
59521         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59522
59523 2007-05-18  Bruno Haible  <bruno@clisp.org>
59524
59525         * modules/frexpl-nolibm-tests: New file.
59526
59527         * modules/frexpl-nolibm: New file.
59528         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59529
59530 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59531
59532         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59533         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59534         GCC 4.2, which otherwise issues a lot of warnings.
59535         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59536         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59537         Likewise.
59538         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59539         * modules/iconv_open (iconv.h): Likewise.
59540         * modules/locale (locale.h): Likewise.
59541         * modules/netinet_in (netinet/in.h): Likewise.
59542         * modules/sys_select (sys_select.h): Likewise.
59543         * modules/sys_socket (sys/socket.h): Likewise.
59544         * modules/sys_stat (sys/stat.h): Likewise.
59545         * modules/sysexits (sysexits.h): Likewise.
59546         * modules/unistd (unistd.h): Likewise.
59547
59548 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59549
59550         * modules/closein-tests (Makefile.am): Distribute
59551         `test-closein.sh'.
59552
59553 2007-05-17  Bruno Haible  <bruno@clisp.org>
59554
59555         * tests/test-printf-posix.output: Renamed from
59556         tests/test-fprintf-posix.out.
59557         * modules/fprintf-posix-tests: Update.
59558         * modules/printf-posix-tests: Update.
59559         * modules/vfprintf-posix-tests: Update.
59560         * modules/vprintf-posix-tests: Update.
59561         * tests/test-fprintf-posix.sh: Update.
59562         * tests/test-printf-posix.sh: Update.
59563         * tests/test-vfprintf-posix.sh: Update.
59564         * tests/test-vprintf-posix.sh: Update.
59565         Reported by Ralf Wildenhues.
59566
59567 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59568
59569         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59570         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59571         GCC 4.2, which otherwise issues a lot of warnings.
59572         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59573         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59574         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59575         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59576         it should no longer be needed.
59577         * lib/string_.h: Likewise.
59578         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59579         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59580         * modules/inttypes (inttypes.h): Likewise.
59581         * modules/math (math.h): Likewise.
59582         * modules/search (search.h): Likewise.
59583         * modules/signal (signal.h): Likewise.
59584         * modules/stdint (stdint.h): Likewise.
59585         * modules/stdio (stdio.h): Likewise.
59586         * modules/stdlib (stdlib.h): Likewise.
59587         * modules/string (string.h): Likewise.
59588         * modules/sys_time (sys/time.h): Likewise.
59589         * modules/time (time.h): Likewise.
59590         * modules/wchar (wchar.h): Likewise.
59591         * modules/wctype (wtype.h): Likewise.
59592
59593 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59594
59595         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59596
59597 2007-05-13  Bruno Haible  <bruno@clisp.org>
59598
59599         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59600         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59601         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59602         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59603         (gl_PREREQ_STRTOK_R): Don't require it here.
59604
59605 2007-05-13  Bruno Haible  <bruno@clisp.org>
59606
59607         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59608         when used in C++ mode.
59609
59610 2007-05-12  Bruno Haible  <bruno@clisp.org>
59611
59612         * lib/linebuffer.h: Tweak doc.
59613         * lib/linebuffer.c: Likewise.
59614
59615 2007-05-12  James Youngman  <jay@gnu.org>
59616
59617         * lib/linebuffer.c (readlinebuffer_delim): New function,
59618         like readlinebuffer, but use a caller-specified delimiter.
59619         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59620         as the delimiter.
59621         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59622
59623 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59624
59625         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59626         * modules/openat (Files): Remove openat-die.c.
59627         (Depends-on): Add openat-die.
59628         * modules/openat-die: New module.
59629
59630 2007-05-06  Bruno Haible  <bruno@clisp.org>
59631
59632         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59633         Update with info about Cygwin.
59634         * doc/functions/fprintf.texi: Update.
59635         * doc/functions/printf.texi: Update.
59636         * doc/functions/snprintf.texi: Update.
59637         * doc/functions/sprintf.texi: Update.
59638         * doc/functions/vfprintf.texi: Update.
59639         * doc/functions/vprintf.texi: Update.
59640         * doc/functions/vsnprintf.texi: Update.
59641         * doc/functions/vsprintf.texi: Update.
59642         Reported by Eric Blake.
59643
59644 2007-05-06  Bruno Haible  <bruno@clisp.org>
59645
59646         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59647         padding ourselves for the floating-point directives.
59648         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59651         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59652         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59653         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59654         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59655         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59656         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59657         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59658         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59659         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59660         * tests/test-snprintf-posix.h (test_function): Also check the width
59661         and some flags in the %f directive.
59662         * tests/test-sprintf-posix.h (test_function): Likewise.
59663         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59664         * tests/test-vasprintf-posix.c (test_function): Likewise.
59665         * doc/functions/fprintf.texi: Update.
59666         * doc/functions/printf.texi: Update.
59667         * doc/functions/snprintf.texi: Update.
59668         * doc/functions/sprintf.texi: Update.
59669         * doc/functions/vfprintf.texi: Update.
59670         * doc/functions/vprintf.texi: Update.
59671         * doc/functions/vsnprintf.texi: Update.
59672         * doc/functions/vsprintf.texi: Update.
59673
59674 2007-05-06  Bruno Haible  <bruno@clisp.org>
59675
59676         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59677         pass the ' flag character to sprintf or snprintf.
59678         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59680         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59681         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59682         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59683         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59684         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59685         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59686         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59687         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59688         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59689         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59690         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59691         flag.
59692         * tests/test-sprintf-posix.h (test_function): Likewise.
59693         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59694         * tests/test-vasprintf-posix.c (test_function): Likewise.
59695         * doc/functions/fprintf.texi: Update.
59696         * doc/functions/printf.texi: Update.
59697         * doc/functions/snprintf.texi: Update.
59698         * doc/functions/sprintf.texi: Update.
59699         * doc/functions/vfprintf.texi: Update.
59700         * doc/functions/vprintf.texi: Update.
59701         * doc/functions/vsnprintf.texi: Update.
59702         * doc/functions/vsprintf.texi: Update.
59703
59704 2007-05-01  Bruno Haible  <bruno@clisp.org>
59705
59706         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59707
59708 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59709
59710         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59711         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59712
59713 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59714
59715         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59716         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59717         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59718
59719 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59720
59721         * lib/argp-help.c (struct hol_entry): New member `ord'.
59722         (HOL_ENTRY_PTRCMP): Use ord for comparison
59723         (hol_sort): Initialize ord.
59724
59725 2007-05-01  Bruno Haible  <bruno@clisp.org>
59726
59727         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59728         Reported by Eric Blake.
59729         * doc/gnulib.texi (Function Substitutes): Update.
59730
59731 2007-05-01  Bruno Haible  <bruno@clisp.org>
59732
59733         * doc/functions.texi: Remove file, now redundant through
59734         doc/functions/*.texi.
59735
59736 2007-05-01  Bruno Haible  <bruno@clisp.org>
59737
59738         * modules/argp (Depends-on): Add sleep.
59739
59740 2007-05-01  Bruno Haible  <bruno@clisp.org>
59741
59742         * modules/sleep-tests: New file.
59743         * tests/test-sleep.c: New file.
59744
59745         * modules/sleep: New file.
59746         * lib/sleep.c: New file.
59747         * m4/sleep.m4: New file.
59748         * lib/unistd_.h (sleep): New declaration.
59749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59750         HAVE_SLEEP.
59751         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59752         * doc/functions/sleep.texi: Document the sleep module.
59753
59754 2007-05-01  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/sigprocmask.h: Remove file.
59757         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59758         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59759         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59760         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59761         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59762         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59763         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59764         HAVE_SIGSET_T as a shell variable.
59765         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59766         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59767         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59768         (Depends-on): Add signal. Remove verify.
59769         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59770         (Include): Mention <signal.h> instead of sigprocmask.h.
59771         * NEWS: Mention the change.
59772         * lib/fatal-signal.c: Don't include sigprocmask.h.
59773
59774 2007-05-01  Bruno Haible  <bruno@clisp.org>
59775
59776         * modules/signal: New file.
59777         * lib/signal_.h: New file.
59778         * m4/signal_h.m4: New file.
59779
59780 2007-05-01  Bruno Haible  <bruno@clisp.org>
59781
59782         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59783         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59784         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59785         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59786
59787 2007-05-01  Bruno Haible  <bruno@clisp.org>
59788
59789         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59790         configure time.
59791         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59792         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59793         * modules/sys_stat (Makefile.am): Substitute their values into
59794         sys/stat.h.
59795
59796 2007-05-01  Bruno Haible  <bruno@clisp.org>
59797
59798         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59799         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59800         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59801
59802 2007-05-01  Bruno Haible  <bruno@clisp.org>
59803
59804         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59805         'assert' module here.
59806
59807 2007-05-01  Bruno Haible  <bruno@clisp.org>
59808
59809         * doc/functions/*.texi: New files.
59810         * doc/functions/google-ranking.txt: New file.
59811         * doc/gnulib.texi (Function Substitutes): New chapter.
59812         (ctime, inet_ntoa): Remove sections.
59813         * doc/ctime.texi: Remove file.
59814         * doc/inet_ntoa.texi: Remove file.
59815         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59816         dependencies.
59817         (%.info): New rule, specifying a --reference-limit.
59818
59819 2007-05-01  Bruno Haible  <bruno@clisp.org>
59820
59821         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59822
59823 2007-05-01  Bruno Haible  <bruno@clisp.org>
59824
59825         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59826         the portability of 'mkdir' to mingw systems.
59827
59828 2007-05-01  Bruno Haible  <bruno@clisp.org>
59829
59830         * doc/headers/google-ranking.txt: New file.
59831
59832 2007-04-30  Eric Blake  <ebb9@byu.net>
59833
59834         Prefer fseeko to fseek.
59835         * modules/getpass (Depends-on): Add fseeko.
59836         * lib/getpass.c (getpass): Use fseeko, not fseek.
59837
59838 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59839
59840         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59841         assumes the sorting is stable, while most qsort implementations
59842         are not.  Use argument addresses to ensure they never compare as
59843         equal.
59844
59845         * tests/test-argp-2.sh (usage-indent test): Fix output
59846         (func_compare): Restore diff options
59847         * tests/test-argp.c: Restore #include "progname.h"
59848
59849 2007-04-29  Bruno Haible  <bruno@clisp.org>
59850
59851         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59852         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59853         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59854         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59855         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59856         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59857         (TESTS, check_PROGRAMS): Add test-snprintf.
59858         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59859         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59860         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59861         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59862         assertions that fail on HP-UX, OSF/1, or IRIX.
59863         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59864
59865 2007-04-29  Bruno Haible  <bruno@clisp.org>
59866
59867         * MODULES.html.sh (posix_functions): Remove 'contents'.
59868
59869 2007-04-29  Karl Berry  <karl@gnu.org>
59870
59871         * config/srclist.txt (gendocs_template_min): new entry.
59872
59873 2007-04-29  Bruno Haible  <bruno@clisp.org>
59874
59875         Work around fpurge bug on BSD systems.
59876         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59877         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59878         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59879         fpurge to rpl_fpurge if the system already has this function.
59880         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59881         the case where the system already has this function. Correct invariants
59882         on BSD systems.
59883         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59884         BSD systems.
59885
59886 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59887
59888         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59889         proposed by Sven Verdoolaege.
59890
59891         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59892         options.
59893         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59894         (usage and help tests): Update
59895
59896 2007-04-29  Bruno Haible  <bruno@clisp.org>
59897
59898         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59899         Print more information in case of failure. Disable a test on BeOS.
59900
59901 2007-04-29  Bruno Haible  <bruno@clisp.org>
59902
59903         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59904         This helps debugging on systems on which no gdb is available.
59905
59906 2007-04-29  Bruno Haible  <bruno@clisp.org>
59907
59908         * lib/freading.h: Improve comments.
59909         * lib/fwriting.h: Likewise.
59910         * tests/test-freading.c (main): Don't check freading immediately after
59911         repositioning. Needed for glibc.
59912
59913 2007-04-29  Bruno Haible  <bruno@clisp.org>
59914
59915         * lib/freading.c (freading): Trivial simplification.
59916
59917 2007-04-28  Bruno Haible  <bruno@clisp.org>
59918
59919         * tests/test-fwriting.c (main): Also test the interaction between
59920         fflush and fwriting.
59921         * modules/fwriting-tests (Depends-on): Add fflush.
59922
59923         * tests/test-freading.c (main): Also test the interaction between
59924         fflush and freading.
59925         * modules/freading-tests (Depends-on): Add fflush.
59926
59927 2007-04-28  Bruno Haible  <bruno@clisp.org>
59928
59929         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59930         fseeko and ftello.
59931         Suggested by Eric Blake.
59932
59933 2007-04-28  Jim Meyering  <jim@meyering.net>
59934
59935         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59936         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59937         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59938
59939 2007-04-27  Eric Blake  <ebb9@byu.net>
59940
59941         * doc/headers/assert.texi (assert.h): Document assert module use.
59942
59943 2007-04-27  Bruno Haible  <bruno@clisp.org>
59944
59945         * doc/headers/*.texi: New files.
59946         * doc/gnulib.texi (Header File Substitutes): New chapter.
59947         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59948         dependencies.
59949         (standards.info ,standards.html, standards.dvi): Update dependencies.
59950         (mostlyclean, clean): New targets.
59951
59952 2007-04-27  Bruno Haible  <bruno@clisp.org>
59953
59954         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59955         * modules/sysexits (Files, Makefile.am): Update.
59956
59957         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59958         * modules/sys_socket (Files, Makefile.am): Update.
59959
59960         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59961         * modules/sys_stat (Files, Makefile.am): Update.
59962
59963 2007-04-27  Eric Blake  <ebb9@byu.net>
59964
59965         * lib/freading.h: Improve comments.
59966         * lib/fwriting.h: Likewise.
59967         * lib/fflush.c: Likewise.
59968
59969         Fix closein for mingw.
59970         * modules/closein-tests: Add tests for closein.
59971         * tests/test-closein.c: New file.
59972         * tests/test-closein.sh: Likewise.
59973         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59974         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59975
59976 2007-04-27  Bruno Haible  <bruno@clisp.org>
59977
59978         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59979         version is < 6.
59980         * lib/math_.h [__DECC]: Likewise.
59981         * lib/stdio_.h [__DECC]: Likewise.
59982         * lib/stdlib_.h [__DECC]: Likewise.
59983         * lib/string_.h [__DECC]: Likewise.
59984         * lib/time_.h [__DECC]: Likewise.
59985         * lib/wchar_.h [__DECC]: Likewise.
59986         * lib/wctype_.h [__DECC]: Likewise.
59987
59988 2007-04-27  Bruno Haible  <bruno@clisp.org>
59989
59990         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59991
59992 2007-04-27  Bruno Haible  <bruno@clisp.org>
59993
59994         * lib/fflush.c: Add comments.
59995         * modules/fpurge-tests (Depends-on): Add fflush.
59996         * modules/freadable-tests (Depends-on): Likewise.
59997         * modules/fwritable-tests (Depends-on): Likewise.
59998
59999 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60000
60001         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60002         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60003         Report by Bruno Haible <bruno@clisp.org>.
60004
60005 2007-04-26  Eric Blake  <ebb9@byu.net>
60006
60007         Fix fflush on mingw.
60008         * modules/fflush (Depends-on): Add freading.
60009         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60010         but unread data.
60011
60012 2007-04-26  Eric Blake  <ebb9@byu.net>
60013         and Bruno Haible  <bruno@clisp.org>
60014
60015         Implement freading and fwriting.
60016         * lib/freading.c: New file.
60017         * lib/freading.h: Likewise.
60018         * m4/freading.m4: Likewise.
60019         * modules/freading: Likewise.
60020         * modules/freading-tests: Likewise.
60021         * tests/test-freading.c: Likewise.
60022         * lib/fwriting.c: New file.
60023         * lib/fwriting.h: Likewise.
60024         * m4/fwriting.m4: Likewise.
60025         * modules/fwriting: Likewise.
60026         * modules/fwriting-tests: Likewise.
60027         * tests/test-fwriting.c: Likewise.
60028         * MODULES.html.sh (File stream based Input/Output): Mention them.
60029
60030 2007-04-26  Bruno Haible  <bruno@clisp.org>
60031
60032         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60033         'long' when we assume it.
60034         Suggested by Eric Blake.
60035
60036 2007-04-26  Bruno Haible  <bruno@clisp.org>
60037
60038         Ensure fseeko, ftello are declared on glibc systems.
60039         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60040         * modules/fseeko (configure.ac-early): Likewise.
60041         * modules/ftello (configure.ac-early): Likewise.
60042         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60043         AC_FUNC_FSEEKO for this.
60044         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60045         (gl_CHECK_FSEEKO): Remove macro.
60046
60047 2007-04-26  Bruno Haible  <bruno@clisp.org>
60048
60049         * tests/test-fflush.c (main): Also check the ftell result after
60050         fflush and fseek/fseeko.
60051         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60052         file descriptor position cache in the stream.
60053         * lib/fseeko.c (rpl_fseeko): Likewise.
60054
60055 2007-04-26  Bruno Haible  <bruno@clisp.org>
60056
60057         * modules/fflush-tests (Depends-on): Add fseeko.
60058
60059 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60060             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60061
60062         * lib/argz_.h: ensure error_t definition is obtained in same
60063         mechanism system argz.h would have.
60064         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60065         argz facilities are known bad.  Err on the side of caution if
60066         cross-compiling.
60067
60068 2007-04-25  Eric Blake  <ebb9@byu.net>
60069
60070         * lib/fpurge.c (includes): Use stdlib.h for free.
60071         * tests/test-fflush.c (main): Also test fflush-fseeko.
60072
60073 2007-04-25  Bruno Haible  <bruno@clisp.org>
60074
60075         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60076         * lib/fseeko.c: New file.
60077         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60078         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60079         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60080         gl_FUNC_FSEEKO.
60081         (gl_FUNC_FSEEKO): Invoke it.
60082         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60083         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60084         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60085
60086 2007-04-25  Bruno Haible  <bruno@clisp.org>
60087
60088         * modules/fflush (Depends-on): Add ftello.
60089
60090 2007-04-25  Bruno Haible  <bruno@clisp.org>
60091
60092         * modules/ftello-tests: New file.
60093         * tests/test-ftello.c: New file.
60094
60095         * modules/ftello: New file.
60096         * m4/ftello.m4: New file.
60097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60098         HAVE_FTELLO.
60099         * lib/stdio_.h (ftello): New declaration.
60100         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60101         HAVE_FTELLO.
60102
60103 2007-04-25  Bruno Haible  <bruno@clisp.org>
60104
60105         * modules/fseeko-tests: New file.
60106         * tests/test-fseeko.c: New file.
60107
60108         * modules/fseeko: New file.
60109         * m4/fseeko.m4: New file.
60110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60111         HAVE_FSEEKO.
60112         * lib/stdio_.h (fseeko): New declaration.
60113         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60114         HAVE_FSEEKO.
60115
60116 2007-04-25  Bruno Haible  <bruno@clisp.org>
60117
60118         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60119
60120 2007-04-25  Bruno Haible  <bruno@clisp.org>
60121
60122         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60123         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60124         * tests/test-unistd.c: Likewise.
60125         * tests/test-fcntl.c: Likewise.
60126
60127 2007-04-23  Eric Blake  <ebb9@byu.net>
60128
60129         * lib/fflush.c: Fix missing include.
60130         Reported by Bruno Haible.
60131
60132 2007-04-23  Bruno Haible  <bruno@clisp.org>
60133
60134         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60135         Reported by Eric Blake.
60136
60137 2007-04-23  Bruno Haible  <bruno@clisp.org>
60138
60139         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60140
60141 2007-04-23  Bruno Haible  <bruno@clisp.org>
60142
60143         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60144
60145 2007-04-23  Bruno Haible  <bruno@clisp.org>
60146
60147         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60148         Needed on HP-UX 11.
60149
60150 2007-04-16  Eric Blake  <ebb9@byu.net>
60151
60152         Make fflush rely on fpurge.
60153         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60154         open coding all variants.
60155         * modules/fflush (Depends-on): Add fpurge and unistd.
60156         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60157         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60158
60159         Fix --with-tests compilation on cygwin.
60160         * modules/argmatch-tests (Makefile.am): List gnulib library first
60161         in LDADD.
60162         * modules/argp-tests (Makefile.am): Likewise.
60163         * modules/array-list-tests (Makefile.am): Likewise.
60164         * modules/array-oset-tests (Makefile.am): Likewise.
60165         * modules/avltree-list-tests (Makefile.am): Likewise.
60166         * modules/avltree-oset-tests (Makefile.am): Likewise.
60167         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60168         * modules/carray-list-tests (Makefile.am): Likewise.
60169         * modules/dirname-tests (Makefile.am): Likewise.
60170         * modules/frexp-tests (Makefile.am): Likewise.
60171         * modules/isnanl-tests (Makefile.am): Likewise.
60172         * modules/linked-list-tests (Makefile.am): Likewise.
60173         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60174         * modules/lock-tests (Makefile.am): Likewise.
60175         * modules/rbtree-list-tests (Makefile.am): Likewise.
60176         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60177         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60178         * modules/tls-tests (Makefile.am): Likewise.
60179         * modules/tsearch-tests (Makefile.am): Likewise.
60180         * modules/xvasprintf-tests (Makefile.am): Likewise.
60181
60182         Fix fpurge for cygwin.
60183         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60184         value.
60185         * modules/fpurge-tests (Depends-on): Clean up trash.
60186
60187 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60188
60189         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60190
60191         * m4/autobuild.m4: Re-indent.
60192
60193 2007-04-13  Bruno Haible  <bruno@clisp.org>
60194
60195         * modules/fpurge-tests: New file.
60196         * tests/test-fpurge.c: New file.
60197
60198         * modules/fpurge: New file.
60199         * lib/fpurge.h: New file.
60200         * lib/fpurge.c: New file.
60201         * m4/fpurge.m4: New file.
60202
60203 2007-04-13  Bruno Haible  <bruno@clisp.org>
60204
60205         * modules/fbufmode-tests: New file.
60206         * tests/test-fbufmode.c: New file.
60207
60208         * modules/fbufmode: New file.
60209         * lib/fbufmode.h: New file.
60210         * lib/fbufmode.c: New file.
60211         * m4/fbufmode.m4: New file.
60212
60213 2007-04-13  Bruno Haible  <bruno@clisp.org>
60214
60215         * modules/fwritable-tests: New file.
60216         * tests/test-fwritable.c: New file.
60217
60218         * modules/fwritable: New file.
60219         * lib/fwritable.h: New file.
60220         * lib/fwritable.c: New file.
60221         * m4/fwritable.m4: New file.
60222
60223 2007-04-13  Bruno Haible  <bruno@clisp.org>
60224
60225         * modules/freadable-tests: New file.
60226         * tests/test-freadable.c: New file.
60227
60228         * modules/freadable: New file.
60229         * lib/freadable.h: New file.
60230         * lib/freadable.c: New file.
60231         * m4/freadable.m4: New file.
60232
60233 2007-04-13  Bruno Haible  <bruno@clisp.org>
60234
60235         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60236         MOSTLYCLEANFILES.
60237
60238 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60239
60240         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60241         gzip bootstrap.conf to avoid dragging in i18n machinery.
60242         (gnulib_tool_option): Use it.
60243
60244 2007-04-13  Bruno Haible  <bruno@clisp.org>
60245
60246         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60247         %F directives.
60248         * tests/test-vasprintf-posix.c (test_function): Likewise.
60249         * tests/test-snprintf-posix.h (test_function): Likewise.
60250         * tests/test-sprintf-posix.h (test_function): Likewise.
60251         * tests/test-fprintf-posix.h (test_function): Likewise.
60252         * tests/test-printf-posix.h (test_function): Likewise.
60253         * tests/test-fprintf-posix.out: Likewise.
60254
60255 2007-04-13  Bruno Haible  <bruno@clisp.org>
60256
60257         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60258         * modules/tls-tests (configure.ac): Likewise.
60259         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60260
60261 2007-04-13  Bruno Haible  <bruno@clisp.org>
60262
60263         * lib/tls.c (glthread_tls_get): Fix return type.
60264         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60265
60266 2007-04-12  Eric Blake  <ebb9@byu.net>
60267
60268         * modules/gettime (Depends-on): Remove gettime.
60269         Reported by Dmitry V. Levin.
60270
60271 2007-04-12  Bruno Haible  <bruno@clisp.org>
60272
60273         * modules/fflush (Include): Mention <stdio.h>.
60274         * modules/strtoimax (Include): Mention <inttypes.h>.
60275         * modules/strtoumax (Include): Likewise.
60276
60277 2007-04-12  Eric Blake  <ebb9@byu.net>
60278
60279         * .cvsignore: New file.
60280         * .gitignore: Likewise.
60281
60282 2007-04-12  Bruno Haible  <bruno@clisp.org>
60283
60284         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60285         not before, since $(LDADD) often contains libgnu.a.
60286         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60287         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60288         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60289         Needed on Cygwin.
60290
60291 2007-04-12  Eric Blake  <ebb9@byu.net>
60292
60293         Work around glibc's failure to flush stdin on fclose.
60294         * lib/closein.c (close_stdin): Flush stdin before closing.
60295
60296         Work around glibc's failure to reset seekable stdin on exit.
60297         * modules/closein: New module.
60298         * lib/closein.c: New file.
60299         * lib/closein.h: Likewise.
60300         * m4/closein.m4: Likewise.
60301         * MODULES.html.sh (File stream based Input/Output): Document it.
60302
60303 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60304
60305         * gnulib-tool: Rename generated 'autobuild' script to
60306         'do-autobuild' in --create-megatestdir output.
60307
60308         * doc/gnulib.texi (Build robot for gnulib): Fix.
60309
60310 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60311
60312         * modules/sysexits (Depends-on): Add absolute-header.
60313
60314 2007-04-12  Eric Blake  <ebb9@byu.net>
60315
60316         No need to preserve errno on success.
60317         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60318         Reported by Bruno Haible.
60319
60320 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60321
60322         * MODULES.html.sh (Support for maintaining and releasing
60323         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60324
60325 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60326
60327         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60328
60329 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60330
60331         * modules/autobuild: New module.
60332
60333         * m4/autobuild.m4: New file.
60334
60335 2007-04-11  Bruno Haible  <bruno@clisp.org>
60336
60337         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60338         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60339         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60340         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60341         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60342         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60343         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60344         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60345         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60346         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60347         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60348         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60349         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60350         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60351         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60352         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60353         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60354         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60355         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60356         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60357         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60358         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60360         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60361         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60362         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60363         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60364         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60365         Reported by Eric Blake.
60366
60367 2007-04-11  Bruno Haible  <bruno@clisp.org>
60368
60369         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60370
60371 2007-04-10  Bruno Haible  <bruno@clisp.org>
60372
60373         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60374         for NaN and Infinity. Needed on FreeBSD 6.1.
60375         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60376         regarding results for "%010a" of Infinity and NaN.
60377         * tests/test-vasprintf-posix.c (test_function): Likewise.
60378         * tests/test-snprintf-posix.h (test_function): Likewise.
60379         * tests/test-sprintf-posix.h (test_function): Likewise.
60380         * tests/test-fprintf-posix.h (test_function): Likewise.
60381         * tests/test-printf-posix.h (test_function): Likewise.
60382         * tests/test-fprintf-posix.out: Likewise.
60383
60384 2007-04-10  Bruno Haible  <bruno@clisp.org>
60385
60386         * modules/locale-tests: New file.
60387         * tests/test-locale.c: New file.
60388
60389         * modules/locale: New file.
60390         * lib/locale_.h: New file.
60391         * m4/locale_h.m4: New file.
60392
60393 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60394             Bruno Haible  <bruno@clisp.org>
60395
60396         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60397         be determined, test for availability of the copysignf, copysign,
60398         copysignl functions.
60399         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60400         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60401         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60402
60403 2007-04-09  Eric Blake  <ebb9@byu.net>
60404
60405         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60406         * modules/stdio (Makefile.am): Support fflush.
60407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60408         * modules/fflush: New file.
60409         * lib/fflush.c: Likewise.
60410         * m4/fflush.m4: Likewise.
60411         * modules/fflush-tests: New test.
60412         * tests/test-fflush.c: Likewise.
60413         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60414
60415 2007-04-06  Bruno Haible  <bruno@clisp.org>
60416
60417         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60418         (VASNPRINTF): Use signbit for faster determination whether to print a
60419         minus sign.
60420         * modules/vasnprintf (Files): Remove lib/float+.h.
60421         * modules/fprintf-posix (Depends-on): Add signbit.
60422         * modules/snprintf-posix (Depends-on): Likewise.
60423         * modules/sprintf-posix (Depends-on): Likewise.
60424         * modules/vasnprintf-posix (Depends-on): Likewise.
60425         * modules/vasprintf-posix (Depends-on): Likewise.
60426         * modules/vfprintf-posix (Depends-on): Likewise.
60427         * modules/vsnprintf-posix (Depends-on): Likewise.
60428         * modules/vsprintf-posix (Depends-on): Likewise.
60429
60430 2007-04-06  Bruno Haible  <bruno@clisp.org>
60431
60432         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60433         * tests/test-frexpl.c (main): Likewise.
60434         * tests/test-ldexpl.c (main): Likewise.
60435         * modules/frexp-tests (Depends-on): Add signbit.
60436         * modules/frexpl-tests (Depdends-on): Likewise.
60437         * modules/ldexpl-tests (Depdends-on): Likewise.
60438
60439 2007-04-06  Bruno Haible  <bruno@clisp.org>
60440
60441         * modules/signbit-tests: New file.
60442         * tests/test-signbit.c: New file.
60443
60444         * modules/signbit: New file.
60445         * lib/signbitf.c: New file.
60446         * lib/signbitd.c: New file.
60447         * lib/signbitl.c: New file.
60448         * m4/signbit.m4: New file.
60449         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60450         (signbit): New macro.
60451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60452         REPLACE_SIGNBIT.
60453         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60454         REPLACE_FREXPL into math.h.
60455
60456 2007-04-06  Bruno Haible  <bruno@clisp.org>
60457
60458         * modules/isnanf-nolibm-tests: New file.
60459         * tests/test-isnanf.c: New file.
60460
60461         * modules/isnanf-nolibm: New file.
60462         * lib/isnanf.h: New file.
60463         * lib/isnanf.c: New file.
60464         * lib/isnan.c: Consider the USE_FLOAT macro.
60465         * m4/isnanf.m4: New file.
60466
60467 2007-04-06  Bruno Haible  <bruno@clisp.org>
60468
60469         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60470         (Link): New section.
60471
60472         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60473
60474 2007-04-06  Bruno Haible  <bruno@clisp.org>
60475
60476         Assume the 'long double' type.
60477         * m4/longdouble.m4: Remove file.
60478         * config/srclist.txt: Don't mention longdouble.m4.
60479         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60480         * lib/float+.h: Likewise.
60481         * lib/frexp.c: Likewise.
60482         * lib/printf-args.h: Likewise.
60483         * lib/printf-args.c: Likewise.
60484         * lib/printf-frexp.c: Likewise.
60485         * lib/printf-parse.c: Likewise.
60486         * lib/vasnprintf.c: Likewise.
60487         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60488         * m4/intl.m4: Likewise.
60489         * m4/isnanl.m4: Likewise.
60490         * m4/printf.m4: Likewise.
60491         * m4/printf-frexpl.m4: Likewise.
60492         * m4/vasnprintf.m4: Likewise.
60493         * modules/allocsa (Files): Remove m4/longdouble.m4.
60494         * modules/gettext (Files): Likewise.
60495         * modules/relocatable-prog-wrapper (Files): Likewise.
60496         * modules/vasnprintf (Files): Likewise.
60497         * modules/isnanl (Files): Likewise.
60498         (Include): Simplify.
60499         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60500         (Include): Simplify.
60501         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60502         (Include): Simplify.
60503         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60504         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60505         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60506         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60507         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60508         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60509         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60510         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60511         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60512         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60513         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60514         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60515         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60516         * tests/test-isnanl.c: Likewise.
60517         * tests/test-snprintf-posix.h: Likewise.
60518         * tests/test-sprintf-posix.h: Likewise.
60519         * tests/test-vasnprintf-posix.c: Likewise.
60520         * tests/test-vasnprintf-posix2.c: Likewise.
60521         * tests/test-vasprintf-posix.c: Likewise.
60522
60523 2007-04-06  Bruno Haible  <bruno@clisp.org>
60524
60525         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60526         * lib/math_.h [__DECC]: Include the overridden include file through
60527         #include_next, outside the double-inclusion guard.
60528         * lib/stdio_.h [__DECC]: Likewise.
60529         * lib/stdlib_.h [__DECC]: Likewise.
60530         * lib/string_.h [__DECC]: Likewise.
60531         * lib/time_.h [__DECC]: Likewise.
60532         * lib/wchar_.h [__DECC]: Likewise.
60533         * lib/wctype_.h [__DECC]: Likewise.
60534         * lib/inttypes_.h [__DECC]: Likewise.
60535         Reported by Albert Chin <china@thewrittenword.com> in
60536         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60537
60538 2007-04-04  Eric Blake  <ebb9@byu.net>
60539
60540         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60541         1.5.x.
60542
60543 2007-04-04  Bruno Haible  <bruno@clisp.org>
60544
60545         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60546         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60547
60548 2007-04-04  Bruno Haible  <bruno@clisp.org>
60549
60550         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60551         results for "%010a" of Infinity and NaN.
60552         * tests/test-vasprintf-posix.c (test_function): Likewise.
60553         * tests/test-snprintf-posix.h (test_function): Likewise.
60554         * tests/test-sprintf-posix.h (test_function): Likewise.
60555         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60556         * tests/test-printf-posix.h (test_function): Likewise.
60557         * tests/test-fprintf-posix.out: Update.
60558         Needed for FreeBSD 6.1.
60559
60560 2007-04-04  Bruno Haible  <bruno@clisp.org>
60561
60562         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60563         directly used by the gnulib modules nor by gnulib-tool.
60564
60565 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60566
60567         * DEPENDENCIES: Give overall description of version dependency
60568         desirability.  Use more-typical names for apps.
60569         Add shell, coreutils, diffutils, grep, tar, gzip.
60570
60571 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60572
60573         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60574
60575 2007-04-04  Karl Berry  <karl@gnu.org>
60576
60577         * MODULES.html.sh (func_module): missing '.
60578
60579 2007-04-03  Bruno Haible  <bruno@clisp.org>
60580
60581         * modules/argmatch-tests (Makefile.am): New variable
60582         test_argmatch_LDADD.
60583         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60584         * modules/array-list-tests (Makefile.am): New variable
60585         test_array_list_LDADD.
60586         * modules/array-oset-tests (Makefile.am): New variable
60587         test_array_oset_LDADD.
60588         * modules/avltree-list-tests (Makefile.am): New variable
60589         test_avltree_list_LDADD.
60590         * modules/avltree-oset-tests (Makefile.am): New variable
60591         test_avltree_oset_LDADD.
60592         * modules/avltreehash-list-tests (Makefile.am): New variable
60593         test_avltreehash_list_LDADD.
60594         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60595         test_canonicalize_lgpl_LDADD.
60596         * modules/carray-list-tests (Makefile.am): New variable
60597         test_carray_list_LDADD.
60598         * modules/dirname-tests (Makefile.am): New variable
60599         test_dirname_LDADD.
60600         * modules/linked-list-tests (Makefile.am): New variable
60601         test_linked_list_LDADD.
60602         * modules/linkedhash-list-tests (Makefile.am): New variable
60603         test_linkedhash_list_LDADD.
60604         * modules/rbtree-list-tests (Makefile.am): New variable
60605         test_rbtree_list_LDADD.
60606         * modules/rbtree-oset-tests (Makefile.am): New variable
60607         test_rbtree_oset_LDADD.
60608         * modules/rbtreehash-list-tests (Makefile.am): New variable
60609         test_rbtreehash_list_LDADD.
60610         * modules/xvasprintf-tests (Makefile.am): New variable
60611         test_xvasprintf_LDADD.
60612         Reported by Eric Blake.
60613
60614 2007-04-03  Eric Blake  <ebb9@byu.net>
60615
60616         * DEPENDENCIES: Weaken m4 requirements.
60617
60618 2007-04-03  Bruno Haible  <bruno@clisp.org>
60619
60620         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60621         * modules/isnanl-tests (configure.ac): Likewise.
60622
60623 2007-04-03  Ben Pfaff  <blp@gnu.org>
60624
60625         * modules/iconv_open: Add $(srcdir)/ to source directory
60626         references in Makefile fragments that call gperf, to fix VPATH
60627         builds.
60628
60629 2007-04-03  Bruno Haible  <bruno@clisp.org>
60630
60631         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60632         * lib/ldexpl.c: Undo last change.
60633
60634 2007-04-03  Bruno Haible  <bruno@clisp.org>
60635
60636         * modules/printf-frexpl (Depends-on): Undo last change.
60637         (Files): Add m4/ldexpl.m4.
60638
60639 2007-04-03  Bruno Haible  <bruno@clisp.org>
60640
60641         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60642         * modules/isnanl (Link): New section.
60643
60644         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60645         * modules/frexp (Link): New section.
60646
60647         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60648         * modules/frexpl (Link): New section.
60649
60650         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60651         * modules/ldexpl (Link): New section.
60652
60653 2007-04-03  Bruno Haible  <bruno@clisp.org>
60654
60655         * modules/TEMPLATE-EXTENDED: New file.
60656         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60657
60658 2007-04-03  Bruno Haible  <bruno@clisp.org>
60659
60660         * DEPENDENCIES: New file.
60661         Suggested by Simon Josefsson.
60662
60663 2007-04-03  Bruno Haible  <bruno@clisp.org>
60664
60665         * doc/gnulib.texi: Escape @.
60666
60667 2007-04-03  James Youngman  <jay@gnu.org>
60668         and Paul Eggert  <eggert@cs.ucla.edu>
60669
60670         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60671         birthtime on all systems that have birthtime, not just those which
60672         use st_birthtimensec rather than st_birthtim.  Putting zero in
60673         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60674         that the birth time is not available for files on an NFS mount.
60675
60676 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60677
60678         * modules/memxor: Move back from crypto/, suggested by Bruno.
60679         * modules/crypto/hmac-sha1: Fix memxor dependency.
60680
60681         * modules/crypto/gc: Moved from ../.
60682
60683 2007-04-02  Eric Blake  <ebb9@byu.net>
60684
60685         * lib/ldexpl.c (includes): Avoid libm.
60686
60687         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60688
60689 2007-04-02  Bruno Haible  <bruno@clisp.org>
60690
60691         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60692         on IRIX.
60693
60694 2007-04-02  Bruno Haible  <bruno@clisp.org>
60695
60696         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60697         x86 or x86_64 platforms running MacOS X.
60698         Reported by Ryan Schmidt <@ryandesign.com>.
60699
60700 2007-04-02  Bruno Haible  <bruno@clisp.org>
60701
60702         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60703         i386.
60704
60705 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60706
60707         * modules/crypto/arcfour: Moved from ../.
60708         * modules/crypto/arcfour-tests: Moved from ../.
60709         * modules/crypto/arctwo: Moved from ../.
60710         * modules/crypto/arctwo-tests: Moved from ../.
60711         * modules/crypto/des: Moved from ../.
60712         * modules/crypto/des-tests: Moved from ../.
60713         * modules/crypto/gc-arcfour: Moved from ../.
60714         * modules/crypto/gc-arcfour-tests: Moved from ../.
60715         * modules/crypto/gc-arctwo: Moved from ../.
60716         * modules/crypto/gc-arctwo-tests: Moved from ../.
60717         * modules/crypto/gc-des: Moved from ../.
60718         * modules/crypto/gc-des-tests: Moved from ../.
60719         * modules/crypto/gc-hmac-md5: Moved from ../.
60720         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60721         * modules/crypto/gc-hmac-sha1: Moved from ../.
60722         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60723         * modules/crypto/gc-md2: Moved from ../.
60724         * modules/crypto/gc-md2-tests: Moved from ../.
60725         * modules/crypto/gc-md4: Moved from ../.
60726         * modules/crypto/gc-md4-tests: Moved from ../.
60727         * modules/crypto/gc-md5: Moved from ../.
60728         * modules/crypto/gc-md5-tests: Moved from ../.
60729         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60730         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60731         * modules/crypto/gc-random: Moved from ../.
60732         * modules/crypto/gc-rijndael: Moved from ../.
60733         * modules/crypto/gc-rijndael-tests: Moved from ../.
60734         * modules/crypto/gc-sha1: Moved from ../.
60735         * modules/crypto/gc-sha1-tests: Moved from ../.
60736         * modules/crypto/gc-tests: Moved from ../.
60737         * modules/crypto/hmac-md5: Moved from ../.
60738         * modules/crypto/hmac-md5-tests: Moved from ../.
60739         * modules/crypto/hmac-sha1: Moved from ../.
60740         * modules/crypto/hmac-sha1-tests: Moved from ../.
60741         * modules/crypto/md2: Moved from ../.
60742         * modules/crypto/md2-tests: Moved from ../.
60743         * modules/crypto/md4: Moved from ../.
60744         * modules/crypto/md4-tests: Moved from ../.
60745         * modules/crypto/md5: Moved from ../.
60746         * modules/crypto/md5-tests: Moved from ../.
60747         * modules/crypto/memxor: Moved from ../.
60748         * modules/crypto/rijndael: Moved from ../.
60749         * modules/crypto/rijndael-tests: Moved from ../.
60750         * modules/crypto/sha1: Moved from ../.
60751
60752 2007-03-30  James Youngman  <jay@gnu.org>
60753
60754         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60755         rename() to change the ctime of a file (because ctime is unaffected
60756         by rename on jfs2 on AIX 5.1).
60757         (main): Start by doing cleanup, in case a previous run failed leaving
60758         test files behind.
60759
60760 2007-03-31  Bruno Haible  <bruno@clisp.org>
60761
60762         Support old proprietary implementations of iconv.
60763         * modules/iconv_open: New file.
60764         * lib/iconv_.h: New file.
60765         * m4/iconv_h.m4: New file.
60766         * lib/iconv_open.c: New file.
60767         * lib/iconv_open-aix.gperf: New file.
60768         * lib/iconv_open-hpux.gperf: New file.
60769         * lib/iconv_open-irix.gperf: New file.
60770         * lib/iconv_open-osf.gperf: New file.
60771         * m4/iconv_open.m4: New file.
60772         * modules/linebreak (Depends-on): Add iconv_open.
60773         * modules/striconv (Depends-on): Likewise.
60774         * modules/striconveh (Depends-on): Likewise.
60775         * modules/unicodeio (Depends-on): Likewise.
60776         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60777         (iconv_t)(-1).
60778         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60779         conversion if cd is (iconv_t)(-1).
60780         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60781         is not possible.
60782
60783 2007-03-31  Bruno Haible  <bruno@clisp.org>
60784
60785         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60786         work on Solaris either. Protect also second use of "autodetect_jp".
60787
60788 2007-03-31  Bruno Haible  <bruno@clisp.org>
60789
60790         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60791         the function is not present.
60792
60793 2007-03-31  Bruno Haible  <bruno@clisp.org>
60794
60795         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60796         the function is not present.
60797
60798 2007-03-31  Bruno Haible  <bruno@clisp.org>
60799
60800         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60801         a bug in HP-UX iconv_open().
60802
60803 2007-03-31  Bruno Haible  <bruno@clisp.org>
60804
60805         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60806         (Mathematics <math.h>): New section, add fpieee.
60807         (Input/output <stdio.h>): Add fseterr.
60808         (Mathematics <math.h>): New section, add printf-frexp.
60809         (Container data structures): Add sublist.
60810         (Core language properties): Add fpucw, inline.
60811         (Functions for greatest-width integer types <inttypes.h>): Add
60812         imaxabs, imaxdiv, inttypes.
60813         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60814         isnanl-nolibm, ldexp.
60815         (Mathematics <math.h>): New section, add printf-frexpl.
60816         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60817         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60818         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60819         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60820         (Unicode string functions): Add unistr/u*-mbtoucr.
60821         (Java): Add javacomp-script, javaexec-script.
60822         (C#): Add csharpcomp-script, csharpexec-script.
60823         (Support for building libraries and executables): Add havelib,
60824         relocatable-*.
60825         (Support for maintaining and releasing projects): Renamed from
60826         'Support for maintaining and release projects'. Add announce-gen.
60827
60828 2007-03-31  Bruno Haible  <bruno@clisp.org>
60829
60830         * README: Talk primarily about git.
60831         (git and CVS): Renamed from CVS.
60832         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60833         gnulib is available through git.
60834         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60835
60836 2007-03-30  Bruno Haible  <bruno@clisp.org>
60837
60838         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60839         * lib/poll_.h: Likewise.
60840         * lib/stat_.h: Likewise.
60841         * lib/sys_time_.h: Likewise.
60842         * lib/sysexit_.h: Likewise.
60843         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60844         * lib/stdbool_.h: Likewise.
60845         * lib/byteswap_.h: Add double-inclusion guard.
60846
60847 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60848
60849         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60850
60851 2007-03-30  Karl Berry  <karl@gnu.org>
60852
60853         * config/srclist-update: double space after USA in the license
60854         substitution, since that's how it's usually (?) written.
60855
60856 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60857
60858         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60859         reported by Bruno Haible.
60860
60861 2007-03-29  Bruno Haible  <bruno@clisp.org>
60862
60863         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60864         a bug in AIX iconv().
60865
60866 2007-03-29  Bruno Haible  <bruno@clisp.org>
60867
60868         * modules/ldexpl-tests: New file.
60869         * tests/test-ldexpl.c: New file.
60870
60871 2007-03-29  Bruno Haible  <bruno@clisp.org>
60872
60873         * lib/ldexpl.c: Include fpucw.h.
60874         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60875         multiplication.
60876         * modules/ldexpl (Depends-on): Add fpucw.
60877
60878 2007-03-29  Bruno Haible  <bruno@clisp.org>
60879
60880         * modules/ldexpl: New file.
60881         * m4/ldexpl.m4: New file.
60882         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60883         set.
60884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60885         REPLACE_LDEXPL.
60886         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60887         REPLACE_LDEXPL.
60888         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60889         gl_FUNC_LDEXPL_WORKS.
60890         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60891         * modules/mathl (Files): Remove lib/ldexpl.c.
60892         (Depends-on): Add ldexpl.
60893
60894 2007-03-29  Bruno Haible  <bruno@clisp.org>
60895
60896         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60897
60898 2007-03-29  Bruno Haible  <bruno@clisp.org>
60899
60900         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60901         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60902         and possibly also HP-UX.
60903         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60904         work on AIX, IRIX, HP-UX, OSF/1.
60905         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60906         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60907         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60908         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60909         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60910         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60911
60912 2007-03-29  Bruno Haible  <bruno@clisp.org>
60913
60914         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60915
60916 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60917
60918         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60919         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60920
60921 2007-03-29  Eric Blake  <ebb9@byu.net>
60922
60923         * lib/acl-internal.h: Remove redundant include.
60924         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60925         Cygwin when a file is locked.
60926
60927 2007-03-29  Bruno Haible  <bruno@clisp.org>
60928
60929         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60930         file.
60931         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60932
60933 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60934
60935         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60936         try to remove a parent directory if the child couldn't be removed
60937         (except for the first rmdir, which could fail because the child
60938         doesn't exist).  Problem reported by Jeff Blaine in
60939         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60940
60941 2007-03-28  Bruno Haible  <bruno@clisp.org>
60942
60943         * lib/striconveh.c (utf8conv_carefully): New function.
60944         (mem_cd_iconveh_internal): Invoke it.
60945
60946 2007-03-28  Bruno Haible  <bruno@clisp.org>
60947
60948         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60949         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60950         input.
60951         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60952         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60953         unistr/u8-uctomb.
60954
60955 2007-03-28  Bruno Haible  <bruno@clisp.org>
60956
60957         * modules/unistr/u8-mbtoucr: New file.
60958         * lib/unistr/u8-mbtoucr.c: New file.
60959         * modules/unistr/u16-mbtoucr: New file.
60960         * lib/unistr/u16-mbtoucr.c: New file.
60961         * modules/unistr/u16-mbtoucr: New file.
60962         * lib/unistr/u16-mbtoucr.c: New file.
60963         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60964
60965 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60966             Bruno Haible  <bruno@clisp.org>
60967
60968         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60969         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60970         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60971
60972         * m4/stdio_h.m4: Add stubs for vasprintf too.
60973
60974         * modules/stdio: Support vasprintf in sed command.
60975
60976         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60977         vasprintf.h.  Add stdio module indicator.
60978
60979         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60980         vasprintf.h.
60981
60982         * lib/vasprintf.h: File removed.
60983
60984         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60985         * lib/vasprintf.c: Ditto.
60986         * lib/xvasprintf.c: Ditto.
60987         * tests/test-vasprintf-posix.c: Ditto.
60988         * tests/test-vasprintf.c: Ditto.
60989
60990 2007-03-27  Bruno Haible  <bruno@clisp.org>
60991
60992         Make vasnprintf multithread-safe.
60993         * lib/vasnprintf.c (decimal_point_char): New function.
60994         (VASNPRINTF): Use it.
60995         Suggested by Simon Josefsson.
60996
60997 2007-03-27  Eric Blake  <ebb9@byu.net>
60998
60999         Support sub-second birthtime on cygwin.
61000         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61001         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61002         (get_stat_birthtime): Also work with st_birthtim.
61003
61004 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61005
61006         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61007         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61008         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61009         (get_stat_birthtime_ns): Simplify compile-time tests.
61010         (get_stat_birthtime): Change the API to look like
61011         get_stat_mtime etc., except return a negative tv_nsec on error.
61012         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61013         Don't check for "spare" fields.
61014         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61015         or for struct stat.st_birthtime, as these tests aren't used.
61016         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61017
61018 2007-03-27  Bruno Haible  <bruno@clisp.org>
61019
61020         * lib/stat-time.h: Include <sys/stat.h>.
61021
61022 2007-03-27  James Youngman  <jay@gnu.org>
61023
61024         * lib/stat-time.h (get_stat_birthtime): New function for
61025           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61026         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61027           and its variants.
61028         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61029         * modules/stat-time-test: New file.
61030         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61031
61032 2007-03-26  Bruno Haible  <bruno@clisp.org>
61033
61034         Better support of signalling NaNs.
61035         * lib/atanl.c: Include isnanl.h.
61036         (atanl): Perform test for NaN at the beginning of the function and
61037         through a call to isnanl.
61038         * lib/cosl.c: Include isnanl.h.
61039         (cosl): Perform test for NaN at the beginning of the function and
61040         through a call to isnanl.
61041         * lib/ldexpl.c: Include isnanl.h.
61042         (ldexpl): Perform test for NaN through a call to isnanl.
61043         * lib/logl.c: Include isnanl.h.
61044         (logl): Perform test for NaN at the beginning of the function and
61045         through a call to isnanl.
61046         * lib/sinl.c: Include isnanl.h.
61047         (sinl): Perform test for NaN at the beginning of the function and
61048         through a call to isnanl.
61049         * lib/sqrtl.c: Include isnanl.h.
61050         (sqrtl): Perform test for NaN at the beginning of the function and
61051         through a call to isnanl.
61052         * lib/tanl.c: Include isnanl.h.
61053         (tanl): Perform test for NaN at the beginning of the function and
61054         through a call to isnanl.
61055         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61056         * modules/mathl (Depends-on): Add isnanl.
61057
61058 2007-03-26  Eric Blake  <ebb9@byu.net>
61059
61060         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61061         regression in logic sense of previous patch.
61062
61063 2007-03-26  Bruno Haible  <bruno@clisp.org>
61064
61065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61066         unportable shell command "if ! ...".
61067         Reported by Ralf Wildenhues.
61068
61069 2007-03-25  Bruno Haible  <bruno@clisp.org>
61070
61071         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61072         <sysexits.h> file, and only add EX_CONFIG.
61073         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61074         absolute file name and whether it is sufficient. Substitute also
61075         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61076         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61077         ABSOLUTE_SYSEXITS_H into sysexits.h.
61078
61079 2007-03-25  Bruno Haible  <bruno@clisp.org>
61080
61081         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61082         hints is NULL.
61083
61084 2007-03-25  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61087         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61088
61089 2007-03-25  Bruno Haible  <bruno@clisp.org>
61090
61091         * lib/vasnprintf.c: Include langinfo.h.
61092         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61093         multithread-safe.
61094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61095         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61096         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61097         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61098         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61099         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61100         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61101         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61102         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61103         Reported by Simon Josefsson.
61104
61105 2007-03-25  Bruno Haible  <bruno@clisp.org>
61106
61107         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61108         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61109         * modules/vasnprintf (Depends-on): Add stdint.
61110
61111 2007-03-25  Bruno Haible  <bruno@clisp.org>
61112
61113         * modules/fpieee: New file.
61114         * m4/fpieee.m4: New file.
61115         * modules/isnan-nolibm (Depends-on): Add fpieee.
61116         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61117         * modules/isnanl (Depends-on): Add fpieee.
61118
61119 2007-03-25  Bruno Haible  <bruno@clisp.org>
61120
61121         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61122
61123 2007-03-25  Bruno Haible  <bruno@clisp.org>
61124
61125         Avoid test failures on IRIX 6.5.
61126         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61127         (main): Use it.
61128         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61129         macros.
61130         (main): Use them.
61131
61132 2007-03-25  Bruno Haible  <bruno@clisp.org>
61133
61134         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61135         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61136         exists but doesn't work.
61137         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61138         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61140         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61141         math.h.
61142
61143 2007-03-25  Bruno Haible  <bruno@clisp.org>
61144
61145         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61146         returns inf. Needed on IRIX 6.5.
61147
61148 2007-03-25  Bruno Haible  <bruno@clisp.org>
61149
61150         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61151         (main): Use isnanl instead of x != x idiom.
61152         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61153
61154         * tests/test-frexp.c: Include isnan.h.
61155         (main): Use isnan instead of x != x idiom.
61156         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61157
61158 2007-03-25  Bruno Haible  <bruno@clisp.org>
61159
61160         * tests/test-frexp.c (NaN): New function/macro.
61161         (main): Use it instead of 0.0 / 0.0.
61162         * tests/test-isnan.c (NaN): New function/macro.
61163         (main): Use it instead of 0.0 / 0.0.
61164         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61165         (test_function): Use it instead of 0.0 / 0.0.
61166         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61167         (test_function): Use it instead of 0.0 / 0.0.
61168         * tests/test-snprintf-posix.h (NaN): New function/macro.
61169         (test_function): Use it instead of 0.0 / 0.0.
61170         * tests/test-sprintf-posix.h (NaN): New function/macro.
61171         (test_function): Use it instead of 0.0 / 0.0.
61172         * tests/test-fprintf-posix.h (NaN): New function/macro.
61173         (test_function): Use it instead of 0.0 / 0.0.
61174         * tests/test-printf-posix.h (NaN): New function/macro.
61175         (test_function): Use it instead of 0.0 / 0.0.
61176
61177         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61178
61179 2007-03-25  Bruno Haible  <bruno@clisp.org>
61180
61181         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61182
61183 2007-03-25  Bruno Haible  <bruno@clisp.org>
61184
61185         * lib/regexec.c (merge_state_with_log): Make static.
61186
61187 2007-03-25  Bruno Haible  <bruno@clisp.org>
61188
61189         * lib/trigl.c (kernel_rem_pio2): Make static.
61190
61191 2007-03-25  Bruno Haible  <bruno@clisp.org>
61192
61193         * lib/sincosl.c (sincosl_table): Make static.
61194
61195 2007-03-25  Bruno Haible  <bruno@clisp.org>
61196
61197         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61198         if the compiler does not support C99.
61199
61200 2007-03-25  Bruno Haible  <bruno@clisp.org>
61201
61202         * modules/time (Makefile.am): Ensure all rule action lines start with a
61203         tab.
61204
61205 2007-03-24  Bruno Haible  <bruno@clisp.org>
61206
61207         * modules/tsearch-tests: New file.
61208         * tests/test-tsearch.sh: New file.
61209         * tests/test-tsearch.c: New file, mostly copied from glibc.
61210
61211         * modules/search-tests: New file.
61212         * tests/test-search.c: New file.
61213
61214         * modules/search: New file.
61215         * lib/search_.h: New file, incorporating lib/tsearch.h.
61216         * m4/search_h.m4: New file.
61217         * lib/tsearch.h: Remove file.
61218         * lib/tsearch.c: Include search.h instead of tsearch.h.
61219         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61220         HAVE_TSEARCH.
61221         * modules/tsearch (Files): Remove lib/tsearch.h.
61222         (Depends-on): Add search.
61223         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61224         (Include): Change tsearch.h into search.h.
61225
61226 2007-03-24  Bruno Haible  <bruno@clisp.org>
61227
61228         * modules/fpucw: New file.
61229         * lib/fpucw.h: New file.
61230         * lib/frexp.c: Include fpucw.h.
61231         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61232         (FUNC): Use them.
61233         * lib/printf-frexp.c: Include fpucw.h.
61234         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61235         (FUNC): Use them.
61236         * lib/vasnprintf.c: Include fpucw.h.
61237         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61238         'long double' calculations.
61239         * tests/test-frexpl.c: Include fpucw.h.
61240         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61241         * tests/test-printf-frexpl.c: Include fpucw.h.
61242         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61243         * modules/frexpl (Depends-on): Add fpucw.
61244         * modules/printf-frexpl (Depends-on): Likewise.
61245         * modules/fprintf-posix (Depends-on): Likewise.
61246         * modules/snprintf-posix (Depends-on): Likewise.
61247         * modules/sprintf-posix (Depends-on): Likewise.
61248         * modules/vasnprintf-posix (Depends-on): Likewise.
61249         * modules/vasprintf-posix (Depends-on): Likewise.
61250         * modules/vfprintf-posix (Depends-on): Likewise.
61251         * modules/vsnprintf-posix (Depends-on): Likewise.
61252         * modules/vsprintf-posix (Depends-on): Likewise.
61253         * modules/frexpl-tests (Depends-on): Likewise.
61254         * modules/printf-frexpl-tests (Depends-on): Likewise.
61255
61256 2007-03-24  Bruno Haible  <bruno@clisp.org>
61257
61258         * lib/float+.h: New file.
61259         * lib/isnan.c: Include float+.h.
61260         (SIZE): New macro.
61261         (FUNC): Compare only SIZE bytes of the value.
61262         * lib/vasnprintf.c: Include float+.h.
61263         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61264         SIZEOF_LDBL or SIZEOF_DBL bytes.
61265         * modules/isnan-nolibm (Files): Add lib/float+.h.
61266         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61267         * modules/isnanl (Files): Add lib/float+.h.
61268         * modules/vasnprintf (Files): Add lib/float+.h.
61269
61270 2007-03-24  Bruno Haible  <bruno@clisp.org>
61271
61272         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61273         include isnanl-nolibm.h.
61274
61275 2007-03-24  Bruno Haible  <bruno@clisp.org>
61276
61277         * tests/test-read-file.c (main): Don't produce spurious output for
61278         expected situations. Make the test fail if it encountered unexpected
61279         results.
61280
61281 2007-03-24  Bruno Haible  <bruno@clisp.org>
61282
61283         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61284         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61285
61286 2007-03-24  Bruno Haible  <bruno@clisp.org>
61287
61288         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61289
61290 2007-03-24  Bruno Haible  <bruno@clisp.org>
61291
61292         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61293         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61294
61295         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61296         * modules/utf8-ucs4: Turn into a symbolic link to module
61297         unistr/u8-mbtouc.
61298
61299         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61300         utf8-ucs4-unsafe.
61301         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61302         unistr/u8-mbtouc-unsafe.
61303
61304         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61305         * modules/utf16-ucs4: Turn into a symbolic link to module
61306         unistr/u16-mbtouc.
61307
61308         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61309         utf16-ucs4-unsafe.
61310         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61311         unistr/u16-mbtouc-unsafe.
61312
61313         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61314         * modules/ucs4-utf8: Turn into a symbolic link to module
61315         unistr/u8-ubtomb.
61316
61317         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61318         * modules/ucs4-utf16: Turn into a symbolic link to module
61319         unistr/u16-ubtomb.
61320
61321 2007-03-24  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61324         Enable the function only if HAVE_INLINE.
61325         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61326         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61327         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61328         Enable the function only if HAVE_INLINE.
61329         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61330         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61331         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61332         Enable the function only if HAVE_INLINE.
61333         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61334         Enable the function only if HAVE_INLINE.
61335         * modules/utf8-ucs4: Update.
61336         * modules/utf8-ucs4-unsafe: Update.
61337         * modules/utf16-ucs4: Update.
61338         * modules/utf16-ucs4-unsafe: Update.
61339         * modules/ucs4-utf8: Update.
61340         * modules/ucs4-utf16: Update.
61341
61342 2007-03-24  Bruno Haible  <bruno@clisp.org>
61343
61344         * lib/utf8-ucs4.h: Remove file.
61345         * lib/utf8-ucs4-unsafe.h: Remove file.
61346         * lib/utf16-ucs4.h: Remove file.
61347         * lib/utf16-ucs4-unsafe.h: Remove file.
61348         * lib/ucs4-utf8.h: Remove file.
61349         * lib/ucs4-utf16.h: Remove file.
61350         * lib/unistr.h: Include their previous contents.
61351         * m4/utf-ucs4.m4: Remove file.
61352         * m4/ucs4-utf.m4: Remove file.
61353         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61354         (Depends-on): Add unistr/base.
61355         (configure.ac): Remove gl_UTF_UCS4.
61356         (Makefile.am): Update.
61357         (Include): Change to unistr.h.
61358         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61359         (Depends-on): Add unistr/base.
61360         (configure.ac): Remove gl_UTF_UCS4.
61361         (Makefile.am): Update.
61362         (Include): Change to unistr.h.
61363         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61364         (Depends-on): Add unistr/base.
61365         (configure.ac): Remove gl_UTF_UCS4.
61366         (Makefile.am): Update.
61367         (Include): Change to unistr.h.
61368         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61369         (Depends-on): Add unistr/base.
61370         (configure.ac): Remove gl_UTF_UCS4.
61371         (Makefile.am): Update.
61372         (Include): Change to unistr.h.
61373         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61374         (Depends-on): Add unistr/base.
61375         (configure.ac): Remove gl_UCS4_UTF.
61376         (Makefile.am): Update.
61377         (Include): Change to unistr.h.
61378         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61379         (Depends-on): Add unistr/base.
61380         (configure.ac): Remove gl_UCS4_UTF.
61381         (Makefile.am): Update.
61382         (Include): Change to unistr.h.
61383         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61384         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61385         utf8-ucs4-unsafe.h.
61386         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61387         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61388         utf16-ucs4-unsafe.h.
61389         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61390         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61391         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61392         * lib/unistr/u8-strchr.c: Likewise.
61393         * lib/unistr/u8-strrchr.c: Likewise.
61394         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61395         * lib/unistr/u16-strchr.c: Likewise.
61396         * lib/unistr/u16-strrchr.c: Likewise.
61397         * lib/striconveh.c: Update.
61398         * lib/linebreak.c: Update.
61399
61400 2007-03-24  Bruno Haible  <bruno@clisp.org>
61401
61402         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61403         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61404
61405 2007-03-22  Bruno Haible  <bruno@clisp.org>
61406
61407         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61408
61409 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61410
61411         * MODULES.html.sh (File system functions): New module write-any-file.
61412         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61413         * m4/write-any-file.m4: New files.
61414
61415 2007-03-23  Eric Blake  <ebb9@byu.net>
61416
61417         * gnulib-tool: Rearrange space-tab sequences, since some editors
61418         like to eat them.
61419
61420 2007-03-23  Eric Blake  <ebb9@byu.net>
61421
61422         * lib/version-etc.c (version_etc_va): Update license wording to
61423         be more concise.  Recommended by Richard Stallman.
61424
61425 2007-03-22  Bruno Haible  <bruno@clisp.org>
61426
61427         * lib/poll.c (MSG_PEEK): New fallback definition.
61428
61429 2007-03-22  Bruno Haible  <bruno@clisp.org>
61430
61431         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61432         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61433         (main): Update.
61434         Fixes a compilation error on BeOS.
61435
61436 2007-03-22  Bruno Haible  <bruno@clisp.org>
61437
61438         * modules/frexpl-tests: New file.
61439         * tests/test-frexpl.c: New file.
61440
61441         * modules/frexpl: New file.
61442         * m4/frexpl.m4: New file.
61443         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61444         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61446         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61447         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61448         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61449
61450 2007-03-22  Bruno Haible  <bruno@clisp.org>
61451
61452         * lib/frexpl.c: Share code with lib/frexp.c.
61453         * modules/mathl (Files): Add lib/frexp.c.
61454         (Depends-on): Add isnanl-nolibm.
61455
61456 2007-03-22  Bruno Haible  <bruno@clisp.org>
61457
61458         * modules/printf-frexp (Files): Add m4/frexp.m4.
61459         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61460         only if the found frexp function actually works.
61461
61462 2007-03-22  Bruno Haible  <bruno@clisp.org>
61463
61464         * lib/frexp.c: Remove older implementation that uses divisions.
61465
61466 2007-03-21  Bruno Haible  <bruno@clisp.org>
61467
61468         * modules/frexp-tests: New file.
61469         * tests/test-frexp.c: New file.
61470
61471         * modules/frexp: New file.
61472         * lib/frexp.c: New file.
61473         * m4/frexp.m4: New file.
61474         * lib/math_.h (frexp): New declaration.
61475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61476         REPLACE_FREXP.
61477         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61478
61479 2007-03-21  Bruno Haible  <bruno@clisp.org>
61480
61481         * modules/isnanl-tests: New file.
61482         * tests/test-isnanl.c: New file.
61483
61484         * modules/isnanl: New file.
61485         * lib/isnanl.h: New file.
61486         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61487         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61488         gl_FUNC_ISNANL_WORKS.
61489         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61490         New macros.
61491
61492 2007-03-21  Bruno Haible  <bruno@clisp.org>
61493
61494         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61495         lib/isnanl.h.
61496         (Include): Update.
61497         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61498         * lib/vasnprintf.c: Update.
61499         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61500         tests/test-isnanl.h, remove tests/test-isnanl.c.
61501         (Makefile.am): Update.
61502         * tests/test-isnanl-nolibm.c: New file.
61503         * tests/test-isnanl.h: New file.
61504         * tests/test-isnanl.c: Remove file.
61505
61506 2007-03-21  Jim Meyering  <jim@meyering.net>
61507
61508         When trying to open ".", treat ESTALE like EACCES.
61509         * lib/savewd.c (savewd_save): Resort to forking not just upon
61510         failure with EACCES, but also when errno is ESTALE.
61511
61512 2007-03-20  Bruno Haible  <bruno@clisp.org>
61513
61514         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61515         Needed on AIX 5.1. Reported by Matthew Woehlke.
61516
61517 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61518
61519         Suggestions by Bruno Haible:
61520         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61521         our own.
61522         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61523         * modules/acl (Depends-on): Add gettext.
61524
61525 2007-03-19  Bruno Haible  <bruno@clisp.org>
61526
61527         * modules/iconvme: Remove file.
61528         * lib/iconvme.h: Remove file.
61529         * lib/iconvme.c: Remove file.
61530         * m4/iconvme.m4: Remove file.
61531
61532 2007-03-19  Bruno Haible  <bruno@clisp.org>
61533
61534         * doc/relocatable-maint.texi: Break long shell script line.
61535         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61536
61537 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61538
61539         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61540         handle file_has_acl.
61541         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61542         * lib/acl.c: Move header inclusions and related macro defns into
61543         lib/acl-internal.h.
61544         (S_ISLNK): Remove defn, since that's now done for us.
61545         (file_has_acl): Move to lib/file-has-acl.c.
61546         Call acl_trivial if available.  This is the crucial part of the fix.
61547         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61548         shared within the library.  Rewrite a bit, partly to make it compatible
61549         with the GNU coding style.
61550         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61551         Remove unnecessary double-quotes.
61552         Don't test for acl_to_text; the build will catch that.
61553         Replace acl_entries if it doesn't exist and it is needed.
61554         Check for -lsec and acl_trivial (as used on Solaris 10).
61555         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61556         lib/file-has-acl.c.
61557         (Depends-on): Add sys_stat, for S_ISLNK.
61558
61559 2007-03-19  Ben Pfaff  <blp@gnu.org>
61560
61561         * doc/gnulib.texi: Fix typos.
61562         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61563
61564 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61565
61566         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61567         If size is zero here, buf must be zero.
61568
61569 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61570
61571         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61572         <bruno@clisp.org>.
61573
61574 2007-03-18  Bruno Haible  <bruno@clisp.org>
61575
61576         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61577         Suggested by Eric Blake.
61578
61579 2007-03-18  Ben Pfaff  <blp@gnu.org>
61580
61581         * doc/relocatable.texi: Recommend using as prefix a directory
61582         that does not exist and will never be created.  Based on
61583         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61584         and others.
61585
61586 2007-03-17  Bruno Haible  <bruno@clisp.org>
61587
61588         * lib/fchownat.c: Include lchown.h.
61589
61590 2007-03-17  Bruno Haible  <bruno@clisp.org>
61591
61592         Fix endless loop when the given allocated size was > INT_MAX.
61593         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61594         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61595         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61596         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61597         * lib/sprintf.c (sprintf): Likewise.
61598
61599 2007-03-17  Bruno Haible  <bruno@clisp.org>
61600
61601         * tests/test-argp-2.sh (func_compare): Output a context diff.
61602
61603 2007-03-17  Bruno Haible  <bruno@clisp.org>
61604
61605         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61606         locale's decimal-point character.
61607
61608 2007-03-17  Bruno Haible  <bruno@clisp.org>
61609
61610         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61611         before comparing it. Needed because on some platforms (e.g. x86) a
61612         'long double' occupies less bytes than sizeof (long double).
61613
61614 2007-03-17  Bruno Haible  <bruno@clisp.org>
61615
61616         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61617         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61618         * tests/test-getaddrinfo.c (simple): Likewise.
61619         * tests/test-read-file.c (main): Likewise.
61620
61621 2007-03-17  Bruno Haible  <bruno@clisp.org>
61622
61623         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61624
61625 2007-03-17  Bruno Haible  <bruno@clisp.org>
61626
61627         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61628         unused variable.
61629
61630 2007-03-17  Bruno Haible  <bruno@clisp.org>
61631
61632         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61633         * tests/test-c-strncasecmp.c: Likewise.
61634
61635 2007-03-17  Bruno Haible  <bruno@clisp.org>
61636
61637         * modules/stdlib (Depends-on): Add unistd.
61638         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61639         Needed for MacOS X 10.3.
61640
61641 2007-03-17  Bruno Haible  <bruno@clisp.org>
61642
61643         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61644
61645 2007-03-17  Bruno Haible  <bruno@clisp.org>
61646
61647         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61648
61649 2007-03-17  Bruno Haible  <bruno@clisp.org>
61650
61651         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61652         to reflect files copied from gnulib (with or without modifications).
61653         Suggested by Jim Meyering.
61654
61655 2007-03-17  Eric Blake  <ebb9@byu.net>
61656
61657         * NEWS: Document stdlib change from 2007-02-18.
61658
61659 2007-03-17  Jim Meyering  <jim@meyering.net>
61660
61661         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61662         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61663         someone uses a name containing shell meta-characters.
61664         Reported by Alfred M. Szmidt.
61665
61666         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61667
61668 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61669
61670         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61671         and copy gettext configuration files only if configure.ac contains
61672         a use of AM_GNU_GETTEXT_VERSION.
61673
61674 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61675
61676         * build-aux/bootstrap (gnulib_name): New variable.
61677         (gnulib_tool_options): Use it.
61678
61679 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61680
61681         * tests/test-des.c: Use new namespace.
61682
61683 2007-03-15  Bruno Haible  <bruno@clisp.org>
61684
61685         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61686         Reported by James Youngman <jay@gnu.org>.
61687
61688 2007-03-15  Bruno Haible  <bruno@clisp.org>
61689
61690         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61691         declared prototype. Needed with cc on OSF/1 5.1.
61692
61693 2007-03-15  Bruno Haible  <bruno@clisp.org>
61694
61695         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61696         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61697         (struct gl_list_implementation): Add dispose_fn argument to the
61698         'create_empty', 'create' methods.
61699         (struct gl_list_impl_base): Add field 'dispose_fn'.
61700         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61701         argument.
61702         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61703         dispose_fn argument.
61704         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61705         dispose_fn on the dropped values.
61706         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61707         dispose_fn argument.
61708         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61709         dropped values.
61710         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61711         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61712         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61713         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61714         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61715         argument.
61716         (gl_tree_list_free): Call dispose_fn on the dropped values.
61717         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61718         the dropped values.
61719         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61720         Add dispose_fn argument.
61721         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61722         Call dispose_fn on the dropped values.
61723         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61724         Add dispose_fn argument.
61725         (gl_sublist_create): Initialize the 'dispose_fn' field.
61726         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61727         * tests/test-array_list.c (main): Update.
61728         * tests/test-carray_list.c (main): Update.
61729         * tests/test-avltree_list.c (main): Update.
61730         * tests/test-rbtree_list.c (main): Update.
61731         * tests/test-avltreehash_list.c (main): Update.
61732         * tests/test-rbtreehash_list.c (main): Update.
61733         * tests/test-linked_list.c (main): Update.
61734         * tests/test-linkedhash_list.c (main): Update.
61735         * tests/test-array_oset.c (main): Update.
61736
61737 2007-03-15  Bruno Haible  <bruno@clisp.org>
61738
61739         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61740         (gl_oset_create_empty): Add dispose_fn argument.
61741         (struct gl_oset_implementation): Add dispose_fn argument to
61742         'create_empty' method.
61743         (struct gl_oset_impl_base): Add dispose_fn field.
61744         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61745         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61746         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61747         values.
61748         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61749         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61750         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61751         dropped value.
61752         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61753         dropped value.
61754         * tests/test-array_oset.c (main): Update.
61755         * tests/test-avltree_oset.c (main): Update.
61756         * tests/test-rbtree_oset.c (main): Update.
61757         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61758
61759 2007-03-13  Bruno Haible  <bruno@clisp.org>
61760
61761         * tests/test-stdbool.c (i): Update after last patch.
61762
61763 2007-03-12  Bruno Haible  <bruno@clisp.org>
61764
61765         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61766         the iswprint macro. Needed on Solaris 2.5.1.
61767
61768 2007-03-12  Bruno Haible  <bruno@clisp.org>
61769
61770         * tests/test-printf-frexp.c (main): Declare x as volatile.
61771
61772 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61773
61774         * doc/gnulib.texi (Build robot for gnulib): New section.
61775
61776 2007-03-12  Jim Meyering  <jim@meyering.net>
61777
61778         * build-aux/bootstrap: New file.
61779         * build-aux/bootstrap.conf: New file, from coreutils.
61780
61781 2007-03-11  Bruno Haible  <bruno@clisp.org>
61782
61783         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61784
61785 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61786
61787         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61788         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61789         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61790
61791 2007-03-11  Bruno Haible  <bruno@clisp.org>
61792
61793         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61794         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61795
61796 2007-03-11  Bruno Haible  <bruno@clisp.org>
61797
61798         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61799         formula. Needed for SunPRO C 5.0.
61800
61801 2007-03-11  Bruno Haible  <bruno@clisp.org>
61802
61803         * modules/long-options (Depends-on): Add getopt.
61804
61805 2007-03-11  Bruno Haible  <bruno@clisp.org>
61806
61807         * modules/modechange (Depends-on): Add stdbool.
61808
61809 2007-03-11  Bruno Haible  <bruno@clisp.org>
61810
61811         * modules/i-ring (Depends-on): Add stdbool.
61812
61813 2007-03-11  Bruno Haible  <bruno@clisp.org>
61814
61815         * modules/gc-des (Depends-on): Add stdbool.
61816
61817 2007-03-11  Bruno Haible  <bruno@clisp.org>
61818
61819         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61820
61821 2007-03-11  Bruno Haible  <bruno@clisp.org>
61822
61823         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61824
61825 2007-03-11  Bruno Haible  <bruno@clisp.org>
61826
61827         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61828
61829 2007-03-11  Bruno Haible  <bruno@clisp.org>
61830
61831         * lib/vasnprintf.c (sprintf): Undefine.
61832
61833 2007-03-11  Bruno Haible  <bruno@clisp.org>
61834
61835         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61836         initializers in SunPRO C and Compaq C compilers.
61837
61838 2007-03-11  Bruno Haible  <bruno@clisp.org>
61839
61840         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61841         decrementing code ANSI C compliant.
61842
61843 2007-03-11  Bruno Haible  <bruno@clisp.org>
61844
61845         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61846         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61847
61848 2007-03-11  Bruno Haible  <bruno@clisp.org>
61849
61850         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61851         <stdbool.h> substitute doesn't pass.
61852
61853 2007-03-11  Bruno Haible  <bruno@clisp.org>
61854
61855         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61856
61857 2007-03-11  Bruno Haible  <bruno@clisp.org>
61858
61859         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61860         script, for submission to autobuild.josefsson.org.
61861
61862 2007-03-10  Bruno Haible  <bruno@clisp.org>
61863
61864         * modules/canonicalize-lgpl-tests: New file.
61865         * tests/test-canonicalize-lgpl.sh: New file.
61866         * tests/test-canonicalize-lgpl.c: New file.
61867
61868         * modules/c-strcase-tests: New file.
61869         * tests/test-c-strcase.sh: New file.
61870         * tests/test-c-strcasecmp.c: New file.
61871         * tests/test-c-strncasecmp.c: New file.
61872
61873         * modules/atexit-tests: New file.
61874         * tests/test-atexit.sh: New file.
61875         * tests/test-atexit.c: New file.
61876
61877 2007-03-10  Bruno Haible  <bruno@clisp.org>
61878
61879         * tests/test-binary-io.sh: Use temporary filenames that are not so
61880         likely to clash with those of other tests (in a parallel make).
61881         * tests/test-binary-io.c: Likewise.
61882
61883 2007-03-10  Bruno Haible  <bruno@clisp.org>
61884
61885         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61886         fallback; use #error instead.
61887         Suggested by Simon Josefsson.
61888
61889 2007-03-10  Bruno Haible  <bruno@clisp.org>
61890
61891         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61892         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61893         first and the last.
61894
61895 2007-03-10  Bruno Haible  <bruno@clisp.org>
61896
61897         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61898
61899 2007-03-10  Bruno Haible  <bruno@clisp.org>
61900
61901         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61902         "make distcheck".
61903         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61904         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61905         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61906
61907 2007-03-10  Bruno Haible  <bruno@clisp.org>
61908
61909         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61910         variable.
61911         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61912         variable.
61913
61914 2007-03-09  Eric Blake  <ebb9@byu.net>
61915         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61916
61917         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61918         types are not being provided by gnulib.
61919         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61920         types are supported.
61921
61922 2007-03-10  Bruno Haible  <bruno@clisp.org>
61923
61924         * lib/stdio_.h (__attribute__): New macro.
61925         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61926         vsprintf): Specify __attribute__ __format__ for GCC.
61927         Suggested by Eric Blake.
61928
61929 2007-03-09  Bruno Haible  <bruno@clisp.org>
61930
61931         * modules/printf-posix-tests: New file.
61932         * tests/test-printf-posix.sh: New file.
61933         * tests/test-printf-posix.c: New file.
61934
61935         * modules/printf-posix: New file.
61936         * lib/printf.c: New file.
61937         * m4/printf-posix-rpl.m4: New file.
61938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61939         REPLACE_PRINTF.
61940         * lib/stdio_.h (printf): New declaration.
61941         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61942         ____strfmon____): New macros.
61943         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61944         REPLACE_PRINTF.
61945
61946 2007-03-09  Bruno Haible  <bruno@clisp.org>
61947
61948         * tests/test-vasnprintf-posix2.sh: New file.
61949         * tests/test-vasnprintf-posix2.c: New file.
61950         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61951         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61952         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61953
61954         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61955         a locale dependent decimal point, rather than always '.'.
61956
61957 2007-03-09  Eric Blake  <ebb9@byu.net>
61958
61959         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61960         spite of platforms like Tandem/NSK that define it to -1.
61961
61962 2007-03-08  Bruno Haible  <bruno@clisp.org>
61963
61964         * modules/vprintf-posix-tests: New file.
61965         * tests/test-vprintf-posix.sh: New file.
61966         * tests/test-vprintf-posix.c: New file.
61967         * tests/test-printf-posix.h: New file.
61968
61969         * modules/vprintf-posix: New file.
61970         * lib/vprintf.c: New file.
61971         * m4/vprintf-posix.m4: New file.
61972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61973         REPLACE_VPRINTF.
61974         * lib/stdio_.h (vprintf): New declaration.
61975         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61976         REPLACE_VPRINTF.
61977
61978 2007-03-08  Bruno Haible  <bruno@clisp.org>
61979
61980         * modules/fprintf-posix-tests: New file.
61981         * tests/test-fprintf-posix.sh: New file.
61982         * tests/test-fprintf-posix.c: New file.
61983
61984         * modules/fprintf-posix: New file.
61985         * lib/fprintf.c: New file.
61986         * m4/fprintf-posix.m4: New file.
61987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61988         REPLACE_FPRINTF.
61989         * lib/stdio_.h (fprintf): New declaration.
61990         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61991         REPLACE_FPRINTF.
61992
61993 2007-03-08  Bruno Haible  <bruno@clisp.org>
61994
61995         * modules/vfprintf-posix-tests: New file.
61996         * tests/test-vfprintf-posix.sh: New file.
61997         * tests/test-vfprintf-posix.c: New file.
61998         * tests/test-fprintf-posix.h: New file.
61999         * tests/test-fprintf-posix.out: New file.
62000
62001         * modules/vfprintf-posix: New file.
62002         * lib/vfprintf.c: New file.
62003         * m4/vfprintf-posix.m4: New file.
62004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62005         REPLACE_VFPRINTF.
62006         * lib/stdio_.h (vfprintf): New declaration.
62007         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62008         REPLACE_VFPRINTF.
62009
62010 2007-03-08  Bruno Haible  <bruno@clisp.org>
62011
62012         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62013
62014 2007-03-08  Bruno Haible  <bruno@clisp.org>
62015
62016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62017         instead of 'expr' invocations.
62018         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62019         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62020         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62022         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62023         Suggested by Paul Eggert.
62024
62025 2007-03-08  Bruno Haible  <bruno@clisp.org>
62026
62027         * modules/fseterr-tests: New file.
62028         * tests/test-fseterr.c: New file.
62029
62030         * modules/fseterr: New file.
62031         * lib/fseterr.h: New file.
62032         * lib/fseterr.c: New file.
62033
62034 2007-03-08  Bruno Haible  <bruno@clisp.org>
62035
62036         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62037         * lib/getopt_.h: Likewise.
62038         * lib/mbswidth.h: Likewise.
62039         * lib/setenv.h: Likewise.
62040         * lib/vasnprintf.h: Likewise.
62041         * lib/vasprintf.h: Likewise.
62042         * lib/verror.h: Likewise.
62043         * lib/xsetenv.h: Likewise.
62044         * lib/xvasprintf.h: Likewise.
62045
62046 2007-03-08  Jim Meyering  <jim@meyering.net>
62047
62048         * users.txt: Add parted.
62049
62050         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62051
62052 2007-03-07  Bruno Haible  <bruno@clisp.org>
62053
62054         * m4/printf.m4: Make the shell script snippets copy&pastable.
62055
62056 2007-03-02  Bruno Haible  <bruno@clisp.org>
62057
62058         * lib/netinet_in_.h: New file.
62059         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62060         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62061         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62062         (Depends-on): Add absolute-header.
62063         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62064         into netinet/in.h.
62065
62066 2007-03-03  Bruno Haible  <bruno@clisp.org>
62067
62068         * lib/sys_select_.h: New file.
62069         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62070         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62071         * modules/sys_select (Files): Add lib/sys_select_.h.
62072         (Depends-on): Add absolute-header.
62073         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62074         into sys/select.h.
62075
62076 2007-03-02  Bruno Haible  <bruno@clisp.org>
62077
62078         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62079         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62080         values.
62081         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62082         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62083         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62084         * modules/sys_socket (Depends-on): Add absolute-header.
62085         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62086         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62087         (Include): Remove requirement of inclusion of <sys/types.h>.
62088
62089 2007-03-02  Bruno Haible  <bruno@clisp.org>
62090
62091         * lib/byteswap_.h (bswap_32): Fix formula.
62092
62093 2007-03-06  Bruno Haible  <bruno@clisp.org>
62094
62095         * modules/sprintf-posix-tests: New file.
62096         * tests/test-sprintf-posix.c: New file.
62097
62098         * modules/sprintf-posix: New file.
62099         * lib/sprintf.c: New file.
62100         * m4/sprintf-posix.m4: New file.
62101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62102         REPLACE_SPRINTF.
62103         * lib/stdio_.h (sprintf): New declaration.
62104         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62105         REPLACE_SPRINTF.
62106
62107 2007-03-06  Bruno Haible  <bruno@clisp.org>
62108
62109         * modules/vsprintf-posix-tests: New file.
62110         * tests/test-vsprintf-posix.c: New file.
62111         * tests/test-sprintf-posix.h: New file.
62112
62113         * modules/vsprintf-posix: New file.
62114         * lib/vsprintf.c: New file.
62115         * m4/vsprintf-posix.m4: New file.
62116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62117         REPLACE_VSPRINTF.
62118         * lib/stdio_.h (vsprintf): New declaration.
62119         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62120         REPLACE_VSPRINTF.
62121
62122 2007-03-06  Bruno Haible  <bruno@clisp.org>
62123
62124         * modules/vsnprintf (Depend-on): Remove minmax.
62125
62126 2007-03-06  Bruno Haible  <bruno@clisp.org>
62127
62128         * modules/snprintf-posix-tests: New file.
62129         * tests/test-snprintf-posix.c: New file.
62130
62131         * modules/snprintf-posix: New file.
62132         * m4/snprintf-posix.m4: New file.
62133         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62134         gl_FUNC_SNPRINTF.
62135         (gl_FUNC_SNPRINTF): Invoke it.
62136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62137         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62138         is set.
62139         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62140
62141 2007-03-06  Bruno Haible  <bruno@clisp.org>
62142
62143         * modules/vsnprintf-posix-tests: New file.
62144         * tests/test-vsnprintf-posix.c: New file.
62145         * tests/test-snprintf-posix.h: New file.
62146
62147         * modules/vsnprintf-posix: New file.
62148         * m4/vsnprintf-posix.m4: New file.
62149         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62150         gl_FUNC_VSNPRINTF.
62151         (gl_FUNC_VSNPRINTF): Invoke it.
62152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62153         * lib/stdio_.h (vsnprintf): Define as a replacement if
62154         REPLACE_VSNPRINTF is set.
62155         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62156
62157 2007-03-06  Bruno Haible  <bruno@clisp.org>
62158
62159         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62160         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62161
62162 2007-03-06  Bruno Haible  <bruno@clisp.org>
62163
62164         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62165         (asinl): Declare also if HAVE_DECL_ASINL is set.
62166         (atanl): Declare also if HAVE_DECL_ATANL is set.
62167         (ceill): Declare also if HAVE_DECL_CEILL is set.
62168         (cosl): Declare also if HAVE_DECL_COSL is set.
62169         (expl): Declare also if HAVE_DECL_EXPL is set.
62170         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62171         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62172         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62173         (logl): Declare also if HAVE_DECL_LOGL is set.
62174         (sinl): Declare also if HAVE_DECL_SINL is set.
62175         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62176         (tanl): Declare also if HAVE_DECL_TANL is set.
62177         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62179         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62180         declaration of frexpl, ldexpl.
62181         * modules/printf-frexpl (Depends-on): Add math.
62182         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62183
62184 2007-03-05  Bruno Haible  <bruno@clisp.org>
62185
62186         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62187         frexpl and ldexpl are declared.
62188         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62189
62190 2007-03-05  Bruno Haible  <bruno@clisp.org>
62191
62192         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62193         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62194
62195 2007-03-05  Bruno Haible  <bruno@clisp.org>
62196
62197         * lib/stdio_.h: Include <stddef.h>.
62198
62199 2007-03-05  Bruno Haible  <bruno@clisp.org>
62200
62201         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62202
62203 2007-03-05  Bruno Haible  <bruno@clisp.org>
62204
62205         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62206         NetBSD 4, from Ralf Wildenhues.
62207
62208 2007-03-04  Bruno Haible  <bruno@clisp.org>
62209
62210         * lib/vasprintf.h: Update #if logic for the case when the functions
62211         exist but are overridden.
62212
62213 2007-03-04  Bruno Haible  <bruno@clisp.org>
62214
62215         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62216         implementations: glibc-2.4 and MacOS X 10.3.
62217         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62218         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62219         * tests/test-vasprintf-posix.c (test_function): Likewise.
62220
62221 2007-03-04  Bruno Haible  <bruno@clisp.org>
62222
62223         * modules/vasprintf-posix-tests: New file.
62224         * tests/test-vasprintf-posix.c: New file.
62225
62226         * modules/vasprintf-posix: New file.
62227         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62228         defined.
62229         * m4/vasprintf-posix.m4: New file.
62230         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62231         gl_FUNC_VASPRINTF.
62232         (gl_FUNC_VASPRINTF): Invoke it.
62233         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62234         here.
62235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62236
62237 2007-03-04  Bruno Haible  <bruno@clisp.org>
62238
62239         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62240         REPLACE_GETTIMEOFDAY.
62241         * modules/sys_time (Makefile.am): Likewise.
62242         * m4/sys_time_h.m4: Likewise.
62243         * m4/gettimeofday.m4: Likewise.
62244
62245 2007-03-04  Bruno Haible  <bruno@clisp.org>
62246
62247         * modules/vasnprintf-posix-tests: New file.
62248         * tests/test-vasnprintf-posix.c: New file.
62249
62250         * modules/vasnprintf-posix: New file.
62251         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62252         printf-frexpl.h.
62253         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62254         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62255         REPLACE_VASNPRINTF is defined.
62256         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62257         gl_FUNC_VASNPRINTF.
62258         (gl_FUNC_VASNPRINTF): Invoke it.
62259         * m4/vasnprintf-posix.m4: New file.
62260         * m4/printf.m4: New file.
62261
62262 2007-03-04  Bruno Haible  <bruno@clisp.org>
62263
62264         Compile progreloc.c only if --enable-relocatable is specified.
62265         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62266         if --enable-relocatable was specified.
62267         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62268         lib_SOURCES.
62269
62270 2007-03-04  Jim Meyering  <jim@meyering.net>
62271
62272         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62273         Use it consistently, rather than enumerating errno constants.
62274
62275 2007-03-04  Bruno Haible  <bruno@clisp.org>
62276
62277         * modules/xvasprintf-tests: New file.
62278         * tests/test-xvasprintf.c: New file.
62279
62280         * modules/vasprintf-tests: New file.
62281         * tests/test-vasprintf.c: New file.
62282
62283         * modules/vasnprintf-tests: New file.
62284         * tests/test-vasnprintf.c: New file.
62285
62286         * modules/vsnprintf-tests: New file.
62287         * tests/test-vsnprintf.c: New file.
62288
62289         * modules/snprintf-tests: New file.
62290         * tests/test-snprintf.c: New file.
62291
62292 2007-03-04  Bruno Haible  <bruno@clisp.org>
62293
62294         Compile relocatable.c only if --enable-relocatable is specified.
62295         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62296         gl_RELOCATABLE_LIBRARY.
62297         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62298         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62299         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62300         gl_RELOCATABLE_LIBRARY.
62301         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62302         (Makefile.am): Remove lib_SOURCES.
62303         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62304         gl_RELOCATABLE_LIBRARY.
62305         (Makefile.am): Remove lib_SOURCES.
62306         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62307         always.
62308         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62309         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62310
62311 2007-03-04  Bruno Haible  <bruno@clisp.org>
62312
62313         * modules/argmatch-tests: New file.
62314         * tests/test-argmatch.c: New file.
62315
62316         * tests/test-allocsa.c (main): Halve the number of loop runs.
62317
62318         * modules/alloca-opt-tests: New file.
62319         * tests/test-alloca-opt.c: New file.
62320
62321 2007-03-04  Jim Meyering  <jim@meyering.net>
62322
62323         Work around difference between Linux ACLs and Solaris 10 ZFS.
62324         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62325         for EINVAL.
62326
62327 2007-03-03  Bruno Haible  <bruno@clisp.org>
62328
62329         * modules/relocatable-prog (Depends-on): Add back progreloc's
62330         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62331
62332 2007-03-03  Bruno Haible  <bruno@clisp.org>
62333
62334         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62335         * modules/relocatable-lib: New file.
62336
62337 2007-03-03  Bruno Haible  <bruno@clisp.org>
62338
62339         * modules/relocatable-prog: Renamed from modules/relocatable.
62340         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62341
62342 2007-03-03  Bruno Haible  <bruno@clisp.org>
62343
62344         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62345         m4/relocatable-lib.m4.
62346         (Depends-on): Remove 'relocatable'.
62347         (configure.ac): Add gl_RELOCATABLE_NOP.
62348
62349 2007-03-03  Bruno Haible  <bruno@clisp.org>
62350
62351         * modules/relocatable-prog-wrapper: New file.
62352         * modules/relocatable (Depends-on): Add it. Remove all other
62353         dependencies except progname.
62354         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62355
62356         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62357         (gl_FUNC_STRERROR): Nop.
62358         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62359
62360         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62361         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62362
62363         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62364         (gl_FUNC_READLINK): Update.
62365
62366         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62367
62368 2007-03-03  Bruno Haible  <bruno@clisp.org>
62369
62370         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62371         * modules/xreadlink (Depends-on): Add unistd.
62372         * modules/xreadlink-with-size (Depends-on): Likewise.
62373
62374 2007-03-03  Bruno Haible  <bruno@clisp.org>
62375
62376         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62377         extracted from gt_FUNC_SETENV.
62378         (gt_FUNC_SETENV): Remove macro.
62379         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62380         remove gt_FUNC_SETENV.
62381
62382 2007-03-03  Bruno Haible  <bruno@clisp.org>
62383
62384         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62385         ENABLE_RELOCATABLE here.
62386         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62387
62388 2007-03-03  Bruno Haible  <bruno@clisp.org>
62389
62390         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62391         * tests/test-rbtreehash_list.c: Include progname.h.
62392         (main): Call set_program_name.
62393
62394         * modules/rbtree-oset-tests (Depends-on): Add progname.
62395         * tests/test-rbtree_oset.c: Include progname.h.
62396         (main): Call set_program_name.
62397
62398         * modules/rbtree-list-tests (Depends-on): Add progname.
62399         * tests/test-rbtree_list.c: Include progname.h.
62400         (main): Call set_program_name.
62401
62402         * modules/linked-list-tests (Depends-on): Add progname.
62403         * tests/test-linked_list.c: Include progname.h.
62404         (main): Call set_program_name.
62405
62406 2007-03-03  Bruno Haible  <bruno@clisp.org>
62407
62408         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62409         All uses of __restrict changed to _Restrict_.
62410         * lib/glob_.h (__restrict): Remove macro.
62411
62412 2007-03-02  Bruno Haible  <bruno@clisp.org>
62413
62414         * modules/gettext (configure.ac): Require gettext infrastructure
62415         from version 0.16.1.
62416
62417 2007-03-02  Bruno Haible  <bruno@clisp.org>
62418
62419         * modules/linkedhash-list-tests (Depends-on): Add progname.
62420         * tests/test-linkedhash_list.c: Include progname.h.
62421         (main): Call set_program_name.
62422
62423         * modules/carray-list-tests (Depends-on): Add progname.
62424         * tests/test-carray_list.c: Include progname.h.
62425         (main): Call set_program_name.
62426
62427         * modules/avltreehash-list-tests (Depends-on): Add progname.
62428         * tests/test-avltreehash_list.c: Include progname.h.
62429         (main): Call set_program_name.
62430
62431         * modules/avltree-oset-tests (Depends-on): Add progname.
62432         * tests/test-avltree_oset.c: Include progname.h.
62433         (main): Call set_program_name.
62434
62435         * modules/avltree-list-tests (Depends-on): Add progname.
62436         * tests/test-avltree_list.c: Include progname.h.
62437         (main): Call set_program_name.
62438
62439         * modules/array-oset-tests (Depends-on): Add progname.
62440         * tests/test-array_oset.c: Include progname.h.
62441         (main): Call set_program_name.
62442
62443         * modules/array-list-tests (Depends-on): Add progname.
62444         * tests/test-array_list.c: Include progname.h.
62445         (main): Call set_program_name.
62446
62447         * modules/argp-tests (Depends-on): Add progname.
62448         * tests/test-argp.c: Include argp.h first. Include progname.h.
62449         (main): Call set_program_name.
62450
62451 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62452
62453         * doc/gnulib-tool.texi (Initial import): Reword description of
62454         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62455         limited effect even if defined after the first system include.
62456
62457 2007-03-01  Bruno Haible  <bruno@clisp.org>
62458
62459         * build-aux/config.libpath: Update to libtool-1.5.22.
62460         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62461
62462 2007-03-01  Bruno Haible  <bruno@clisp.org>
62463
62464         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62465         foo_CFLAGS.
62466         Reported by Ralf Wildenhues.
62467
62468 2007-03-01  Bruno Haible  <bruno@clisp.org>
62469
62470         * build-aux/install-reloc: Remove object files left over by some
62471         compilers.
62472         Reported by Ralf Wildenhues.
62473
62474 2007-03-01  Bruno Haible  <bruno@clisp.org>
62475
62476         * build-aux/install-reloc: Break long lines.
62477
62478 2007-03-01  Bruno Haible  <bruno@clisp.org>
62479
62480         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62481         Reported by Ralf Wildenhues.
62482
62483 2007-03-01  Bruno Haible  <bruno@clisp.org>
62484
62485         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62486         include ordering constraints.
62487
62488 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62489
62490         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62492         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62493         as another example.
62494         * lib/time_.h: Fix misspelling.
62495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62496         Require gl_HEADER_TIME_H_DEFAULTS.
62497         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62498         * m4/time_r.m4 (gl_TIME_R): Likewise.
62499         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62500
62501 2007-03-01  Bruno Haible  <bruno@clisp.org>
62502
62503         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62504         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62505
62506 2007-03-01  Jim Meyering  <jim@meyering.net>
62507
62508         * modules/xreadlink (Maintainer): Add my name.
62509         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62510
62511 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62512             Bruno Haible  <bruno@clisp.org>
62513
62514         * build-aux/install-reloc: Compile also c-ctype.c.
62515         * build-aux/relocatable.sh.in: New file.
62516         * doc/relocatable.texi: New file.
62517         * doc/relocatable-maint.texi: New file.
62518         * doc/gnulib.texi: Include relocatable-maint.texi.
62519         * lib/progreloc.c: Include unistd.h unconditionally.
62520         * lib/relocwrapper.c: Include unistd.h unconditionally.
62521         Include c-ctype.h.
62522         (add_dotbin): Use c_tolower.
62523         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62524         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62525         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62526         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62527         to m4/relocatable-lib.m4.
62528         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62529         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62530         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62531         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62532         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62533         * modules/relocatable: New file.
62534         * modules/relocatable-lib: New file.
62535         * modules/relocatable-script: New file.
62536
62537 2007-02-28  Bruno Haible  <bruno@clisp.org>
62538
62539         Import --enable-relocatable infrastructure.
62540         * build-aux/config.libpath: New file, from GNU gettext.
62541         * build-aux/install-reloc: New file, from GNU gettext.
62542         * build-aux/reloc-ldflags: New file, from GNU gettext.
62543         * lib/relocatable.h: New file, from GNU gettext.
62544         * lib/relocatable.c: New file, from GNU gettext.
62545         * lib/relocwrapper.c: New file, from GNU gettext.
62546         * m4/relocatable.m4: New file, from GNU gettext.
62547
62548 2007-02-28  Bruno Haible  <bruno@clisp.org>
62549
62550         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62551
62552         * modules/xreadlink: New file, from GNU gettext with modifications.
62553         * lib/xreadlink.c: New file, from GNU gettext.
62554         * lib/xreadlink.h: Add comments.
62555         (xreadlink): New declaration.
62556
62557         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62558         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62559         lib/xreadlink-with-size.c.
62560         (configure.ac): Remove gl_XREADLINK invocation.
62561         (Makefile.am): Augment lib_SOURCES.
62562         * m4/xreadlink.m4: Remove file.
62563         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62564         (xreadlink_with_size): Renamed from xreadink.
62565         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62566         * modules/canonicalize (Depends-on): Replace xreadlink with
62567         xreadlink-with-size.
62568         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62569
62570 2007-02-25  Jim Meyering  <jim@meyering.net>
62571
62572         * build-aux/announce-gen: When complaining about excess arguments,
62573         list them.
62574
62575 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62576
62577         * README: Document signed integer overflow situation more
62578         accurately.
62579
62580 2007-02-25  Bruno Haible  <bruno@clisp.org>
62581
62582         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62583         'a' or 'A' conversion.
62584
62585 2007-02-25  Bruno Haible  <bruno@clisp.org>
62586
62587         * modules/filename: Renamed from modules/pathname.
62588         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62589         lib/concatpath.c with lib/concat-filename.c.
62590         (Makefile.am): Update.
62591         (Include): Replace pathname.h with filename.h.
62592         * lib/filename.h: Renamed from lib/pathname.h.
62593         (concatenated_filename): Renamed from concatenated_pathname.
62594         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62595         (concatenated_filename): Renamed from concatenated_pathname.
62596         * lib/findprog.c: Include filename.h instead of pathname.h.
62597         (find_in_path): Update.
62598         * lib/javacomp.c: Include filename.h instead of pathname.h.
62599         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62600         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62601         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62602         is_oldgcj_14_13_usable, is_javac_usable): Update.
62603         * lib/javaexec.c: Include filename.h instead of pathname.h.
62604         (execute_java_class): Update.
62605         * modules/findprog: Update.
62606         * modules/javacomp: Update.
62607         * modules/javaexec: Update.
62608         * MODULES.html.sh (File system functions): Add 'filename', remove
62609         'pathname'.
62610
62611 2007-02-25  Bruno Haible  <bruno@clisp.org>
62612
62613         * modules/printf-frexpl-tests: New file.
62614         * tests/test-printf-frexpl.c: New file.
62615
62616         * modules/printf-frexpl: New file.
62617         * lib/printf-frexpl.h: New file.
62618         * lib/printf-frexpl.c: New file.
62619         * m4/printf-frexpl.m4: New file.
62620
62621 2007-02-25  Bruno Haible  <bruno@clisp.org>
62622
62623         * modules/printf-frexp-tests: New file.
62624         * tests/test-printf-frexp.c: New file.
62625
62626         * modules/printf-frexp: New file.
62627         * lib/printf-frexp.h: New file.
62628         * lib/printf-frexp.c: New file.
62629         * m4/printf-frexp.m4: New file.
62630
62631 2007-02-25  Bruno Haible  <bruno@clisp.org>
62632
62633         Assume automake >= 1.10 for the tests.
62634         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62635         * modules/arctwo-tests: Likewise.
62636         * modules/argp-tests: Likewise.
62637         * modules/avltree-list-tests: Likewise.
62638         * modules/avltree-oset-tests: Likewise.
62639         * modules/avltreehash-list-tests: Likewise.
62640         * modules/carray-list-tests: Likewise.
62641         * modules/crc-tests: Likewise.
62642         * modules/des-tests: Likewise.
62643         * modules/gc-arcfour-tests: Likewise.
62644         * modules/gc-arctwo-tests: Likewise.
62645         * modules/gc-des-tests: Likewise.
62646         * modules/gc-hmac-md5-tests: Likewise.
62647         * modules/gc-hmac-sha1-tests: Likewise.
62648         * modules/gc-md2-tests: Likewise.
62649         * modules/gc-md4-tests: Likewise.
62650         * modules/gc-md5-tests: Likewise.
62651         * modules/gc-pbkdf2-sha1-tests: Likewise.
62652         * modules/gc-rijndael-tests: Likewise.
62653         * modules/gc-sha1-tests: Likewise.
62654         * modules/gc-tests: Likewise.
62655         * modules/getaddrinfo-tests: Likewise.
62656         * modules/hmac-md5-tests: Likewise.
62657         * modules/hmac-sha1-tests: Likewise.
62658         * modules/linked-list-tests: Likewise.
62659         * modules/linkedhash-list-tests: Likewise.
62660         * modules/lock-tests: Likewise.
62661         * modules/md2-tests: Likewise.
62662         * modules/md4-tests: Likewise.
62663         * modules/md5-tests: Likewise.
62664         * modules/rbtree-list-tests: Likewise.
62665         * modules/rbtree-oset-tests: Likewise.
62666         * modules/rbtreehash-list-tests: Likewise.
62667         * modules/read-file-tests: Likewise.
62668         * modules/rijndael-tests: Likewise.
62669         * modules/stdint-tests: Likewise.
62670         * modules/tls-tests: Likewise.
62671
62672 2007-02-24  Bruno Haible  <bruno@clisp.org>
62673
62674         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62675         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62676         function; instead check whether isnan with a double argument links.
62677         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62678         function; instead check whether isnan with a 'long double' argument
62679         links.
62680         Reported by Eric Blake <ebb9@byu.net>.
62681
62682 2007-02-24  Bruno Haible  <bruno@clisp.org>
62683
62684         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62685         defined.
62686         * lib/isnanl.c: Remove all code. Just include isnan.c.
62687         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62688
62689 2007-02-25  Jim Meyering  <jim@meyering.net>
62690
62691         Avoid conflicting types for 'unsetenv' on FreeBSD.
62692         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62693         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62694         in stdlib.h.
62695
62696 2007-02-24  Bruno Haible  <bruno@clisp.org>
62697
62698         * modules/isnanl-nolibm-tests: New file.
62699         * tests/test-isnanl.c: New file.
62700
62701         * modules/isnanl-nolibm: New file.
62702         * lib/isnanl.h: New file.
62703         * lib/isnanl.c: New file.
62704         * m4/isnanl.m4: New file.
62705
62706 2007-02-24  Bruno Haible  <bruno@clisp.org>
62707
62708         * modules/isnan-nolibm-tests: New file.
62709         * tests/test-isnan.c: New file.
62710
62711         * modules/isnan-nolibm: New file.
62712         * lib/isnan.h: New file.
62713         * lib/isnan.c: New file.
62714         * m4/isnan.m4: New file.
62715
62716 2007-02-24  Bruno Haible  <bruno@clisp.org>
62717
62718         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62719         assume that an exponent fits in 20 bits.
62720
62721 2007-02-24  Jim Meyering  <jim@meyering.net>
62722
62723         * m4/regex.m4: Update the description of the configure-time option,
62724         --without-included-regex, to state accurately what the defaults are,
62725         and perhaps to give people an idea why using this option is risky.
62726
62727 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62728
62729         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62730         loops on small arguments.  This attempts to avoid the problem
62731         Bruno Haible reported for AIX 4.3.2 in
62732         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62733
62734 2007-02-23  Bruno Haible  <bruno@clisp.org>
62735
62736         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62737         Needed for help2man.
62738
62739 2007-02-23  Karl Berry  <karl@gnu.org>
62740
62741         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62742         exists, foo.h should be cvs-ignored, not committed.
62743
62744 2007-02-23  Eric Blake  <ebb9@byu.net>
62745
62746         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62747         * lib/stat-time.h (includes): Likewise.
62748         * lib/utimecmp.c (includes): Likewise.
62749         * lib/utimens.h (includes): Likewise.
62750         * lib/getdate.y (includes): Also include "timespec.h" for use
62751         internal to the module.
62752         * modules/utimens (Depends-on): Revert yesterday's patch.
62753         * modules/nanosleep (Depends-on): Add missing dependency.
62754
62755 2007-02-22  Bruno Haible  <bruno@clisp.org>
62756
62757         * lib/glob.c: Don't include getlogin_r.h.
62758
62759 2007-02-22  Jim Meyering  <jim@meyering.net>
62760
62761         * modules/utimens (Depends-on): Add timespec, required for
62762         utimens.h's inclusion of timespec.h.
62763
62764 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62765
62766         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62767         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62768         Schwab in
62769         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62770         I'll try to think of a better way to fix the Solaris problem.
62771
62772         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62773         like glibc; on Solaris 10, it fails with errno == EINVAL.
62774         POSIX says the behavior is unspecified if the first argument is NULL,
62775         so play it safe and never pass NULL to the system getcwd.
62776
62777 2007-02-21  Jim Meyering  <jim@meyering.net>
62778
62779         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62780         of gettimeofday.  It would conflict with the one now always
62781         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62782         an IRIX 6.5 build failure.
62783
62784 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62785
62786         Minor fixups to port to Solaris 10 with Sun C 5.8.
62787         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62788         * modules/getcwd (Depends-on): Add dirfd.
62789         * lib/putenv.c (putenv): #undef it.
62790         (rpl_putenv): New decl.
62791         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62792
62793 2007-02-20  Bruno Haible  <bruno@clisp.org>
62794
62795         * modules/stdio-tests: New file.
62796         * tests/test-stdio.c: New file.
62797
62798         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62799         (Depends-on): Add stdio.
62800         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62801         (Include): Use <stdio.h> instead of vsnprintf.h.
62802         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62803         HAVE_DECL_VSNPRINTF.
62804         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62805
62806         * modules/snprintf (Files): Remove lib/snprintf.h.
62807         (Depends-on): Add stdio.
62808         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62809         (Include): Use <stdio.h> instead of snprintf.h.
62810         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62811         HAVE_DECL_SNPRINTF.
62812         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62813         * lib/getaddrinfo.c: Likewise.
62814
62815         * modules/stdio: New file.
62816         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62817         * lib/snprintf.h: Remove file.
62818         * lib/vsnprintf.h: Remove file.
62819         * lib/.cppi-disable: Remove snprintf.h.
62820         * m4/stdio_h.m4: New file.
62821         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62822
62823 2007-02-20  Jim Meyering  <jim@meyering.net>
62824
62825         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62826         used by e.g., mingw.  From Bruno Haible.
62827
62828 2007-02-19  Bruno Haible  <bruno@clisp.org>
62829
62830         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62831         warnings.
62832         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62833
62834 2007-02-19  Bruno Haible  <bruno@clisp.org>
62835
62836         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62837         from mingw users.
62838
62839 2007-02-19  Bruno Haible  <bruno@clisp.org>
62840
62841         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62842         warnings.
62843         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62844
62845 2007-02-19  Jim Meyering  <jim@meyering.net>
62846
62847         Don't use FD after a successful "fdopendir (fd)".
62848         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62849         Reset it by calling dirfd on the just-obtained DIR*.
62850
62851         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62852         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62853
62854 2007-02-18  Bruno Haible  <bruno@clisp.org>
62855
62856         * lib/readlink.c: Include <unistd.h>.
62857         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62858         HAVE_READLINK.
62859         * modules/readlink (Depends-on): Add unistd.
62860         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62861         (Include): Add <unistd.h>.
62862
62863         * lib/getlogin_r.h: Remove file.
62864         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62865         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62866         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62867         HAVE_DECL_GETLOGIN_R.
62868         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62869         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62870         (Include): Use <unistd.h> instead of getlogin_r.h.
62871
62872         * lib/getcwd.h: Remove file.
62873         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62874         * lib/xgetcwd.c: Likewise.
62875         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62876         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62877         * modules/getcwd (Files): Remove lib/getcwd.h.
62878         (Depends-on): Add unistd.
62879         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62880         (Include): Use <unistd.h> instad of getcwd.h.
62881
62882         * lib/ftruncate.c: Include <unistd.h> first.
62883         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62884         Set HAVE_FTRUNCATE.
62885         * modules/ftruncate (Depends-on): Add unistd.
62886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62887
62888         * lib/fchdir.c: Include <unistd.h> first.
62889         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62890         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62891         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62892         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62893         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62894
62895         * lib/dup2.c: Include <unistd.h> first.
62896         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62897         HAVE_DUP2.
62898         * modules/dup2 (Depends-on): Add unistd.
62899         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62900
62901         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62902         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62903         REPLACE_CHOWN. Don't define chown as a macro here.
62904         * modules/chown (Depends-on): Add unistd.
62905         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62906
62907         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62908         Add definition for GL_LINK_WARNING.
62909         (chown, dup2): New declarations.
62910         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62911         link warning.
62912         (ftruncate): New declaration.
62913         (getcwd): New declaration, taken from old getcwd.h.
62914         (getlogin_r): New declaration, taken from old getlogin_r.h.
62915         (readlink): New declaration.
62916         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62917         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62918         (gl_PREREQ_UNISTD): Remove macro.
62919         (gl_UNISTD_MODULE_INDICATOR): New macro.
62920         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62921         many new variables. Don't set UNISTD_H.
62922         * modules/unistd (Description): Change.
62923         (Depends-on): Add link-warning.
62924         (configure.ac): Update.
62925         (Makefile.am): Create unistd.h always. Substitute many new variables
62926         into it.
62927
62928 2007-02-18  Bruno Haible  <bruno@clisp.org>
62929
62930         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62931         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62932         HAVE_GETSUBOPT.
62933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62934         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62935         * lib/getsubopt.h: Remove file.
62936         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62937         (Depends-on): Add stdlib.
62938         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62939         (Includes): Use <stdlib.h> instead of getsubopt.h.
62940         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62941         Set HAVE_GETSUBOPT.
62942         * lib/getsubopt.c: Don't include getsubopt.h.
62943
62944 2007-02-18  Bruno Haible  <bruno@clisp.org>
62945
62946         * modules/fchdir (Depends-on): Add dup2.
62947
62948 2007-02-18  Bruno Haible  <bruno@clisp.org>
62949
62950         * lib/stdlib_.h: Handle glibc's special invocation convention
62951         specially.
62952
62953 2007-02-18  Bruno Haible  <bruno@clisp.org>
62954
62955         * modules/stdlib-tests: New file.
62956         * tests/test-stdlib.c: New file.
62957
62958         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62959         (Depends-on): Add stdlib.
62960         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62961         (Includes): Use <stdlib.h> instead of mkstemp.h.
62962         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62963         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62964         * lib/mkstemp.c: Don't include mkstemp.h.
62965         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62966         * lib/stdlib--.h: Don't include mkstemp.h.
62967
62968         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62969         (Depends-on): Add stdlib.
62970         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62971         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62972         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62973         HAVE_MKDTEMP.
62974         * lib/mkdtemp.c: Don't include mkdtemp.h.
62975         * lib/clean-temp.c: Don't include mkdtemp.h.
62976
62977         * modules/exit (Files): Remove lib/exit.h.
62978         (Depends-on): Add stdlib.
62979         (Makefile.am): Remove lib_SOURCES.
62980         (Include): Use <stdlib.h> instead of exit.h.
62981         * lib/argmatch.c: Don't include exit.h.
62982         * lib/execute.c: Likewise.
62983         * lib/pagealign_alloc.c: Likewise.
62984         * lib/pipe.c: Likewise.
62985         * lib/wait-process.c: Likewise.
62986         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62987         * lib/exitfail.c: Likewise.
62988         * lib/savewd.c: Likewise.
62989         * lib/xsetenv.c: Likewise.
62990
62991         * modules/stdlib: New file.
62992         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62993         and extra comments about mkstemp().
62994         * lib/exit.h: Remove file.
62995         * lib/mkdtemp.h: Remove file.
62996         * lib/mkstemp.h: Remove file.
62997         * m4/stdlib_h.m4: New file.
62998         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62999
63000 2007-02-18  Bruno Haible  <bruno@clisp.org>
63001
63002         * modules/math-tests: New file.
63003         * tests/test-math.c: New file.
63004
63005         * modules/math: New file.
63006         * modules/mathl (Files): Remove lib/mathl.h.
63007         (Depends-on): Add math.
63008         (Makefile.am): Don't mention mathl.h.
63009         (Include): Use <math.h> instead of mathl.h.
63010         * lib/math_.h: New file.
63011         * lib/mathl.h: Remove file.
63012         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63013         mathl.h.
63014         * lib/asinl.c: Likewise.
63015         * lib/atanl.c: Likewise.
63016         * lib/ceill.c: Likewise.
63017         * lib/cosl.c: Likewise.
63018         * lib/expl.c: Likewise.
63019         * lib/floorl.c: Likewise.
63020         * lib/frexpl.c: Likewise.
63021         * lib/ldexpl.c: Likewise.
63022         * lib/logl.c: Likewise.
63023         * lib/sincosl.c: Likewise.
63024         * lib/sinl.c: Likewise.
63025         * lib/sqrtl.c: Likewise.
63026         * lib/tanl.c: Likewise.
63027         * lib/trigl.c: Likewise.
63028         * m4/math_h.m4: New file.
63029         * MODULES.html.sh (Mathematics): Add math.
63030
63031 2007-02-17  Bruno Haible  <bruno@clisp.org>
63032
63033         * modules/wctype-tests: New file.
63034         * tests/test-wctype.c: New file.
63035
63036         * modules/wchar-tests: New file.
63037         * tests/test-wchar.c: New file.
63038
63039         * modules/unistd-tests: New file.
63040         * tests/test-unistd.c: New file.
63041
63042         * modules/time-tests: New file.
63043         * tests/test-time.c: New file.
63044
63045         * modules/sysexits-tests: New file.
63046         * tests/test-sysexits.c: New file.
63047
63048         * modules/sys_time-tests: New file.
63049         * tests/test-sys_time.c: New file.
63050
63051         * modules/sys_stat-tests: New file.
63052         * tests/test-sys_stat.c: New file.
63053
63054         * modules/sys_socket-tests: New file.
63055         * tests/test-sys_socket.c: New file.
63056
63057         * modules/sys_select-tests: New file.
63058         * tests/test-sys_select.c: New file.
63059
63060         * modules/string-tests: New file.
63061         * tests/test-string.c: New file.
63062
63063         * modules/stdbool-tests: New file.
63064         * tests/test-stdbool.c: New file.
63065
63066         * modules/netinet_in-tests: New file.
63067         * tests/test-netinet_in.c: New file.
63068
63069         * modules/inttypes-tests: New file.
63070         * tests/test-inttypes.c: New file.
63071
63072         * modules/fcntl-tests: New file.
63073         * tests/test-fcntl.c: New file.
63074
63075         * modules/byteswap-tests: New file.
63076         * tests/test-byteswap.c: New file.
63077
63078         * modules/arpa_inet-tests: New file.
63079         * tests/test-arpa_inet.c: New file.
63080
63081 2007-02-17  Bruno Haible  <bruno@clisp.org>
63082
63083         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63084         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63085         if the corresponding module is not enabled. Emit link warnings if
63086         the function is used nevertheless.
63087         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63088         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63089         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63090         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63091         * modules/inttypes (Depends-on): Add link-warning.
63092         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63093         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63094         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63095         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63096         * modules/imaxdiv (configure.ac): Likewise.
63097         * modules/strtoimax (configure.ac): Likewise.
63098         * modules/strtoumax (configure.ac): Likewise.
63099
63100 2007-02-17  Bruno Haible  <bruno@clisp.org>
63101
63102         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63103         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63104         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63105         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63106
63107 2007-02-17  Bruno Haible  <bruno@clisp.org>
63108
63109         * modules/link-warning: New file.
63110         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63111         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63112         * modules/string (Depends-on): Add link-warning.
63113         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63114         string.h.
63115         * MODULES.html.sh (Support for building libraries and executables): Add
63116         link-warning.
63117
63118 2007-02-17  Bruno Haible  <bruno@clisp.org>
63119
63120         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63121         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63122         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63123         long lines.
63124
63125 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63126             Bruno Haible  <bruno@clisp.org>
63127
63128         * modules/tmpfile: New file.
63129         * lib/tmpfile.c: New file.
63130         * m4/tmpfile.m4: New file.
63131         * MODULES.html.sh (func_all_modules): New section "Input/output".
63132
63133 2007-02-15  Bruno Haible  <bruno@clisp.org>
63134
63135         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63136         (supports_delete_on_close): New function.
63137         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63138
63139 2007-02-14  Bruno Haible  <bruno@clisp.org>
63140
63141         * modules/mbspcasecmp-tests: New file.
63142         * tests/test-mbspcasecmp.sh: New file.
63143         * tests/test-mbspcasecmp.c: New file.
63144
63145         New module mbspcasecmp.
63146         * modules/mbspcasecmp: New file.
63147         * lib/mbspcasecmp.c: New file.
63148         * lib/string_.h (strncasecmp): Change warning message.
63149         (mbspcasecmp): New declaration.
63150         * m4/mbspcasecmp.m4: New file.
63151         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63152         GNULIB_MBSPCASECMP.
63153         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63154         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63155
63156 2007-02-14  Bruno Haible  <bruno@clisp.org>
63157
63158         * modules/mbsncasecmp-tests: New file.
63159         * tests/test-mbsncasecmp.sh: New file.
63160         * tests/test-mbsncasecmp.c: New file.
63161
63162         New module mbsncasecmp.
63163         * modules/mbsncasecmp: New file.
63164         * lib/mbsncasecmp.c: New file.
63165         * lib/string_.h (mbsncasecmp): New declaration.
63166         * m4/mbsncasecmp.m4: New file.
63167         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63168         GNULIB_MBSNCASECMP.
63169         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63170         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63171
63172 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63173
63174         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63175         Verify that it doesn't overlap with our flags.
63176         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63177         do not have the desired effect in multibyte locales; instead, use
63178         mbscasecmp.
63179         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63180         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63181         we don't require GNU fnmatch ourselves (if our users require it, they
63182         should do so explicitly).
63183
63184         Fix regex code so it doesn't rely on strcasecmp.
63185         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63186         Otherwise, include gnulib's langinfo.h.
63187         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63188         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63189         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63190         * modules/regex (FILES): Remove m4/codeset.m4.
63191         (Depends-on): Add localcharset.  Remove strcase.
63192
63193 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63194
63195         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63196         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63197
63198 2007-02-13  Bruno Haible  <bruno@clisp.org>
63199
63200         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63201         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63202
63203 2007-02-12  Bruno Haible  <bruno@clisp.org>
63204
63205         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63206         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63207         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63208         time warning rather than a link error.
63209
63210 2007-02-12  Bruno Haible  <bruno@clisp.org>
63211
63212         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63213         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63214         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63215
63216 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63217
63218         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63219         args, not 2.
63220
63221 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63222
63223         New module 'time', so that apps can include <time.h> as per
63224         POSIX and GNU instead of separate include files like time_r.h
63225         and timegm.h.  This implementation tries out a simpler approach
63226         for replacing decls in standard include files (as compared to
63227         the string module), somewhat as an experiment.
63228
63229         * config/srclist.txt: Comment out mktime.c for now.
63230         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63231         since it doesn't apply any more.  Use generic wording instead.
63232         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63233         'time'.
63234         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63235         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63236         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63237         Don't include <sys/types.h>; no longer needed since we assume C89.
63238         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63239         * lib/strftime.c: Likewise.
63240         * lib/time_r.c: Likewise.
63241         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63242         * lib/nanosleep.c: Include <time.h> first, to check interface.
63243         * lib/strptime.c: Likewise.
63244         * lib/time_r.c: Likewise.
63245         * lib/timegm.c: Likewise.
63246         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63247         needed.
63248         * lib/timegm.c: Don't include timegm.h; no longer needed.
63249         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63250         time.h now handles any problems in that area.
63251         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63252         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63253         that time.h defines struct timespec.
63254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63255         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63256         handles that.
63257         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63258         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63259         needed.  Set REPLACE_LOCALTIME.
63260         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63261         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63262         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63263         nanosleep; time_h.m4 now does that.  Don't require
63264         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63265         module handles this now.
63266         * modules/getdate (Depends-on): Remove timespec.  Add time.
63267         * modules/nanosleep (Depends-on): Likewise.
63268         * modules/stat-time (Depends-on): Likewise.
63269         * modules/nanosleep (Include): Include time.h, not timespec.h.
63270         * modules/strptime (Files): Remove lib/strptime.h.
63271         (Depends-on): Add extensions, time.
63272         (Include): Include time.h, not strptime.h.
63273         * modules/time_r (Files): Remove lib/time_r.h.
63274         (Depends-on): Add time.
63275         (Include): Include time.h, not time_r.h.
63276         * modules/timegm: Likewise.
63277         * modules/timespec (Description): Now does timespec-related decls
63278         of our own, instead of struct timespec itself.
63279         (Depends-on): Add time; remove extensions.
63280         (Maintainer): Add self.
63281         * modules/utimecmp (Depends-on): Add time; remove timespec.
63282         * modules/utimens (Depends-on): Likewise.
63283         * modules/xnanosleep (Depends-on): Likewise.
63284
63285 2007-02-11  Bruno Haible  <bruno@clisp.org>
63286
63287         * lib/c-strstr.c: Include allocsa.h.
63288         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63289         * lib/c-strcasestr.c: Include allocsa.h.
63290         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63291         * lib/strcasestr.c: Include allocsa.h.
63292         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63293         * lib/mbsstr.c: Include allocsa.h.
63294         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63295         allocsa/freesa instead of malloc/free.
63296         * lib/mbscasestr.c: Include allocsa.h.
63297         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63298         allocsa/freesa instead of malloc/free.
63299         * modules/c-strstr (Depends-on): Add allocsa.
63300         * modules/c-strcasestr (Depends-on): Likewise.
63301         * modules/strcasestr (Depends-on): Likewise.
63302         * modules/mbsstr (Depends-on): Likewise.
63303         * modules/mbscasestr (Depends-on): Likewise.
63304
63305 2007-02-11  Bruno Haible  <bruno@clisp.org>
63306
63307         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63308
63309         * modules/mbsspn-tests: New file.
63310         * tests/test-mbsspn.sh: New file.
63311         * tests/test-mbsspn.c: New file.
63312
63313 2007-02-11  Bruno Haible  <bruno@clisp.org>
63314
63315         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63316
63317         * modules/mbspbrk-tests: New file.
63318         * tests/test-mbspbrk.sh: New file.
63319         * tests/test-mbspbrk.c: New file.
63320
63321 2007-02-11  Bruno Haible  <bruno@clisp.org>
63322
63323         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63324         unneeded cast.
63325
63326         * modules/mbscspn-tests: New file.
63327         * tests/test-mbscspn.sh: New file.
63328         * tests/test-mbscspn.c: New file.
63329
63330 2007-02-11  Bruno Haible  <bruno@clisp.org>
63331
63332         * modules/mbscasecmp-tests: New file.
63333         * tests/test-mbscasecmp.sh: New file.
63334         * tests/test-mbscasecmp.c: New file.
63335
63336 2007-02-11  Bruno Haible  <bruno@clisp.org>
63337
63338         Ensure O(n) worst-case complexity of mbscasestr.
63339         * lib/mbscasestr.c: Include stdbool.h.
63340         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63341         functions.
63342         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63343         the bookkeeping indicates that it's worth it.
63344         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63345
63346         * modules/mbscasestr-tests: New file.
63347         * tests/test-mbscasestr1.c: New file.
63348         * tests/test-mbscasestr2.sh: New file.
63349         * tests/test-mbscasestr2.c: New file.
63350         * tests/test-mbscasestr3.sh: New file.
63351         * tests/test-mbscasestr3.c: New file.
63352         * tests/test-mbscasestr4.sh: New file.
63353         * tests/test-mbscasestr4.c: New file.
63354         * m4/locale-tr.m4: New file.
63355
63356 2007-02-11  Bruno Haible  <bruno@clisp.org>
63357
63358         Ensure O(n) worst-case complexity of mbsstr.
63359         * lib/mbsstr.c: Include stdbool.h.
63360         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63361         functions.
63362         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63363         bookkeeping indicates that it's worth it.
63364         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63365
63366         * modules/mbsstr-tests: New file.
63367         * tests/test-mbsstr1.c: New file.
63368         * tests/test-mbsstr2.sh: New file.
63369         * tests/test-mbsstr2.c: New file.
63370         * tests/test-mbsstr3.sh: New file.
63371         * tests/test-mbsstr3.c: New file.
63372         * m4/locale-fr.m4: New file.
63373
63374 2007-02-11  Bruno Haible  <bruno@clisp.org>
63375
63376         * lib/mbsrchr.c (mbsrchr): Fix bug.
63377
63378         * modules/mbsrchr-tests: New file.
63379         * tests/test-mbsrchr.sh: New file.
63380         * tests/test-mbsrchr.c: New file.
63381
63382 2007-02-11  Bruno Haible  <bruno@clisp.org>
63383
63384         * lib/mbschr.c (mbschr): Fix bug.
63385
63386         * modules/mbschr-tests: New file.
63387         * tests/test-mbschr.sh: New file.
63388         * tests/test-mbschr.c: New file.
63389         * m4/locale-zh.m4: New file.
63390
63391 2007-02-11  Bruno Haible  <bruno@clisp.org>
63392
63393         Support for copying multibyte string iterators.
63394         * lib/mbiter.h: Include <string.h>.
63395         (mbiter_multi_copy): New function.
63396         (mbi_copy): New macro.
63397         * lib/mbuiter.h: Include <string.h>.
63398         (mbuiter_multi_copy): New function.
63399         (mbui_copy): New macro.
63400
63401 2007-02-11  Bruno Haible  <bruno@clisp.org>
63402
63403         New module mbslen.
63404         * modules/mbslen: New file.
63405         * lib/mbslen.c: New file.
63406         * lib/string_.h (mbslen): New declaration.
63407         * m4/mbslen.m4: New file.
63408         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63409         GNULIB_MBSLEN.
63410         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63411         * MODULES.html.sh (Internationalization functions): Add mbslen.
63412
63413 2007-02-11  Bruno Haible  <bruno@clisp.org>
63414
63415         Ensure O(n) worst-case complexity of strcasestr substitute.
63416         * lib/strcasestr.c: Include stdbool.h.
63417         (knuth_morris_pratt): New function.
63418         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63419         bookkeeping indicates that it's worth it.
63420         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63421
63422         * modules/strcasestr-tests: New file.
63423         * tests/test-strcasestr.c: New file.
63424
63425 2007-02-11  Bruno Haible  <bruno@clisp.org>
63426
63427         Ensure O(n) worst-case complexity of c_strcasestr.
63428         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63429         (knuth_morris_pratt): New function.
63430         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63431         the bookkeeping indicates that it's worth it.
63432         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63433
63434         * modules/c-strcasestr-tests: New file.
63435         * tests/test-c-strcasestr.c: New file.
63436
63437 2007-02-11  Bruno Haible  <bruno@clisp.org>
63438
63439         Ensure O(n) worst-case complexity of c_strstr.
63440         * lib/c-strstr.c: Include stdbool.h, string.h.
63441         (knuth_morris_pratt): New function.
63442         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63443         bookkeeping indicates that it's worth it.
63444         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63445
63446         * lib/c-strstr.c: Complete rewrite for maintainability.
63447
63448         * modules/c-strstr-tests: New file.
63449         * tests/test-c-strstr.c: New file.
63450
63451 2007-02-11  Bruno Haible  <bruno@clisp.org>
63452
63453         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63454         5.2.1 and earlier, whereby \055 was treated just like the range
63455         delimiter '-'.
63456         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63457
63458 2007-02-08  Bruno Haible  <bruno@clisp.org>
63459
63460         * modules/regex (Depends-on): Add stdbool.
63461         Reported by Dalibor Topic <robilad@kaffe.org>.
63462
63463 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63464
63465         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63466         Prefer returning from main to exiting from it.
63467         Remove unnecessary parens after sizeof.
63468
63469 2007-02-05  Bruno Haible  <bruno@clisp.org>
63470
63471         New module mbssep.
63472         * modules/mbssep: New file.
63473         * lib/mbssep.c: New file.
63474         * lib/string_.h (strsep): Add a conditional link warning.
63475         (mbssep): New declaration.
63476         * m4/mbssep.m4: New file.
63477         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63478         GNULIB_MBSSEP.
63479         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63480         * MODULES.html.sh (Internationalization functions): Add mbssep.
63481
63482 2007-02-05  Bruno Haible  <bruno@clisp.org>
63483
63484         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63485         Optimize search in case of 1 delimiter.
63486
63487 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63488
63489         * lib/acl.h: Include sys/types.h before sys/acl.h.
63490
63491 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63492
63493         Merge upstream fix for glibc bugzilla #3957:
63494
63495         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63496
63497         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63498         bit for RE_HAT_LISTS_NOT_NEWLINE.
63499         (build_charclass_op): Remove bogus comment.
63500
63501 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63502
63503         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63504
63505 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63506
63507         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63508         * lib/memmem.c [!defined _LIBC]: Include config.h.
63509
63510 2007-02-04  Bruno Haible  <bruno@clisp.org>
63511
63512         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63513         warning message.
63514
63515 2007-02-04  Bruno Haible  <bruno@clisp.org>
63516
63517         New module mbstok_r.
63518         * modules/mbstok_r: New file.
63519         * lib/mbstok_r.c: New file.
63520         * lib/string_.h (strtok_r): Change argument names to match the
63521         comments. Add a conditional link warning.
63522         (mbstok_r): New declaration.
63523         * m4/mbstok_r.m4: New file.
63524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63525         GNULIB_MBSTOK_R.
63526         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63527         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63528
63529 2007-02-04  Bruno Haible  <bruno@clisp.org>
63530
63531         New module mbsspn.
63532         * modules/mbsspn: New file.
63533         * lib/mbsspn.c: New file.
63534         * lib/string_.h (strspn): Add a conditional link warning.
63535         (mbsspn): New declaration.
63536         * m4/mbsspn.m4: New file.
63537         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63538         GNULIB_MBSSPN.
63539         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63540         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63541
63542 2007-02-04  Bruno Haible  <bruno@clisp.org>
63543
63544         New module mbspbrk.
63545         * modules/mbspbrk: New file.
63546         * lib/mbspbrk.c: New file.
63547         * lib/string_.h (strpbrk): Add a conditional link warning.
63548         (mbspbrk): New declaration.
63549         * m4/mbspbrk.m4: New file.
63550         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63551         GNULIB_MBSPBRK.
63552         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63553         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63554
63555 2007-02-04  Bruno Haible  <bruno@clisp.org>
63556
63557         New module mbscspn.
63558         * modules/mbscspn: New file.
63559         * lib/mbscspn.c: New file.
63560         * lib/string_.h (strcspn): Add a conditional link warning.
63561         (mbscspn): New declaration.
63562         * m4/mbscspn.m4: New file.
63563         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63564         GNULIB_MBSCSPN.
63565         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63566         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63567
63568 2007-02-04  Bruno Haible  <bruno@clisp.org>
63569
63570         New module mbscasestr, reduced goal of strcasestr.
63571         * modules/mbscasestr: New file.
63572         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63573         (mbscasestr): Renamed from strcasestr.
63574         * lib/strcasestr.c: Don't include mbuiter.h.
63575         (strcasestr): Remove support for multibyte locales.
63576         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63577         Change the conditional link warning.
63578         (mbscasestr): New declaration.
63579         * m4/mbscasestr.m4: New file.
63580         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63581         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63582         REPLACE_STRCASESTR.
63583         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63585         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63586         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63587         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63588         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63589         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63590         (Depends-on): Remove mbuiter.
63591         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63592
63593 2007-02-04  Bruno Haible  <bruno@clisp.org>
63594
63595         Simplify handling of strncasecmp.
63596         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63597         the conditional link warning.
63598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63599         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63600         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63601         * modules/strcase (configure.ac): Don't invoke
63602         gl_STRING_MODULE_INDICATOR.
63603         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63604
63605 2007-02-04  Bruno Haible  <bruno@clisp.org>
63606
63607         New module mbscasecmp, reduced goal of strcasecmp.
63608         * modules/mbscasecmp: New file.
63609         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63610         (mbscasecmp): Renamed from strcasecmp.
63611         * lib/strcasecmp.c: Don't include mbuiter.h.
63612         (strcasecmp): Remove support for multibyte locales.
63613         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63614         Change the conditional link warning.
63615         (mbscasecmp): New declaration.
63616         * m4/mbscasecmp.m4: New file.
63617         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63618         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63619         REPLACE_STRCASECMP.
63620         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63621         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63622         GNULIB_MBSCASECMP.
63623         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63624         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63625         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63626         (Depends-on): Remove mbuiter.
63627         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63628
63629 2007-02-04  Bruno Haible  <bruno@clisp.org>
63630
63631         New module mbsstr. Remove module strstr.
63632         * modules/mbsstr: New file.
63633         * modules/strstr: Remove file.
63634         * lib/mbsstr.c: Renamed from lib/strstr.c.
63635         (mbsstr): Renamed from strstr.
63636         * lib/string_.h (strstr): Remove declaration. Change the conditional
63637         link warning.
63638         (mbsstr): New declaration.
63639         * m4/mbsstr.m4: New file.
63640         * m4/strstr.m4: Remove file.
63641         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63642         REPLACE_STRSTR.
63643         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63644         Don't initialize GNULIB_STRSTR.
63645         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63646         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63647         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63648         (Support for systems lacking ANSI C 89): Remove strstr.
63649
63650 2007-02-04  Bruno Haible  <bruno@clisp.org>
63651
63652         New module mbsrchr.
63653         * modules/mbsrchr: New file.
63654         * lib/mbsrchr.c: New file.
63655         * lib/string_.h (strrchr): Add a conditional link warning.
63656         (mbsrchr): New declaration.
63657         * m4/mbsrchr.m4: New file.
63658         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63659         GNULIB_MBSRCHR.
63660         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63661         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63662
63663 2007-02-04  Bruno Haible  <bruno@clisp.org>
63664
63665         New module mbschr.
63666         * modules/mbschr: New file.
63667         * lib/mbschr.c: New file.
63668         * lib/string_.h (strchr): Add a conditional link warning.
63669         (mbschr): New declaration.
63670         * m4/mbschr.m4: New file.
63671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63672         GNULIB_MBSCHR.
63673         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63674         * MODULES.html.sh (Internationalization functions): Add mbschr.
63675
63676 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63677
63678         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63679
63680         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63681
63682 2007-02-04  Bruno Haible  <bruno@clisp.org>
63683
63684         New module description section 'configure.ac-early'.
63685         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63686         (func_get_autoconf_early_snippet): New function.
63687         (func_import, func_create_testdir): Use it. Remove special cases for
63688         modules 'extensions' and 'lock'.
63689         * modules/extensions (configure.ac-early): Require
63690         gl_USE_SYSTEM_EXTENSIONS.
63691         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63692
63693 2007-02-04  Bruno Haible  <bruno@clisp.org>
63694
63695         Make use of gcj-4.3's -fsource and -ftarget option.
63696         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63697         and if so try the options -fsource and -ftarget.
63698         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63699         source_version, ftarget_option, target_version arguments.
63700         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63701         (is_envjavac_oldgcj_14_14_usable): Renamed from
63702         is_envjavac_gcj_14_14_usable.
63703         (is_envjavac_oldgcj_14_13_usable): Renamed from
63704         is_envjavac_gcj_14_13_usable.
63705         (is_gcj_present): Update.
63706         (is_gcj_43, is_gcj43_usable): New functions.
63707         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63708         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63709         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63710         try the options -fsource and -ftarget.
63711
63712 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63713
63714         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63715         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63716         larger value.
63717
63718 2007-02-03  Jim Meyering  <jim@meyering.net>
63719
63720         Give tools a better chance to allocate space for very large buffers.
63721         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63722
63723         Make pwd and readlink work also when run with an unreadable parent dir
63724         on systems with openat support.
63725         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63726         provided getcwd function, even when we have openat support.
63727         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63728
63729 2007-02-02  Bruno Haible  <bruno@clisp.org>
63730
63731         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63732         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63733         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63734         portability problems if one of these functions is only used on specific
63735         platforms.
63736         Reported by Paul Eggert.
63737
63738 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63739
63740         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63741         is causing more trouble than it's curing.
63742         * lib/regex_internal.h (__mempcpy): Remove.
63743         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63744         (and make the code a tad smaller to boot).
63745         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63746
63747 2007-02-02  Jim Meyering  <jim@meyering.net>
63748
63749         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63750         section, not in the Makefile.am: one.
63751
63752 2007-02-02  Eric Blake  <ebb9@byu.net>
63753
63754         * lib/strchrnul.c: Always include config.h first.
63755
63756         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63757         gnulib strstr is not necessary here.
63758
63759 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63760
63761         * m4/socklen.m4: Fix typo.
63762
63763 2007-02-02  Eric Blake  <ebb9@byu.net>
63764
63765         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63766         * modules/netinet_in (Makefile.am): Likewise.
63767
63768 2007-02-01  Bruno Haible  <bruno@clisp.org>
63769
63770         * lib/string_.h (GL_LINK_WARNING): New macro.
63771         (strcasecmp, strstr, strcasestr): If provided by the system,
63772         conditionally define as a macro that leads to a warning instead of to
63773         an error.
63774         (strncasecmp): Conditionally define as a macro that leads to a warning.
63775
63776 2007-02-01  Karl Berry  <karl@gnu.org>
63777
63778         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63779
63780 2007-02-01  Bruno Haible  <bruno@clisp.org>
63781
63782         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63783         renamings.
63784
63785 2007-02-01  Eric Blake  <ebb9@byu.net>
63786
63787         * modules/regex (Depends-on): Revert dependence on mempcpy.
63788         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63789         module's definition of mempcpy.
63790         Reported by Paul Eggert.
63791
63792 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63793
63794         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63795         the symbol XYZ before redefining it.  This fixes a problem with
63796         programs that don't use XYZ, when compiled on systems that define
63797         XYZ to something else.
63798
63799 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63800
63801         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63802         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63803         writeable to group or other and (2) is intended to have a special
63804         mode bit that is set or cleared.  In such a case, the directory
63805         should be neither group- nor other-writeable until the special
63806         mode bits are right.
63807
63808 2007-01-31  Eric Blake  <ebb9@byu.net>
63809
63810         * modules/mountlist (Depends-on): Add strstr.
63811
63812         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63813         bug.
63814         * modules/string (Makefile.am): Remove redundant replacement.
63815         * modules/regex (Depends-on): Add mempcpy.
63816
63817 2007-01-31  Bruno Haible  <bruno@clisp.org>
63818
63819         New module description field 'Link'.
63820         * gnulib-tool (func_usage): Document --extract-link-directive.
63821         (sed_extract_prog): Recognize 'Link' directive.
63822         (func_get_link_directive): New function.
63823         (func_import): Show summary of link directives.
63824         Handle --extract-link-directive option.
63825         * modules/acl (Link): New section.
63826         * modules/clock-time (Link): New section.
63827         * modules/euidaccess (Link): New section.
63828         * modules/gettext (Link): New section.
63829         * modules/iconv (Link): New section.
63830         * modules/lock (Link): New section.
63831         * modules/nanosleep (Link): New section.
63832         * modules/readline (Link): New section.
63833
63834 2007-01-27  Bruno Haible  <bruno@clisp.org>
63835
63836         Enforce the use of gnulib modules for unportable <string.h> functions.
63837         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63838         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63839         (gl_HEADER_STRING_H_BODY): Require it.
63840         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63841         the symbol XYZ to one that gives a link error.
63842         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63843         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63844         * modules/mempcpy (configure.ac): Likewise.
63845         * modules/memrchr (configure.ac): Likewise.
63846         * modules/stpcpy (configure.ac): Likewise.
63847         * modules/stpncpy (configure.ac): Likewise.
63848         * modules/strcase (configure.ac): Likewise.
63849         * modules/strcasestr (configure.ac): Likewise.
63850         * modules/strchrnul (configure.ac): Likewise.
63851         * modules/strdup (configure.ac): Likewise.
63852         * modules/strndup (configure.ac): Likewise.
63853         * modules/strnlen (configure.ac): Likewise.
63854         * modules/strpbrk (configure.ac): Likewise.
63855         * modules/strsep (configure.ac): Likewise.
63856         * modules/strstr (configure.ac): Likewise.
63857         * modules/strtok_r (configure.ac): Likewise.
63858
63859 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63860
63861         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63862
63863 2007-01-30  Jim Meyering  <jim@meyering.net>
63864
63865         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63866
63867 2007-01-29  Bruno Haible  <bruno@clisp.org>
63868
63869         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63870         * lib/execute.c: Likewise.
63871         * lib/pipe.c: Likewise.
63872         * lib/printf-args.h: Likewise.
63873         * lib/printf-args.c: Likewise.
63874         * lib/printf-parse.c: Likewise.
63875         * lib/vasnprintf.c: Likewise.
63876
63877 2007-01-29  Eric Blake  <ebb9@byu.net>
63878
63879         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63880         declaration.
63881
63882 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63883
63884         * lib/strptime.h (strptime): Use 'restrict' for args where
63885         POSIX requires this.
63886         * lib/strptime.c (strptime): Likewise.
63887         Change license notice from LGPL to GPL, since gnulib-tool will
63888         change this as needed.
63889         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63890         defined.
63891         Include "strptime.h" first, to check interface.
63892         Do not #undef _LIBC and _NL_CURRENT.
63893         Do not include <stdlib.h>; no longer needed.
63894         Include "time_r.h" and declare ptime_locale_status
63895         only if _LIBC is not defined.
63896         (__P): Remove unused macro.
63897         (match_string): Bring back glibc version, but use it only if _LIBC
63898         is defined.
63899         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63900         Remove unnecessary assertion and abort() call.
63901         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63902         * m4/strptime.m4: Fix serial number comment.
63903         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63904         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63905         (Depends-on): Add time_r.
63906
63907 2007-01-29  Bruno Haible  <bruno@clisp.org>
63908
63909         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63910         strptime.
63911         * modules/strptime (Depends-on): Add stdbool.
63912         * lib/strptime.h: Include <time.h> always. Add comments.
63913
63914 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63915
63916         * modules/strptime: New file.
63917         * lib/strptime.h: New file.
63918         * lib/strptime.c: New file.
63919         * m4/strptime.m4: New file.
63920
63921 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63922
63923         * MODULES.html.sh: New module mpsort.
63924         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63925
63926         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63927         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63929         All uses changed.
63930         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63931         All uses changed.
63932         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63933         to _Restrict_.
63934         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63935         the parameter matches the prototype.
63936
63937 2007-01-28  Jim Meyering  <jim@meyering.net>
63938
63939         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63940         sys/time.h here, reverting that part of the previous patch:
63941         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63942
63943 2007-01-28  Bruno Haible  <bruno@clisp.org>
63944
63945         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63946         value of $(SYS_TIME_H).
63947         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63948         remove it conditionally, too. [added by Jim Meyering]
63949         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63950         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63951         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63952         GETTIMEOFDAY_REPLACEMENT to 1.
63953
63954 2007-01-28  Bruno Haible  <bruno@clisp.org>
63955
63956         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63957         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63959         Set UNISTD_H instead of UNISTD_H2.
63960         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63961
63962 2007-01-28  Bruno Haible  <bruno@clisp.org>
63963
63964         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63965         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63966
63967 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63968
63969         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63970         (func_create_testdir): Ensure C locale for `grep' and `tr'
63971         character ranges.
63972         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63973         ACLOCAL_AMFLAGS parsing state machine.
63974
63975 2007-01-27  Bruno Haible  <bruno@clisp.org>
63976
63977         * modules/unistr/base: Update.
63978
63979 2007-01-27  Bruno Haible  <bruno@clisp.org>
63980
63981         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63982         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63983         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63984         modules/unistr/u32-mbtouc.
63985         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63986         * lib/unistr.h: Update.
63987         * lib/linebreak.c: Update.
63988         * modules/unistr/u32-mbtouc: Renamed from
63989         modules/unistr/u32-mbtouc-safe.
63990         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63991         * lib/unistr.h: Update.
63992         * lib/unistr/u32-to-u8.c: Update.
63993         * lib/unistr/u32-to-u16.c: Update.
63994
63995 2007-01-27  Bruno Haible  <bruno@clisp.org>
63996
63997         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63998         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63999         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64000         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64001         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64002         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64003         modules/unistr/u16-mbtouc.
64004         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64005         * lib/unistr.h: Update.
64006         * lib/linebreak.c: Update.
64007         * modules/linebreak: Update.
64008         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64009         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64010         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64011         * modules/unistr/u16-mbtouc: Renamed from
64012         modules/unistr/u16-mbtouc-safe.
64013         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64014         * lib/unistr.h: Update.
64015         * lib/unistr/u16-to-u8.c: Update.
64016         * modules/unistr/u16-to-u8: Update.
64017         * lib/unistr/u16-to-u32.c: Update.
64018         * modules/unistr/u16-to-u32: Update.
64019
64020 2007-01-27  Bruno Haible  <bruno@clisp.org>
64021
64022         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64023         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64024         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64025         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64026         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64027         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64028         modules/unistr/u8-mbtouc.
64029         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64030         * lib/unistr.h: Update.
64031         * lib/striconveh.c: Update.
64032         * modules/striconveh: Update.
64033         * lib/linebreak.c: Update.
64034         * modules/linebreak: Update.
64035         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64036         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64037         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64038         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64039         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64040         * lib/unistr.h: Update.
64041         * lib/striconveh.c: Update.
64042         * modules/striconveh: Update.
64043         * lib/unistr/u8-to-u16.c: Update.
64044         * modules/unistr/u8-to-u16: Update.
64045         * lib/unistr/u8-to-u32.c: Update.
64046         * modules/unistr/u8-to-u32: Update.
64047
64048 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64049
64050         Sync from Libtool.
64051         * lib/argz.c: Do not include strings.h nor memory.h, include
64052         string.h unconditionally.  Patch by Simon Josefsson.
64053
64054 2007-01-27  Bruno Haible  <bruno@clisp.org>
64055
64056         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64057         from gl_HEADER_STRING_H_BODY.
64058         (gl_HEADER_STRING_H_BODY): Require it.
64059         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64060         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64061         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64062         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64063         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64064         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64065         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64066         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64067         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64068         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64069         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64070         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64071         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64072         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64073         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64074
64075 2007-01-27  Bruno Haible  <bruno@clisp.org>
64076
64077         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64078         check_PROGRAMS into noinst_PROGRAMS.
64079         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64080         check_PROGRAMS in this case.
64081         (func_import): Set for_test to false.
64082         (func_create_testdir): Set for_test to true.
64083
64084 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64085             Bruno Haible  <bruno@clisp.org>
64086
64087         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64088         (Depends-on): Add string.
64089         (Includes): Use <string.h> instead of strcasestr.h.
64090         * modules/string (Makefile.am): Also substitute the value of
64091         REPLACE_STRCASESTR.
64092         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64093         assume strcasestr is declared in <string.h> not <strings.h>. Also
64094         set REPLACE_STRCASESTR.
64095         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64096         REPLACE_STRCASESTR.
64097         * lib/strcasestr.h: Remove file.
64098         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64099         * lib/string_.h (strcasestr): New declaration.
64100
64101 2007-01-27  Bruno Haible  <bruno@clisp.org>
64102
64103         * lib/string_.h: Use 'extern'.
64104
64105 2007-01-27  Jim Meyering  <jim@meyering.net>
64106
64107         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64108         of set-but-not-used local, "q".
64109
64110         * lib/mempcpy.c: Include <config.h> before <string.h>.
64111         This fixes a compilation error on HP-UX, due to the system's
64112         "restrict"-using mempcpy prototype.
64113
64114 2007-01-26  Bruno Haible  <bruno@clisp.org>
64115
64116         Small optimization.
64117         * lib/javacomp.c: Include c-strstr.h.
64118          (is_envjavac_gcj): Use c_strstr instead of strstr.
64119         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64120
64121 2007-01-26  Bruno Haible  <bruno@clisp.org>
64122
64123         * MODULES.html.sh (Unicode string functions): Add the new modules.
64124
64125         * modules/uniconv/u32-strconv-to-locale: New file.
64126         * lib/uniconv/u32-strconv-to-locale.c: New file.
64127
64128         * modules/uniconv/u16-strconv-to-locale: New file.
64129         * lib/uniconv/u16-strconv-to-locale.c: New file.
64130
64131         * modules/uniconv/u8-strconv-to-locale: New file.
64132         * lib/uniconv/u8-strconv-to-locale.c: New file.
64133
64134         * modules/uniconv/u32-strconv-from-locale: New file.
64135         * lib/uniconv/u32-strconv-from-locale.c: New file.
64136
64137         * modules/uniconv/u16-strconv-from-locale: New file.
64138         * lib/uniconv/u16-strconv-from-locale.c: New file.
64139
64140         * modules/uniconv/u8-strconv-from-locale: New file.
64141         * lib/uniconv/u8-strconv-from-locale.c: New file.
64142
64143         * modules/uniconv/u32-strconv-to-enc: New file.
64144         * lib/uniconv/u32-strconv-to-enc.c: New file.
64145         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64146         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64147
64148         * modules/uniconv/u16-strconv-to-enc: New file.
64149         * lib/uniconv/u16-strconv-to-enc.c: New file.
64150         * lib/uniconv/u-strconv-to-enc.h: New file.
64151         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64152         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64153
64154         * modules/uniconv/u8-strconv-to-enc: New file.
64155         * lib/uniconv/u8-strconv-to-enc.c: New file.
64156         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64157         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64158
64159         * modules/uniconv/u32-strconv-from-enc: New file.
64160         * lib/uniconv/u32-strconv-from-enc.c: New file.
64161         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64162         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64163
64164         * modules/uniconv/u16-strconv-from-enc: New file.
64165         * lib/uniconv/u16-strconv-from-enc.c: New file.
64166         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64167         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64168
64169         * modules/uniconv/u8-strconv-from-enc: New file.
64170         * lib/uniconv/u8-strconv-from-enc.c: New file.
64171         * lib/uniconv/u-strconv-from-enc.h: New file.
64172         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64173         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64174
64175         * modules/uniconv/u32-conv-from-enc: New file.
64176         * lib/uniconv/u32-conv-from-enc.c: New file.
64177         * modules/uniconv/u32-conv-from-enc-tests: New file.
64178         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64179
64180         * modules/uniconv/u16-conv-from-enc: New file.
64181         * lib/uniconv/u16-conv-from-enc.c: New file.
64182         * lib/uniconv/u-conv-from-enc.h: New file.
64183         * modules/uniconv/u16-conv-from-enc-tests: New file.
64184         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64185
64186         * modules/uniconv/u8-conv-from-enc: New file.
64187         * lib/uniconv/u8-conv-from-enc.c: New file.
64188         * modules/uniconv/u8-conv-from-enc-tests: New file.
64189         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64190
64191         * modules/uniconv/base: New file.
64192         * lib/uniconv.h: New file.
64193
64194 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64195
64196         * doc/gnulib-tool.texi (Initial import): Update to match current
64197         behavior with strdup module.
64198         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64199         * lib/memmem.h: Remove; all uses removed.  This is now done
64200         by <string.h>.
64201         * lib/mempcpy.h: Likewise.
64202         * lib/memrchr.h: Likewise.
64203         * lib/stpcpy.h: Likewise.
64204         * lib/stpncpy.h: Likewise.
64205         * lib/strcase.h: Likewise.
64206         * lib/strchrnul.h: Likewise.
64207         * lib/strdup.h: Likewise.
64208         * lib/strndup.h: Likewise.
64209         * lib/strnlen.h: Likewise.
64210         * lib/strpbrk.h: Likewise.
64211         * lib/strsep.h: Likewise.
64212         * lib/strstr.h: Likewise.
64213         * lib/strtok_r.h: Likewise.
64214         * lib/string_.h: New file.
64215         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64216         Rely on <string.h> instead.
64217         * lib/canon-host.c: Likewise.
64218         * lib/chdir-long.c: Likewise.
64219         * lib/concatpath.c: Likewise.
64220         * lib/exclude.c: Likewise.
64221         * lib/fchdir.c: Likewise.
64222         * lib/getaddrinfo.c: Likewise.
64223         * lib/getcwd.c: Likewise.
64224         * lib/getsubopt.c: Likewise.
64225         * lib/glob.c: Likewise.
64226         * lib/hard-locale.c: Likewise.
64227         * lib/iconvme.c: Likewise.
64228         * lib/javacomp.c: Likewise.
64229         * lib/mempcpy.c: Likewise.
64230         * lib/memrchr.c: Likewise.
64231         * lib/regex_internal.h: Likewise.
64232         * lib/stpncpy.c: Likewise.
64233         * lib/strcasecmp.c: Likewise.
64234         * lib/strchrnul.c: Likewise.
64235         * lib/strdup.c: Likewise.
64236         * lib/striconv.c: Likewise.
64237         * lib/striconveh.c: Likewise.
64238         * lib/striconveha.c: Likewise.
64239         * lib/strncasecmp.c: Likewise.
64240         * lib/strndup.c: Likewise.
64241         * lib/strnlen.c: Likewise.
64242         * lib/strsep.c: Likewise.
64243         * lib/strstr.c: Likewise.
64244         * lib/strtok_r.c: Likewise.
64245         * lib/userspec.c: Likewise.
64246         * lib/w32spawn.h: Likewise.
64247         * lib/xstrndup.c: Likewise.
64248         * lib/mountlist.c (strstr): Remove decl.
64249         * m4/string_h.m4: New file.
64250         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64251         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64252         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64253         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64254         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64255         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64256         Set REPLACE_STRCASECMP if necessary.
64257         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64258         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64259         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64260         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64261         HAVE_DECL_STRDUP if necessary.
64262         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64263         since gl_FUNC_STRNDUP does that now.
64264         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64265         Check for decl here...
64266         (gl_PREREQ_STRNLEN): ... not here.
64267         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64268         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64269         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64270         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64271         necessary.
64272         * modules/string: New file.
64273         * modules/memmem (Files): Remove special-purpose include file.
64274         (Depends-on): Add string.
64275         (Include): Include <string.h>, not the removed file.
64276         * modules/mempcpy: Likewise.
64277         * modules/memrchr: Likewise.
64278         * modules/stpcpy: Likewise.
64279         * modules/stpncpy: Likewise.
64280         * modules/strcase: Likewise.
64281         * modules/strchrnul: Likewise.
64282         * modules/strdup: Likewise.
64283         * modules/strndup: Likewise.
64284         * modules/strnlen: Likewise.
64285         * modules/strpbrk: Likewise.
64286         * modules/strsep: Likewise.
64287         * modules/strstr: Likewise.
64288         * modules/strtok_r: Likewise.
64289         * tests/test-dirname.c: Don't include "strdup.h", since
64290         <string.h> now suffices.
64291         * tests/test-memmem.c: Don't include "memmem.h", since
64292         <string.h> now suffices.
64293
64294 2007-01-25  Bruno Haible  <bruno@clisp.org>
64295
64296         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64297         *resultp is 0.
64298
64299         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64300         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64301         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64302         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64303
64304         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64305         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64306         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64307         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64308         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64309         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64310
64311 2007-01-24  Bruno Haible  <bruno@clisp.org>
64312
64313         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64314         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64315         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64316         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64317         gl_FUNC_FTS_CORE.
64318         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64319         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64320         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64321         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64322         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64323         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64324         gl_FUNC_FCHOWNAT.
64325         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64326         gl_FUNC_STRFTIME.
64327         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64328         Reported by Ralf Wildenhues.
64329
64330 2007-01-24  Bruno Haible  <bruno@clisp.org>
64331
64332         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64333         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64334         gl_GETADDRINFO.
64335         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64336         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64337         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64338
64339 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64340
64341         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64342         Don't use 'exit'; just return from 'main'.
64343         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64344
64345         * lib/fnmatch_.h: Readjust white space and comments to match
64346         glibc, to avoid spurious diffs.
64347
64348 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64349
64350         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64351         2004-12-01 change by Jakub Jelinek, since this code won't compile
64352         if !LIBC.  Problem reported by Bob Proulx.
64353
64354 2007-01-23  Bruno Haible  <bruno@clisp.org>
64355
64356         * lib/striconveh.c: Include c-strcaseeq.h.
64357         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64358         * modules/striconveh (Depends-on): Add c-strcaseeq.
64359
64360 2007-01-23  Bruno Haible  <bruno@clisp.org>
64361
64362         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64363
64364         * modules/c-strcaseeq: New file.
64365         * lib/c-strcaseeq.h: New file.
64366
64367         * modules/streq: New file.
64368         * lib/streq.h: New file.
64369
64370 2007-01-23  Bruno Haible  <bruno@clisp.org>
64371
64372         * modules/striconveha-tests: New file.
64373         * tests/test-striconveha.c: New file.
64374
64375         * lib/striconveha.h: Include <stdbool.h>.
64376         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64377         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64378         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64379         (mem_iconveha): New function.
64380         (str_iconveha_notranslit): Renamed from str_iconveha.
64381         (str_iconveha): New function.
64382         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64383         c-strcase.
64384
64385 2007-01-23  Bruno Haible  <bruno@clisp.org>
64386
64387         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64388         encodings without forgiving before trying any encoding with handler.
64389         (str_iconveha): Try all encodings without forgiving before trying any
64390         encoding with handler.
64391
64392 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64393
64394         Import the following changes from libc.
64395
64396         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64397
64398         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64399
64400         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64401
64402         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64403         normal_bracket label.
64404
64405         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64406
64407         [BZ #361]
64408         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64409         to normal_bracket after fetching the next character.
64410
64411 2007-01-22  Bruno Haible  <bruno@clisp.org>
64412
64413         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64414         argument.
64415         * lib/striconveh.c (iconv_carefully_1): New function.
64416         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64417         argument.
64418         (str_cd_iconveh): Update.
64419         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64420         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64421         * tests/test-striconveh.c (MAGIC): New macro.
64422         (new_offsets): New function.
64423         (main): Test call with and without offsets.
64424
64425 2007-01-22  Bruno Haible  <bruno@clisp.org>
64426
64427         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64428         * modules/sys_select (Makefile.am): Likewise.
64429         * modules/sys_socket (Makefile.am): Likewise.
64430         * modules/sys_time (Makefile.am): Likewise.
64431
64432 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64433
64434         * modules/gettimeofday (License): Change from GPL to LGPL, since
64435         gettimeofday is a library function.
64436
64437 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64438
64439         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64440
64441 2007-01-21  Bruno Haible  <bruno@clisp.org>
64442
64443         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64444
64445 2007-01-21  Bruno Haible  <bruno@clisp.org>
64446
64447         * modules/striconveha: New file.
64448         * lib/striconveha.h: New file.
64449         * lib/striconveha.c: New file.
64450         * MODULES.html.sh (Internationalization functions): Add striconveha.
64451         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64452         string.
64453         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64454
64455 2007-01-21  Bruno Haible  <bruno@clisp.org>
64456
64457         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64458         * lib/striconveh.c (str_iconveh): Likewise.
64459
64460 2007-01-21  Bruno Haible  <bruno@clisp.org>
64461
64462         * lib/striconveh.h (mem_iconveh): New declaration.
64463         * lib/striconveh.c (mem_iconveh): New function.
64464         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64465
64466 2007-01-21  Bruno Haible  <bruno@clisp.org>
64467
64468         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64469
64470         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64471         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64472         original result buffer.
64473         (str_cd_iconveh): Update.
64474         * tests/test-striconveh.c (main): Update.
64475
64476         * lib/striconv.h (mem_cd_iconv): Change specification.
64477         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64478         result buffer.
64479         (str_cd_iconv): Update.
64480         * tests/test-striconv.c (main): Update.
64481
64482 2007-01-21  Bruno Haible  <bruno@clisp.org>
64483
64484         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64485
64486 2007-01-20  Jim Meyering  <jim@meyering.net>
64487
64488         * lib/userspec.c (parse_with_separator): If a user or group string
64489         starts with "+", skip the corresponding name-to-ID look-up, since
64490         such a look-up must fail: user and group names may not include "+".
64491
64492 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64493
64494         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64495         since we now assume the sys_time module.
64496         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64497         check for sys/time.h; no longer needed.
64498         * modules/poll (Depends-on): Depend on sys_time.
64499
64500 2007-01-18  Bruno Haible  <bruno@clisp.org>
64501
64502         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64503         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64504
64505         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64506         gettimeofday.
64507
64508         * tests/test-gettimeofday.c: Include <time.h>.
64509         (dummy): Remove variable.
64510
64511         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64512         gl_HEADER_SYS_TIME_H.
64513         (gl_HEADER_SYS_TIME_H): New macro.
64514
64515         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64516         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64517         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64518         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64519         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64520         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64521         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64522         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64523         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64524         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64525         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64526
64527         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64528         last change; it caused a compilation error when cross-compiling to
64529         Cygwin.
64530
64531 2007-01-18  Jim Meyering  <jim@meyering.net>
64532
64533         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64534         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64535         than the race-prone "test -d sys || mkdir sys".
64536         (configure.ac): Use AC_PROG_MKDIR_P.
64537         * modules/sys_select: Likewise.
64538         * modules/sys_socket: Likewise.
64539         * modules/sys_time: Likewise.
64540
64541 2007-01-18  Eric Blake  <ebb9@byu.net>
64542
64543         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64544         replace gettimeofday.
64545         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64546         name, to avoid infinite recursion.
64547
64548 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64549
64550         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64551         module sys_time.
64552         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64553         assume timespec.h defines struct timeval.
64554         * lib/settime.c: Likewise.
64555         * lib/utimens.c: Likewise.
64556         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64557         since we now assume the gettimeofday module.
64558         * lib/tempname.c (__gen_tempname): Likewise.
64559         * lib/gettimeofday.h: Remove.
64560         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64561         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64562         Include <time.h>, for 'time()'.
64563         (localtime_buffer_addr): Also use this workaround if
64564         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64565         to simplify the uses.  All uses changed.
64566         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64567         that #undef is inside {}, and 'const' follows type name consistently.
64568         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64569         (gettimeofday): Do not use the maximum possible value for
64570         tv->tv_usec, since that might break usages other than ls.c.
64571         Instead, we'll leave ls.c alone.  This undoes today's patch
64572         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64573         we've never observed the problem but might as well keep the
64574         canary.
64575         * lib/nanosleep.c: Include timespec.h first, for interface check.
64576         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64577         now assume the sys_time module.
64578         * lib/tempname.c: Likewise.
64579         * lib/timespec.h: Likewise.
64580         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64581         needed.
64582         * lib/strftime.c: Likewise.
64583         * lib/timespec.h: Likewise.
64584         * lib/posixtm.c: Include posixtm.h first, for interface check.
64585         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64586         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64587         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64588         * lib/sys_time_.h: New file.
64589         * lib/timespec.h (struct timespec): Use long int, not long.
64590         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64591         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64592         Remove obsolescent call to AC_HEADER_TIME.
64593         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64595         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64596         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64597         Likewise.
64598         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64599         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64600         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64601         into the sys_time module.  Check for gettimeofday just once.
64602         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64603         for gettimeofday signature to just check the signature.  Merely
64604         compile it, since linking doesn't test signature.  Improve test for
64605         whether gettimeofday.o is actually needed.
64606         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64607         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64608         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64609         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64610         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64611         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64612         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64613         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64614         than worrying about sys/time.h.
64615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64616         Don't bother worrying about TIME_WITH_SYS_TIME.
64617         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64618         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64619         * m4/sys_time_h.m4: New file.
64620         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64621         Don't include sys/time.h.  Return from main rather than exiting.
64622         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64623         all uses changed.
64624         * modules/gethrxtime (Depends-on): Add sys_time.
64625         * modules/gettime (Depends-on): Likewise.
64626         * modules/gettimeofday (Depends-on): Likewise.
64627         * modules/nanosleep (Depends-on): Likewise.
64628         * modules/settime (Depends-on): Likewise.
64629         * modules/tempname (Depends-on): Likewise.
64630         * modules/utimens (Depends-on): Likewise.
64631         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64632         (Include): Change back to <sys/time.h>.
64633         (Maintainer): Add self.
64634         * modules/sys_time: New file.
64635         * modules/tempname (Depends-on): Add gettimeofday.
64636         * tests/test-gettimeofday.c: Include <sys/time.h>
64637         rather than gettimeofday.h.
64638
64639 2007-01-17  Bruno Haible  <bruno@clisp.org>
64640
64641         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64642         the license default to GPL.
64643         (func_create_testdir): Don't complain if a module is LGPL and its
64644         tests module depends on GPLed modules.
64645
64646 2007-01-17  Bruno Haible  <bruno@clisp.org>
64647
64648         * lib/gettimeofday.c (gettimeofday): Add code for the case
64649         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64650         maximum possible value for tv->tv_usec, rather than the minimum one.
64651
64652 2005-10-08  Martin Lambers  <marlam@marlam.de>
64653 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64654 2007-01-16  Bruno Haible  <bruno@clisp.org>
64655
64656         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64657         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64658         gl_FUNC_GETTIMEOFDAY.
64659         (Include): Add gettimeofday.h.
64660         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64661         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64662         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64663         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64664         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64665         * lib/gettimeofday.h: New file.
64666         * lib/gettimeofday.c: Include <sys/timeb.h>.
64667         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64668         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64669         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64670         fall back on time().
64671
64672         * tests/test-gettimeofday.c: New file.
64673         * modules/gettimeofday-tests: New file.
64674
64675 2007-01-16  Eric Blake  <ebb9@byu.net>
64676
64677         * modules/fnmatch (Depends-on): Depend on wchar.
64678         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64679         * m4/fnmatch.m4: Likewise.
64680         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64681         * m4/mbchar.m4: Likewise.
64682         * modules/mbswidth (Depends-on): Depend on wchar.
64683         * lib/mbswidth.c: Assume <wchar.h>.
64684         * m4/mbswidth.m4: Likewise.
64685         * modules/quotearg (Depends-on): Depend on wchar.
64686         * lib/quotearg.c: Assume <wchar.h>.
64687         * m4/quotearg.m4: Likewise.
64688         * modules/regex (Depends-on): Depend on wchar.
64689         * lib/regex_internal.h: Assume <wchar.h>.
64690         * m4/regex.m4: Likewise.
64691         * modules/stdint (Depends-on): Depend on wchar.
64692         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64693         * m4/stdint.m4: Likewise.
64694         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64695         * modules/strftime (Depends-on): Depend on wchar.
64696         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64697         * modules/strtol (Depends-on): Depend on wchar.
64698         * lib/strtol.c: Assume <wchar.h>.
64699         * modules/wcwidth (Depends-on): Depend on wchar.
64700         * lib/wcwidth.h: Assume <wchar.h>.
64701         * m4/wcwidth.m4: Likewise.
64702
64703 2007-01-16  Bruno Haible  <bruno@clisp.org>
64704
64705         * modules/csharpexec-script: New, created from...
64706         * modules/csharpexec: ... this.
64707
64708 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64709
64710         * modules/javaexec-script: New, created from...
64711         * modules/javaexec: ... this.
64712
64713 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64714
64715         * modules/poll (Dependencies): Add sys_select.
64716
64717 2007-01-15  Jim Meyering  <jim@meyering.net>
64718
64719         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64720         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64721         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64722         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64723
64724 2007-01-15  Bruno Haible  <bruno@clisp.org>
64725
64726         * modules/striconveh: New file.
64727         * lib/striconveh.h: New file.
64728         * lib/striconveh.c: New file.
64729         * MODULES.html.sh (Internationalization functions): Add striconveh.
64730
64731         * modules/striconveh-tests: New file.
64732         * tests/test-striconveh.c: New file.
64733
64734 2007-01-15  Bruno Haible  <bruno@clisp.org>
64735
64736         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64737         not from GNU libiconv or GNU libc.
64738
64739 2007-01-15  Bruno Haible  <bruno@clisp.org>
64740
64741         * doc/gnulib-intro.texi (Copyright): Explain the different license
64742         terms for module descriptions, autoconf macros, tests, documentation.
64743
64744 2007-01-14  Bruno Haible  <bruno@clisp.org>
64745
64746         * modules/striconv-tests: New file.
64747         * tests/test-striconv.c: New file.
64748
64749 2007-01-14  Bruno Haible  <bruno@clisp.org>
64750
64751         * modules/iconv-tests: New file.
64752         * tests/test-iconv.c: New file.
64753
64754 2007-01-14  Bruno Haible  <bruno@clisp.org>
64755
64756         * gnulib-tool (func_get_license): For test modules, use the license of
64757         the main module.
64758
64759 2007-01-14  Bruno Haible  <bruno@clisp.org>
64760
64761         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64762         if iconv is found to exist.
64763
64764 2007-01-14  Bruno Haible  <bruno@clisp.org>
64765
64766         * modules/c-ctype-tests: New file.
64767         * tests/test-c-ctype.c: New file.
64768
64769 2007-01-14  Bruno Haible  <bruno@clisp.org>
64770
64771         * modules/binary-io-tests: New file.
64772         * tests/test-binary-io.sh: New file.
64773         * tests/test-binary-io.c: New file.
64774
64775 2007-01-14  Bruno Haible  <bruno@clisp.org>
64776
64777         * modules/array-oset-tests: New file.
64778         * tests/test-array_oset.c: New file.
64779
64780 2007-01-14  Bruno Haible  <bruno@clisp.org>
64781
64782         * modules/array-list-tests: New file.
64783         * tests/test-array_list.c: New file.
64784
64785 2007-01-14  Bruno Haible  <bruno@clisp.org>
64786
64787         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64788         and make.
64789         Reported by Simon Josefsson in
64790         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64791
64792 2007-01-14  Bruno Haible  <bruno@clisp.org>
64793
64794         * modules/allocsa-tests: New file.
64795         * tests/test-allocsa.c: New file.
64796
64797 2007-01-14  Bruno Haible  <bruno@clisp.org>
64798
64799         * modules/fchdir (Depends-on): Add absolute-header.
64800         * modules/unistd (Depends-on): Likewise.
64801
64802 2006-12-30  Bruno Haible  <bruno@clisp.org>
64803
64804         * modules/fchdir: New file.
64805         * modules/unistd (Files): Add lib/unistd_.h.
64806         (Makefile.am): Generate unistd.h from unistd_.h.
64807         * lib/fchdir.c: New file.
64808         * lib/dirent_.h: New file.
64809         * lib/unistd_.h: New file.
64810         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64811         * m4/fchdir.m4: New file.
64812         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64813         (gl_HEADER_UNISTD): Invoke it.
64814         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64815         function.
64816         * lib/backupfile.c (opendir, closedir): Undefine.
64817         * lib/chown.c (open, close): Undefine.
64818         * lib/clean-temp.c (open, close): Undefine.
64819         * lib/copy-file.c (open, close): Undefine.
64820         * lib/execute.c (open, close): Undefine.
64821         * lib/fsusage.c (open, close): Undefine.
64822         * lib/gc-gnulib.c (open, close): Undefine.
64823         * lib/getcwd.c (opendir, closedir): Undefine.
64824         * lib/glob.c (opendir, closedir): Undefine.
64825         * lib/javacomp.c (open, close): Undefine.
64826         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64827         * lib/openat-proc.c (open, close): Undefine.
64828         * lib/pagealign_alloc.c (open, close): Undefine.
64829         * lib/pipe.c (open, close): Undefine.
64830         * lib/progreloc.c (open, close): Undefine.
64831         * lib/savedir.c (opendir, closedir): Undefine.
64832         * lib/utime.c (open, close): Undefine.
64833         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64834
64835 2007-01-10  Bruno Haible  <bruno@clisp.org>
64836
64837         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64838
64839 2007-01-12  Eric Blake  <ebb9@byu.net>
64840
64841         Provide a robust <wchar.h>.  Further simplifications are now
64842         possible in other modules, but not included here.
64843         * modules/wchar: New module.
64844         * m4/wchar.m4: New file.
64845         * lib/wchar_.h: Likewise.
64846         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64847         of the new module.
64848         * MODULES.html.sh (Extended multibyte and wide character utilities):
64849         New section.
64850
64851 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64852
64853         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64854         to a reasonable default for memory allocation.
64855         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64856         file system that reports garbage st_size values for symlinks.
64857         Problem reported by Liyang Hu.
64858
64859 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64860
64861         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64862         Emacs .#* auto-save files).
64863
64864 2007-01-11  Bruno Haible  <bruno@clisp.org>
64865
64866         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64867         directory.
64868
64869 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64870
64871         Use @...@ consistently in lib/wctype_.h.
64872         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64873         on it being set to 1 or 0.
64874         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64875         go back to AC_SUBSTing it.
64876         * modules/wctype (Makefile.am): Undo previous change.
64877
64878 2007-01-10  Eric Blake  <ebb9@byu.net>
64879
64880         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64881         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64882         * modules/wctype (Makefile.am): Likewise.
64883         Reported by Chris McGuire.
64884
64885 2007-01-10  Jim Meyering  <jim@meyering.net>
64886
64887         fts.c: a small readability/maintainability improvement
64888         * lib/fts.c (fts_read): Make this code slightly more readable and
64889         maintainable by hoisting the "sp->fts_cur = p" assignments to
64890         immediately follow the statements that set P.  Derived from
64891         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64892
64893 2007-01-10  Eric Blake  <ebb9@byu.net>
64894
64895         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64896         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64898         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64899         Reported by Chris McGuire.
64900
64901 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64902
64903         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64904         in sed script.
64905
64906 2007-01-09  Bruno Haible  <bruno@clisp.org>
64907
64908         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64909         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64910         variables.
64911         (func_module): Use them.
64912
64913 2007-01-09  Bruno Haible  <bruno@clisp.org>
64914
64915         * modules/unistr/base: New file.
64916         * lib/unistr.h: New file.
64917
64918         * modules/unistr/u8-to-u16: New file.
64919         * lib/unistr/u8-to-u16.c: New file.
64920
64921         * modules/unistr/u8-to-u32: New file.
64922         * lib/unistr/u8-to-u32.c: New file.
64923
64924         * modules/unistr/u16-to-u8: New file.
64925         * lib/unistr/u16-to-u8.c: New file.
64926
64927         * modules/unistr/u16-to-u32: New file.
64928         * lib/unistr/u16-to-u32.c: New file.
64929
64930         * modules/unistr/u32-to-u8: New file.
64931         * lib/unistr/u32-to-u8.c: New file.
64932
64933         * modules/unistr/u32-to-u16: New file.
64934         * lib/unistr/u32-to-u16.c: New file.
64935
64936         * modules/unistr/u8-check: New file.
64937         * modules/unistr/u16-check: New file.
64938         * modules/unistr/u32-check: New file.
64939         * lib/unistr/u8-check.c: New file.
64940         * lib/unistr/u16-check.c: New file.
64941         * lib/unistr/u32-check.c: New file.
64942
64943         * modules/unistr/u8-chr: New file.
64944         * modules/unistr/u16-chr: New file.
64945         * modules/unistr/u32-chr: New file.
64946         * lib/unistr/u8-chr.c: New file.
64947         * lib/unistr/u16-chr.c: New file.
64948         * lib/unistr/u32-chr.c: New file.
64949
64950         * modules/unistr/u8-cmp: New file.
64951         * modules/unistr/u16-cmp: New file.
64952         * modules/unistr/u32-cmp: New file.
64953         * lib/unistr/u8-cmp.c: New file.
64954         * lib/unistr/u16-cmp.c: New file.
64955         * lib/unistr/u32-cmp.c: New file.
64956
64957         * modules/unistr/u8-cpy: New file.
64958         * modules/unistr/u16-cpy: New file.
64959         * modules/unistr/u32-cpy: New file.
64960         * lib/unistr/u8-cpy.c: New file.
64961         * lib/unistr/u16-cpy.c: New file.
64962         * lib/unistr/u32-cpy.c: New file.
64963         * lib/unistr/u-cpy.h: New file.
64964
64965         * modules/unistr/u8-cpy-alloc: New file.
64966         * modules/unistr/u16-cpy-alloc: New file.
64967         * modules/unistr/u32-cpy-alloc: New file.
64968         * lib/unistr/u8-cpy-alloc.c: New file.
64969         * lib/unistr/u16-cpy-alloc.c: New file.
64970         * lib/unistr/u32-cpy-alloc.c: New file.
64971         * lib/unistr/u-cpy-alloc.h: New file.
64972
64973         * modules/unistr/u8-endswith: New file.
64974         * modules/unistr/u16-endswith: New file.
64975         * modules/unistr/u32-endswith: New file.
64976         * lib/unistr/u8-endswith.c: New file.
64977         * lib/unistr/u16-endswith.c: New file.
64978         * lib/unistr/u32-endswith.c: New file.
64979         * lib/unistr/u-endswith.h: New file.
64980
64981         * modules/unistr/u8-mblen: New file.
64982         * modules/unistr/u16-mblen: New file.
64983         * modules/unistr/u32-mblen: New file.
64984         * lib/unistr/u8-mblen.c: New file.
64985         * lib/unistr/u16-mblen.c: New file.
64986         * lib/unistr/u32-mblen.c: New file.
64987
64988         * modules/unistr/u8-mbtouc: New file.
64989         * modules/unistr/u16-mbtouc: New file.
64990         * modules/unistr/u32-mbtouc: New file.
64991         * lib/unistr/u8-mbtouc.c: New file.
64992         * lib/unistr/u16-mbtouc.c: New file.
64993         * lib/unistr/u32-mbtouc.c: New file.
64994
64995         * modules/unistr/u8-mbtouc-safe: New file.
64996         * modules/unistr/u16-mbtouc-safe: New file.
64997         * modules/unistr/u32-mbtouc-safe: New file.
64998         * lib/unistr/u8-mbtouc-safe.c: New file.
64999         * lib/unistr/u16-mbtouc-safe.c: New file.
65000         * lib/unistr/u32-mbtouc-safe.c: New file.
65001
65002         * modules/unistr/u8-move: New file.
65003         * modules/unistr/u16-move: New file.
65004         * modules/unistr/u32-move: New file.
65005         * lib/unistr/u8-move.c: New file.
65006         * lib/unistr/u16-move.c: New file.
65007         * lib/unistr/u32-move.c: New file.
65008         * lib/unistr/u-move.h: New file.
65009
65010         * modules/unistr/u8-next: New file.
65011         * modules/unistr/u16-next: New file.
65012         * modules/unistr/u32-next: New file.
65013         * lib/unistr/u8-next.c: New file.
65014         * lib/unistr/u16-next.c: New file.
65015         * lib/unistr/u32-next.c: New file.
65016
65017         * modules/unistr/u8-prev: New file.
65018         * modules/unistr/u16-prev: New file.
65019         * modules/unistr/u32-prev: New file.
65020         * lib/unistr/u8-prev.c: New file.
65021         * lib/unistr/u16-prev.c: New file.
65022         * lib/unistr/u32-prev.c: New file.
65023
65024         * modules/unistr/u8-set: New file.
65025         * modules/unistr/u16-set: New file.
65026         * modules/unistr/u32-set: New file.
65027         * lib/unistr/u8-set.c: New file.
65028         * lib/unistr/u16-set.c: New file.
65029         * lib/unistr/u32-set.c: New file.
65030         * lib/unistr/u-set.h: New file.
65031
65032         * modules/unistr/u8-startswith: New file.
65033         * modules/unistr/u16-startswith: New file.
65034         * modules/unistr/u32-startswith: New file.
65035         * lib/unistr/u8-startswith.c: New file.
65036         * lib/unistr/u16-startswith.c: New file.
65037         * lib/unistr/u32-startswith.c: New file.
65038         * lib/unistr/u-startswith.h: New file.
65039
65040         * modules/unistr/u8-stpcpy: New file.
65041         * modules/unistr/u16-stpcpy: New file.
65042         * modules/unistr/u32-stpcpy: New file.
65043         * lib/unistr/u8-stpcpy.c: New file.
65044         * lib/unistr/u16-stpcpy.c: New file.
65045         * lib/unistr/u32-stpcpy.c: New file.
65046         * lib/unistr/u-stpcpy.h: New file.
65047
65048         * modules/unistr/u8-stpncpy: New file.
65049         * modules/unistr/u16-stpncpy: New file.
65050         * modules/unistr/u32-stpncpy: New file.
65051         * lib/unistr/u8-stpncpy.c: New file.
65052         * lib/unistr/u16-stpncpy.c: New file.
65053         * lib/unistr/u32-stpncpy.c: New file.
65054         * lib/unistr/u-stpncpy.h: New file.
65055
65056         * modules/unistr/u8-strcat: New file.
65057         * modules/unistr/u16-strcat: New file.
65058         * modules/unistr/u32-strcat: New file.
65059         * lib/unistr/u8-strcat.c: New file.
65060         * lib/unistr/u16-strcat.c: New file.
65061         * lib/unistr/u32-strcat.c: New file.
65062         * lib/unistr/u-strcat.h: New file.
65063
65064         * modules/unistr/u8-strchr: New file.
65065         * modules/unistr/u16-strchr: New file.
65066         * modules/unistr/u32-strchr: New file.
65067         * lib/unistr/u8-strchr.c: New file.
65068         * lib/unistr/u16-strchr.c: New file.
65069         * lib/unistr/u32-strchr.c: New file.
65070
65071         * modules/unistr/u8-strcmp: New file.
65072         * modules/unistr/u16-strcmp: New file.
65073         * modules/unistr/u32-strcmp: New file.
65074         * lib/unistr/u8-strcmp.c: New file.
65075         * lib/unistr/u16-strcmp.c: New file.
65076         * lib/unistr/u32-strcmp.c: New file.
65077
65078         * modules/unistr/u8-strcpy: New file.
65079         * modules/unistr/u16-strcpy: New file.
65080         * modules/unistr/u32-strcpy: New file.
65081         * lib/unistr/u8-strcpy.c: New file.
65082         * lib/unistr/u16-strcpy.c: New file.
65083         * lib/unistr/u32-strcpy.c: New file.
65084         * lib/unistr/u-strcpy.h: New file.
65085
65086         * modules/unistr/u8-strcspn: New file.
65087         * modules/unistr/u16-strcspn: New file.
65088         * modules/unistr/u32-strcspn: New file.
65089         * lib/unistr/u8-strcspn.c: New file.
65090         * lib/unistr/u16-strcspn.c: New file.
65091         * lib/unistr/u32-strcspn.c: New file.
65092         * lib/unistr/u-strcspn.h: New file.
65093
65094         * modules/unistr/u8-strdup: New file.
65095         * modules/unistr/u16-strdup: New file.
65096         * modules/unistr/u32-strdup: New file.
65097         * lib/unistr/u8-strdup.c: New file.
65098         * lib/unistr/u16-strdup.c: New file.
65099         * lib/unistr/u32-strdup.c: New file.
65100         * lib/unistr/u-strdup.h: New file.
65101
65102         * modules/unistr/u8-strlen: New file.
65103         * modules/unistr/u16-strlen: New file.
65104         * modules/unistr/u32-strlen: New file.
65105         * lib/unistr/u8-strlen.c: New file.
65106         * lib/unistr/u16-strlen.c: New file.
65107         * lib/unistr/u32-strlen.c: New file.
65108         * lib/unistr/u-strlen.h: New file.
65109
65110         * modules/unistr/u8-strmblen: New file.
65111         * modules/unistr/u16-strmblen: New file.
65112         * modules/unistr/u32-strmblen: New file.
65113         * lib/unistr/u8-strmblen.c: New file.
65114         * lib/unistr/u16-strmblen.c: New file.
65115         * lib/unistr/u32-strmblen.c: New file.
65116
65117         * modules/unistr/u8-strmbtouc: New file.
65118         * modules/unistr/u16-strmbtouc: New file.
65119         * modules/unistr/u32-strmbtouc: New file.
65120         * lib/unistr/u8-strmbtouc.c: New file.
65121         * lib/unistr/u16-strmbtouc.c: New file.
65122         * lib/unistr/u32-strmbtouc.c: New file.
65123
65124         * modules/unistr/u8-strncat: New file.
65125         * modules/unistr/u16-strncat: New file.
65126         * modules/unistr/u32-strncat: New file.
65127         * lib/unistr/u8-strncat.c: New file.
65128         * lib/unistr/u16-strncat.c: New file.
65129         * lib/unistr/u32-strncat.c: New file.
65130         * lib/unistr/u-strncat.h: New file.
65131
65132         * modules/unistr/u8-strncmp: New file.
65133         * modules/unistr/u16-strncmp: New file.
65134         * modules/unistr/u32-strncmp: New file.
65135         * lib/unistr/u8-strncmp.c: New file.
65136         * lib/unistr/u16-strncmp.c: New file.
65137         * lib/unistr/u32-strncmp.c: New file.
65138
65139         * modules/unistr/u8-strncpy: New file.
65140         * modules/unistr/u16-strncpy: New file.
65141         * modules/unistr/u32-strncpy: New file.
65142         * lib/unistr/u8-strncpy.c: New file.
65143         * lib/unistr/u16-strncpy.c: New file.
65144         * lib/unistr/u32-strncpy.c: New file.
65145         * lib/unistr/u-strncpy.h: New file.
65146
65147         * modules/unistr/u8-strnlen: New file.
65148         * modules/unistr/u16-strnlen: New file.
65149         * modules/unistr/u32-strnlen: New file.
65150         * lib/unistr/u8-strnlen.c: New file.
65151         * lib/unistr/u16-strnlen.c: New file.
65152         * lib/unistr/u32-strnlen.c: New file.
65153         * lib/unistr/u-strnlen.h: New file.
65154
65155         * modules/unistr/u8-strpbrk: New file.
65156         * modules/unistr/u16-strpbrk: New file.
65157         * modules/unistr/u32-strpbrk: New file.
65158         * lib/unistr/u8-strpbrk.c: New file.
65159         * lib/unistr/u16-strpbrk.c: New file.
65160         * lib/unistr/u32-strpbrk.c: New file.
65161         * lib/unistr/u-strpbrk.h: New file.
65162
65163         * modules/unistr/u8-strrchr: New file.
65164         * modules/unistr/u16-strrchr: New file.
65165         * modules/unistr/u32-strrchr: New file.
65166         * lib/unistr/u8-strrchr.c: New file.
65167         * lib/unistr/u16-strrchr.c: New file.
65168         * lib/unistr/u32-strrchr.c: New file.
65169
65170         * modules/unistr/u8-strspn: New file.
65171         * modules/unistr/u16-strspn: New file.
65172         * modules/unistr/u32-strspn: New file.
65173         * lib/unistr/u8-strspn.c: New file.
65174         * lib/unistr/u16-strspn.c: New file.
65175         * lib/unistr/u32-strspn.c: New file.
65176         * lib/unistr/u-strspn.h: New file.
65177
65178         * modules/unistr/u8-strstr: New file.
65179         * modules/unistr/u16-strstr: New file.
65180         * modules/unistr/u32-strstr: New file.
65181         * lib/unistr/u8-strstr.c: New file.
65182         * lib/unistr/u16-strstr.c: New file.
65183         * lib/unistr/u32-strstr.c: New file.
65184         * lib/unistr/u-strstr.h: New file.
65185
65186         * modules/unistr/u8-strtok: New file.
65187         * modules/unistr/u16-strtok: New file.
65188         * modules/unistr/u32-strtok: New file.
65189         * lib/unistr/u8-strtok.c: New file.
65190         * lib/unistr/u16-strtok.c: New file.
65191         * lib/unistr/u32-strtok.c: New file.
65192         * lib/unistr/u-strtok.h: New file.
65193
65194         * modules/unistr/u8-uctomb: New file.
65195         * modules/unistr/u16-uctomb: New file.
65196         * modules/unistr/u32-uctomb: New file.
65197         * lib/unistr/u8-uctomb.c: New file.
65198         * lib/unistr/u16-uctomb.c: New file.
65199         * lib/unistr/u32-uctomb.c: New file.
65200
65201         * MODULES.html.sh (Unicode string functions): Add the new modules.
65202
65203 2007-01-08  Bruno Haible  <bruno@clisp.org>
65204
65205         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65206         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65207         subdirectories.
65208
65209 2007-01-08  Karl Berry  <karl@gnu.org>
65210
65211         * doc/error.texi: mention that main() fns must set program_name
65212         when progname is used.
65213
65214 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65215
65216         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65217         WCTYPE_H is empty, for the benefit of builds from non-distclean
65218         directories.  Problem reported by Eric Blake in
65219         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65220
65221 2007-01-08  Bruno Haible  <bruno@clisp.org>
65222
65223         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65224         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65225         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65226         PROVIDE_CANONICALIZE_FILENAME_MODE.
65227         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65228
65229 2007-01-08  Bruno Haible  <bruno@clisp.org>
65230
65231         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65232         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65233         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65234         * lib/fts.c: Likewise.
65235         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65236
65237 2006-12-25  Bruno Haible  <bruno@clisp.org>
65238
65239         * modules/utf8-ucs4-safe: New file.
65240         * lib/utf8-ucs4-safe.h: New file.
65241         * lib/unistr/utf8-ucs4-safe.c: New file.
65242
65243         * modules/utf16-ucs4-safe: New file.
65244         * lib/utf16-ucs4-safe.h: New file.
65245         * lib/unistr/utf16-ucs4-safe.c: New file.
65246
65247         * MODULES.html.sh (Unicode string functions): Add the new modules.
65248
65249 2007-01-08  Bruno Haible  <bruno@clisp.org>
65250
65251         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65252         (Depends-on): Add unitypes.
65253         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65254         (u8_mbtouc_aux): Move out to separate file.
65255         (u8_mbtouc): Use ucs4_t, uint8_t types.
65256         * lib/unistr/utf8-ucs4.c: New file.
65257
65258         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65259         (Depends-on): Add unitypes.
65260         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65261         (u16_mbtouc_aux): Move out to separate file.
65262         (u16_mbtouc): Use ucs4_t, uint16_t types.
65263         * lib/unistr/utf16-ucs4.c: New file.
65264
65265         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65266         (Depends-on): Add unitypes.
65267         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65268         (u8_uctomb_aux): Move out to separate file.
65269         (u8_uctomb): Use ucs4_t, uint8_t types.
65270         * lib/unistr/ucs4-utf8.c: New file.
65271
65272         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65273         (Depends-on): Add unitypes.
65274         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65275         (u16_uctomb_aux): Move out to separate file.
65276         (u16_uctomb): Use ucs4_t, uint16_t types.
65277         * lib/unistr/ucs4-utf16.c: New file.
65278
65279 2006-12-25  Bruno Haible  <bruno@clisp.org>
65280
65281         * modules/unitypes: New file.
65282         * lib/unitypes.h: New file.
65283         * MODULES.html.sh (func_all_modules): New section "Unicode string
65284         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65285         this section. Add unitypes.
65286
65287 2007-01-08  Bruno Haible  <bruno@clisp.org>
65288
65289         Avoid variable names that conflict with those from libtool.
65290         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65291         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65292         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65293         library_names_spec to acl_library_names_spec, hardcode_* to
65294         acl_hardcode_*.
65295         Reported by Ralf Wildenhues.
65296
65297 2007-01-08  Bruno Haible  <bruno@clisp.org>
65298
65299         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65300         definition.
65301         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65302         definition.
65303         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65304         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65305         definition.
65306         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65307         definition.
65308         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65309         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65310         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65311         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65312         definition.
65313         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65314         definition.
65315         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65316         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65317         GC_USE_<algorithm>.
65318         * lib/gc-libgcrypt.c: Likewise.
65319         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65320         * modules/gc-arctwo (configure.ac): Likewise.
65321         * modules/gc-des (configure.ac): Likewise.
65322         * modules/gc-hmac-md5 (configure.ac): Likewise.
65323         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65324         * modules/gc-md2 (configure.ac): Likewise.
65325         * modules/gc-md4 (configure.ac): Likewise.
65326         * modules/gc-md5 (configure.ac): Likewise.
65327         * modules/gc-random (configure.ac): Likewise.
65328         * modules/gc-rijndael (configure.ac): Likewise.
65329         * modules/gc-sha1 (configure.ac): Likewise.
65330
65331 2007-01-08  Bruno Haible  <bruno@clisp.org>
65332
65333         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65334         macro definition.
65335         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65336         definition.
65337         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65338         definition.
65339         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65340         * modules/fcntl-safer (configure.ac): Likewise.
65341         * modules/fopen-safer (configure.ac): Likewise.
65342         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65343         GNULIB_FWRITEERROR macro definition.
65344
65345 2007-01-08  Bruno Haible  <bruno@clisp.org>
65346
65347         * m4/gnulib-common.m4: New file.
65348         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65349         (func_get_filelist): Add m4/gnulib-common.m4.
65350
65351 2007-01-08  Bruno Haible  <bruno@clisp.org>
65352
65353         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65354         command.
65355
65356 2007-01-08  Jim Meyering  <jim@meyering.net>
65357
65358         Use a more robust test for a "can't happen" condition.
65359         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65360         narrowed the st_size value.  Presuming the "can't happen" condition
65361         is true, that narrowing could conceivably convert an invalid st_size
65362         value into a valid one.  Instead, use a change based on Matthew
65363         Woehlke's original patch.
65364
65365         Slight readability improvement: use an assert-like macro
65366         in place of literal "abort ()" uses.
65367         * lib/fts.c (fts_assert): Define.
65368         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65369         Use this macro instead of a bare 'abort'.
65370
65371 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65372
65373         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65374         simply work around them.
65375         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65376         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65377         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65378         declaring.
65379         Don't bother to define as macros, since the standard doesn't require it.
65380         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65381         longer worry about IRIX 5.3.
65382         (HAVE_WCTYPE_CTMP_BUG): Remove.
65383
65384 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65385
65386         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65387         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65388         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65389         Problems reported by Georg Schwarz for IRIX 5.3.
65390
65391         * gnulib-tool (autoconf_minversion): Take the maximum version number
65392         found, not the minimum.  Problem reported by James Youngman.
65393
65394 2007-01-03  Karl Berry  <karl@gnu.org>
65395
65396         * doc/error.texi: new file, explaining interaction with progname.
65397         * doc/gnulib.texi: include it.  Update copyright.
65398
65399 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65400
65401         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65402         AC_CANONICAL_HOST, to improve autobuild outputs.
65403
65404 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65405             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65406
65407         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65408         sockets, server sockets, and other file descriptors.  Count errors
65409         to compute the return value.  Reorder the code a bit to be easier
65410         to follow.  Don't set event bits that were not requested (except
65411         POLLERR and POLLHUP).
65412
65413 2007-01-01  Bruno Haible  <bruno@clisp.org>
65414
65415         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65416
65417 2007-01-03  Jim Meyering  <jim@meyering.net>
65418
65419         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65420
65421 2007-01-02  Bruno Haible  <bruno@clisp.org>
65422
65423         * modules/settime (Include): Require timespec.h.
65424         * modules/nanosleep (Include): Likewise.
65425
65426 2007-01-01  Bruno Haible  <bruno@clisp.org>
65427
65428         * gnulib-tool (func_emit_copyright_notice): Bump year.
65429         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65430
65431 2007-01-01  Bruno Haible  <bruno@clisp.org>
65432
65433         Improve support for OpenBSD.
65434         * build-aux/config.rpath (libname_spec): Export.
65435         (library_names_spec): New variable. Export.
65436         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65437         library_names_spec from the config.rpath output. Locate shared library
65438         through the name pattern in library_names_spec.
65439
65440 2007-01-01  Eric Blake  <ebb9@byu.net>
65441
65442         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65443
65444 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65445
65446         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65447         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65448         assume the C locale, and avoid an "eval" that could cause trouble.
65449         Problem with SORT reported by Bob Proulx.
65450
65451         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65452         Define.  Trivial patch from Henning Nielsen Lund, originally
65453         sent to bug-grep@gnu.org today.
65454
65455 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65456
65457         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65458         struct stat.  Problem reported by Henning Nielsen Lund.
65459         * lib/acl.c: Include acl.h first, to check interface.  Don't
65460         bother to include sys/types.h and sys/stat.h again.
65461
65462 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65463
65464         Import the following change from libc; problem reported by
65465         Sven Verdoolaege.
65466
65467         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65468
65469         [BZ #1373]
65470         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65471
65472 2006-12-28  Jim Meyering  <jim@meyering.net>
65473
65474         * build-aux/announce-gen: Do not assume that the package
65475         builds any of tar.gz, tar.bz2, and .xdelta files.
65476         Suggestion from Simon Josefsson.
65477
65478 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65479
65480         * modules/announce-gen: New file.
65481
65482 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65483
65484         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65485         handles its gotchas now.
65486         * lib/mbswidth.c: Likewise.
65487         * lib/wcwidth.h: Likewise.
65488         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65489         and iswcntrl; the wctype module does this stuff now.
65490         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65491         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65492         * modules/mbchar (Depends-on): Add wctype.
65493         * modules/mbswidth (Depends-on): Likewise.
65494         * modules/wcwidth (Depends-on): Likewise.
65495
65496 2006-12-27  Eric Blake  <ebb9@byu.net>
65497
65498         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65499         module uses more than what <wctype.h> is required to provide.
65500
65501 2006-12-26  Eric Blake  <ebb9@byu.net>
65502
65503         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65504
65505 2006-12-26  Eric Blake  <ebb9@byu.net>
65506
65507         * modules/absolute-header: New module.
65508         * modules/fcntl (Depends-on): Depend on it.
65509         * modules/inttypes (Depends-on): Likewise.
65510         * modules/stdint (Depends-on): Likewise.
65511         * modules/sys_stat (Depends-on): Likewise.
65512         * modules/wctype (Depends-on): Likewise.
65513         * MODULES.html.sh (Support for building libraries and
65514         executables): Document it.
65515
65516 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         * gnulib-tool (SED): Remove, undoing previous change.
65519         The problem was that it broke coreutils on Solaris, because
65520         "sed --posix" leaked into a makefile.
65521         (sed): New alias, if 'alias' and GNU sed.
65522
65523 2006-12-24  Jim Meyering  <jim@meyering.net>
65524
65525         Work around an fchownat bug in glibc-2.4:
65526         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65527         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65528         in spite of the -P option.
65529         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65530         New macros.
65531         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65532         * modules/openat (Files): Add lib/fchownat.c.
65533         * lib/openat.c (fchownat): Don't define here.  Move to...
65534         * lib/fchownat.c: ...this new file.
65535
65536 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65537
65538         Fix bug reported by Bruno Haible in
65539         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65540         where quotearg.c didn't compile on Mac OS X 10.2 because it
65541         lacks <wchar.h> and wint_t.
65542         * lib/wctype_.h (__wctype_wint_t): New type.
65543         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65544         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65545         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65546         Arg is now of type __wctype_wint_t, not wint_t.
65547         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65548         substitute HAVE_WINT_T.
65549         * modules/wctype (Files): Add m4/wint_t.m4.
65550         (wctype.h): Substitute HAVE_WINT_T.
65551
65552 2006-12-23  Bruno Haible  <bruno@clisp.org>
65553
65554         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65555
65556 2006-12-23  Bruno Haible  <bruno@clisp.org>
65557
65558         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65559         S_ISLNK.
65560         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65561         mingw.
65562
65563 2006-12-22  Bruno Haible  <bruno@clisp.org>
65564
65565         * lib/copy-file.c: Include acl.h.
65566         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65567         Close the file descriptors only after being done with copy_acl.
65568         * modules/copy-file (Depends-on): Add acl.
65569
65570 2006-12-22  Bruno Haible  <bruno@clisp.org>
65571
65572         * gnulib-tool (SED): New variable.
65573         Use $SED instead of sed everywhere.
65574
65575 2006-12-22  Bruno Haible  <bruno@clisp.org>
65576
65577         * modules/no-c++: New file.
65578         * m4/no-c++.m4: New file.
65579         * MODULES.html.sh (Support for building libraries and executables):
65580         Add no-c++.
65581
65582 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65583
65584         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65585         Include <limits.h>, and use its INT_MAX to rewrite the
65586         j loop so that it does not overflow 'int'.  Problem reported by
65587         Ralf Wildenhues in
65588         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65589         Play it safe by shifting left by 1 rather than multiplying by 2,
65590         as GCC is less likely to optimize this away when the value
65591         is signed (when it assumes overflow leads to undefined behavior).
65592         Also, don't assume time_t uses two's complement.
65593
65594 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65595
65596         * MODULES.html.sh: New module wctype.
65597         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65598         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65599         <wctype.h>, since the new wctype module should fix this.
65600         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65601         the wctype module should arrange for it.
65602         * lib/regex_internal.h: Likewise.
65603         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65604         since the wctype module should handle this now.
65605         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65606         * modules/fnmatch (Depends-on): Add wctype.
65607         * modules/quotearg (Depends-on): Likewise.
65608         * modules/regex (Depends-on): Likewise.
65609
65610 2006-12-19  Bruno Haible  <bruno@clisp.org>
65611
65612         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65613         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65614
65615 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65616
65617         * modules/savewd (Depends-on): Fix dependency on fcntl.
65618
65619 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65620
65621         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65622         conforms to C99, rather than relying on the user's environment
65623         setting of STDINT_H.
65624
65625 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65626         and Eric Blake  <ebb9@byu.net>
65627
65628         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65629         This is more consistent with the other defines here.
65630         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65631         Port to z/OS.  Problem reported by Paul Gilmartin.
65632         Change local vars to use gl_ prefix rather than ac_.
65633         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65634         with other defines.
65635         * modules/double-slash-root: New module.
65636         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65637         (Depends-on): Add double-slash-root.
65638         * MODULES.html.sh (File system functions): Mention new module.
65639
65640 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65641
65642         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65643         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65644         This is for the benefit of gzip, which doesn't do i18n.
65645
65646 2006-12-12  Jim Meyering  <jim@meyering.net>
65647
65648         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65649         Reported by Andreas Schwab <schwab@suse.de>.
65650
65651 2006-12-12  Bruno Haible  <bruno@clisp.org>
65652
65653         Merge these changes.
65654         2006-09-05  Bruno Haible  <bruno@clisp.org>
65655         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65656         iconv_alloc succeeded.
65657         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65658         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65659         test for " && dest " at the end - dest is always != NULL there. Call
65660         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65661         with 2xNULL arguments, also to flush the state storage. Handle the
65662         IRIX iconv behaviour. Realloc the final result, to throw away unused
65663         memory.
65664
65665 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65666
65667         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65668         and fchmodat unconditionally, since glibc 2.4 has them.
65669         Problem reported by Arkadiusz Miskiewicz.
65670
65671 2006-12-10  Bruno Haible  <bruno@clisp.org>
65672
65673         * gnulib-tool (func_import): Show the include files only for those
65674         modules that are copied and specified.
65675         Reported by Karl Berry.
65676
65677 2006-12-08  Jim Meyering  <jim@meyering.net>
65678
65679         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65680         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65681
65682         * build-aux/announce-gen: Add two new options, both optional:
65683         --bootstrap-tools=TOOL_LIST
65684               a comma-separated list of tools, e.g.,
65685               autoconf,automake,bison,gnulib
65686         --gnulib-snapshot-date=DATE
65687               if gnulib is in the bootstrap tool list,
65688               then report this as the snapshot date.
65689               If not specified, use the current date/time.
65690               If you specify a date here, be sure it's UTC.
65691
65692 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65693
65694         * tests/test-argp-2.sh: Fix test to match actual output.
65695         (func_compare): Fix sed script to be portable.
65696
65697 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65698
65699         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65700         workaround for this case.  It is not autoconfigured now; offhand
65701         it's hard to see how to autoconfigure it.
65702
65703 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65704
65705         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65706         a directory that is about to be chowned.  Such a directory's
65707         initial file permissions should permit the owner only and this
65708         should not be changed until after the chown, since the group and
65709         other bits would be incorrect if they granted permission before
65710         the chown.
65711
65712         Fix porting problem for iswctype reported by Georg Schwarz in:
65713         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65714         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65715         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65716         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65717         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65718
65719 2006-12-03  Jim Meyering  <jim@meyering.net>
65720
65721         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65722         p->fts_statp may not yet be defined.
65723         (fts_read): Instead, set it in the caller, once p->fts_statp is
65724         sure to be defined, and corresponds to a top-level directory.
65725         This bug made du -x fail.  Here's the coreutils test case:
65726         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65727         Reported by Mike Frysinger.
65728
65729 2006-12-01  Jim Meyering  <jim@meyering.net>
65730
65731         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65732         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65733         Reported by Simon Josefsson.
65734
65735 2006-11-30  Jim Meyering  <jim@meyering.net>
65736
65737         * m4/warning.m4: Use the all-permissive copyright notice
65738         recommended by RMS (rather than LGPL).
65739         * m4/vararrays.m4: Likewise.
65740         * m4/flexmember.m4: Likewise.
65741
65742 2006-11-29  Bruno Haible  <bruno@clisp.org>
65743
65744         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65745         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65746         using +=.
65747         Reported by Simon Josefsson <simon@josefsson.org>.
65748
65749 2006-11-28  James Youngman <jay@gnu.org>
65750
65751         * README: Advise users that they might find the bug-gnulib@gnu.org
65752         and autotools-announce@gnu.org mailing lists useful.
65753
65754 2006-11-28  Bruno Haible  <bruno@clisp.org>
65755
65756         * m4/ptrdiff_max.m4: Remove file.
65757
65758 2006-11-21  Bruno Haible  <bruno@clisp.org>
65759
65760         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65761         _AC_COMPUTE_INT.
65762         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65763         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65764         _AC_COMPUTE_INT.
65765         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65766         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65767         _AC_COMPUTE_INT.
65768         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65769
65770 2006-11-28  Jim Meyering  <jim@meyering.net>
65771
65772         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65773         warning from "gcc -Wshadow" about shadowing the builtin.
65774
65775 2006-11-27  Bruno Haible  <bruno@clisp.org>
65776
65777         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65778         _AC_COMPUTE_INT.
65779         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65780
65781 2006-11-27  Bruno Haible  <bruno@clisp.org>
65782             Paul Eggert  <eggert@cs.ucla.edu>
65783
65784         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65785
65786 2006-11-26  Bruno Haible  <bruno@clisp.org>
65787
65788         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65789         noinst_LTLIBRARIES.
65790
65791 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65792             Bruno Haible  <bruno@clisp.org>
65793
65794         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65795         if compiling with "gcc -ansi".
65796
65797 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65798
65799         Fix some incompatibilities with gcc -ansi -pedantic.
65800         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65801         if compiling pedantically with GCC, unless it's C99 or later.
65802         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65803         it mishandles gcc -ansi -pedantic as well.
65804         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65805         if gcc -pedantic.
65806         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65807         initializers for struct if -pedantic, unless it's C99 or later.
65808
65809 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65810
65811         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65812         Don't close an fd more than once. Identical atimes indicate
65813         success, not failure.
65814
65815 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65816
65817         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65818
65819 2006-11-23  Jim Meyering  <jim@meyering.net>
65820
65821         * build-aux/announce-gen: New file.  From coreutils.
65822
65823 2006-11-22  Jim Meyering  <jim@meyering.net>
65824
65825         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65826         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65827         (fts_read): Use a temporary to narrow the overused st_size member
65828         before using it in a switch statement.  Reported by Matthew Woehlke.
65829
65830         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65831         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65832
65833 2006-11-20  Bruno Haible  <bruno@clisp.org>
65834
65835         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65836         changequote instead of pairs of brackets.
65837         Reported by Andreas Schwab <schwab@suse.de>.
65838
65839 2006-11-21  Jim Meyering  <jim@meyering.net>
65840
65841         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65842         so as to remain compatible with older compilers.
65843         Patch from Michael Deutschmann.
65844
65845 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65846
65847         * MODULES.html.sh (File system functions): Add openat.
65848
65849         * lib/openat.h (rpl_fstatat): New macro, if
65850         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65851         (fstatat): Define to rpl_fstatat under the same conditions,
65852         unless COMPILING_FSTATAT.
65853         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65854         seems to have the bug.
65855         * lib/fstatat.c: New file.
65856         * modules/openat (Files): Add it.
65857
65858 2006-11-20  Bruno Haible  <bruno@clisp.org>
65859
65860         * Makefile: New file.
65861
65862 2006-11-20  Jim Meyering  <jim@meyering.net>
65863
65864         The beginnings of syntax-related checks for gnulib.
65865         * lib/Makefile: New file.
65866         * lib/t-idcache: New script.  Ensure that the two halves of
65867         idcache.c stay in sync.
65868
65869         * lib/idcache.c: Adjust comments in user- and group- portions to
65870         be more accurate, and to be consistent with one another.
65871
65872 2006-11-20  Jim Meyering  <jim@meyering.net>
65873
65874         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65875         continue using the flexible array member (thus, this module performs
65876         half as many malloc calls), with the addition that...
65877         (getgroup, getuser): Consistently record a non-match via an empty
65878         "name" string, and map an empty string match to a NULL return value.
65879         * modules/idcache (Depends-on): Re-add flexmember.
65880
65881         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65882         (getuidbyname, getgroup, getgidbyname): Likewise.
65883
65884         Use cleaner syntax: NULL rather than 0.
65885         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65886
65887 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65888
65889         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65890         It mishandled the case where the group was missing.
65891         Problem reported by Greg Schafer.
65892         * modules/idcache: Likewise.
65893
65894 2006-11-18  Jim Meyering  <jim@meyering.net>
65895
65896         * check-module (%exempt_header): Add exception for some
65897         conditionally-included headers.
65898
65899         * modules/i-ring (Depends-on): Add verify.
65900         (License): Change to LGPL.
65901
65902 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65903
65904         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65905         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65906         and inttostr.h.  Use snprintf rather than uinttostr, so that
65907         LGPLed code doesn't depend on GPLed.
65908
65909 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65910
65911         * modules/inline (License): Change from GPL to LGPL.
65912
65913 2006-11-17  Jim Meyering  <jim@meyering.net>
65914
65915         * modules/d-type (License): Switch to LGPL.
65916
65917 2006-11-15  Bruno Haible  <bruno@clisp.org>
65918
65919         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65920
65921 2006-11-15  Eric Blake  <ebb9@byu.net>
65922
65923         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65924         the module dependency.
65925
65926 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65927             Bruno Haible  <bruno@clisp.org>
65928
65929         * gnulib-tool (func_create_testdir): Add license consistency check.
65930
65931 2006-11-15  Eric Blake  <ebb9@byu.net>
65932
65933         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65934         random "(cached)" in configure output.
65935
65936 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65937
65938         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65939         test for conforming inttypes.h is both announced and cached.
65940
65941         * MODULES.html.sh (seen_modules, seen_files): New variables.
65942         (func_module): Rewrite to use a few less gnulib-tool and sed
65943         invocations.  Avoid a couple of quadratic algorithms for ...
65944         (missed_modules, missed_files): ... these, with ...
65945         (func_append, func_tmpdir): ... these new functions, from
65946         gnulib-tool.  Analogously, install traps for cleanup.
65947
65948         * tests/test-gc.c (main): Remove unused variables.
65949         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65950
65951 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65952
65953         * modules/inttostr (License): Change to LGPL.
65954
65955 2006-11-14  Eric Blake  <ebb9@byu.net>
65956
65957         * modules/tempname (License): Change to LGPL.
65958
65959 2006-11-14  Eric Blake  <ebb9@byu.net>
65960
65961         * doc/functions.texi (Function Portability): *printf functions on
65962         Cygwin now understand all POSIX size specifiers.
65963
65964 2006-11-14  Bruno Haible  <bruno@clisp.org>
65965
65966         * modules/c-ctype (License): Change to LGPL.
65967
65968 2006-11-12  Bruno Haible  <bruno@clisp.org>
65969
65970         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65971         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65972         for GNOME libraries, for which the include files are installed in
65973         subdirectories of $prefix/include.
65974
65975 2006-11-12  Bruno Haible  <bruno@clisp.org>
65976
65977         * m4/lib-link.m4: Require at least autoconf-2.54.
65978         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65979         name to underscores for the --with option.
65980
65981 2006-11-13  Bruno Haible  <bruno@clisp.org>
65982
65983         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65984         the tests directory.
65985         Reported by Ralf Wildenhues.
65986
65987 2006-11-13  Bruno Haible  <bruno@clisp.org>
65988
65989         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65990         (func_emit_initmacro_end): Undo the override here.
65991         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65992         Works around the famous automake error in coreutils.
65993
65994 2006-11-13  Eric Blake  <ebb9@byu.net>
65995
65996         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65997         element, not its node.
65998
65999 2006-11-12  Bruno Haible  <bruno@clisp.org>
66000
66001         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66002         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66003
66004 2006-11-12  Bruno Haible  <bruno@clisp.org>
66005
66006         * gnulib-tool: New option --local-symlink.
66007         (func_usage): Document it.
66008         (lsymbolic): New variable.
66009         (func_import, func_create_testdir): If --symlink was not specified,
66010         test whether --local-symlink was specified and the file comes from
66011         the local_gnulib_dir.
66012
66013 2006-11-12  Bruno Haible  <bruno@clisp.org>
66014
66015         * gnulib-tool (func_ln): New function.
66016         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66017
66018 2006-11-12  Bruno Haible  <bruno@clisp.org>
66019
66020         Finish support for source files in subdirectories.
66021         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66022         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66023         AUTOMAKE_OPTIONS.
66024         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66025
66026 2006-11-12  Bruno Haible  <bruno@clisp.org>
66027
66028         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66029         EXTRA_lib_SOURCES augmentation.
66030         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66031
66032 2006-11-12  Jim Meyering  <jim@meyering.net>
66033
66034         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66035         file descriptors.  This also averts a failure on systems with
66036         native openat support when a traversed directory lacks "x" access.
66037         * lib/fts_.h: Include "i-ring.h"
66038         (struct FTS) [fts_fd_ring]: New member.
66039         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66040         (FCHDIR): Add parentheses.
66041         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66042         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66043         When descending, rather than simply closing the previous
66044         fts_cwd_fd value, push that file descriptor onto the ring.
66045         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66046         (fts_open): Initialize the new fd_ring member.
66047         (fts_close): Clear the ring.
66048         (fts_safe_changedir): When possible, use our new fd_ring to skip
66049         the diropen and fstat and dev/ino comparison that would normally
66050         accompany a virtual `chdir ("..")'.
66051
66052         * modules/fts (Depends-on): Add i-ring.
66053         * modules/i-ring: New module.
66054         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66055         * m4/i-ring.m4: New file.
66056
66057 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66058
66059         * gnulib-tool (func_create_testdir): Fix replacement of
66060         `build-aux' in configure.ac.  Run autotools in gltests
66061         subdirectory.
66062         (func_create_testdir, func_create_megatestdir, test): There is
66063         no need for '--force' in most autotool invocations in a new
66064         tree.  Actually fail the whole test if any of the tools, or the
66065         configure or make stages fail.
66066
66067         Sync from Automake.
66068         * build-aux/gnupload: Revert last change.  Add pointer to upload
66069         instructions of the GNU Maintenance Instructions.
66070         Suggestion by Karl Berry.
66071
66072 2006-11-10  Jim Meyering  <jim@meyering.net>
66073
66074         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66075
66076 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66077
66078         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66079         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66080         (bind_textdomain_codeset) [! ENABLE_NLS]:
66081         Evaluate all the arguments.  That way, callers get compatible behavior
66082         if the arguments have side effects.  Also, it avoids some GCC
66083         diagnostics in some cases; Joel E. Denny reported problems when Bison
66084         was configured with --enable-gcc-warnigs.
66085
66086 2006-11-10  Jim Meyering  <jim@meyering.net>
66087
66088         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66089         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66090         account.
66091
66092 2006-11-10  Jim Meyering  <jim@meyering.net>
66093
66094         * modules/inline: New file/module.
66095         * modules/xalloc (Files): Remove m4/inline.m4.
66096         (Depends-on): Add inline, instead.
66097         * modules/oset: Likewise.
66098         * modules/list: Likewise.
66099
66100 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66101
66102         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66103         Problem reported by Matthew Woehlke.
66104
66105 2006-11-09  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/tempname.c (gen_tempname): Remove variant that invokes
66108         __gen_tempname.
66109         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66110         __gen_tempname.
66111
66112 2006-11-08  Bruno Haible  <bruno@clisp.org>
66113
66114         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66115         to 'yes' instead of 'cross-compiling'.
66116
66117 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66118
66119         * lib/quotearg.h (quotearg_free): New decl.
66120         * lib/quotearg.c (quotearg_free): New function.
66121         (slot0, nslots, slotvec0, slotvec):
66122         Now file-scope so that quotearg_free can get at them.
66123
66124 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66125
66126         Sync from Automake.
66127         * build-aux/gnupload: Add missing 'gnu' to example URL.
66128         Report by Karl Berry.
66129
66130 2006-11-08  Bruno Haible  <bruno@clisp.org>
66131
66132         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66133         Suggested by Paul Eggert.
66134
66135 2006-11-08  Jim Meyering  <jim@meyering.net>
66136
66137         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66138         It's already included if !_LIBC.
66139         (fts_safe_changedir): Add a comment.
66140
66141 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66142
66143         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66144         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66145         Matthew Woehlke.
66146
66147         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66148         definitions up, to avoid colliding with change below.
66149         (static_inline) [HAVE_INLINE]: New macro.
66150         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66151         Provide extern decls when !HAVE_INLINE.  Do not define unless
66152         static_inline is defined, either by us or by xmalloc.c.  Use
66153         static_inline rather than static inline.
66154         (XCALLOC): Optimize sizeof(T) = 1 case.
66155         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66156
66157 2006-11-07  Bruno Haible  <bruno@clisp.org>
66158
66159         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66160         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66161         AC_C_INLINE.
66162         * modules/xalloc (Files): Add m4/inline.m4.
66163
66164 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66165
66166         * README: Fix typo.
66167         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66168         (Miscellanous Notes): ...from this.
66169
66170 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66171
66172         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66173         Mention that offsetof should be used instead of sizeof.
66174         From Bruno Haible.
66175
66176 2006-11-07  Bruno Haible  <bruno@clisp.org>
66177
66178         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66179
66180 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66183         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66184         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66185         (gl_tree_add_before, gl_tree_add_after):
66186         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66187         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66188         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66189         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66190         (gl_linked_add_after, gl_linked_add_at): Likewise.
66191         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66192         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66193         (gl_tree_add_before, gl_tree_add_after): Likewise.
66194         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66195         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66196         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66197
66198 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66199
66200         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66201
66202 2006-11-06  Bruno Haible  <bruno@clisp.org>
66203
66204         * m4/inline.m4: New file.
66205         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66206         * modules/list (Files): Add m4/inline.m4.
66207         * modules/oset (Files): Likewise.
66208
66209 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66210
66211         * lib/idcache.c: Include <stddef.h>, for offsetof.
66212         (struct userid.name): Change from char * to a flexible array member.
66213         All uses changed.
66214         * modules/idcache (Depends-on): Add flexmember.
66215
66216         * MODULES.html.sh (Core language properties): New module flexmember.
66217         * modules/flexmember, m4/flexmember.m4: New files.
66218
66219         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66220         inline functions that are identical with the old xnmalloc_inline,
66221         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66222         that we can avoid some unnecessary integer multiplications and
66223         divisions in the common case where the element size is known at
66224         compile time.
66225         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66226         needed.
66227         (xnboundedmalloc): Remove.
66228         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66229         arguments, for consistency with rest of this header.
66230         (xcharalloc): Rewrite using XNMALLOC.
66231         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66232         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66233         versions have been moved to lib/xalloc.h and renamed to be the
66234         non-*_inline versions.
66235         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66236         and xnrealloc functions, since those functions are now inline and
66237         now call us.
66238         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66239         renaming described above.
66240         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66241         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66242         captures the dependency in AC_C_INLINE.
66243
66244         New module canonicalize-lgpl, proposed by Charles Wilson in
66245         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66246         with a few small changes afterwards.
66247         * MODULES.html.sh (File system functions): New module
66248         canonicalize-lgpl.
66249         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66250         and canonicalize_file_name.
66251         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66252         * modules/canonicalize-lgpl: New files.
66253
66254 2006-11-05  Bruno Haible  <bruno@clisp.org>
66255
66256         * gnulib-tool (func_import, func_create_testdir): Create directories
66257         also for files in subdirectories of lib/.
66258
66259 2006-11-05  Bruno Haible  <bruno@clisp.org>
66260
66261         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66262         ANSI C compliant.
66263
66264 2006-11-03  Bruno Haible  <bruno@clisp.org>
66265
66266         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66267         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66268         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66269         (xnboundedmalloc): New inline function.
66270         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66271         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66272         xmalloc.
66273         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66274         xmalloc.
66275         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66276         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66277         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66278         xmalloc.
66279         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66280         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66281         xmalloc.
66282         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66283         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66284         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66285         xmalloc.
66286         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66287         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66288         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66289         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66290         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66291         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66292         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66293
66294 2006-11-03  Bruno Haible  <bruno@clisp.org>
66295
66296         * lib/c-ctype.h [C++]: Define functions without name mangling.
66297         * lib/fwriteerror.h [C++]: Likewise.
66298         * lib/gcd.h [C++]: Likewise.
66299         * lib/linebreak.h [C++]: Likewise.
66300
66301 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66302
66303         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66304         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66305         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66306         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66307         Check for functions and headers just once.
66308         Check for declaration of canonicalize_file_name.
66309         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66310
66311 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66312
66313         * gnulib-tool (func_import): Fix typo in actioncmd.
66314
66315 2006-11-02  Bruno Haible  <bruno@clisp.org>
66316
66317         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66318         newline sequence in the Makefile.am snippet as a space, like "make"
66319         does.
66320         Reported by Roger Persson <perrog@gmail.com>.
66321
66322 2006-11-01  Bruno Haible  <bruno@clisp.org>
66323
66324         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66325         already declared in <string.h>.
66326         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66327
66328 2006-11-01  Bruno Haible  <bruno@clisp.org>
66329
66330         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66331         * lib/strcase.h: Include <string.h>.
66332         (strcasecmp): Define to rpl_strcasecmp here.
66333
66334 2006-11-01  Bruno Haible  <bruno@clisp.org>
66335
66336         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66337
66338 2006-11-01  Eric Blake  <ebb9@byu.net>
66339
66340         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66341
66342         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66343
66344 2006-10-29  Bruno Haible  <bruno@clisp.org>
66345
66346         Make it compile in C++ mode.
66347         * lib/full-write.c (full_rw): Add a cast.
66348
66349 2006-11-01  Bruno Haible  <bruno@clisp.org>
66350
66351         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66352         be POSIX compliant.
66353         Reported by Roger Persson <perrog@gmail.com>.
66354
66355 2006-11-01  Eric Blake  <ebb9@byu.net>
66356
66357         * lib/getopt_.h: Fix comments.
66358
66359 2006-10-31  Eric Blake  <ebb9@byu.net>
66360
66361         * modules/tmpdir (Depends-on): Add sys_stat.
66362         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66363         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66364         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66365         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66366         tempname.
66367
66368 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66369
66370         Avoid some C++ diagnostics reported by Bruno Haible.
66371         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66372         xmalloc.
66373         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66374         (struct slotvec): Move to top level.
66375         (quotearg_n_options): Rewrite to avoid xmalloc.
66376         * lib/xalloc.h (xcharalloc): New function.
66377         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66378         [defined __cplusplus]: Add function template that provides result
66379         type propagation.  This part of the change is from Bruno Haible.
66380
66381 2006-10-29  Bruno Haible  <bruno@clisp.org>
66382
66383         Make it compile in C++ mode.
66384         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66385         * lib/strnlen1.c (strnlen1): Cast memchr result.
66386         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66387         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66388         (create_temp_dir): Rename local variable 'template'.
66389         (compile_csharp_using_sscli): Add cast.
66390         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66391         * lib/findprog.c (find_in_path): Likewise.
66392         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66393         * lib/wait-process.c (register_slave_subprocess): Likewise.
66394
66395 2006-10-22  Bruno Haible  <bruno@clisp.org>
66396
66397         * modules/tsearch: New file.
66398         * lib/tsearch.h: New file.
66399         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66400         * m4/tsearch.m4: New file.
66401         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66402
66403 2006-10-29  Eric Blake  <ebb9@byu.net>
66404
66405         * lib/arcfour.c: Assume config.h.
66406         * lib/arctwo.c: Likewise.
66407         * lib/base64.c: Likewise.
66408         * lib/check-version.c: Likewise.
66409         * lib/crc.c: Likewise.
66410         * lib/des.c: Likewise.
66411         * lib/gc-gnulib.c: Likewise.
66412         * lib/gc-libgcrypt.c: Likewise.
66413         * lib/gc-pbkdf2-sha1.c: Likewise.
66414         * lib/getaddrinfo.c: Likewise.
66415         * lib/getdelim.c: Likewise.
66416         * lib/getline.c: Likewise.
66417         * lib/hmac-md5.c: Likewise.
66418         * lib/hmac-sha1.c: Likewise.
66419         * lib/iconvme.c: Likewise.
66420         * lib/md2.c: Likewise.
66421         * lib/md4.c: Likewise.
66422         * lib/memxor.c: Likewise.
66423         * lib/read-file.c: Likewise.
66424         * lib/readline.c: Likewise.
66425         * lib/rijndael-alg-fst.c: Likewise.
66426         * lib/rijndael-api-fst.c: Likewise.
66427         * lib/xgetdomainname.c: Likewise.
66428
66429 2006-10-28  Eric Blake  <ebb9@byu.net>
66430
66431         * lib/xstrndup.c: Assume config.h.
66432
66433 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66434
66435         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66436         stat-macros.h is now for our own macros, whereas stat_h is for
66437         macros in the <sys/stat.h> name space.
66438         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66439         (STAT_MACROS_H): Remove.
66440         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66441         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66442         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66443         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66444         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66445         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66446         Move these macros to ...
66447         * lib/stat_.h: here.  Don't include stat-macros.h.
66448         * lib/canonicalize.c: Don't include stat-macros.h.
66449         * lib/chown.c: Likewise.
66450         * lib/euidaccess.c: Likewise.
66451         * lib/file-type.c: Likewise.
66452         * lib/filemode.c: Likewise.
66453         * lib/glob.c: Likewise.
66454         * lib/isapipe.c: Likewise.
66455         * lib/lchown.c: Likewise.
66456         * lib/lstat.c: Likewise.
66457         * lib/mkdir-p.c: Likewise.
66458         * lib/rmdir.c: Likewise.
66459         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66460         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66461         unless mkdir isn't declared, to speed up 'configure'.
66462         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66463         would define all the S_* symbols.
66464         * modules/canonicalize (Depends-on):
66465         Depend on sys_stat, not stat-macros.
66466         * modules/chown: Likewise.
66467         * modules/euidaccess: Likewise.
66468         * modules/filemode: Likewise.
66469         * modules/file-type: Likewise.
66470         * modules/glob: Likewise.
66471         * modules/isapipe: Likewise.
66472         * modules/lchown: Likewise.
66473         * modules/lstat: Likewise.
66474         * modules/mkancesdirs: Likewise.
66475         * modules/rmdir: Likewise.
66476         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66477         * modules/modechange: Likewise.
66478         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66479         (configure.ac): Remove gl_STAT_MACROS.
66480         * modules/sys_stat (Depends-on): Remove stat-macros.
66481
66482 2006-10-27  Bruno Haible  <bruno@clisp.org>
66483
66484         * m4/signed.m4: Remove file.
66485         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66486         invocation.
66487         * modules/vasnprintf (Files): Remove m4/signed.m4.
66488
66489 2006-10-27  Bruno Haible  <bruno@clisp.org>
66490
66491         Update to GNU gettext 0.16.
66492         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66493         m4/inttypes-h.m4, m4/signed.m4.
66494         * m4/gettext.m4: Update to GNU gettext 0.16.
66495         * m4/intl.m4: New file, from GNU gettext.
66496         * m4/intldir.m4: New file, from GNU gettext.
66497         * config/srclist.txt: Update
66498
66499 2006-10-27  Eric Blake  <ebb9@byu.net>
66500
66501         * MODULES.html.sh: Document tempname.
66502         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66503         dependencies.
66504         (Files): Move lib/tempname.c...
66505         * modules/tempname: ...to this new module.
66506         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66507         (gl_PREREQ_TEMPNAME): Move...
66508         * m4/tempname.m4: ...to this new file.
66509         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66510         * modules/sys_stat (Depends-on): Add stat-macros.
66511         * lib/stat_.h (includes): Pick up stat macros.
66512         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66513         if stat macros are broken.
66514         * lib/tempname.c (includes): No need to include "stat-macros.h".
66515         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66516         (direxists, __path_search) [!_LIBC]: Don't compile these in
66517         gnulib; the tmpdir module covers that.
66518         * lib/tempname.h: New file.
66519
66520 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66521
66522         * COPYING: Explain how gnulib-tool converts licence headers.
66523         Almost all wording by Eric Blake.
66524
66525 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66526
66527         * lib/mbchar.h (is_basic_table): Make read-only.
66528         * lib/mbchar.c (is_basic_table): Likewise.
66529         Reported by John Darrington.
66530
66531 2006-10-25  Bruno Haible  <bruno@clisp.org>
66532
66533         * lib/progname.h (set_program_name): Undefine before defining.
66534
66535 2006-10-25  Bruno Haible  <bruno@clisp.org>
66536
66537         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66538         false for non-gcc C++ compilers.
66539         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66540
66541 2006-10-24  Bruno Haible  <bruno@clisp.org>
66542
66543         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66544         iconv implementations like Irix iconv.
66545
66546 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66547
66548         * modules/vararrays: New file.
66549         * m4/vararrays.m4: New file, taken from diffutils.
66550         * MODULES.html.sh: New module vararrays.
66551
66552 2006-10-24  Karl Berry  <karl@gnu.org>
66553
66554         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66555         Don't call GNU Unix.
66556
66557 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66558
66559         * users.txt: Add Libtool.
66560
66561         Sync from Libtool:
66562
66563         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66564
66565         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66566         to gnulib's policy of including config.h unconditionally.
66567
66568 2006-10-24  Bruno Haible  <bruno@clisp.org>
66569
66570         * modules/wcwidth (Files): Add m4/wint_t.m4.
66571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66572         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66573
66574 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66575
66576         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66577         to pacify GCC with some -W flags enabled.  Problem reported by
66578         Bruno Haible.
66579
66580 2006-10-24  Jim Meyering  <jim@meyering.net>
66581
66582         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66583         Reported by Karl Berry.
66584
66585 2006-10-23  Bruno Haible  <bruno@clisp.org>
66586
66587         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66588
66589 2006-10-24  Bruno Haible  <bruno@clisp.org>
66590
66591         * lib/gl_list.h: Use C comment style, not C++ comment style.
66592
66593 2006-10-23  Eric Blake  <ebb9@byu.net>
66594
66595         * lib/getaddrinfo.c (includes): Add missing include.
66596
66597 2006-10-23  Bruno Haible  <bruno@clisp.org>
66598             Paul Eggert  <eggert@cs.ucla.edu>
66599
66600         Ability to rename obstack_free.
66601         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66602         obstack_free.
66603         (obstack_free): Invoke the __obstack_free macro.
66604         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66605
66606 2006-10-23  Bruno Haible  <bruno@clisp.org>
66607             Paul Eggert  <eggert@cs.ucla.edu>
66608
66609         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66610         __argc, __argv from the declaration. (They are defined as macros on
66611         mingw.)
66612
66613 2006-10-22  Bruno Haible  <bruno@clisp.org>
66614
66615         * doc/gnulib-intro.texi: New file.
66616         * doc/gnulib.texi: Include it.
66617
66618 2006-10-21  Bruno Haible  <bruno@clisp.org>
66619
66620         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66621         "Introduction", "Miscellanous Notes", "Particular Modules".
66622
66623 2006-10-21  Bruno Haible  <bruno@clisp.org>
66624
66625         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66626         Change mostlyclean-local rule to avoid sh syntax error from bash
66627         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66628
66629 2006-10-23  Jim Meyering  <jim@meyering.net>
66630
66631         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66632         in place of snprintf.
66633
66634         * modules/inttostr (Files): Add lib/uinttostr.c.
66635         * lib/uinttostr.c (inttostr): New file/function.
66636         * lib/inttostr.h (uinttostr): Declare.
66637         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66638         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66639         Add uinttostr.
66640         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66641
66642 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66643
66644         * lib/canonicalize.c (ELOOP): Define if not already defined.
66645         Problem reported by Bruno Haible in
66646         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66647
66648 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66649
66650         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66651         Problem reported by Perry Smith and Ville Laurikari.
66652
66653         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66654         uses.
66655
66656 2006-10-19  Bruno Haible  <bruno@clisp.org>
66657
66658         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66659         for mingw.
66660
66661 2006-10-19  Bruno Haible  <bruno@clisp.org>
66662
66663         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66664         Needed for mingw.
66665
66666 2006-10-19  Bruno Haible  <bruno@clisp.org>
66667
66668         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66669
66670 2006-10-19  Bruno Haible  <bruno@clisp.org>
66671
66672         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66673         it.
66674
66675 2006-10-19  Bruno Haible  <bruno@clisp.org>
66676
66677         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66678         invocation.
66679
66680 2006-10-19  Bruno Haible  <bruno@clisp.org>
66681
66682         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66683         mountlist by default.
66684
66685 2006-10-16  Bruno Haible  <bruno@clisp.org>
66686
66687         * lib/c-strstr.c: Include c-strstr.h.
66688
66689 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66690
66691         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66692         in a slash.
66693
66694 2006-10-18  Bruno Haible  <bruno@clisp.org>
66695
66696         * lib/lock.h [C++]: Wrap definitions in extern "C".
66697
66698 2006-10-18  Bruno Haible  <bruno@clisp.org>
66699
66700         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66701         gl_LIBOBJS list.
66702
66703 2006-10-18  Bruno Haible  <bruno@clisp.org>
66704
66705         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66706
66707 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66708
66709         * lib/xstrtol.h: Include gettext.h.
66710         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66711         Problem reported by Eric Blake.
66712         * modules/xstrtol (Depends-on): Add gettext-h.
66713
66714 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66715
66716         * lib/strftime.c (advance): New macro.
66717         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66718         incomplete type, so you can't add 0 to it.  Problem and patch
66719         reported by Eelco Dolstra for dietlibc.
66720
66721 2006-10-18  Jim Meyering  <jim@meyering.net>
66722
66723         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66724         type for a local, and rename it: s/up/user_proc/.
66725
66726 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66727
66728         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66729         READ_UTMP_USER_PROCESS.
66730         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66731
66732 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66733
66734         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66735         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66736
66737 2006-10-17  Eric Blake  <ebb9@byu.net>
66738
66739         * lib/sigprocmask.c (sigprocmask): Fix typo.
66740
66741         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66742
66743         * modules/clean-temp (Makefile.am): Don't add to make output...
66744         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66745         config.h.
66746
66747 2006-10-17  Bruno Haible  <bruno@clisp.org>
66748
66749         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66750         differently if DEFAULT_TEXT_DOMAIN is set.
66751
66752 2006-10-16  Bruno Haible  <bruno@clisp.org>
66753
66754         * lib/clean-temp.c: Include fwriteerror.h.
66755
66756 2006-10-16  Bruno Haible  <bruno@clisp.org>
66757
66758         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66759
66760 2006-10-16  Bruno Haible  <bruno@clisp.org>
66761
66762         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66763         * lib/sigprocmask.h: Include <sys/types.h>.
66764         (sigset_t): Use the system's definition if present.
66765
66766 2006-10-17  Eric Blake  <ebb9@byu.net>
66767
66768         * lib/xvasprintf.c (includes): Assume config.h.
66769         * lib/xasprintf.c (includes): Likewise.
66770
66771 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66772
66773         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66774         at least as wide as intmax_t.
66775
66776 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66777
66778         (Imported from Automake.)
66779         * build-aux/gnupload: Update to version 1.1 of directive file.
66780
66781 2006-10-16  Eric Blake  <ebb9@byu.net>
66782
66783         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66784         match Automake 1.10a.
66785
66786 2006-10-14  Bruno Haible  <bruno@clisp.org>
66787
66788         * modules/sigprocmask: New file.
66789         * lib/sigprocmask.h: New file.
66790         * lib/sigprocmask.c: New file.
66791         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66792         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66793         request sigprocmask.o.
66794         (gl_PREREQ_SIGPROCMASK): New macro.
66795         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66796         (Depends-on): Add sigprocmask.
66797         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66798         gt_SIGNALBLOCKING. Test for 'raise' only once.
66799         * lib/fatal-signal.c: Include sigprocmask.h.
66800         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66801         unblock_fatal_signals): Define always.
66802         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66803         sigprocmask.
66804
66805 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         Sync from Automake.
66808         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66809         which incorrectly sets the mode of an existing destination
66810         directory.  In some cases the unpatched install-sh could do the
66811         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66812         system.  We hope this is rare in practice, but it's clearly worth
66813         fixing.  Problem reported by Alex Unleashed in
66814         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66815         Also, don't bother to check for -m bugs unless we're using -m;
66816         suggested by Stepan Kasal.
66817
66818 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66819
66820         Sync from Automake.
66821         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66822         `-c' flag, so they appear at the same position as in %FASTDEP%
66823         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66824         which ignores unknown options only after the first non-option.
66825         Bug report against M4 by Nelson H. F. Beebe.
66826
66827 2006-10-13  Jim Meyering  <jim@meyering.net>
66828
66829         Fix a bug in yesterday's change.
66830         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66831         p->fts_statp->st_dev would be used uninitialized.
66832         Ensures that we always call fts_stat on the very first entry.
66833         Miklos Szeredi reported that find -xdev stopped working.
66834
66835 2006-10-12  Bruno Haible  <bruno@clisp.org>
66836
66837         * gnulib-tool (func_get_automake_snippet): Append an automatically
66838         computed EXTRA_DIST augmentation.
66839         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66840         * modules/alloca-opt (Makefile.am): Likewise.
66841         * modules/allocsa (Makefile.am): Likewise.
66842         * modules/arcfour (Makefile.am): Likewise.
66843         * modules/arctwo (Makefile.am): Likewise.
66844         * modules/argmatch (Makefile.am): Likewise.
66845         * modules/argz (Makefile.am): Likewise.
66846         * modules/atexit (Makefile.am): Likewise.
66847         * modules/backupfile (Makefile.am): Likewise.
66848         * modules/byteswap (Makefile.am): Likewise.
66849         * modules/c-strtod (Makefile.am): Likewise.
66850         * modules/c-strtold (Makefile.am): Likewise.
66851         * modules/calloc (Makefile.am): Likewise.
66852         * modules/canon-host (Makefile.am): Likewise.
66853         * modules/canonicalize (Makefile.am): Likewise.
66854         * modules/chdir-long (Makefile.am): Likewise.
66855         * modules/chdir-safer (Makefile.am): Likewise.
66856         * modules/check-version (Makefile.am): Likewise.
66857         * modules/chown (Makefile.am): Likewise.
66858         * modules/cloexec (Makefile.am): Likewise.
66859         * modules/close-stream (Makefile.am): Likewise.
66860         * modules/closeout (Makefile.am): Likewise.
66861         * modules/crc (Makefile.am): Likewise.
66862         * modules/csharpexec (Makefile.am): Likewise.
66863         * modules/cycle-check (Makefile.am): Likewise.
66864         * modules/des (Makefile.am): Likewise.
66865         * modules/dev-ino (Makefile.am): Likewise.
66866         * modules/dirfd (Makefile.am): Likewise.
66867         * modules/dirname (Makefile.am): Likewise.
66868         * modules/dup2 (Makefile.am): Likewise.
66869         * modules/eealloc (Makefile.am): Likewise.
66870         * modules/error (Makefile.am): Likewise.
66871         * modules/euidaccess (Makefile.am): Likewise.
66872         * modules/exclude (Makefile.am): Likewise.
66873         * modules/exitfail (Makefile.am): Likewise.
66874         * modules/fcntl-safer (Makefile.am): Likewise.
66875         * modules/fcntl (Makefile.am): Likewise.
66876         * modules/file-type (Makefile.am): Likewise.
66877         * modules/fileblocks (Makefile.am): Likewise.
66878         * modules/filemode (Makefile.am): Likewise.
66879         * modules/filenamecat (Makefile.am): Likewise.
66880         * modules/fnmatch (Makefile.am): Likewise.
66881         * modules/fopen-safer (Makefile.am): Likewise.
66882         * modules/fpending (Makefile.am): Likewise.
66883         * modules/fprintftime (Makefile.am): Likewise.
66884         * modules/free (Makefile.am): Likewise.
66885         * modules/fsusage (Makefile.am): Likewise.
66886         * modules/ftruncate (Makefile.am): Likewise.
66887         * modules/fts (Makefile.am): Likewise.
66888         * modules/gc-arcfour (Makefile.am): Likewise.
66889         * modules/gc-des (Makefile.am): Likewise.
66890         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66891         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66892         * modules/gc-md4 (Makefile.am): Likewise.
66893         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66894         * modules/gc-sha1 (Makefile.am): Likewise.
66895         * modules/gc (Makefile.am): Likewise.
66896         * modules/getaddrinfo (Makefile.am): Likewise.
66897         * modules/getcwd (Makefile.am): Likewise.
66898         * modules/getdelim (Makefile.am): Likewise.
66899         * modules/getdomainname (Makefile.am): Likewise.
66900         * modules/getgroups (Makefile.am): Likewise.
66901         * modules/gethostname (Makefile.am): Likewise.
66902         * modules/gethrxtime (Makefile.am): Likewise.
66903         * modules/getline (Makefile.am): Likewise.
66904         * modules/getloadavg (Makefile.am): Likewise.
66905         * modules/getlogin_r (Makefile.am): Likewise.
66906         * modules/getndelim2 (Makefile.am): Likewise.
66907         * modules/getopt (Makefile.am): Likewise.
66908         * modules/getpagesize (Makefile.am): Likewise.
66909         * modules/getpass-gnu (Makefile.am): Likewise.
66910         * modules/getpass (Makefile.am): Likewise.
66911         * modules/getsubopt (Makefile.am): Likewise.
66912         * modules/gettime (Makefile.am): Likewise.
66913         * modules/gettimeofday (Makefile.am): Likewise.
66914         * modules/getugroups (Makefile.am): Likewise.
66915         * modules/getusershell (Makefile.am): Likewise.
66916         * modules/glob (Makefile.am): Likewise.
66917         * modules/group-member (Makefile.am): Likewise.
66918         * modules/hard-locale (Makefile.am): Likewise.
66919         * modules/hash (Makefile.am): Likewise.
66920         * modules/hmac-md5 (Makefile.am): Likewise.
66921         * modules/hmac-sha1 (Makefile.am): Likewise.
66922         * modules/human (Makefile.am): Likewise.
66923         * modules/idcache (Makefile.am): Likewise.
66924         * modules/imaxabs (Makefile.am): Likewise.
66925         * modules/imaxdiv (Makefile.am): Likewise.
66926         * modules/inet_ntop (Makefile.am): Likewise.
66927         * modules/inet_pton (Makefile.am): Likewise.
66928         * modules/intprops (Makefile.am): Likewise.
66929         * modules/inttostr (Makefile.am): Likewise.
66930         * modules/inttypes (Makefile.am): Likewise.
66931         * modules/isapipe (Makefile.am): Likewise.
66932         * modules/javaversion (Makefile.am): Likewise.
66933         * modules/lchmod (Makefile.am): Likewise.
66934         * modules/lchown (Makefile.am): Likewise.
66935         * modules/localcharset (Makefile.am): Likewise.
66936         * modules/long-options (Makefile.am): Likewise.
66937         * modules/lstat (Makefile.am): Likewise.
66938         * modules/malloc (Makefile.am): Likewise.
66939         * modules/mathl (Makefile.am): Likewise.
66940         * modules/mbchar (Makefile.am): Likewise.
66941         * modules/md2 (Makefile.am): Likewise.
66942         * modules/md4 (Makefile.am): Likewise.
66943         * modules/md5 (Makefile.am): Likewise.
66944         * modules/memcasecmp (Makefile.am): Likewise.
66945         * modules/memchr (Makefile.am): Likewise.
66946         * modules/memcmp (Makefile.am): Likewise.
66947         * modules/memcoll (Makefile.am): Likewise.
66948         * modules/memcpy (Makefile.am): Likewise.
66949         * modules/memmem (Makefile.am): Likewise.
66950         * modules/memmove (Makefile.am): Likewise.
66951         * modules/mempcpy (Makefile.am): Likewise.
66952         * modules/memrchr (Makefile.am): Likewise.
66953         * modules/memset (Makefile.am): Likewise.
66954         * modules/memxor (Makefile.am): Likewise.
66955         * modules/mkancesdirs (Makefile.am): Likewise.
66956         * modules/mkdir-p (Makefile.am): Likewise.
66957         * modules/mkdir (Makefile.am): Likewise.
66958         * modules/mkdtemp (Makefile.am): Likewise.
66959         * modules/mkstemp (Makefile.am): Likewise.
66960         * modules/mktime (Makefile.am): Likewise.
66961         * modules/modechange (Makefile.am): Likewise.
66962         * modules/mountlist (Makefile.am): Likewise.
66963         * modules/nanosleep (Makefile.am): Likewise.
66964         * modules/obstack (Makefile.am): Likewise.
66965         * modules/openat (Makefile.am): Likewise.
66966         * modules/pagealign_alloc (Makefile.am): Likewise.
66967         * modules/pathmax (Makefile.am): Likewise.
66968         * modules/physmem (Makefile.am): Likewise.
66969         * modules/poll (Makefile.am): Likewise.
66970         * modules/posixtm (Makefile.am): Likewise.
66971         * modules/posixver (Makefile.am): Likewise.
66972         * modules/putenv (Makefile.am): Likewise.
66973         * modules/quote (Makefile.am): Likewise.
66974         * modules/quotearg (Makefile.am): Likewise.
66975         * modules/raise (Makefile.am): Likewise.
66976         * modules/read-file (Makefile.am): Likewise.
66977         * modules/readline (Makefile.am): Likewise.
66978         * modules/readlink (Makefile.am): Likewise.
66979         * modules/readtokens (Makefile.am): Likewise.
66980         * modules/readutmp (Makefile.am): Likewise.
66981         * modules/realloc (Makefile.am): Likewise.
66982         * modules/regex (Makefile.am): Likewise.
66983         * modules/rename-dest-slash (Makefile.am): Likewise.
66984         * modules/rename (Makefile.am): Likewise.
66985         * modules/rijndael (Makefile.am): Likewise.
66986         * modules/rmdir (Makefile.am): Likewise.
66987         * modules/rpmatch (Makefile.am): Likewise.
66988         * modules/safe-read (Makefile.am): Likewise.
66989         * modules/safe-write (Makefile.am): Likewise.
66990         * modules/same-inode (Makefile.am): Likewise.
66991         * modules/same (Makefile.am): Likewise.
66992         * modules/save-cwd (Makefile.am): Likewise.
66993         * modules/savedir (Makefile.am): Likewise.
66994         * modules/setenv (Makefile.am): Likewise.
66995         * modules/settime (Makefile.am): Likewise.
66996         * modules/sha1 (Makefile.am): Likewise.
66997         * modules/sig2str (Makefile.am): Likewise.
66998         * modules/snprintf (Makefile.am): Likewise.
66999         * modules/stat-macros (Makefile.am): Likewise.
67000         * modules/stat-time (Makefile.am): Likewise.
67001         * modules/stdbool (Makefile.am): Likewise.
67002         * modules/stdint (Makefile.am): Likewise.
67003         * modules/stdlib-safer (Makefile.am): Likewise.
67004         * modules/stpcpy (Makefile.am): Likewise.
67005         * modules/stpncpy (Makefile.am): Likewise.
67006         * modules/strcase (Makefile.am): Likewise.
67007         * modules/strcasestr (Makefile.am): Likewise.
67008         * modules/strchrnul (Makefile.am): Likewise.
67009         * modules/strcspn (Makefile.am): Likewise.
67010         * modules/strdup (Makefile.am): Likewise.
67011         * modules/strerror (Makefile.am): Likewise.
67012         * modules/strftime (Makefile.am): Likewise.
67013         * modules/strndup (Makefile.am): Likewise.
67014         * modules/strnlen (Makefile.am): Likewise.
67015         * modules/strpbrk (Makefile.am): Likewise.
67016         * modules/strsep (Makefile.am): Likewise.
67017         * modules/strstr (Makefile.am): Likewise.
67018         * modules/strtod (Makefile.am): Likewise.
67019         * modules/strtoimax (Makefile.am): Likewise.
67020         * modules/strtok_r (Makefile.am): Likewise.
67021         * modules/strtol (Makefile.am): Likewise.
67022         * modules/strtoll (Makefile.am): Likewise.
67023         * modules/strtoul (Makefile.am): Likewise.
67024         * modules/strtoull (Makefile.am): Likewise.
67025         * modules/strtoumax (Makefile.am): Likewise.
67026         * modules/strverscmp (Makefile.am): Likewise.
67027         * modules/sys_socket (Makefile.am): Likewise.
67028         * modules/sys_stat (Makefile.am): Likewise.
67029         * modules/sysexits (Makefile.am): Likewise.
67030         * modules/time_r (Makefile.am): Likewise.
67031         * modules/timegm (Makefile.am): Likewise.
67032         * modules/timespec (Makefile.am): Likewise.
67033         * modules/tmpfile-safer (Makefile.am): Likewise.
67034         * modules/trim (Makefile.am): Likewise.
67035         * modules/unistd-safer (Makefile.am): Likewise.
67036         * modules/unlinkdir (Makefile.am): Likewise.
67037         * modules/unlocked-io (Makefile.am): Likewise.
67038         * modules/userspec (Makefile.am): Likewise.
67039         * modules/utime (Makefile.am): Likewise.
67040         * modules/utimecmp (Makefile.am): Likewise.
67041         * modules/utimens (Makefile.am): Likewise.
67042         * modules/vasnprintf (Makefile.am): Likewise.
67043         * modules/vasprintf (Makefile.am): Likewise.
67044         * modules/vsnprintf (Makefile.am): Likewise.
67045         * modules/xalloc (Makefile.am): Likewise.
67046         * modules/xgetcwd (Makefile.am): Likewise.
67047         * modules/xnanosleep (Makefile.am): Likewise.
67048         * modules/xreadlink (Makefile.am): Likewise.
67049         * modules/xstrtod (Makefile.am): Likewise.
67050         * modules/xstrtol (Makefile.am): Likewise.
67051         * modules/xstrtold (Makefile.am): Likewise.
67052         * modules/yesno (Makefile.am): Likewise.
67053         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67054
67055 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67056
67057         * modules/error (Makefile.am): Distribute files through
67058         EXTRA_DIST, not lib_SOURCES.
67059
67060 2006-10-12  Eric Blake  <ebb9@byu.net>
67061
67062         * modules/error (Makefile.am): Distribute files in /lib.
67063         * modules/obstack (Makefile.am): Likewise.
67064
67065 2006-10-12  Bruno Haible  <bruno@clisp.org>
67066
67067         * modules/acl (Makefile.am): Distribute all files in lib/ through
67068         EXTRA_DIST.
67069         * modules/arcfour (Makefile.am): Likewise.
67070         * modules/arctwo (Makefile.am): Likewise.
67071         * modules/argmatch (Makefile.am): Likewise.
67072         * modules/argz (Makefile.am): Likewise.
67073         * modules/atexit (Makefile.am): Likewise.
67074         * modules/backupfile (Makefile.am): Likewise.
67075         * modules/c-strtod (Makefile.am): Likewise.
67076         * modules/c-strtold (Makefile.am): Likewise.
67077         * modules/calloc (Makefile.am): Likewise.
67078         * modules/canon-host (Makefile.am): Likewise.
67079         * modules/canonicalize (Makefile.am): Likewise.
67080         * modules/chdir-long (Makefile.am): Likewise.
67081         * modules/chdir-safer (Makefile.am): Likewise.
67082         * modules/check-version (Makefile.am): Likewise.
67083         * modules/chown (Makefile.am): Likewise.
67084         * modules/cloexec (Makefile.am): Likewise.
67085         * modules/close-stream (Makefile.am): Likewise.
67086         * modules/closeout (Makefile.am): Likewise.
67087         * modules/crc (Makefile.am): Likewise.
67088         * modules/cycle-check (Makefile.am): Likewise.
67089         * modules/des (Makefile.am): Likewise.
67090         * modules/dirfd (Makefile.am): Likewise.
67091         * modules/dirname (Makefile.am): Likewise.
67092         * modules/dup2 (Makefile.am): Likewise.
67093         * modules/euidaccess (Makefile.am): Likewise.
67094         * modules/exclude (Makefile.am): Likewise.
67095         * modules/exitfail (Makefile.am): Likewise.
67096         * modules/fcntl-safer (Makefile.am): Likewise.
67097         * modules/file-type (Makefile.am): Likewise.
67098         * modules/fileblocks (Makefile.am): Likewise.
67099         * modules/filemode (Makefile.am): Likewise.
67100         * modules/filenamecat (Makefile.am): Likewise.
67101         * modules/fnmatch (Makefile.am): Likewise.
67102         * modules/fopen-safer (Makefile.am): Likewise.
67103         * modules/fpending (Makefile.am): Likewise.
67104         * modules/fprintftime (Makefile.am): Likewise.
67105         * modules/free (Makefile.am): Likewise.
67106         * modules/fsusage (Makefile.am): Likewise.
67107         * modules/ftruncate (Makefile.am): Likewise.
67108         * modules/fts (Makefile.am): Likewise.
67109         * modules/gc (Makefile.am): Likewise.
67110         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67111         * modules/getaddrinfo (Makefile.am): Likewise.
67112         * modules/getcwd (Makefile.am): Likewise.
67113         * modules/getdelim (Makefile.am): Likewise.
67114         * modules/getdomainname (Makefile.am): Likewise.
67115         * modules/getgroups (Makefile.am): Likewise.
67116         * modules/gethostname (Makefile.am): Likewise.
67117         * modules/gethrxtime (Makefile.am): Likewise.
67118         * modules/getline (Makefile.am): Likewise.
67119         * modules/getloadavg (Makefile.am): Likewise.
67120         * modules/getlogin_r (Makefile.am): Likewise.
67121         * modules/getopt (Makefile.am): Likewise.
67122         * modules/getpass (Makefile.am): Likewise.
67123         * modules/getpass-gnu (Makefile.am): Likewise.
67124         * modules/getsubopt (Makefile.am): Likewise.
67125         * modules/gettime (Makefile.am): Likewise.
67126         * modules/gettimeofday (Makefile.am): Likewise.
67127         * modules/getugroups (Makefile.am): Likewise.
67128         * modules/getusershell (Makefile.am): Likewise.
67129         * modules/glob (Makefile.am): Likewise.
67130         * modules/group-member (Makefile.am): Likewise.
67131         * modules/hard-locale (Makefile.am): Likewise.
67132         * modules/hash (Makefile.am): Likewise.
67133         * modules/hmac-md5 (Makefile.am): Likewise.
67134         * modules/hmac-sha1 (Makefile.am): Likewise.
67135         * modules/human (Makefile.am): Likewise.
67136         * modules/idcache (Makefile.am): Likewise.
67137         * modules/imaxabs (Makefile.am): Likewise.
67138         * modules/imaxdiv (Makefile.am): Likewise.
67139         * modules/inet_ntop (Makefile.am): Likewise.
67140         * modules/inet_pton (Makefile.am): Likewise.
67141         * modules/inttostr (Makefile.am): Likewise.
67142         * modules/isapipe (Makefile.am): Likewise.
67143         * modules/lchown (Makefile.am): Likewise.
67144         * modules/long-options (Makefile.am): Likewise.
67145         * modules/lstat (Makefile.am): Likewise.
67146         * modules/malloc (Makefile.am): Likewise.
67147         * modules/mathl (Makefile.am): Likewise.
67148         * modules/mbchar (Makefile.am): Likewise.
67149         * modules/md2 (Makefile.am): Likewise.
67150         * modules/md4 (Makefile.am): Likewise.
67151         * modules/md5 (Makefile.am): Likewise.
67152         * modules/memcasecmp (Makefile.am): Likewise.
67153         * modules/memchr (Makefile.am): Likewise.
67154         * modules/memcmp (Makefile.am): Likewise.
67155         * modules/memcoll (Makefile.am): Likewise.
67156         * modules/memcpy (Makefile.am): Likewise.
67157         * modules/memmem (Makefile.am): Likewise.
67158         * modules/memmove (Makefile.am): Likewise.
67159         * modules/mempcpy (Makefile.am): Likewise.
67160         * modules/memrchr (Makefile.am): Likewise.
67161         * modules/memset (Makefile.am): Likewise.
67162         * modules/memxor (Makefile.am): Likewise.
67163         * modules/mkancesdirs (Makefile.am): Likewise.
67164         * modules/mkdir (Makefile.am): Likewise.
67165         * modules/mkdir-p (Makefile.am): Likewise.
67166         * modules/mkdtemp (Makefile.am): Likewise.
67167         * modules/mkstemp (Makefile.am): Likewise.
67168         * modules/mktime (Makefile.am): Likewise.
67169         * modules/modechange (Makefile.am): Likewise.
67170         * modules/mountlist (Makefile.am): Likewise.
67171         * modules/nanosleep (Makefile.am): Likewise.
67172         * modules/openat (Makefile.am): Likewise.
67173         * modules/pagealign_alloc (Makefile.am): Likewise.
67174         * modules/physmem (Makefile.am): Likewise.
67175         * modules/poll (Makefile.am): Likewise.
67176         * modules/posixtm (Makefile.am): Likewise.
67177         * modules/posixver (Makefile.am): Likewise.
67178         * modules/putenv (Makefile.am): Likewise.
67179         * modules/quote (Makefile.am): Likewise.
67180         * modules/quotearg (Makefile.am): Likewise.
67181         * modules/raise (Makefile.am): Likewise.
67182         * modules/read-file (Makefile.am): Likewise.
67183         * modules/readline (Makefile.am): Likewise.
67184         * modules/readlink (Makefile.am): Likewise.
67185         * modules/readtokens (Makefile.am): Likewise.
67186         * modules/readutmp (Makefile.am): Likewise.
67187         * modules/realloc (Makefile.am): Likewise.
67188         * modules/regex (Makefile.am): Likewise.
67189         * modules/rename (Makefile.am): Likewise.
67190         * modules/rename-dest-slash (Makefile.am): Likewise.
67191         * modules/rijndael (Makefile.am): Likewise.
67192         * modules/rmdir (Makefile.am): Likewise.
67193         * modules/rpmatch (Makefile.am): Likewise.
67194         * modules/safe-read (Makefile.am): Likewise.
67195         * modules/safe-write (Makefile.am): Likewise.
67196         * modules/same (Makefile.am): Likewise.
67197         * modules/save-cwd (Makefile.am): Likewise.
67198         * modules/savedir (Makefile.am): Likewise.
67199         * modules/setenv (Makefile.am): Likewise.
67200         * modules/settime (Makefile.am): Likewise.
67201         * modules/sha1 (Makefile.am): Likewise.
67202         * modules/sig2str (Makefile.am): Likewise.
67203         * modules/snprintf (Makefile.am): Likewise.
67204         * modules/stdlib-safer (Makefile.am): Likewise.
67205         * modules/stpcpy (Makefile.am): Likewise.
67206         * modules/stpncpy (Makefile.am): Likewise.
67207         * modules/strcase (Makefile.am): Likewise.
67208         * modules/strcasestr (Makefile.am): Likewise.
67209         * modules/strchrnul (Makefile.am): Likewise.
67210         * modules/strcspn (Makefile.am): Likewise.
67211         * modules/strdup (Makefile.am): Likewise.
67212         * modules/strerror (Makefile.am): Likewise.
67213         * modules/strftime (Makefile.am): Likewise.
67214         * modules/strndup (Makefile.am): Likewise.
67215         * modules/strnlen (Makefile.am): Likewise.
67216         * modules/strpbrk (Makefile.am): Likewise.
67217         * modules/strsep (Makefile.am): Likewise.
67218         * modules/strstr (Makefile.am): Likewise.
67219         * modules/strtod (Makefile.am): Likewise.
67220         * modules/strtoimax (Makefile.am): Likewise.
67221         * modules/strtok_r (Makefile.am): Likewise.
67222         * modules/strtol (Makefile.am): Likewise.
67223         * modules/strtoll (Makefile.am): Likewise.
67224         * modules/strtoul (Makefile.am): Likewise.
67225         * modules/strtoull (Makefile.am): Likewise.
67226         * modules/strtoumax (Makefile.am): Likewise.
67227         * modules/strverscmp (Makefile.am): Likewise.
67228         * modules/time_r (Makefile.am): Likewise.
67229         * modules/timegm (Makefile.am): Likewise.
67230         * modules/tmpfile-safer (Makefile.am): Likewise.
67231         * modules/unistd-safer (Makefile.am): Likewise.
67232         * modules/unlinkdir (Makefile.am): Likewise.
67233         * modules/userspec (Makefile.am): Likewise.
67234         * modules/utime (Makefile.am): Likewise.
67235         * modules/utimecmp (Makefile.am): Likewise.
67236         * modules/utimens (Makefile.am): Likewise.
67237         * modules/vasnprintf (Makefile.am): Likewise.
67238         * modules/vasprintf (Makefile.am): Likewise.
67239         * modules/vsnprintf (Makefile.am): Likewise.
67240         * modules/xalloc (Makefile.am): Likewise.
67241         * modules/xgetcwd (Makefile.am): Likewise.
67242         * modules/xnanosleep (Makefile.am): Likewise.
67243         * modules/xreadlink (Makefile.am): Likewise.
67244         * modules/xstrtod (Makefile.am): Likewise.
67245         * modules/xstrtol (Makefile.am): Likewise.
67246         * modules/xstrtold (Makefile.am): Likewise.
67247         * modules/yesno (Makefile.am): Likewise.
67248
67249 2006-10-12  Jim Meyering  <jim@meyering.net>
67250
67251         * m4/getloadavg.m4: Revert the change below.
67252
67253         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67254         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67255         fail with a symlink, which is what coreutils' ./bootstrap now
67256         creates by default.
67257
67258 2006-10-12  Bruno Haible  <bruno@clisp.org>
67259
67260         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67261         mingw.
67262         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67263         MSVC and mingw explicitly.
67264
67265 2006-10-11  Simon Josefsson  <jas@extundo.com>
67266             Bruno Haible  <bruno@clisp.org>
67267
67268         Add support for multiple gnulib-tool invocations in the scope of a
67269         single configure.ac file.
67270         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67271         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67272         with the same contents as the _LIBADD variable.
67273         (func_emit_initmacro_start, func_emit_initmacro_end,
67274         func_emit_initmacro_done): New functions.
67275         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67276         gl_LIBOBJS and gl_LTLIBOBJS.
67277
67278 2006-10-11  Bruno Haible  <bruno@clisp.org>
67279
67280         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67281         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67282         autoreconf. Instead, invoke autopoint explicitly but move back the
67283         *.m4 files from gnulib.
67284
67285 2006-10-11  Bruno Haible  <bruno@clisp.org>
67286
67287         * gnulib-tool (func_usage): Make module names after --create-testdir
67288         optional.
67289         (func_create_testdir): If no module was specified, use nearly all
67290         modules.
67291
67292 2006-10-12  Jim Meyering  <jim@meyering.net>
67293
67294         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67295         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67296         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67297         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67298         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67299         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67300         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67301         (fts_set_stat_required): New function.
67302         (fts_open): Defer the calls to fts_stat, if possible or requested.
67303         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67304         into fts_stat itself.
67305         (fts_read): Perform any required (deferred) fts_stat call.
67306         (fts_build): Likewise, for the directory we're about to open and read.
67307         In the readdir loop, carefully decide whether each entry will require
67308         an eventual call to fts_stat, using dirent.d_type info if available.
67309         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67310         a command line argument into this function.  Update all callers.
67311         Map a return value of FTS_DOT to FTS_D for a command line argument.
67312         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67313         Thanks to Miklos Szeredi for his tenacity and for the initial
67314         bug report about "find" failing on a FUSE-based file system.
67315
67316         * lib/fts.c (fts_open): Use consistent indentation.
67317
67318 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67319
67320         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67321         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67322         reported by Jim Meyering.  All uses of cache variables renamed
67323         to match Autoconf's.
67324         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67325         the other one.
67326
67327         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67328         Fix misspelling in diagnostic.
67329
67330 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67331
67332         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67333         defined.  Problem reported by Matthew Woehlke.
67334
67335         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67336         Add support for Tandem NonStop R series.
67337         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67338         Use new macro.
67339
67340         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67341         (has_trailing_slash): Omit size arg; all callers changed.
67342         Omit 'inline', since it doesn't help performance and we'd
67343         need to configure it.
67344         Don't count //, ///, etc. as having a trailing slash.
67345         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67346         (rpl_rename_dest_slash): On failure, use rename's errno rather
67347         than (in some cases) an incorrect or junk errno.
67348         Simplify code by removing need to compute length; this does
67349         cause it to make two passes instead of one over the file name,
67350         but it's worth it.
67351
67352         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67353         change, since Autoconf's version may no longer be appropriate now
67354         that we are using CVS Autoconf's version.  Add support for Tandem.
67355
67356 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67357             Bruno Haible  <bruno@clisp.org>
67358
67359         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67360         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67361         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67362         gl_AC_TYPE_LONG_LONG.
67363
67364         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67365         instead of HAVE_LONG_LONG.
67366         * lib/printf-args.c (printf_fetchargs): Likewise.
67367         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67368         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67369         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67370         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67371         gl_AC_TYPE_LONG_LONG.
67372
67373 2006-10-11  Bruno Haible  <bruno@clisp.org>
67374
67375         * m4/longlong.m4: Add comments.
67376         * m4/ulonglong.m4: Likewise.
67377
67378 2006-10-10  Bruno Haible  <bruno@clisp.org>
67379
67380         Make it possible to #define stpcpy, strdup to aliases.
67381         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67382         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67383
67384 2006-10-10  Bruno Haible  <bruno@clisp.org>
67385
67386         Make it possible to #define gcd to an alias.
67387         * lib/gcd.c: Include config.h.
67388
67389 2006-10-10  Bruno Haible  <bruno@clisp.org>
67390
67391         Make it possible to #define c_isascii to an alias.
67392         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67393         defined. Undefine the macros before defining them, to avoid gcc
67394         warnings.
67395         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67396         define NO_C_CTYPE_MACROS early.
67397
67398 2006-10-10  Bruno Haible  <bruno@clisp.org>
67399
67400         Make it possible to #define set_program_name to an alias.
67401         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67402         ENABLE_RELOCATABLE early.
67403
67404 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67405
67406         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67407         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67408         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67409         More generally, don't assume that 64-bit signed int is available
67410         if unsigned int is, and vice versa.
67411         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67412         unsigned symbols, not on their signed counterparts.
67413         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67414         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67415         (UINT64_C, UINTMAX_C):
67416         Likewise.
67417         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67418         unsigned counterparts.
67419         (Have_long_long, Unsigned): New macros.
67420         (Int): Renamed from INT.
67421         (strtoimax): Use the new macros.
67422         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67423         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67424         * modules/inttypes (inttypes.h): Substitute
67425         HAVE_UNSIGNED_LONG_LONG_INT.
67426         * modules/stdint (stdint.h): Likewise.
67427         (Files): Add m4/ulonglong.m4.
67428
67429 2006-10-10  Bruno Haible  <bruno@clisp.org>
67430
67431         Fix a gcc -Wshadow warning.
67432         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67433         to 'bucket'.
67434         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67435         gl_linked_indexof_from_to): Likewise.
67436         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67437         Likewise.
67438         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67439         Likewise.
67440         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67441         Reported by Eric Blake.
67442
67443 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67444
67445         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67446         for NetBSD.  Problem reported by Bruno Haible.
67447
67448 2006-10-09  Jim Meyering  <jim@meyering.net>
67449
67450         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67451         Patch from Bruno Haible.
67452
67453 2006-10-09  Jim Meyering  <jim@meyering.net>
67454
67455         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67456         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67457         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67458
67459 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67460
67461         Don't include <config.h> twice; this doesn't work in some cases,
67462         e.g., when config.h has "#define intmax_t long long int" and
67463         we include <config.h>, <inttypes.h>, <config.h> in that order.
67464         Problem reported by Matthew Woehlke in:
67465         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67466         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67467         * lib/fts-cycle.c: Don't include config.h.
67468         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67469         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67470         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67471         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67472         inttypes.h.
67473         * lib/xstrtoumax.c: Likewise.
67474         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67475         __strtol and the like, so that this module is more like its siblings.
67476         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67477         Remove; no longer needed now that we assume gnulib inttypes.h.
67478
67479 2006-10-08  Bruno Haible  <bruno@clisp.org>
67480
67481         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67482         option.
67483
67484 2006-10-07  Jim Meyering  <jim@meyering.net>
67485
67486         * modules/inttypes (inttypes.h): Revert what seems to have been
67487         an inadvertent part of today's change: use "|", not "/" in the
67488         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67489
67490 2006-10-07  Bruno Haible  <bruno@clisp.org>
67491
67492         * modules/sublist: New file.
67493
67494 2006-10-07  Bruno Haible  <bruno@clisp.org>
67495
67496         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67497         * modules/argz (argz.h): Likewise.
67498         * modules/arpa_inet (arpa/inet.h): Likewise.
67499         * modules/byteswap (byteswap.h): Likewise.
67500         * modules/configmake (configmake.h): Likewise.
67501         * modules/fcntl (fcntl.h): Likewise.
67502         * modules/fnmatch (fnmatch.h): Likewise.
67503         * modules/getopt (getopt.h): Likewise.
67504         * modules/glob (glob.h): Likewise.
67505         * modules/inttypes (inttypes.h): Likewise.
67506         * modules/netinet_in (netinet/in.h): Likewise.
67507         * modules/poll (poll.h): Likewise.
67508         * modules/stdbool (stdbool.h): Likewise.
67509         * modules/stdint (stdint.h): Likewise.
67510         * modules/sys_select (sys/select.h): Likewise.
67511         * modules/sys_socket (sys/socket.h): Likewise.
67512         * modules/sys_stat (sys/stat.h): Likewise.
67513         * modules/sysexits (sysexits.h): Likewise.
67514         * modules/unistd (unistd.h): Likewise.
67515         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67516         Add a "DO NOT EDIT" comment to the generated file.
67517         (func_import): Likewise for gnulib-comp.m4.
67518
67519 2006-10-07  Bruno Haible  <bruno@clisp.org>
67520
67521         * lib/gl_sublist.h: New file.
67522         * lib/gl_sublist.c: New file.
67523
67524 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67525
67526         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67527         name (relative to the original working directory) and the file
67528         name component (relative to the temporary working directory).  All
67529         callers changed.
67530         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67531         * lib/mkdir-p.c (make_dir_parents): Likewise.
67532         * lib/mkdir-p.h (make_dir_parents): Likewise.
67533
67534 2006-10-06  Eric Blake  <ebb9@byu.net>
67535
67536         Define several macros for use by the clean-temp module.
67537         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67538         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67539         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67540
67541         * lib/clean-temp.h (close_stream_temp): New declaration.
67542         * lib/clean-temp.c (includes): Pull in headers according to what
67543         other modules are in use.
67544         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67545
67546 2006-10-06  Bruno Haible  <bruno@clisp.org>
67547
67548         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67549         instead of fopen, fwriteerror.
67550
67551 2006-10-06  Bruno Haible  <bruno@clisp.org>
67552
67553         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67554         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67555         int.
67556         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67557         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67558         Return an error indicator.
67559         Suggested by Eric Blake.
67560
67561 2006-10-06  Bruno Haible  <bruno@clisp.org>
67562
67563         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67564         Reported by Eric Blake.
67565
67566 2006-10-06  Bruno Haible  <bruno@clisp.org>
67567
67568         * modules/closeout (Description): Mention stderr too.
67569
67570 2006-10-06  Bruno Haible  <bruno@clisp.org>
67571         and Paul Eggert  <eggert@cs.ucla.edu>
67572
67573         * lib/closeout.c (close_stdout): Also close stderr.
67574         * lib/closeout.h: Update comment.
67575
67576 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67577
67578         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67579         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67580         * lib/dirchownmod.c: Include lchown.h.
67581         * lib/lchown.c: Don't include files that lchown.h now includes.
67582         Don't declare chown, since lchown.h now does that.
67583         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67584         (lchown): Define to rpl_chown if lchown is declared but
67585         does not exist.  Declare using a prototype if lchown is not
67586         declared.  Add a copyright notice.
67587         * lib/mkstemp.h: Include <unistd.h>.
67588         * lib/openat.c: Include lchown.h.
67589
67590         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67591         we now test for that separately.
67592         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67593         rather than O_NOFOLLOW, when testing whether it's possible to
67594         avoid a race condition reliably.
67595         * lib/savewd.c (savewd_chdir): Likewise.
67596
67597         Remove macros that are no longer needed now that stdint.h is
67598         reliable.
67599         * lib/fsusage.c (UINTMAX_MAX): Remove.
67600         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67601         * lib/utimecmp.c (SIZE_MAX): Remove.
67602
67603         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67604
67605         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67606         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67607         O_NOATIME works.
67608
67609 2006-10-05  Bruno Haible  <bruno@clisp.org>
67610
67611         * lib/gl_list.h (gl_sortedlist_search_from_to,
67612         gl_sortedlist_indexof_from_to): New declarations.
67613         (gl_list_implementation): New fields sortedlist_search_from_to,
67614         sortedlist_indexof_from_to.
67615         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67616         inline functions.
67617         * lib/gl_list.c (gl_sortedlist_search_from_to,
67618         gl_sortedlist_indexof_from_to): New functions.
67619         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67620         function.
67621         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67622         (gl_array_sortedlist_search_from_to): New function.
67623         (gl_array_list_implementation): Update.
67624         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67625         function.
67626         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67627         (gl_carray_sortedlist_search_from_to): New function.
67628         (gl_carray_list_implementation): Update.
67629         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67630         gl_linked_sortedlist_indexof_from_to): New functions.
67631         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67632         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67633         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67634         gl_tree_sortedlist_indexof_from_to): New functions.
67635         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67636         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67637         Update.
67638         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67639         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67640         Update.
67641
67642 2006-10-05  Bruno Haible  <bruno@clisp.org>
67643
67644         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67645         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67646         (struct gl_list_implementation): Add fields search_from_to,
67647         indexof_from_to. Remove fields search, indexof.
67648         (gl_list_search): Use the search_from_to method.
67649         (gl_list_search_from, gl_list_search_from_to): New functions.
67650         (gl_list_indexof): Use the indexof_from_to method.
67651         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67652         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67653         (gl_list_search_from, gl_list_search_from_to): New functions.
67654         (gl_list_indexof): Use the indexof_from_to method.
67655         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67656         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67657         gl_array_indexof. Add start_index, end_index arguments.
67658         (gl_array_search_from_to): Renamed from gl_array_search. Add
67659         start_index, end_index arguments.
67660         (gl_array_remove, gl_array_list_implementation): Update.
67661         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67662         gl_carray_indexof. Add start_index, end_index arguments.
67663         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67664         start_index, end_index arguments.
67665         (gl_carray_remove, gl_carray_list_implementation): Update.
67666         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67667         gl_linked_search. Add start_index, end_index arguments.
67668         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67669         start_index, end_index arguments.
67670         (gl_linked_remove): Update.
67671         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67672         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67673         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67674         field to 'size_t'.
67675         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67676         gl_tree_search. Add start_index, end_index arguments.
67677         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67678         start_index, end_index arguments.
67679         (gl_tree_remove): Update.
67680         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67681         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67682         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67683         function.
67684         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67685         gl_tree_search. Add start_index, end_index arguments.
67686         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67687         start_index, end_index arguments.
67688         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67689         Update.
67690         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67691
67692 2006-10-05  Bruno Haible  <bruno@clisp.org>
67693
67694         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67695
67696         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67697         fwriteerror_temp): New declarations.
67698         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67699         (descriptors): New variable.
67700         (cleanup): First, close the descriptors.
67701         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67702         fclose_temp, fwriteerror_temp): New functions.
67703
67704 2006-10-04  Jim Meyering  <jim@meyering.net>
67705
67706         * lib/fts.c (fts_open): Tiny comment change.
67707
67708 2006-10-04  Bruno Haible  <bruno@clisp.org>
67709
67710         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67711         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67712         gl_LOCK_BODY.
67713         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67714         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67715         gl_LOCK_EARLY_BODY.
67716         (gl_LOCK): Require gl_LOCK_BODY.
67717
67718 2006-10-04  Bruno Haible  <bruno@clisp.org>
67719
67720         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67721         (gl_oset_search_atleast): New declaration.
67722         (struct gl_oset_implementation): Add field 'search_atleast'.
67723         (gl_oset_search_atleast): New inline function.
67724         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67725         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67726         (gl_array_oset_implementation): Update.
67727         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67728         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67729         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67730
67731 2006-10-04  Bruno Haible  <bruno@clisp.org>
67732
67733         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67734
67735 2006-10-03  Bruno Haible  <bruno@clisp.org>
67736
67737         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67738         from gl_avltreehash_list_implementation.
67739
67740 2006-10-03  Bruno Haible  <bruno@clisp.org>
67741
67742         * lib/gl_oset.c (gl_oset_add): Fix return type.
67743
67744 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67745
67746         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67747
67748 2006-10-02  Eric Blake  <ebb9@byu.net>
67749
67750         * modules/strnlen (Depends-on): Add extensions.
67751
67752 2006-10-02  Eric Blake  <ebb9@byu.net>
67753
67754         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67755         definition in 2.60+.
67756
67757 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67758
67759         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67760         checks.
67761
67762 2006-10-02  Bruno Haible  <bruno@clisp.org>
67763
67764         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67765         to the AUTOMAKE_OPTIONS.
67766         Reported by Jim Meyering.
67767
67768 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67769
67770         Work around bug in Solaris 10 /proc file system:
67771         /proc/self/fd/NNN/.. isn't the parent directory of
67772         the directory whose file descriptor is NNN.  This needs to
67773         be worked around at run time, not compile time, since a
67774         program might be built on Solaris 8, where things work, and
67775         run on Solaris 10.
67776         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67777         to use the following interface instead:
67778         (OPENAT_BUFFER_SIZE): New macro.
67779         (openat_proc_name): New function.
67780         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67781         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67782         Likewise.
67783         * lib/openat-proc.c: New file.
67784         * modules/openat (Files): Add lib/openat-proc.c.
67785         (Depends-on): Add same-inode, stdbool.
67786         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67787
67788 2006-09-29  Bruno Haible  <bruno@clisp.org>
67789
67790         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67791         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67792         argument. Set stdout_closed before testing for ferror, not after.
67793         (fwriteerror, fwriteerror_no_ebadf): New functions.
67794
67795 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67796
67797         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67798
67799 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67800
67801         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67802         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67803
67804 2006-09-28  Jim Meyering  <jim@meyering.net>
67805
67806         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67807         Include <unistd.h>.
67808
67809 2006-09-28  Bruno Haible  <bruno@clisp.org>
67810
67811         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67812         * modules/linkedhash-list (Depends-on): Likewise.
67813         * modules/rbtreehash-list (Depends-on): Likewise.
67814
67815 2006-09-28  Bruno Haible  <bruno@clisp.org>
67816
67817         * lib/strndup.h: Simplify the redefinition of strndup.
67818         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67819         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67820
67821 2006-09-28  Bruno Haible  <bruno@clisp.org>
67822
67823         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67824         * lib/gl_linkedhash_list.c: Likewise.
67825         * lib/gl_rbtreehash_list.c: Likewise.
67826
67827 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67828
67829         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67830         getaddrinfo.
67831
67832         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67833         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67834         it causes <stdio_ext.h> to cause a compile-time error.
67835         Problem reported by Nelson H. F. Beebe.
67836         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67837         of HAVE_DECL___PENDING.
67838
67839         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67840         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67841         declaration.
67842
67843 2006-09-27  Jim Meyering  <jim@meyering.net>
67844
67845         This file could end up with a definition for a function
67846         named __strndup, rather than rpl_strndup on a system with
67847         incomplete weak_alias support.
67848         * lib/strndup.c (strndup): Rename from __strndup.
67849         Remove #defines that used to map __strndup to strndup.
67850         Don't use K&R prototypes.
67851         Remove LIBC-related code, since this file is not sync'd with glibc.
67852         * lib/strndup.h: Revamp, accordingly.
67853         * m4/strndup.m4: Modernize.
67854
67855 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67856
67857         * modules/savewd (Depends-on): Add 'raise'.
67858         * lib/savewd.c: Include <signal.h>, for 'raise'.
67859
67860 2006-09-26  Jim Meyering  <jim@meyering.net>
67861
67862         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67863         when we detect Darwin 8.7.0's acl_get_file bug.
67864         Rearrange to perform the new (below) run-test while $LIBS
67865         contains any acl-related library.  Set USE_ACL at the end.
67866         (gl_ACL_GET_FILE): New function.
67867
67868 2006-09-26  Eric Blake  <ebb9@byu.net>
67869
67870         * lib/verror.c: Include <config.h> unconditionally.
67871
67872 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         * modules/clock-time (Maintainer): Add self.
67875         * modules/getlogin_r (Depends-on): Add extensions.
67876
67877 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67878
67879         * modules/clock-time: New module.
67880         * modules/nanosleep (Depends-on): Add clock-time.
67881         * modules/gethrxtime (Depends-on): Likewise.
67882         * modules/gettime (Depends-on): Likewise.
67883         * modules/settime (Depends-on): Likewise.
67884
67885         * modules/fts-lgpl: Depend on openat.
67886         * modules/mkancesdirs: Depend on savewd.
67887         * modules/mkdir-p: Likewise.
67888
67889 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67890
67891         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67892
67893         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67894         `gl_have_arbitrary_file_name_length_limit' to
67895         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67896         actually works between configure runs.
67897
67898 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67899             Bruno Haible  <bruno@clisp.org>
67900
67901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67902
67903 2006-09-25  Jim Meyering  <jim@meyering.net>
67904
67905         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67906         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67907
67908 2006-09-25  Eric Blake  <ebb9@byu.net>
67909
67910         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67911         exec's in 2006-09-18 patch when shuffling fds.
67912
67913 2006-09-25  Bruno Haible  <bruno@clisp.org>
67914
67915         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67916         Reported by Jim Meyering.
67917
67918 2006-09-24  Jim Meyering  <jim@meyering.net>
67919
67920         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67921         compare a pointer against a literal "0".  That caused failures with
67922         at least HP-UX's hpcc.
67923
67924 2006-09-22  Simon Josefsson  <jas@extundo.com>
67925
67926         * modules/gc-sha1:
67927         * modules/gc-md4:
67928         * modules/gc-hmac-sha1:
67929         * modules/gc-hmac-md5:
67930         * modules/gc-des:
67931         * modules/gc-arcfour: Distribute more files.
67932
67933 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67934
67935         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67936         (gl_linked_iterator_from_to): Initialize struct completely.
67937         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67938         (gl_tree_iterator_from_to): Likewise
67939         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67940         * lib/gl_array_list.c [lint] (gl_array_iterator)
67941         (gl_array_iterator_from_to): Likewise.
67942         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67943         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67944         (gl_carray_iterator_from_to): Likewise.
67945
67946         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67947         * lib/md4.c (md4_process_block): Remove unused variable.
67948         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67949         parentheses for clarity.
67950
67951 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67952
67953         * modules/bison-i18n (Depends-on): Add gettext.
67954
67955 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67956
67957         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67958         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67959         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67960         also add missing comma that caused broken test.
67961         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67962         stdlib.h, for `abort'.
67963         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67964         variables.
67965         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67966         include unistd.h if present, for `rmdir'.
67967         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67968         variables.
67969         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67970         in the process include standard headers for prototypes.
67971         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67972         gets declared on GNU/Linux.
67973         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67974         unistd.h, for `rmdir'.
67975         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67976
67977         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67978         always true.
67979         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67980
67981         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67982
67983 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67984
67985         * gnulib-tool (func_version): Create output all at once.  This
67986         may help avoid triggering unnecessary SIGPIPEs, and at any
67987         rate it doesn't hurt.
67988
67989 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67990             Bruno Haible  <bruno@clisp.org>
67991
67992         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67993         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67994         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67995
67996         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67997         (gl_FUNC_VASPRINTF): Invoke it.
67998
67999 2006-09-22  Bruno Haible  <bruno@clisp.org>
68000
68001         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68002         getloadavg.c as first argument.
68003
68004 2006-09-22  Bruno Haible  <bruno@clisp.org>
68005
68006         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68007         at the beginning of the gl_INIT macro.
68008         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68009         gl_GETLOADAVG.
68010
68011 2006-09-22  Bruno Haible  <bruno@clisp.org>
68012
68013         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68014         module.
68015         Suggested by Ralf Wildenhues.
68016
68017 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68018
68019         Import this patch from libc:
68020
68021         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68022
68023         * lib/regex_internal.c (re_string_reconstruct): Handle
68024         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68025         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68026         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68027         re_string_context_at.
68028
68029         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68030         now requires it.
68031         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68032         gl_REGEX now does it for us.
68033         (gl_REGEX): Add test taken from
68034         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68035
68036         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68037         Check that large offsets work.  Modernize Autoconf usages.
68038         Prefer "yes" to mean a good thing rather than a bad.
68039         Don't put "#define mkstemp" in config.h, as this might interfere
68040         with standard system headers that "#define mkstemp mkstemp64".
68041
68042         * modules/mkstemp (Depends-on): Add extensions, so that
68043         mkstemp is visible on some platforms.
68044         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68045         (Include): Change to "mkstemp.h" from <stdlib.h>.
68046         (Files): Add mkstemp.h.
68047
68048         * lib/mkstemp.h: New file, since some standard headers
68049         #define mkstemp.
68050         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68051         Include "mkstemp.h".
68052         Make the _LIBC code resemble glibc original more,
68053         e.g., use K&R style.
68054         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68055         (mkstemp): Remove, since mkstemp.h does this for us.
68056         * lib/stdlib--.h: Include mkstemp.h.
68057
68058         Import this patch from libc:
68059
68060         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68061
68062         * lib/tempname.c (__gen_tempname): Change attempts_min
68063         into a macro.  Use preprocessor to decide how to initialize
68064         attempts [Coverity CID 67].
68065
68066 2006-09-20  Bruno Haible  <bruno@clisp.org>
68067
68068         * lib/mkdtemp.c: Import from libc.
68069         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68070                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68071                 attempts_min into a macro.  Use preprocessor to decide how to
68072                 initialize attempts [Coverity CID 67].
68073         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68074                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68075                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68076
68077 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68078
68079         * gnulib-tool (func_exit): New function, to allow to pass the
68080         exit status portably through the trap.  Use everywhere.
68081         (--help, --version): Signal a write error.
68082         (trap): catch SIGPIPE, for write errors.
68083         Exit at the end of the trap, with the correct exit status.
68084
68085 2006-09-19  Karl Berry  <karl@gnu.org>
68086
68087         * doc/gnulib.texi: note about the license texinfo files.
68088
68089 2006-09-19  Eric Blake  <ebb9@byu.net>
68090
68091         * gnulib-tool: Avoid space-tab.
68092
68093 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68094
68095         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68096         that prevented coreutils 6.1 from building.  Problem reported
68097         by Petter Reinholdtsen.
68098
68099 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68100
68101         * gnulib-tool (avoidlist): Fix typo that broke options like
68102         --avoid=lock that are used by coreutils bootstrap.
68103
68104 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68105
68106         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68107         more systematically.
68108
68109 2006-09-18  Jim Meyering  <jim@meyering.net>
68110
68111         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68112
68113 2006-09-18  Bruno Haible  <bruno@clisp.org>
68114
68115         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68116
68117 2006-09-18  Bruno Haible  <bruno@clisp.org>
68118
68119         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68120         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68121         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68122         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68123         * m4/gettext.m4: Require autoconf >= 2.52.
68124         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68125         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68126         of gl_cv_header_inttypes_h.
68127
68128 2006-09-18  Bruno Haible  <bruno@clisp.org>
68129
68130         * lib/javaversion.c: Include configmake.h.
68131
68132 2006-09-18  Bruno Haible  <bruno@clisp.org>
68133
68134         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68135         avoid that the while loops be executed in a subshell.
68136
68137 2006-09-18  Bruno Haible  <bruno@clisp.org>
68138
68139         * MODULES.html.sh (func_module): Break long lines.
68140         Suggested by Bruce Korb <bkorb@gnu.org>.
68141
68142 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68143
68144         Speed up by a factor of 1.12.
68145         * gnulib-tool (nl): New variable.
68146         (func_import): Rewrite include directive extraction to only read each
68147         directive once.
68148
68149 2006-09-17  Bruno Haible  <bruno@clisp.org>
68150
68151         * modules/javaversion (Makefile.am): Remove DEFS setting.
68152         (Depends-on): Add configmake, for PKGDATADIR definition.
68153
68154 2006-09-17  Bruno Haible  <bruno@clisp.org>
68155
68156         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68157
68158 2006-09-17  Bruno Haible  <bruno@clisp.org>
68159
68160         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68161         (func_modules_transitive_closure, func_modules_add_dummy,
68162         func_modules_to_filelist, func_import, func_create_testdir,
68163         func_create_megatestdir, ...): Use it wherever possible.
68164         Suggested by Ralf Wildenhues.
68165
68166 2006-09-16  Karl Berry  <karl@gnu.org>
68167
68168         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68169         to avoid sectioning errors.
68170         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68171         [ifinfo]: blank line after @center-ed titles.
68172         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68173         Spell FSF address consistently with others.
68174         (These changes approved by rms.)
68175
68176 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68177
68178         Speed up by a factor of 1.61.
68179         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68180         already checked module names again.
68181
68182 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68183
68184         Speed up by a factor of 1.13.
68185         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68186         for new_files, and the input to func_add_or_update.
68187
68188 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68189
68190         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68191         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68192
68193 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68194
68195         * modules/mkancesdirs (Depends-on): Add fcntl.
68196         * modules/savewd: New file.
68197         * MODULES.html.sh (File system functions): Add savewd.
68198
68199         * modules/configmake (Makefile.am): Add support for the
68200         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68201
68202 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68203
68204         * m4/savewd.m4: New file.
68205
68206 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68207
68208         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68209         (dirchownmod): New arg FD.  All callers changed.
68210         Use FD rather than opening the directory ourself, as opening is
68211         now the caller's responsibility.
68212         * lib/dirchownmod.h: Likewise.
68213         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68214         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68215         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68216         (test_dir): Remove.
68217         (mkancesdirs): Return length of prefix of FILE that has already
68218         been made, or -2 if there is a child doing the work.  Redo
68219         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68220         ".", and treat ".." specially since it might stray back into
68221         already-created areas.  Use a subprocess if necessary.  New arg
68222         WD; all users changed.  MAKE_DIR function should now return 1
68223         if it creates a directory that is not readable.  Return -2 if
68224         a child process is spun off.
68225         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68226         Adjust signature to match code.
68227         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68228         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68229         all users changed.
68230         * lib/savewd.c, lib/savewd.h: New files.
68231
68232 2006-09-15  Jim Meyering  <jim@meyering.net>
68233
68234         * modules/rename-dest-slash: New module.
68235         * MODULES.html.sh (posix_compat): Add it here.
68236
68237         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68238
68239 2006-09-15  Jim Meyering  <jim@meyering.net>
68240
68241         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68242         file.
68243
68244         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68245
68246 2006-09-15  Jim Meyering  <jim@meyering.net>
68247
68248         * lib/rename-dest-slash.c (has_trailing_slash): Use
68249         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68250         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68251         test before testing whether SRC is a directory.
68252         Suggestions from Bruno Haible.
68253
68254         Avoid a warning about an unused variable.
68255         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68256         into the #ifdef block where it's used.
68257
68258         * lib/rename-dest-slash.c: New file.
68259
68260 2006-09-14  Bruno Haible  <bruno@clisp.org>
68261
68262         * lib/allocsa.c: Include <config.h> unconditionally.
68263         * lib/asnprintf.c: Likewise.
68264         * lib/asprintf.c: Likewise.
68265         * lib/c-strcasecmp.c: Likewise.
68266         * lib/c-strcasestr.c: Likewise.
68267         * lib/c-strncasecmp.c: Likewise.
68268         * lib/c-strstr.c: Likewise.
68269         * lib/classpath.c: Likewise.
68270         * lib/clean-temp.c: Likewise.
68271         * lib/concatpath.c: Likewise.
68272         * lib/copy-file.c: Likewise.
68273         * lib/csharpcomp.c: Likewise.
68274         * lib/csharpexec.c: Likewise.
68275         * lib/execute.c: Likewise.
68276         * lib/fatal-signal.c: Likewise.
68277         * lib/findprog.c: Likewise.
68278         * lib/fwriteerror.c: Likewise.
68279         * lib/gl_array_list.c: Likewise.
68280         * lib/gl_array_oset.c: Likewise.
68281         * lib/gl_avltree_list.c: Likewise.
68282         * lib/gl_avltree_oset.c: Likewise.
68283         * lib/gl_avltreehash_list.c: Likewise.
68284         * lib/gl_carray_list.c: Likewise.
68285         * lib/gl_linked_list.c: Likewise.
68286         * lib/gl_linkedhash_list.c: Likewise.
68287         * lib/gl_list.c: Likewise.
68288         * lib/gl_oset.c: Likewise.
68289         * lib/gl_rbtree_list.c: Likewise.
68290         * lib/gl_rbtree_oset.c: Likewise.
68291         * lib/gl_rbtreehash_list.c: Likewise.
68292         * lib/imaxabs.c: Likewise.
68293         * lib/imaxdiv.c: Likewise.
68294         * lib/javacomp.c: Likewise.
68295         * lib/javaexec.c: Likewise.
68296         * lib/javaversion.c: Likewise.
68297         * lib/linebreak.c: Likewise.
68298         * lib/localcharset.c: Likewise.
68299         * lib/lock.c: Likewise.
68300         * lib/mbchar.c: Likewise.
68301         * lib/mbswidth.c: Likewise.
68302         * lib/mkdtemp.c: Likewise.
68303         * lib/pipe.c: Likewise.
68304         * lib/printf-args.c: Likewise.
68305         * lib/printf-parse.c: Likewise.
68306         * lib/progname.c: Likewise.
68307         * lib/progreloc.c: Likewise.
68308         * lib/readlink.c: Likewise.
68309         * lib/sh-quote.c: Likewise.
68310         * lib/stpcpy.c: Likewise.
68311         * lib/stpncpy.c: Likewise.
68312         * lib/strcasecmp.c: Likewise.
68313         * lib/strcasestr.c: Likewise.
68314         * lib/strcspn.c: Likewise.
68315         * lib/striconv.c: Likewise.
68316         * lib/strncasecmp.c: Likewise.
68317         * lib/strnlen1.c: Likewise.
68318         * lib/strstr.c: Likewise.
68319         * lib/strtok_r.c: Likewise.
68320         * lib/tls.c: Likewise.
68321         * lib/tmpdir.c: Likewise.
68322         * lib/unicodeio.c: Likewise.
68323         * lib/unsetenv.c: Likewise.
68324         * lib/vasnprintf.c: Likewise.
68325         * lib/vasprintf.c: Likewise.
68326         * lib/wait-process.c: Likewise.
68327         * lib/xallocsa.c: Likewise.
68328         * lib/xsetenv.c: Likewise.
68329         * lib/xstriconv.c: Likewise.
68330
68331 2006-09-13  Simon Josefsson  <jas@extundo.com>
68332
68333         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68334         that internally, suggested by Ralf Wildenhues
68335         <Ralf.Wildenhues@gmx.de>.
68336
68337 2006-09-13  Simon Josefsson  <jas@extundo.com>
68338
68339         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68340         @LIBOBJS@.
68341         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68342
68343 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68344
68345         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68346         longer worry about uses that don't define HAVE_CONFIG_H.
68347         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68348         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68349         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68350         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68351         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68352         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68353         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68354         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68355         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68356         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68357         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68358         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68359         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68360         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68361         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68362         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68363         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68364         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68365         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68366         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68367         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68368         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68369         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68370         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68371         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68372         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68373         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68374         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68375         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68376         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68377         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68378         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68379         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68380         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68381         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68382         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68383         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68384         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68385         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68386         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68387         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68388         Likewise.
68389
68390 2006-09-13  Eric Blake  <ebb9@byu.net>
68391
68392         * lib/getopt.c: Fix typo in last commit.
68393
68394 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68395
68396         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68397         dgettext.
68398
68399 2006-09-12  Jim Meyering  <jim@meyering.net>
68400
68401         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68402         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68403         Reported by Nelson H. F. Beebe.
68404
68405 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68406
68407         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68408         program_invocation_name and program_invocation_short_name are
68409         initialized.
68410         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68411         and program_invocation_short_name to argp.h, so they are visible
68412         to user programs.
68413         * lib/argp.h: Likewise
68414
68415 2006-09-10  Bruno Haible  <bruno@clisp.org>
68416
68417         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68418         m4/inttypes_h.m4, m4/uintmax_t.m4.
68419
68420 2006-09-10  Bruno Haible  <bruno@clisp.org>
68421
68422         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68423         gl_AC_TYPE_UINTMAX_T.
68424
68425 2006-09-10  Bruno Haible  <bruno@clisp.org>
68426
68427         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68428
68429 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68430
68431         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68432         convention.  Text proposed by Bruno Haible.
68433         (struct argp_option): Document the use of N_() wrappers.
68434
68435         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68436         '\v', and translate the two parts separately, instead of feeding
68437         the whole string to gettext.  This allows to exclude
68438         '\v' from the strings visible to the translator by writing doc
68439         strings as N_("..") "\v" N_("..").
68440
68441 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68442
68443         * config/srclist.txt: Undo latest change; the bug was fixed.
68444
68445 2006-09-09  Bruno Haible  <bruno@clisp.org>
68446
68447         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68448         assignments if building a library without libtool.
68449         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68450         in func_emit_lib_Makefile_am.
68451         (func_import): When building a static library libfoo.a, arrange to
68452         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68453         (func_create_testdir): Likewise.
68454         * modules/gc (configure.ac, Makefile.am): If building statically,
68455         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68456         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68457         * modules/striconv (configure.ac, Makefile.am): Likewise.
68458         Based on a suggestion by Ralf Wildenhues.
68459
68460 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68461
68462         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68463         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68464         Also:
68465
68466         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68467         Add year_2050_test to catch glibc bug 2821
68468         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68469
68470         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68471         Prefer #ifdef to #if.
68472
68473         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68474         Return from 'main' instead of calling 'exit'.
68475
68476 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68477
68478         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68479         returned the maximum time_t value rather than (time_t) -1.
68480         Problem originally reported by William Bardwell
68481         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68482
68483         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68484         Moved to here ...
68485         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68486         ... from here.
68487
68488 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68489
68490         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68491         2821 is fixed.
68492
68493 2006-09-08  Jim Meyering  <jim@meyering.net>
68494
68495         Don't make generated files read-only.  That would bother too many
68496         people.  However, do retain the ability to work when targets are
68497         read-only: remove the destination and temporary files before writing
68498         them (when generated via sed or echo), or by using the -f option for
68499         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68500         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68501         * modules/byteswap, modules/configmake, modules/fcntl:
68502         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68503         * modules/localcharset, modules/netinet_in, modules/poll:
68504         * modules/stdbool, modules/stdint, modules/sys_select:
68505         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68506
68507 2006-09-08  Jim Meyering  <jim@meyering.net>
68508
68509         Avoid new build failure on FreeBSD 6.0.
68510         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68511         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68512         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68513
68514 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68515
68516         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68517
68518 2006-09-07  Jim Meyering  <jim@meyering.net>
68519
68520         Fix global typo in last change: use chmod u-w, not chmod u-x.
68521         Spotted by Paul Eggert and Bruce Korb.
68522         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68523         * modules/byteswap, modules/configmake, modules/fcntl:
68524         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68525         * modules/localcharset, modules/netinet_in, modules/poll:
68526         * modules/stdbool, modules/stdint, modules/sys_select:
68527         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68528
68529 2006-09-06  Jim Meyering  <jim@meyering.net>
68530
68531         Make generated files be read-only.
68532         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68533         Ensure that each generated file is now read-only.
68534         * modules/argz: Likewise.
68535         * modules/arpa_inet: Likewise.
68536         * modules/byteswap: Likewise.
68537         * modules/configmake: Likewise.
68538         * modules/fcntl: Likewise.
68539         * modules/fnmatch: Likewise.
68540         * modules/getopt: Likewise.
68541         * modules/glob: Likewise.
68542         * modules/inttypes: Likewise.
68543         * modules/netinet_in: Likewise.
68544         * modules/poll: Likewise.
68545         * modules/stdbool: Likewise.
68546         * modules/stdint: Likewise.
68547         * modules/sys_select: Likewise.
68548         * modules/sys_socket: Likewise.
68549         * modules/sys_stat: Likewise.
68550         * modules/sysexits: Likewise.
68551         * modules/localcharset: Same as above, but continue using temporary
68552         file named "t-$@" (why different?) rather than the "$@-t" used
68553         everywhere else.
68554
68555         * modules/sysexits (Makefile.am): Replace literal occurrences
68556         of "sysexit.h" more readable, and more consistent, "$@".
68557
68558 2006-09-06  Bruno Haible  <bruno@clisp.org>
68559
68560         * modules/striconv: New file.
68561         * modules/xstriconv: New file.
68562         * MODULES.html.sh (Internationalization functions): Add striconv,
68563         xstriconv.
68564
68565 2006-09-06  Bruno Haible  <bruno@clisp.org>
68566
68567         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68568         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68569         not using libtool correctly.
68570
68571 2006-09-06  Bruno Haible  <bruno@clisp.org>
68572
68573         * lib/striconv.h: New file.
68574         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68575         iconvstring.c.
68576         * lib/xstriconv.h: New file.
68577         * lib/xstriconv.c: New file.
68578
68579 2006-09-06  Bruno Haible  <bruno@clisp.org>
68580
68581         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68582         lib_..._LDFLAGS.
68583
68584 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68585
68586         * lib/argz_.h: Sync from Libtool.
68587
68588         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68589                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68590
68591         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68592
68593 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68594
68595         * modules/trim: New file.
68596
68597 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68598
68599         * lib/trim.h: New file.
68600         * lib/trim.c: New file.
68601
68602 2006-09-05  Bruno Haible  <bruno@clisp.org>
68603
68604         * MODULES.html.sh (String handling): Add trim.
68605
68606 2006-09-04  Karl Berry  <karl@gnu.org>
68607
68608         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68609         until next release.
68610
68611 2006-09-03  Bruno Haible  <bruno@clisp.org>
68612
68613         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68614         correctly.
68615
68616 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68617
68618         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68619         not gl_GETLOADAVG.  Omit unneeded semicolons.
68620         Problems reported by Ralf Wildenhues in
68621         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68622         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68623         at the end, which is the usual gnulib style.
68624
68625         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68626         of doing all the work ourselves.
68627         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68628         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68629
68630 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68631
68632         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68633         Problem reported by Ralf Wildenhues in
68634         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68635
68636         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68637         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68638
68639 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68640
68641         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68642         yesterday's patch by changing test -n to test -z.
68643
68644 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68647         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68648         the former is now obsolescent.
68649
68650         * modules/chdir-long (Depends-on): Add fcntl.
68651
68652 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68653
68654         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68655         obsolescent, and programs should use gnulib instead.
68656         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68657         but with prefixes changed.
68658
68659 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68660
68661         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68662         or stdbool.h, because they might not exist while configuring.
68663
68664         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68665         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68666         does that for us.
68667         (O_DIRECTORY): Remove.
68668
68669 2006-08-31  Eric Blake  <ebb9@byu.net>
68670
68671         * gnulib-tool: Don't let emacs change spaces to TAB.
68672
68673 2006-08-31  Bruno Haible  <bruno@clisp.org>
68674
68675         * gnulib-tool: When calling func_import more than once, do it in a
68676         subshell.
68677         Reported by Eric Blake <ebb9@byu.net>.
68678
68679 2006-08-31  Bruno Haible  <bruno@clisp.org>
68680
68681         * gnulib-tool (nl): Remove variable.
68682         (sed_transform_lib_file): Use more robust test for config-h module.
68683         (func_import): Fix typo in 2006-08-25 patch.
68684
68685 2006-08-31  Bruno Haible  <bruno@clisp.org>
68686
68687         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68688         specified, augment Makefile.am variables instead of assigning them.
68689
68690 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68691
68692         Work around a bug in both the Linux and SunOS 64-bit kernels:
68693         nanosleep mishandles sleeps for longer than 2**31 seconds.
68694         Problem reported by Frank v Waveren in
68695         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68696         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68697         Check for nanosleep bug.
68698         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68699
68700 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68701
68702         Work around a bug in both the Linux and SunOS 64-bit kernels:
68703         nanosleep mishandles sleeps for longer than 2**31 seconds.
68704         Problem reported by Frank v Waveren in
68705         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68706         * lib/nanosleep.c (BILLION): New constant.
68707         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68708         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68709         implementation.
68710
68711 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68712
68713         * modules/nanosleep (Depends-on): Add gettime.
68714
68715 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68716         and Simon Josefsson  <jas@extundo.com>
68717         and Oskar Liljeblad  <oskar@osk.mine.nu>
68718
68719         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68720         * gnulib-tool (func_import): New license type 'unmodifiable license
68721         text'.
68722         * modules/fdl: Use it.  Longer description.
68723         * module/gpl, module/lgpl: New files.
68724
68725 2006-08-30  Jim Meyering  <jim@meyering.net>
68726
68727         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68728         shadowing the parameter.
68729
68730 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68731
68732         Sync from Libtool:
68733
68734         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68735
68736         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68737         sharing with gnulib.  Report by Eric Blake.
68738
68739 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68740
68741         * modules/isapipe: New file.
68742         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68743
68744 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68745
68746         * modules/configmake (Makefile.am): Add a comment, and omit
68747         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68748         by Bruno Haible.
68749
68750 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68751
68752         * m4/isapipe.m4: New file.
68753
68754 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68755
68756         * lib/isapipe.c, lib/isapipe.h: New files.
68757
68758 2006-08-29  Jim Meyering  <jim@meyering.net>
68759
68760         * modules/configmake (Makefile.am): Make configmake.h depend on
68761         Makefile.  Otherwise, a stale configmake.h could hang around.
68762
68763 2006-08-29  Eric Blake  <ebb9@byu.net>
68764
68765         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68766         resolution of upstream bug 3044.
68767
68768 2006-08-29  Bruno Haible  <bruno@clisp.org>
68769
68770         * modules/localcharset (Depends-on): Add configmake.
68771         (Makefile.am): Remove setting of LIBDIR through DEFS.
68772
68773 2006-08-29  Bruno Haible  <bruno@clisp.org>
68774
68775         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68776         defined.
68777
68778 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         * modules/fcntl: New file.
68781         * modules/chdir-safer (Depends-on): Add fcntl.
68782         * modules/fts: Likewise.
68783         * modules/mkdir-p: Likewise.
68784
68785         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68786         This undoes the most recent change, since we're now addressing the
68787         problem in a different way.
68788
68789         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68790         into output, since the output might be called Makefile.am even
68791         if $makefile_name is something different.
68792         (func_import): Use $makefile_am rather than
68793         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68794         empty.
68795
68796         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68797
68798 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68799
68800         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68801         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68802         recent change to stdint.m4, since we're now addressing the problem in a
68803         different way.
68804
68805 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68806
68807         * m4/fcntl_h.m4: New file.
68808
68809 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68810
68811         * lib/fcntl_.h: New file.
68812         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68813         the fcntl module.
68814         * lib/dirchownmod.c: Likewise.
68815         * lib/fts.c: Likewise.
68816
68817         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68818         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68819         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68820         just before including <inttypes.h>, to avoid circular inclusion.
68821
68822 2006-08-28  Jim Meyering  <jim@meyering.net>
68823
68824         * doc/visibility.texi: Actually read and correct the grammar of the
68825         sentence affected by yesterday's change.
68826
68827 2006-08-28  Eric Blake  <ebb9@byu.net>
68828
68829         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68830         needs wrapper.
68831
68832 2006-08-28  Eric Blake  <ebb9@byu.net>
68833
68834         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68835
68836 2006-08-28  Eric Blake  <ebb9@byu.net>
68837
68838         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68839
68840 2006-08-28  Bruno Haible  <bruno@clisp.org>
68841
68842         * modules/c-strstr: New file, from GNU gettext.
68843         * MODULES.html.sh (String handling): Add c-strstr.
68844
68845 2006-08-28  Bruno Haible  <bruno@clisp.org>
68846
68847         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68848         macros.
68849         Reported by Eric Blake.
68850
68851 2006-08-28  Bruno Haible  <bruno@clisp.org>
68852
68853         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68854         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68855         * lib/vasprintf.c: Include errno.h, limits.h.
68856         (EOVERFLOW): New fallback definition.
68857         (vasprintf): Test here whether the string length is > INT_MAX.
68858         * lib/vsnprintf.c: Include errno.h, limits.h.
68859         (EOVERFLOW): New fallback definition.
68860         (vsnprintf): Fix bug when generated string was too long for the buffer.
68861         Test here whether the string length is > INT_MAX.
68862
68863 2006-08-28  Bruno Haible  <bruno@clisp.org>
68864
68865         * lib/inttypes_.h (SCNX*): Remove definitions.
68866         Reported by Eric Blake.
68867
68868 2006-08-28  Bruno Haible  <bruno@clisp.org>
68869
68870         * lib/c-strstr.h: New file, from GNU gettext.
68871         * lib/c-strstr.c: New file, from GNU gettext.
68872
68873 2006-08-28  Bruno Haible  <bruno@clisp.org>
68874
68875         * gnulib-tool: Reorder some statements.
68876
68877 2006-08-28  Bruno Haible  <bruno@clisp.org>
68878
68879         * gnulib-tool: New option --makefile-name.
68880         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68881         $makefile_name.
68882         (func_import): Write $makefile_name to the cache file, and read it from
68883         there unless explicitly specified. Use $makefile_name as file name
68884         instead of Makefile.am. Adjust the recommendations accordingly.
68885
68886 2006-08-28  Bruno Haible  <bruno@clisp.org>
68887
68888         * gnulib-tool (func_verify_module): Check against misapplying patch.
68889
68890 2006-08-28  Bruno Haible  <bruno@clisp.org>
68891
68892         * gnulib-tool (func_relativize, func_relconcat): New functions.
68893         Give an error if --local-dir is given with --update.
68894         Remove trailing slashes from $local_gnulib_dir.
68895         (func_import): Store the relativized $local_gnulib_dir in
68896         gnulib-cache.m4, and read it from there if not specified explicitly.
68897
68898 2006-08-28  Bruno Haible  <bruno@clisp.org>
68899
68900         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68901         is the current directory. Respect also $local_gnulib_dir.
68902
68903 2006-08-28  Bruno Haible  <bruno@clisp.org>
68904             Simon Josefsson  <jas@extundo.com>
68905
68906         BeOS portability.
68907         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68908
68909 2006-08-27  Jim Meyering  <jim@meyering.net>
68910
68911         * doc/visibility.texi: Remove duplicate word: "pointer".
68912
68913 2006-08-26  Bruno Haible  <bruno@clisp.org>
68914
68915         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68916         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68917         (Makefile.am): Create inttypes.h from inttypes_.h.
68918         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68919
68920         * modules/imaxabs: New file.
68921
68922         * modules/imaxdiv: New file.
68923
68924 2006-08-26  Bruno Haible  <bruno@clisp.org>
68925
68926         * m4/inttypes.m4: New file.
68927         * m4/_inttypes_h.m4: Remove file.
68928         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68929         PRI_MACROS_BROKEN.
68930         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68931
68932         * m4/imaxabs.m4: New file.
68933
68934         * m4/imaxdiv.m4: New file.
68935
68936 2006-08-26  Bruno Haible  <bruno@clisp.org>
68937
68938         * lib/inttypes_.h: New file.
68939         * lib/inttypes.h: Remove file.
68940         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68941
68942         * lib/imaxabs.c: New file.
68943
68944         * lib/imaxdiv.c: New file.
68945
68946 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68947
68948         New config-h module, so that "make" output needn't be cluttered
68949         by -DHAVE_CONFIG_H.
68950         * MODULES.html.sh (Support for building libraries and executables):
68951         Add config-h.
68952         * modules/config-h: New file.
68953         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68954         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68955         the config-h module is used.
68956
68957         New configmake module, so that "make" output needn't be cluttered
68958         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68959         * MODULES.html.sh (Support for building libraries and executables):
68960         Add configmake.
68961         * modules/configmake: New file.
68962
68963 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68964
68965         * m4/config-h.m4: New file.
68966
68967 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * config/srclist.txt: Add elisp-comp.
68970
68971 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68972
68973         * MODULES.html.sh (Support for building libraries and executables):
68974         Add elisp-comp.
68975         * build-aux/elisp-comp: New file.
68976         * modules/elisp-comp: New file.
68977
68978 2006-08-24  Bruno Haible  <bruno@clisp.org>
68979
68980         * gnulib-tool (func_create_testdir): Use non-default values of
68981         sourcebase and m4base.
68982
68983 2006-08-24  Bruno Haible  <bruno@clisp.org>
68984
68985         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68986         HTML structure.
68987
68988 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68989
68990         * modules/openat (Depends-on): Add lchown.
68991
68992 2006-08-23  Bruno Haible  <bruno@clisp.org>
68993
68994         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68995         of gl_LOCK_EARLY instead of gl_LOCK.
68996
68997 2006-08-23  Bruno Haible  <bruno@clisp.org>
68998
68999         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69000         on OSF/1 to no.
69001         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69002
69003 2006-08-23  Bruno Haible  <bruno@clisp.org>
69004
69005         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69006         as unusable.
69007
69008         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69009         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69010         (gl_LOCK): New macro.
69011
69012 2006-08-22  Simon Josefsson  <jas@extundo.com>
69013
69014         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69015         to md5 module.
69016
69017 2006-08-22  Simon Josefsson  <jas@extundo.com>
69018
69019         * MODULES.html.sh: Add "Support for maintaining and release
69020         projects".
69021
69022         * build-aux/gnupload: New file, from coreutils.
69023
69024 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69025
69026         Avoid the need for AC_LIBSOURCES in m4 macros.
69027         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69028         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69029         * modules/check-version (EXTRA_DIST): Add check-version.h.
69030         * modules/crc (EXTRA_DIST): Add crc.h.
69031         * modules/des (EXTRA_DIST): Add des.h.
69032         * modules/gc (EXTRA_DIST): Add gc.h.
69033         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69034         * modules/getline (EXTRA_DIST): Add getline.h.
69035         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69036         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69037         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69038         * modules/md2 (EXTRA_DIST): Add md2.h.
69039         * modules/md4 (EXTRA_DIST): Add md4.h.
69040         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69041         * modules/read-file (EXTRA_DIST): Add read-file.h.
69042         * modules/readline (EXTRA_DIST): Add readline.h.
69043         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69044         rijndael-api-fst.h.
69045
69046 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69047
69048         * m4/rijndael.m4 (gl_ARCFOUR):
69049         * m4/arctwo.m4 (gl_ARCTWO):
69050         * m4/check-version.m4 (gl_CHECK_VERSION):
69051         * m4/crc.m4 (gl_CRC):
69052         * m4/des.m4 (gl_DES):
69053         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69054         * m4/gc.m4 (gl_GC):
69055         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69056         * m4/getline.m4 (gl_FUNC_GETLINE):
69057         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69058         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69059         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69060         * m4/md2.m4 (gl_MD2):
69061         * m4/md4.m4 (gl_MD4):
69062         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69063         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69064         * m4/readline.m4 (gl_FUNC_READLINE):
69065         * m4/rijndael.m4 (gl_RIJNDAEL):
69066         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69067         to get the necessary .h files and whatnot.
69068
69069 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69072         gnulib rather than the other way around.
69073         * config/srclistvars.sh (COREUTILS): Remove.
69074
69075 2006-08-22  Jim Meyering  <jim@meyering.net>
69076
69077         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69078
69079         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69080
69081 2006-08-22  Eric Blake  <ebb9@byu.net>
69082
69083         * modules/regexprops-generic: New file.
69084         * MODULES.html.sh (Support for building documentation): List it.
69085
69086 2006-08-22  Eric Blake  <ebb9@byu.net>
69087
69088         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69089         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69090         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69091         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69092
69093 2006-08-22  Bruno Haible  <bruno@clisp.org>
69094
69095         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69096         and lib_LTLIBRARIES like the other lib_* variables.
69097
69098 2006-08-22  Bruno Haible  <bruno@clisp.org>
69099
69100         * build-aux/x-to-1.in: New file, from GNU gettext.
69101
69102 2006-08-22  Bruno Haible  <bruno@clisp.org>
69103
69104         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69105         <utmpx.h> exists.
69106
69107 2006-08-22  Bruno Haible  <bruno@clisp.org>
69108
69109         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69110         <utmpx.h> exists.
69111
69112 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69113
69114         BeOS portability.
69115         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69116         exist.
69117         Problem reported by Bruno Haible.
69118
69119 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69120
69121         Avoid the need for AC_LIBSOURCES in m4 macros.
69122         * modules/acl (EXTRA_DIST): Add acl.h.
69123         * modules/argmatch (Files): Add m4/argmatch.m4.
69124         (configure.ac): Add gl_ARGMATCH.
69125         (EXTRA_DIST): Renamed from lib_SOURCES, for
69126         consistency with the other modules.  Remove argmatch.c.
69127         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69128         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69129         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69130         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69131         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69132         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69133         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69134         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69135         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69136         * modules/closeout (EXTRA_DIST): Add closeout.h.
69137         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69138         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69139         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69140         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69141         dirname.h; remove basename.c and stripslash.c.
69142         * modules/exclude (EXTRA_DIST): Add exclude.h.
69143         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69144         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69145         * modules/file-type (EXTRA_DIST): Add file-type.h.
69146         * modules/filemode (EXTRA_DIST): Add filemode.h.
69147         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69148         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69149         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69150         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69151         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69152         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69153         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69154         * modules/getdate (EXTRA_DIST): Add getdate.c.
69155         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69156         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69157         * modules/getpass (EXTRA_DIST): Add getpass.h.
69158         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69159         * modules/group-member (EXTRA_DIST): Add group-member.h.
69160         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69161         * modules/hash (EXTRA_DIST): Add hash.h.
69162         * modules/human (EXTRA_DIST): Add human.h.
69163         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69164         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69165         * modules/lchown (EXTRA_DIST): Add lchown.h.
69166         * modules/long-options (EXTRA_DIST): Add long-options.h.
69167         * modules/lstat (EXTRA_DIST): Add lstat.h.
69168         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69169         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69170         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69171         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69172         * modules/memxor (EXTRA_DIST): Add memxor.h.
69173         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69174         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69175         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69176         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69177         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69178         * modules/physmem (EXTRA_DIST): Add physmem.h.
69179         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69180         * modules/posixver (EXTRA_DIST): Add posixver.h.
69181         * modules/quote (EXTRA_DIST): Add quote.h.
69182         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69183         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69184         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69185         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69186         regex_internal.h regexec.c.
69187         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69188         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69189         * modules/same (EXTRA_DIST): Add same.h.
69190         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69191         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69192         * modules/savedir (EXTRA_DIST): Add savedir.h.
69193         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69194         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69195         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69196         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69197         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69198         * modules/strdup (EXTRA_DIST): Add strdup.h.
69199         * modules/strftime (EXTRA_DIST): Add strftime.h.
69200         * modules/strndup (EXTRA_DIST): Add strndup.h.
69201         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69202         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69203         * modules/time_r (EXTRA_DIST): Add time_r.h.
69204         * modules/timespec (EXTRA_DIST): Add timespec.h.
69205         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69206         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69207         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69208         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69209         * modules/userspec (EXTRA_DIST): Add userspec.h.
69210         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69211         * modules/utimens (EXTRA_DIST): Add utimens.h.
69212         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69213         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69214         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69215         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69216         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69217         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69218         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69219         * modules/yesno (EXTRA_DIST): Add yesno.h.
69220
69221 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69222
69223         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69224
69225         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69226         * m4/dev-ino.m4, same-inode.m4: Remove.
69227
69228         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69229         * m4/acl.m4 (AC_FUNC_ACL):
69230         * m4/backupfile.m4 (gl_BACKUPFILE):
69231         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69232         * m4/canon-host.m4 (gl_CANON_HOST):
69233         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69234         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69235         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69236         * m4/cloexec.m4 (gl_CLOEXEC):
69237         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69238         * m4/closeout.m4 (gl_CLOSEOUT):
69239         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69240         * m4/dirname.m4 (gl_DIRNAME):
69241         * m4/exclude.m4 (gl_EXCLUDE):
69242         * m4/exitfail.m4 (gl_EXITFAIL):
69243         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69244         * m4/file-type.m4 (gl_FILE_TYPE):
69245         * m4/filemode.m4 (gl_FILEMODE):
69246         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69247         * m4/fpending.m4 (gl_FUNC_FPENDING):
69248         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69249         * m4/fts.m4 (gl_FUNC_FTS):
69250         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69251         * m4/getdate.m4 (gl_GETDATE):
69252         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69253         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69254         * m4/getpass.m4 (gl_FUNC_GETPASS):
69255         * m4/gettime.m4 (gl_GETTIME):
69256         * m4/getugroups.m4 (gl_GETUGROUPS):
69257         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69258         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69259         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69260         * m4/hash.m4 (gl_HASH):
69261         * m4/idcache.m4 (gl_IDCACHE):
69262         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69263         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69264         * m4/long-options.m4 (gl_LONG_OPTIONS):
69265         * m4/lstat.m4 (gl_FUNC_LSTAT):
69266         * m4/md5.m4 (gl_MD5):
69267         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69268         * m4/memcoll.m4 (gl_MEMCOLL):
69269         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69270         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69271         * m4/memxor.m4 (gl_MEMXOR):
69272         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69273         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69274         * m4/modechange.m4 (gl_MODECHANGE):
69275         * m4/mountlist.m4 (gl_MOUNTLIST):
69276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69277         * m4/openat.m4 (gl_FUNC_OPENAT):
69278         * m4/pathmax.m4 (gl_PATHMAX):
69279         * m4/physmem.m4 (gl_PHYSMEM):
69280         * m4/posixtm.m4 (gl_POSIXTM):
69281         * m4/posixver.m4 (gl_POSIXVER):
69282         * m4/quote.m4 (gl_QUOTE):
69283         * m4/quotearg.m4 (gl_QUOTEARG):
69284         * m4/readtokens.m4 (gl_READTOKENS):
69285         * m4/readutmp.m4 (gl_READUTMP):
69286         * m4/regex.m4 (gl_REGEX):
69287         * m4/safe-read.m4 (gl_SAFE_READ):
69288         * m4/safe-write.m4 (gl_SAFE_WRITE):
69289         * m4/same.m4 (gl_SAME):
69290         * m4/save-cwd.m4 (gl_SAVE_CWD):
69291         * m4/savedir.m4 (gl_SAVEDIR):
69292         * m4/settime.m4 (gl_SETTIME):
69293         * m4/sha1.m4 (gl_SHA1):
69294         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69295         * m4/stat-macros.m4 (gl_STAT_MACROS):
69296         * m4/stat-time.m4 (gl_STAT_TIME):
69297         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69298         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69299         * m4/strdup.m4 (gl_FUNC_STRDUP):
69300         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69301         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69302         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69303         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69304         * m4/time_r.m4 (gl_TIME_R):
69305         * m4/timespec.m4 (gl_TIMESPEC):
69306         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69307         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69308         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69309         * m4/userspec.m4 (gl_USERSPEC):
69310         * m4/utimecmp.m4 (gl_UTIMECMP):
69311         * m4/utimens.m4 (gl_UTIMENS):
69312         * m4/xalloc.m4 (gl_XALLOC):
69313         * m4/xgetcwd.m4 (gl_XGETCWD):
69314         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69315         * m4/xreadlink.m4 (gl_XREADLINK):
69316         * m4/xstrtod.m4 (gl_XSTRTOD):
69317         * m4/yesno.m4 (gl_YESNO):
69318         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69319         to get the necessary .h files and whatnot.
69320
69321 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69322             Bruno Haible  <bruno@clisp.org>
69323
69324         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69325         /bin/sh understanding of '!' conditional negation.
69326
69327 2006-08-21  Jim Meyering  <jim@meyering.net>
69328
69329         * modules/openat (Depends-on): Really alphabetize.
69330
69331         * modules/acl (Depends-on): Add error and quote.
69332
69333         * check-module (find_included_lib_files): Add at-func.c to the
69334         ok-to-include-more-than-once white list.
69335
69336         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69337
69338 2006-08-21  Bruno Haible  <bruno@clisp.org>
69339
69340         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69341         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69342         Reported by Martin Lambers <marlam@marlam.de>.
69343
69344 2006-08-21  Bruno Haible  <bruno@clisp.org>
69345
69346         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69347         specify an installation location, don't emit a noinst_LIBRARIES or
69348         noinst_LTLIBRARIES assignment.
69349
69350 2006-08-21  Bruno Haible  <bruno@clisp.org>
69351
69352         BeOS portability.
69353         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69354         BeOS has mbrtowc() but no <wctype.h>.
69355
69356 2006-08-21  Bruno Haible  <bruno@clisp.org>
69357
69358         BeOS portability.
69359         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69360         exist.
69361
69362 2006-08-21  Bruno Haible  <bruno@clisp.org>
69363
69364         BeOS portability.
69365         * lib/mbchar.h: Include <wctype.h> only if it exists.
69366
69367 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69368
69369         Remove files that are no longer needed by their respective modules.
69370         * m4/obstack.m4: Remove.
69371         * m4/strerror_r.m4: Remove.
69372         * m4/uint32_t.m4: Remove.
69373         * m4/uintptr_t.m4: Remove.
69374         * m4/ullong_max.m4: Remove.
69375         * m4/xstrtoimax.m4: Remove.
69376         * m4/xstrtoumax.m4: Remove.
69377
69378         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69379         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69380         dependencies now capture this.
69381
69382         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69383         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69384         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69385         * m4/human.m4 (gl_HUMAN): Likewise.
69386         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69387         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69388
69389         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69390
69391         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69392         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69393         stdint.
69394         * m4/human.m4 (gl_HUMAN): Likewise.
69395         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69396         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69397         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69398         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69399         * m4/xstrtol (gl_XSTRTOL): Likewise.
69400
69401         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69402         AC_TYPE_LONG_LONG_INT.
69403         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69404         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69405         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69406         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69407
69408         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69409         on stdbool.
69410
69411         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69412         (gl_PREREQ_XSTRTOUL): Remove.
69413
69414         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69415
69416         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69417         mode.
69418
69419 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69420
69421         Add and change modules to make it easier for coreutils to use
69422         gnulib-tool.
69423         * modules/backupfile (Files): Remove m4/d-ino.m4.
69424         (Depends-on): Add d-ino.
69425         * modules/cycle-check (Depends-on): Add stdint.
69426         (lib_SOURCES): Add cycle-check.h.
69427         * modules/d-ino: New module.
69428         * modules/d-type: New module.
69429         * modules/error (Files): Remove m4/strerror_r.m4.
69430         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69431         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69432         m4/inttypes_h.m4, m4/uintmax_t.m4.
69433         (Depends-on): Add stdint.
69434         (lib_SOURCES): Add fsusage.h.
69435         * modules/getcwd (Files): Remove d-ino.m4.
69436         (Depends-on): Add d-ino.
69437         * modules/getndelim2 (Depends-on): Add stdint.
69438         * modules/glob (Files): Remove m4/d-type.m4.
69439         (Depends-on): Add d-type.
69440         * modules/host-os: New module.
69441         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69442         m4/inttypes_h.m4, m4/uintmax_t.m4.
69443         * Depends-on: Add stdint.
69444         (lib_SOURCES): Add human.h.
69445         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69446         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69447         m4/uintmax_t.m4, m4/ulonglong.m4.
69448         (Depends-on): Add stdint.
69449         (EXTRA_DIST): Add inttostr.h.
69450         * modules/lchmod: New module.
69451         * modules/link-follow: New module.
69452         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69453         (Depends-on): Add lchmod.
69454         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69455         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69456         (Depends-on): Add stdint.
69457         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69458         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69459         (Depends-on): Add stdint.
69460         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69461         * modules/perl: New module.
69462         * modules/regex (Depends-on): Add stdint.
69463         * modules/rmdir-errno: New module.
69464         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69465         m4/intmax_t.m4.
69466         (Depends-on): Add stdint.
69467         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69468         m4/uintmax_t.m4.
69469         (Depends-on): Add stdint.
69470         * modules/unlink-busy: New module.
69471         * modules/utimecmp (Depends-on): Add stdint.
69472         * modules/uptime: New module.
69473         * modules/winsz-ioctl: New module.
69474         * modules/winsz-termios: New module.
69475         * modules/xnanosleep (Depends-on): Add nanosleep.
69476         * modules/ullong_max: Remove.
69477         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69478         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69479         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69480         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69481         (Depends-on): Add inttypes.
69482         (lib_SOURCES): Add xstrtol.h.
69483         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69484         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69485         * MODULES.html.sh: Move 'assert' into the assert section.
69486         Move 'dummy' into the linking section.
69487         Remove ullong_max.
69488         Add section for compatibility checks for POSIX:2001 functions,
69489         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69490         winsz-ioctl, and winsz-termios into it.
69491         Add lchmod.
69492         Add top-level Misc section and put host-os, perl, and uptime
69493         into it.
69494
69495 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69496
69497         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69498         now assume the stdint module.  Do not include inttypes.h.
69499         * lib/fsusage.h: Likewise.
69500         * lib/getndelim2.c: Likewise.
69501         * lib/human.h: Likewise.
69502         * lib/inttostr.h: Likewise.
69503         * lib/obstack.c: Likewise.
69504         * lib/regex_internal.h: Likewise.
69505         * lib/tempname.c: Likewise.
69506         * lib/utimecmp.c: Likewise.
69507         * lib/xstrtol.h: Likewise.
69508
69509         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69510
69511         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69512         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69513         * lib/xtime.h: Likewise.
69514
69515 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69516
69517         * modules/openat (Files): Add lib/fchmodat.c.
69518         Fixes problem reported by Jay Youngman.
69519
69520 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69521
69522         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69523         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69524
69525 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69526             Bruno Haible  <bruno@clisp.org>
69527
69528         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69529         and is a script that invokes bison. Tighten the code. Add comments.
69530
69531 2006-08-18  Jim Meyering  <jim@meyering.net>
69532
69533         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69534         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69535         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69536         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69537
69538 2006-08-18  Bruno Haible  <bruno@clisp.org>
69539
69540         * modules/bison-i18n: New file.
69541         * MODULES.html.sh (Internationalization functions): Add it.
69542
69543 2006-08-18  Bruno Haible  <bruno@clisp.org>
69544
69545         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69546         sys/statvfs.h. When getmntinfo was found, check its declaration and
69547         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69548
69549 2006-08-18  Bruno Haible  <bruno@clisp.org>
69550
69551         * m4/bison-i18n.m4: New file, from bison.
69552
69553 2006-08-18  Bruno Haible  <bruno@clisp.org>
69554
69555         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69556         (ME_DUMMY): Treat "kernfs" as a dummy.
69557         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69558
69559 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69560
69561         Update from coreutils.
69562
69563         2006-08-15  Jim Meyering  <jim@meyering.net>
69564
69565         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69566
69567         2006-01-17  Jim Meyering  <jim@meyering.net>
69568
69569         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69570
69571         2006-01-11  Jim Meyering  <jim@meyering.net>
69572
69573         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69574         Check for the lchmod function.
69575
69576 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69577
69578         Update from coreutils.
69579
69580         * lib/__fpending.h: Add copyright notice.
69581         * lib/fprintftime.h: Likewise.
69582         * lib/savedir.c: Use (C) in copyright notice.
69583         * lib/savedir.h: Likewise.
69584
69585         2006-08-15  Jim Meyering  <jim@meyering.net>
69586
69587         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69588         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69589         in support of the EXPECTED_ERRNO macro.
69590         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69591         definitions.  Instead, define the appropriate symbols and include
69592         "at-func.c".
69593         * lib/mkdirat.c (mkdirat): Likewise.
69594         * lib/fchmodat.c (fchmodat): Likewise.
69595         (ENOSYS): Remove definition.
69596         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69597         it.  Don't include "unistd--.h" -- it wasn't ever used.
69598
69599         2006-01-17  Jim Meyering  <jim@meyering.net>
69600
69601         Rewrite fts.c not to change the current working directory,
69602         by using openat, fstatat, fdopendir, etc..
69603
69604         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69605         (HAVE_OPENAT_SUPPORT): Define.
69606         [_LIBC] (fchdir): Don't undef or define; no longer used.
69607         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69608         Now, this `function' always succeeds, and consumes its file descriptor
69609         parameter -- so callers must not close such FDs.  Update callers.
69610         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69611         (diropen): Add parameter, SP.  Adjust all callers.
69612         Implement using diropen_fd, rather than open.
69613         (fts_open): Initialize new member, fts_cwd_fd.
69614         Remove fts_rft-setting code.
69615         (fts_close): Close fts_cwd_fd, if necessary.
69616         (__opendir2): Define in terms of opendir or opendirat,
69617         depending on whether the FST_NOCHDIR flag is set.
69618         (fts_build): Since fts_safe_changedir consumes its FD, and since
69619         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69620         and close the dup'd file descriptor upon failure.
69621         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69622         (fts_safe_changedir): Tweak semantics to reflect that this function
69623         now calls cwd_advance_fd and hence consumes its FD argument.
69624         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69625         [struct FTS] (fts_rft): Remove now-unused member.
69626         [struct FTS] (fts_cycle.state): Improve comment.
69627
69628         * lib/openat.c (openat_needs_fchdir): New function.
69629         * lib/openat.h (openat_needs_fchdir): Declare it.
69630
69631 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69632
69633         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69634         Problem and fix reported by Pádraig Brady in
69635         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69636
69637 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69638
69639         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69640
69641 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69642
69643         * lib/memcoll.c (memcoll): Optimize for the common case where the
69644         arguments are bytewise equal.
69645
69646 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69647
69648         * doc/regexprops-generic.texi: Add a copyright notice.
69649
69650 2006-08-15  Bruno Haible  <bruno@clisp.org>
69651
69652         * modules/tmpdir (License): Change to LGPL.
69653
69654 2006-08-15  Bruno Haible  <bruno@clisp.org>
69655
69656         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69657         module.
69658
69659 2006-08-14  Simon Josefsson  <jas@extundo.com>
69660
69661         * config/srclist.txt: Add gnupload.
69662
69663 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69664
69665         Change copyright notice from LGPL 2 to GPL 2, since that's the
69666         standard form used in the gnulib repository.
69667         * tests/test-lock.c: Likewise.
69668         * tests/test-stdint.c: Likewise.
69669         * tests/test-tls.c: Likewise.
69670
69671         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69672         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69673         Add copyright notice.
69674
69675         * check-module: Add copyright notice.  Output a copyright
69676         notice if "--version" is specified.
69677         * modules/COPYING: New file.
69678         * tests/test-getaddrinfo.c: Add copyright notice.
69679         * tests/test-verify.c: Likewise.
69680
69681 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69682
69683         Change copyright notice from LGPL 2 to GPL 2, since that's the
69684         standard form used in the gnulib repository.
69685         * lib/lock.c: LGPL -> GPL.
69686         * lib/lock.h: Likewise.
69687         * lib/strnlen1.c: Likewise.
69688         * lib/strnlen1.h: Likewise.
69689         * lib/tls.c: Likewise.
69690         * lib/tls.h: Likewise.
69691         * lib/tmpdir.c: Likewise.
69692
69693         * lib/TODO: Remove; this belongs only in coreutils.
69694
69695 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69696
69697         Add copyright notices to long-enough files that lack them, since
69698         otherwise the files aren't clearly free.  Use the same notice that
69699         getdate.texi already uses.
69700         * doc/alloca-opt.texi: Add copyright notice.
69701         * doc/alloca.texi: Likewise.
69702         * doc/ctime.texi: Likewise.
69703         * doc/functions.texi: Likewise.
69704         * doc/gcd.texi: Likewise.
69705         * doc/gnulib-tool.texi: Likewise.
69706         * doc/inet_ntoa.texi: Likewise.
69707         * doc/visibility.texi: Likewise.
69708
69709         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69710         * doc/quote.texi: Add copyright notice.
69711
69712         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69713         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69714         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69715         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69716         is now obsolete, and give a pointer to the Sun list.
69717         Add copyright notice.
69718
69719 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69720
69721         * config/srclistvars.sh: Add copyright notice.
69722
69723 2006-08-14  Eric Blake  <ebb9@byu.net>
69724
69725         Import the following change from libc:
69726
69727         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69728
69729         Upstream bug 2997.
69730         * lib/misc/error.c: Add space between program name and message if file
69731         name is missing.
69732
69733 2006-08-12  Karl Berry  <karl@gnu.org>
69734
69735         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69736         remove, these originate in gnulib now.
69737
69738 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69739
69740         * doc/Makefile (standards.info standards.html standards.dvi):
69741         Also depend on make-stds.texi.
69742
69743 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69744
69745         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69746         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69747
69748         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69749         in wchar_t.  Problem reported by Eric Blake.
69750
69751         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69752         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69753         Also, help the compiler to keep LEN in a register.
69754
69755 2006-08-11  Eric Blake  <ebb9@byu.net>
69756
69757         * users.txt: Sort.  Add tar.
69758
69759 2006-08-11  Bruno Haible  <bruno@clisp.org>
69760
69761         * users.txt: New file.
69762
69763 2006-08-11  Bruno Haible  <bruno@clisp.org>
69764
69765         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69766         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69767
69768 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69769
69770         * modules/snprintf (Depends-on): Remove minmax.
69771         (Maintainer): Add self and Bruno.
69772
69773 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69774
69775         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69776         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69777         (EOVERFLOW): Define if the system does not.
69778         Do not include "minmax.h"; it wasn't used.
69779         (snprintf): Don't assume size_t promotes to an unsigned type.
69780         Fix bug when generated string was too long for the buffer: the
69781         buffer's contents are supposed to be the initial prefix of the
69782         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69783         exceeds INT_MAX; do the check ourselves.
69784
69785         Import the following changes from libc:
69786
69787         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69788
69789         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69790         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69791         set wc to the byte which couldn't be converted.
69792         (re_string_reconstruct): Don't clear valid_raw_len before calling
69793         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69794         tip_context using re_string_context_at.
69795
69796         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69797
69798         * lib/posix/regex.h: g++ still cannot handled [restrict].
69799
69800         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69801
69802         * lib/posix/regex.h: Remove special handling for VMS.
69803
69804 2006-08-10  Jim Meyering  <jim@meyering.net>
69805
69806         * modules/same-inode: New module.
69807         * modules/dev-ino: New module.
69808         * modules/cycle-check: Depend on these modules, rather than simply
69809         including their .h files.
69810         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69811         required via m4/cycle-check.m4.
69812         * modules/same: Depend on new same-inode module, rather than
69813         including same-inode.h.
69814         * modules/chdir-safer: New file.
69815
69816         * modules/chown (Depends-on): Add stat-macros.
69817
69818 2006-08-10  Jim Meyering  <jim@meyering.net>
69819
69820         * m4/cycle-check.m4: New file.
69821         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69822         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69823
69824 2006-08-10  Eric Blake  <ebb9@byu.net>
69825
69826         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69827         in from original proposal.
69828
69829 2006-08-10  Eric Blake  <ebb9@byu.net>
69830         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69831
69832         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69833         namespace.
69834
69835 2006-08-10  Bruno Haible  <bruno@clisp.org>
69836
69837         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69838         as well.
69839
69840 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69841
69842         Sync from coreutils.
69843
69844         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69845
69846         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69847         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69848
69849 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69850
69851         * modules/restrict: Remove; no longer needed now that we assume
69852         Autoconf 2.59 or later.
69853         * MODULES.html.sh: Remove 'restrict'.
69854         * modules/argp (Depends-on): Remove 'restrict'.
69855         * modules/base64 (Depends-on): Likewise.
69856         * modules/gc (Depends-on): Likewise.
69857         * modules/getaddrinfo (Depends-on): Likewise.
69858         * modules/glob (Depends-on): Likewise.
69859         * modules/inet_ntop (Depends-on): Likewise.
69860         * modules/inet_pton (Depends-on): Likewise.
69861         * modules/memxor (Depends-on): Likewise.
69862         * modules/regex (Depends-on): Likewise.
69863         * modules/strtok_r (Depends-on): Likewise.
69864         * modules/time_r (Depends-on): Likewise.
69865
69866 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69867
69868         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69869         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69870         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69871         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69872         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69873         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69874         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69875         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69876
69877         Merge from coreutils.
69878         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69879         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69880         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69881         * m4/time_r.m4 (gl_TIME_R): Likewise.
69882
69883 2006-08-09  Karl Berry  <karl@gnu.org>
69884
69885         * config/srclist.txt: no more gettext-tools, per Bruno.
69886
69887 2006-08-08  Eric Blake  <ebb9@byu.net>
69888
69889         * modules/verror: New module.
69890         * MODULES.html.sh: Document it.
69891
69892 2006-08-08  Eric Blake  <ebb9@byu.net>
69893
69894         * lib/verror.h, lib/verror.c: New files.
69895
69896 2006-08-08  Eric Blake  <ebb9@byu.net>
69897
69898         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69899         verror_at_line output complies with GNU Coding Standards even when
69900         file is NULL.
69901
69902 2006-08-07  Bruno Haible  <bruno@clisp.org>
69903
69904         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69905         versions of AIX.
69906         Reported by Ralf Wildenhues.
69907
69908 2006-08-07  Bruno Haible  <bruno@clisp.org>
69909
69910         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69911         in an AC_DEFUN. Needed so that the autoconf snippets can use
69912         AC_REQUIRE.
69913
69914 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69915
69916         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69917         Initialize pkgdata_DATA.
69918         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69919         overriding it.
69920
69921 2006-08-06  Eric Blake  <ebb9@byu.net>
69922
69923         * lib/error.h: Fold in some upstream changes from glibc.
69924         * lib/error.c: Likewise.
69925
69926 2006-08-04  Bruno Haible  <bruno@clisp.org>
69927
69928         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69929         Make the mostlyclean-local rule depend on mostlyclean-generic.
69930         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69931
69932 2006-07-31  Bruno Haible  <bruno@clisp.org>
69933
69934         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69935         <stdlib.h>, <string.h>.
69936
69937 2006-07-30  Bruno Haible  <bruno@clisp.org>
69938
69939         * modules/readlink (License): Change to LGPL.
69940
69941 2006-07-30  Bruno Haible  <bruno@clisp.org>
69942
69943         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69944         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69945         set PKGDATADIR to point to it.
69946
69947 2006-07-30  Bruno Haible  <bruno@clisp.org>
69948
69949         * modules/csharpexec (configure.ac): Comment out macro invocation.
69950         * modules/javaexec (configure.ac): Likewise.
69951         * modules/javacomp-script (configure.ac): Likewise.
69952
69953         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69954
69955 2006-07-30  Bruno Haible  <bruno@clisp.org>
69956
69957         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69958         linked-list.
69959
69960 2006-07-30  Bruno Haible  <bruno@clisp.org>
69961
69962         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69963
69964 2006-07-30  Bruno Haible  <bruno@clisp.org>
69965
69966         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69967         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69968         get removed.
69969
69970 2006-07-29  Bruno Haible  <bruno@clisp.org>
69971
69972         Make it possible for gnulib-tool to work with locally modified or
69973         augmented gnulib repositories.
69974         * gnulib-tool (func_usage): Document --local-dir option.
69975         (local_gnulib_dir): New variable.
69976         Handle --local-dir option.
69977         (func_lookup_file): New function.
69978         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69979         (func_get_description, func_get_filelist, func_get_description,
69980         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69981         func_get_automake_snippet, func_get_include_directive,
69982         func_get_license, func_get_maintainer): Use func_lookup_file.
69983         (func_import, func_create_testdir): Use func_lookup_file.
69984
69985 2006-07-29  Bruno Haible  <bruno@clisp.org>
69986
69987         * modules/setenv (Depends-on): Add unistd.
69988
69989 2006-07-29  Bruno Haible  <bruno@clisp.org>
69990
69991         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69992
69993 2006-07-29  Bruno Haible  <bruno@clisp.org>
69994
69995         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69996
69997 2006-07-29  Bruno Haible  <bruno@clisp.org>
69998
69999         * gnulib-tool (import, update): If there is no Makefile.am, look at
70000         aclocal.m4, instead of bailing out.
70001
70002 2006-07-29  Bruno Haible  <bruno@clisp.org>
70003
70004         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70005         Categorize the options by when they are useful.
70006
70007 2006-07-29  Bruno Haible  <bruno@clisp.org>
70008
70009         * gnulib-tool (func_usage): Document option --no-libtool.
70010         Handle option --no-libtool.
70011         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70012         for changed semantics of $libtool variable.
70013         (func_import): Likewise. If libtool is not used, show this through
70014         an option --no-libtool.
70015         (func_create_testdir): Update.
70016
70017 2006-07-29  Bruno Haible  <bruno@clisp.org>
70018
70019         * gnulib-tool (func_import): Extend error message about missing
70020         --doc-base.
70021
70022 2006-07-29  Bruno Haible  <bruno@clisp.org>
70023
70024         * gnulib-tool (func_import): Don't create the $docbase directory if
70025         there is no file to store there.
70026
70027 2006-07-29  Bruno Haible  <bruno@clisp.org>
70028
70029         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70030         relevant, look for configure.ac there, not in the current directory.
70031         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70032
70033 2006-07-29  Bruno Haible  <bruno@clisp.org>
70034
70035         * gnulib-tool (SORT): New variable.
70036         (func_usage): Undocument --assume-autoconf option.
70037         Remove --assume-autoconf option handling.
70038         (autoconf_minversion): Determine from the contents of configure.ac.
70039         (func_import): Remove autoconf_minversion handling.
70040         Suggested by Eric Blake.
70041
70042 2006-07-29  Bruno Haible  <bruno@clisp.org>
70043
70044         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70045
70046 2006-07-29  Bruno Haible  <bruno@clisp.org>
70047
70048         * config/srclist.txt (*setenv.[ch]): Remove rules.
70049
70050 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70051
70052         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70053
70054 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70055
70056         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70057         arpa/inet.h.
70058
70059 2006-07-28  Simon Josefsson  <jas@extundo.com>
70060
70061         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70062         * modules/inet_pton (Depends-on): Likewise.
70063
70064 2006-07-28  Simon Josefsson  <jas@extundo.com>
70065
70066         * m4/netinet_in_h.m4: New file.
70067
70068 2006-07-28  Simon Josefsson  <jas@extundo.com>
70069
70070         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70071         #include's.
70072
70073 2006-07-28  Simon Josefsson  <jas@extundo.com>
70074
70075         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70076         #include's.
70077
70078 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70079
70080         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70081         setgid on directories only if they set these bits.
70082         * lib/modechange.h: Remove obsolete comment about masks.
70083
70084 2006-07-28  Eric Blake  <ebb9@byu.net>
70085
70086         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70087         macro expansion.
70088
70089 2006-07-28  Bruno Haible  <bruno@clisp.org>
70090
70091         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70092
70093 2006-07-28  Bruno Haible  <bruno@clisp.org>
70094
70095         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70096
70097 2006-07-28  Bruno Haible  <bruno@clisp.org>
70098
70099         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70100         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70101         Define fallbacks.
70102         Avoids link error on FreeBSD 4.x.
70103         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70104
70105         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70106         encoding.
70107         * lib/mbswidth.c (iswcntrl): Likewise.
70108
70109 2006-07-27  Bruno Haible  <bruno@clisp.org>
70110
70111         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70112         test.
70113
70114 2006-07-27  Bruno Haible  <bruno@clisp.org>
70115
70116         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70117         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70118         defined.
70119
70120 2006-07-26  Eric Blake  <ebb9@byu.net>
70121
70122         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70123
70124 2006-07-26  Eric Blake  <ebb9@byu.net>
70125
70126         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70127         like mingw that lack mkstemp.
70128         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70129         avoid compilation warning on mingw.
70130
70131 2006-07-26  Bruno Haible  <bruno@clisp.org>
70132
70133         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70134         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70135         INT_FAST*_MIN, INTPTR_MIN.
70136
70137 2006-07-25  Bruno Haible  <bruno@clisp.org>
70138
70139         * modules/version-etc (Depends-on): Add stdarg.
70140
70141 2006-07-25  Bruno Haible  <bruno@clisp.org>
70142
70143         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70144         complex commands.
70145
70146 2006-07-25  Bruno Haible  <bruno@clisp.org>
70147
70148         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70149         defined in <stdarg.h> or config.h.
70150
70151 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70152
70153         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70154         (gl_STDIO_SAFER): Remove.
70155
70156 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70157
70158         * MODULES.html.sh (File stream based Input/Output):
70159         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70160         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70161         * modules/fopen-safer, modules/tmpfile-safer: New files.
70162         * modules/stdio-safer: Remove.
70163
70164 2006-07-24  Bruno Haible  <bruno@clisp.org>
70165
70166         * modules/tmpdir: New file.
70167         * MODULES.html.sh (File system functions): Add it.
70168
70169 2006-07-24  Bruno Haible  <bruno@clisp.org>
70170
70171         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70172         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70173
70174 2006-07-24  Bruno Haible  <bruno@clisp.org>
70175
70176         * modules/clean-temp: New file.
70177
70178 2006-07-24  Bruno Haible  <bruno@clisp.org>
70179
70180         * m4/tmpdir.m4: New file, from GNU gettext.
70181
70182 2006-07-24  Bruno Haible  <bruno@clisp.org>
70183
70184         * lib/tmpdir.h: New file, from GNU gettext.
70185         * lib/tmpdir.c: New file, from GNU gettext.
70186
70187 2006-07-24  Bruno Haible  <bruno@clisp.org>
70188
70189         * lib/clean-temp.h: New file, from GNU gettext.
70190         * lib/clean-temp.c: New file, from GNU gettext.
70191
70192 2006-07-23  Eric Blake  <ebb9@byu.net>
70193
70194         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70195         (Depends-on): Add binary-io.
70196
70197 2006-07-23  Eric Blake  <ebb9@byu.net>
70198
70199         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70200
70201 2006-07-23  Eric Blake  <ebb9@byu.net>
70202
70203         * lib/tmpfile-safer.c: New file.
70204         * lib/stdio-safer.h (fopen_safer): Add prototype.
70205         * lib/stdio--.h (tmpfile): Make safer.
70206
70207 2006-07-23  Bruno Haible  <bruno@clisp.org>
70208
70209         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70210         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70211         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70212         gl_linked_remove_at): Use it.
70213
70214 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70215         and Simon Josefsson <jas@extundo.com>
70216
70217         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70218
70219         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70220
70221 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70222
70223         * modules/close-stream: New file.
70224         * modules/closeout (Description): Make it clear that it exits
70225         with a diagnostic on error.
70226         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70227         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70228
70229 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70230
70231         * m4/close-stream.m4: New file.
70232
70233 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70234
70235         * lib/close-stream.c, lib/close-stream.h: New files.
70236
70237 2006-07-22  Bruno Haible  <bruno@clisp.org>
70238
70239         Merge from GNU gettext 0.15.
70240
70241         2006-05-01  Bruno Haible  <bruno@clisp.org>
70242
70243                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70244
70245         2006-07-22  Bruno Haible  <bruno@clisp.org>
70246
70247                 * modules/javaversion: New file.
70248                 * MODULES.html.sh (Java): Add javaversion.
70249
70250         2006-03-12  Bruno Haible  <bruno@clisp.org>
70251
70252                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70253
70254         2005-12-04  Bruno Haible  <bruno@clisp.org>
70255
70256                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70257                 (untested).
70258
70259         2006-06-21  Bruno Haible  <bruno@clisp.org>
70260
70261                 Avoid warnings from recent versions of mcs.
70262                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70263                 -o, -L, -r any more. Use options documented since mcs-1.0
70264                 instead. Similarly for -g.
70265
70266         2005-12-04  Bruno Haible  <bruno@clisp.org>
70267
70268                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70269                 .resources, not .resource.
70270
70271         2005-07-09  Bruno Haible  <bruno@clisp.org>
70272
70273                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70274                 add a .dll suffix.
70275                 Reported by Mark Junker <mjscod@gmx.de>.
70276
70277         2006-07-22  Bruno Haible  <bruno@clisp.org>
70278
70279                 * modules/gettext: Upgrade to gettext-0.15.
70280                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70281                 m4/visibility.m4.
70282                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70283
70284 2006-07-22  Bruno Haible  <bruno@clisp.org>
70285
70286         Merge from GNU gettext 0.15.
70287
70288         2006-03-25  Bruno Haible  <bruno@clisp.org>
70289
70290                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70291
70292         2006-07-21  Bruno Haible  <bruno@clisp.org>
70293
70294                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70295                 "1.1".
70296
70297         2006-05-09  Bruno Haible  <bruno@clisp.org>
70298
70299                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70300                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70301                 for the conftestver execution.
70302
70303         2006-05-01  Bruno Haible  <bruno@clisp.org>
70304
70305                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70306                 optional target-version argument. Verify that the compiler
70307                 groks source of the specified source-version, or add -source
70308                 option as necessary. Verify that the compiler produces
70309                 bytecode in the specified target-version, or add -target and
70310                 -source options as necessary. Make the result of the test
70311                 available as variable CONF_JAVAC. Also log error output in
70312                 config.log.
70313
70314         2006-03-11  Bruno Haible  <bruno@clisp.org>
70315
70316                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70317
70318         2006-05-09  Bruno Haible  <bruno@clisp.org>
70319
70320                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70321                 CLASSPATH_SEPARATOR to a semicolon.
70322
70323         2006-03-12  Bruno Haible  <bruno@clisp.org>
70324
70325                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70326                 available as variable CONF_JAVA, for subsequent autoconf
70327                 tests. Also log error output in config.log.
70328
70329         2006-07-19  Bruno Haible  <bruno@clisp.org>
70330
70331                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70332                 that getline works on glibc2 systems. Needed to avoid trouble
70333                 in relocatable.c.
70334                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70335
70336         2005-12-04  Bruno Haible  <bruno@clisp.org>
70337
70338                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70339                 launcher (untested).
70340
70341         2005-12-04  Bruno Haible  <bruno@clisp.org>
70342
70343                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70344
70345         2006-07-22  Bruno Haible  <bruno@clisp.org>
70346
70347                 * gettext.m4: Update from GNU gettext-0.15.
70348                 * nls.m4: Likewise.
70349                 * po.m4: Likewise.
70350                 * inttypes-pri.m4: Likewise.
70351                 * inttypes-h.m4: Renamed from inttypes.m4.
70352                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70353
70354 2006-07-22  Bruno Haible  <bruno@clisp.org>
70355
70356         Merge from GNU gettext 0.15.
70357
70358         2005-07-05  Bruno Haible  <bruno@clisp.org>
70359
70360                 * printf-args.c (printf_fetchargs): Work around broken
70361                 definition of wint_t on mingw.
70362
70363         2005-02-12  Bruno Haible  <bruno@clisp.org>
70364
70365                 * xallocsa.h: Add extern "C" for C++.
70366
70367         2006-05-17  Bruno Haible  <bruno@clisp.org>
70368
70369                 Cygwin portability.
70370                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70371
70372         2006-04-30  Bruno Haible  <bruno@clisp.org>
70373
70374                 * progreloc.c: Include <mach-o/dyld.h> if available.
70375                 (find_executable): Use _NSGetExecutablePath when possible.
70376
70377         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70378
70379                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70380                 function.
70381
70382         2005-12-29  Bruno Haible  <bruno@clisp.org>
70383
70384                 * progreloc.c (set_program_name_and_installdir): Fix
70385                 compilation error.
70386
70387         2005-12-04  Bruno Haible  <bruno@clisp.org>
70388
70389                 Cygwin portability.
70390                 * progreloc.c: Include <windows.h> also on Cygwin.
70391                 (find_executable): Add support for Cygwin.
70392                 (set_program_name_and_installdir): Handle also platforms with
70393                 nonempty EXEEXT.
70394
70395         2006-07-11  Bruno Haible  <bruno@clisp.org>
70396
70397                 * javacomp.c: Fix a comment.
70398                 Reported by Jim Meyering.
70399
70400         2006-04-30  Bruno Haible  <bruno@clisp.org>
70401
70402                 * javacomp.h (compile_java_class): Add source_version,
70403                 target_version arguments.
70404                 * javacomp.c: Rewritten to choose only a compiler that
70405                 respects the specified source_version and target_version.
70406
70407         2006-06-27  Bruno Haible  <bruno@clisp.org>
70408
70409                 Assume correct S_ISDIR macro.
70410                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70411
70412         2006-07-22  Bruno Haible  <bruno@clisp.org>
70413
70414                 * javaversion.h: New file, from GNU gettext.
70415                 * javaversion.c: New file, from GNU gettext.
70416                 * javaversion.java: New file, from GNU gettext.
70417                 * javaversion.class: New file, from GNU gettext.
70418
70419         2006-05-17  Bruno Haible  <bruno@clisp.org>
70420
70421                 Cygwin portability.
70422                 * javaexec.c (execute_java_class): Test for jview program
70423                 also on Cygwin.
70424
70425         2006-04-09  Bruno Haible  <bruno@clisp.org>
70426
70427                 * fatal-signal.c: Don't include string.h.
70428                 (at_fatal_signal): Use a copying loop instead of memcpy.
70429
70430         2005-12-04  Bruno Haible  <bruno@clisp.org>
70431
70432                 * csharpexec.c: Add support for 'clix' launcher (untested).
70433                 (execute_csharp_using_sscli): New function.
70434                 (execute_csharp_program): Call it.
70435
70436         2006-06-21  Bruno Haible  <bruno@clisp.org>
70437
70438                 Avoid warnings from recent versions of mcs.
70439                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70440                 -o, -L, -r any more. Use options documented since mcs-1.0
70441                 instead. Similarly for -g.
70442
70443         2005-07-09  Bruno Haible  <bruno@clisp.org>
70444
70445                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70446                 add a .dll suffix.
70447                 Reported by Mark Junker <mjscod@gmx.de>.
70448
70449         2006-06-17  Bruno Haible  <bruno@clisp.org>
70450
70451                 * config.charset: Update for NetBSD 3.0.
70452
70453         2006-05-17  Bruno Haible  <bruno@clisp.org>
70454
70455                 Cygwin portability.
70456                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70457
70458         2006-05-16  Bruno Haible  <bruno@clisp.org>
70459
70460                 * localcharset.c [CYGWIN]: Include <windows.h>.
70461                 (get_charset_aliases): For Cygwin, return the same CPxxx
70462                 aliases list as under WIN32.
70463                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70464                 the environment variables. Fall back to GetACP().
70465
70466         2006-04-05  Bruno Haible  <bruno@clisp.org>
70467
70468                 * config.charset: Update Juan Manuel Guerrero's address.
70469
70470         2005-02-12  Bruno Haible  <bruno@clisp.org>
70471
70472                 * allocsa.h: Add extern "C" for C++.
70473
70474         2005-02-10  Bruno Haible  <bruno@clisp.org>
70475
70476                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70477                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70478
70479         2006-07-22  Bruno Haible  <bruno@clisp.org>
70480
70481                 * gettext.h: Update to GNU gettext-0.15.
70482
70483 2006-07-22  Bruno Haible  <bruno@clisp.org>
70484
70485         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70486         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70487         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70488
70489 2006-07-21  Eric Blake  <ebb9@byu.net>
70490
70491         * modules/stdlib-safer: New file.
70492         * MODULES.html.sh (File stream based Input/Output): Add
70493         stdlib-safer.
70494
70495 2006-07-21  Eric Blake  <ebb9@byu.net>
70496
70497         * lib/stdlib-safer.h: New file from coreutils, required by
70498         stdlib--.h.
70499
70500 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70501
70502         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70503
70504 2006-07-20  Bruno Haible  <bruno@clisp.org>
70505
70506         * gnulib-tool: Recognize new option --assume-autoconf.
70507         (autoconf_minversion): New variable.
70508         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70509
70510 2006-07-20  Bruno Haible  <bruno@clisp.org>
70511
70512         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70513
70514 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70515
70516         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70517         Reindent and repaginate.
70518
70519 2006-07-19  Derek Price  <derek@ximbiot.com>
70520
70521         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70522         Correct grammar.
70523
70524 2006-07-17  Bruno Haible  <bruno@clisp.org>
70525
70526         * modules/list: New file.
70527         * modules/array-list: New file.
70528         * modules/carray-list, modules/carray-list-tests: New files.
70529         * modules/linked-list, modules/linked-list-tests: New files.
70530         * modules/avltree-list, modules/avltree-list-tests: New files.
70531         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70532         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70533         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70534         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70535         * modules/oset: New file.
70536         * modules/array-oset: New file.
70537         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70538         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70539         * tests/test-carray_list.c: New file.
70540         * tests/test-linked_list.c: New file.
70541         * tests/test-avltree_list.c: New file.
70542         * tests/test-rbtree_list.c: New file.
70543         * tests/test-linkedhash_list.c: New file.
70544         * tests/test-avltreehash_list.c: New file.
70545         * tests/test-rbtreehash_list.c: New file.
70546         * tests/test-avltree_oset.c: New file.
70547         * tests/test-rbtree_oset.c: New file.
70548         * MODULES.html.sh (Container data structures): New section.
70549
70550 2006-07-17  Bruno Haible  <bruno@clisp.org>
70551
70552         * m4/gl_list.m4: New file.
70553
70554 2006-07-17  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/gl_list.h: New file.
70557         * lib/gl_list.c: New file.
70558         * lib/gl_array_list.h: New file.
70559         * lib/gl_array_list.c: New file.
70560         * lib/gl_carray_list.h: New file.
70561         * lib/gl_carray_list.c: New file.
70562         * lib/gl_linked_list.h: New file.
70563         * lib/gl_linked_list.c: New file.
70564         * lib/gl_anylinked_list1.h: New file.
70565         * lib/gl_anylinked_list2.h: New file.
70566         * lib/gl_avltree_list.h: New file.
70567         * lib/gl_avltree_list.c: New file.
70568         * lib/gl_anyavltree_list1.h: New file.
70569         * lib/gl_anyavltree_list2.h: New file.
70570         * lib/gl_rbtree_list.h: New file.
70571         * lib/gl_rbtree_list.c: New file.
70572         * lib/gl_anyrbtree_list1.h: New file.
70573         * lib/gl_anyrbtree_list2.h: New file.
70574         * lib/gl_anytree_list1.h: New file.
70575         * lib/gl_anytree_list2.h: New file.
70576         * lib/gl_linkedhash_list.h: New file.
70577         * lib/gl_linkedhash_list.c: New file.
70578         * lib/gl_anyhash_list1.h: New file.
70579         * lib/gl_anyhash_list2.h: New file.
70580         * lib/gl_avltreehash_list.h: New file.
70581         * lib/gl_avltreehash_list.c: New file.
70582         * lib/gl_rbtreehash_list.h: New file.
70583         * lib/gl_rbtreehash_list.c: New file.
70584         * lib/gl_anytreehash_list1.h: New file.
70585         * lib/gl_anytreehash_list2.h: New file.
70586
70587         * lib/gl_oset.h: New file.
70588         * lib/gl_oset.c: New file.
70589         * lib/gl_array_oset.h: New file.
70590         * lib/gl_array_oset.c: New file.
70591         * lib/gl_avltree_oset.h: New file.
70592         * lib/gl_avltree_oset.c: New file.
70593         * lib/gl_rbtree_oset.h: New file.
70594         * lib/gl_rbtree_oset.c: New file.
70595         * lib/gl_anytree_oset.h: New file.
70596
70597 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70598
70599         * m4/mkancesdirs.m4: New file.
70600         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70601         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70602         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70603         it.
70604
70605 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70606
70607         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70608         * lib/mkancesdirs.h: New files.
70609         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70610         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70611         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70612         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70613         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70614         callers changed.  Revamp internals significantly, by not
70615         attempting to create directories that are temporarily more
70616         permissive than the final results.  Do not attempt to use
70617         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70618         This removes some race conditions, fixes some bugs, and simplifies
70619         things.  Use new dirchownmod function to do owner and mode changes.
70620         * lib/mkdir-p.h: Likewise.
70621         * lib/modechange.c (octal_to_mode): New function.
70622         (struct mode_change): New member mentioned.
70623         (make_node_op_equals): New arg mentioned.  All callers changed.
70624         (mode_compile): Keep track of which mode bits the user has explicitly
70625         mentioned.
70626         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70627         New arg PMODE_BITS, to keep track of which mode bits the user
70628         mentioned; it treats S_ISUID and S_ISGID speciall.
70629         All callers changed.
70630         * lib/modechange.h: Likewise.
70631
70632 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70633
70634         * MODULES.html.sh: Add mkancestors.
70635         * modules/mkancesdirs: New module.
70636         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70637         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70638         The chdir-safer and afs files are now orphans; I'll remove them
70639         unless someone speaks up.
70640         Add lib/dirchownmod.c, lib/dirchownmod.h.
70641         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70642         Add lchown, mkancesdirs.
70643         (Maintainer): Add self.
70644
70645 2006-07-15  Karl Berry  <karl@gnu.org>
70646
70647         * gnulib-tool: help message wording/arrangement.
70648
70649 2006-07-14  Simon Josefsson  <jas@extundo.com>
70650
70651         * doc/gnulib.texi (Libtool and Windows): New section.
70652
70653 2006-07-12  Simon Josefsson  <jas@extundo.com>
70654
70655         * modules/gendocs (License): Fix license, approved by Karl.
70656
70657 2006-07-12  Eric Blake  <ebb9@byu.net>
70658
70659         * MODULES.html.sh: Add gendocs.
70660
70661 2006-07-11  Eric Blake  <ebb9@byu.net>
70662
70663         * modules/fdl: New module, to install doc/fdl.texi.
70664         * MODULES.html.sh: Add new section for documentation modules.
70665         * gnulib-tool: Avoid space-tab.
70666         (--doc-base): New option, to manage files from doc.
70667
70668 2006-07-11  Eric Blake  <ebb9@byu.net>
70669
70670         * m4/absolute-header.m4: Fix comments to match recent change.
70671
70672 2006-07-11  Eric Blake  <ebb9@byu.net>
70673
70674         * gnulib-tool: List --doc-base before --tests-base.
70675
70676 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70677
70678         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70679
70680 2006-07-11  Bruno Haible  <bruno@clisp.org>
70681
70682         * README: Mention where to put documentation.
70683
70684 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70685
70686         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70687
70688 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70689
70690         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70691         to stdint.m4.
70692
70693 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70694
70695         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70696         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70697         "no/such/file/stdint.h" when there is no such file, so that
70698         the resulting C code can be parsed by dodgy compilers.
70699         Problems reported by Bob Proulx.
70700
70701 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70702
70703         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70704         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70705         macros into the GNU _D_EXACT_NAMLEN.
70706         * lib/savedir.c:  Likewise.
70707         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70708
70709 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70710         and Paul Eggert  <eggert@cs.ucla.edu>
70711
70712         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70713         * m4/savedir.m4:
70714         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70715         macros into the GNU _D_EXACT_NAMLEN.
70716
70717 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70720         around the absolute name, to work around a problem with the HP-UX
70721         11.23 native C compiler, reported by Bob Proulx.
70722
70723 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         * doc/maintain.texi, make-stds.texi: Sync from
70726         <http://savannah.gnu.org/projects/gnustandards>.
70727
70728 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70731
70732 2006-07-09  Jim Meyering  <jim@meyering.net>
70733
70734         * m4/glob.m4: Remove a doubled word in a comment.
70735
70736 2006-07-09  Jim Meyering  <jim@meyering.net>
70737
70738         * lib/argp-pv.c: Remove a doubled word in a comment.
70739         * lib/check-version.c (check_version): Likewise.
70740         * lib/javacomp.c (compile_java_class): Likewise.
70741
70742 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70743
70744         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70745         for the benefit of people using Autoconf 2.60.  If you want to
70746         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70747         (or m4/onceonly.m4, if pre-2.57) manually.
70748
70749 2006-07-08  Jim Meyering  <jim@meyering.net>
70750
70751         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70752         comment.
70753         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70754         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70755         comment.
70756
70757 2006-07-08  Jim Meyering  <jim@meyering.net>
70758
70759         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70760
70761 2006-07-07  Simon Josefsson  <jas@extundo.com>
70762
70763         * tests/test-crc.c: Change expected crc value, the test vector
70764         were probably computed using the old broken crc.c?
70765
70766 2006-07-06  Simon Josefsson  <jas@extundo.com>
70767
70768         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70769         now the canonical place for the M4 file).
70770
70771         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70772         from the sys_socket dependency now.
70773
70774         * modules/inet_pton (Files): Ditto.
70775
70776         * modules/inet_ntop (Files): Ditto.
70777
70778 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70779
70780         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70781         not gl_PREREQ_GETUSERSHELL.
70782
70783 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70784
70785         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70786         with only one argument, for Autoconf 2.60.
70787         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70788         expand to nothing, so add a shell command to avoid syntax error.
70789         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70790
70791 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70792
70793         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70794
70795 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70796
70797         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70798         no longer needed.  Check for isblank decl.
70799         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70800         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70801         of existence.
70802
70803 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70804
70805         * lib/getloadavg.c: Use __VMS, not VMS.
70806         * lib/getopt.c: Likewise.
70807         * lib/getpagesize.h: Likewise.
70808         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70809         and probably does not work.
70810
70811 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70812
70813         * lib/.cppi-disable: Add wcwidth.
70814         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70815         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70816         (ISGRAPH): Remove.  All uses changed to isgraph.
70817         (FOLD) [!defined _LIBC]: Remove special case.
70818         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70819         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70820         HAVE_ISBLANK.
70821         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70822         case.
70823
70824 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70825
70826         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70827         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70828         brackets.  Other minor changes to suppress some compiler
70829         warnings.
70830
70831 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70832         and Paul Eggert  <eggert@cs.ucla.edu>
70833
70834         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70835         of invoking obsolescent AC_HEADER_DIRENT macro.
70836         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70837         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70838         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70839         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70840         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70841         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70842         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70843         * m4/readdir.m4: Remove; no longer needed.
70844
70845 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70846         and Paul Eggert  <eggert@cs.ucla.edu>
70847
70848         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70849         Don't worry about this obsolete case any more.
70850         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70851         directories.
70852         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70853         worry about this obsolete case any more.
70854         * lib/fts.c: Likewise.
70855         * lib/getcwd.c: Likewise.
70856         * lib/glob.h: Likewise.
70857         * lib/savedir.c: Likewise.
70858
70859 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70860
70861         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70862         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70863         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70864         needed.
70865         All uses removed.
70866         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70867         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70868         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70869         needed.
70870         * m4/getdate.m4 (gl_GETDATE): Likewise.
70871         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70872         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70873         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70874         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70875         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70876         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70877         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70878         needed.
70879
70880 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70881
70882         * lib/memcasecmp.c: Include <limits.h>.
70883         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70884         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70885         Don't assume isdigit succeeds only on '0' through '9'.
70886
70887 2006-07-05  Eric Blake  <ebb9@byu.net>
70888
70889         * modules/getaddrinfo (Depends-on): Add snprintf.
70890
70891 2006-07-05  Eric Blake  <ebb9@byu.net>
70892
70893         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70894         to avoid 'header present but could not be compiled' on cygwin.
70895
70896 2006-07-05  Eric Blake  <ebb9@byu.net>
70897
70898         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70899         missing from netdb.h.
70900         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70901
70902 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70903
70904         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70905         no longer needed.
70906         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70907         * m4/getdate.m4 (gl_GETDATE): Likewise.
70908         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70909         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70910         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70911         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70912         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70913
70914 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70915
70916         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70917         All uses of is_space replaced by isspace.
70918         * lib/exit.h: Don't talk about STDC_HEADERS.
70919         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70920         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70921         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70922         replaced by isprint etc.
70923         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70924         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70925         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70926         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70927         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70928         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70929
70930 2006-07-05  Bruno Haible  <bruno@clisp.org>
70931
70932         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70933         the function exists, before testing against AIX.
70934         Reported by Martin Lambers <marlam@marlam.de>.
70935
70936 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70937
70938         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70939         From Mark D. Baushke.
70940
70941 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70942
70943         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70944         to the absolute name, not just one, to bypass Sun C 5.8's
70945         "warning: #include of /usr/include/... may be non-portable".
70946
70947 2006-07-04  Eric Blake  <ebb9@byu.net>
70948
70949         * modules/dirname-tests: New test module.
70950         * tests/test-dirname.c: New file, replacing dirname.c
70951         TEST_DIRNAME section that was recently deleted.
70952
70953 2006-07-04  Bruno Haible  <bruno@clisp.org>
70954
70955         Assume ANSI C header files and <ctype.h> functions.
70956         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70957         (mbsnwidth): Use isprint, iscntrl instead.
70958
70959 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70960
70961         Merge from coreutils.
70962         * MODULES.html.sh: Add xstrtold.
70963         * modules/xstrtold: New file.
70964         * modules/cycle-check (Files): Add lib/same-inode.h.
70965         * modules/dirname (Files): Add m4/double-slash-root.m4.
70966         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70967         * modules/mkdir-p (Files): Add lib/same-inode.h.
70968         * modules/same (Files): Add lib/same-inode.h.
70969
70970 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70971
70972         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70973         This is to keep the terminology clean; POSIX talks about
70974         "absolute pathnames", not "full pathnames", but the GNU
70975         Coding Standards say to use "path" for something else;
70976         so use "absolute" to keep both sides happy.
70977         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70978         Set gl_absolute_header, not gl_full_header_path.
70979         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70980         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70981         All uses changed.
70982
70983         Merge from coreutils.
70984
70985         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70986
70987         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70988         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70989         want to require the building of c-strtod.o.
70990         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70991         needs -lm directly.
70992         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70993
70994         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70995
70996         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70997         --as-needed option if available.  Problem reported by Albert Chin in
70998         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70999         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71000         cc merely issues a bunch of annoying warnings for --as-needed
71001         (this problem was reported by Bob Proulx).  Also, try linking with
71002         -lm to detect a bug in binutils 2.16 (this problem was reported
71003         by Ralf Wildenhues).
71004
71005         2006-06-18  Jim Meyering  <jim@meyering.net>
71006
71007         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71008         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71009         macro.
71010         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71011         also check for glibc-2.4's abort-inducing bug.
71012
71013         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71014         Low-probability clean-up should be to use rmdir to get rid of
71015         the just-created directory, not unlink.
71016
71017         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71018         configure fail, and request a bug report to inform us about it.
71019         Add a comment that, barring reports to the contrary, in 2007 we'll
71020         assume ftruncate is universally available.
71021
71022         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71023
71024         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71025
71026         2006-03-12  Jim Meyering  <jim@meyering.net>
71027
71028         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71029         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71030         * m4/same.m4 (gl_SAME): Likewise.
71031         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71032
71033         2006-03-11  Eric Blake  <ebb9@byu.net>
71034
71035         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71036         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71037         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71038         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71039
71040 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71041
71042         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71043         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71044         reported by Mark D. Baushke, one in
71045         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71046
71047         Merge from coreutils.
71048
71049         * lib/.cppi-disable: Add stdint_.h.
71050         * lib/.cvsignore: Add stdint.h.
71051
71052         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71053
71054         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71055         both double and long double versions.
71056         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71057         * lib/xstrtold.c: New file.
71058         * lib/xstrtod.h (xstrtold): New decl.
71059
71060         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71061
71062         * lib/filemode.c (setst): Remove.
71063         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71064         (arguably) clearer, and the generated code is a bit smaller on my
71065         Debian GNU/Linux stable x86 host.
71066
71067         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71068
71069         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71070         Assume that filemode.h includes sys/types.h and sys/stat.h.
71071         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71072         (ftypelet): Reorder to put common cases first, for efficiency.
71073         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71074         to do 'M'.
71075         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71076         of 10, for compatibility with FreeBSD.  All callers changed.
71077         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71078         types that can't be deduced solely from st_mode.  First arg is now a
71079         const pointer.
71080         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71081         (strmode): Renamed from mode_string.
71082         (filemodestring): New decl.
71083         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71084         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71085         needed.
71086         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71087
71088         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71091         fsusage.h now does that.  Include fsusage.h first, to test interface.
71092         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71093         at most one method (the old code could have generated decls that
71094         didn't conform to C89, not that this was ever exercised).
71095         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71096
71097         2006-03-19  Jim Meyering  <jim@meyering.net>
71098
71099         Work even in a chroot where d_ino values for entries in "/"
71100         don't match the stat.st_ino values for the same names.
71101         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71102         number, iterate through all entries again, using lstat instead.
71103         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71104         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71105
71106         * lib/getcwd.c (__getcwd): Clarify a comment.
71107         Use memcpy in place of a call to strcpy.
71108
71109         2006-03-12  Jim Meyering  <jim@meyering.net>
71110
71111         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71112         matches that of the current directory (which we're about to chdir ".."
71113         out of), then save the dev-ino of the parent, instead.
71114
71115         * lib/same-inode.h (SAME_INODE): New file/macro.
71116         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71117         Include "same-inode.h", instead.
71118         * lib/same.c: Likewise.
71119         * lib/cycle-check.h: Include "same-inode.h".
71120         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71121         * lib/cycle-check.c (SAME_INODE): Remove definition.
71122         * lib/root-dev-ino.h: Include "same-inode.h".
71123
71124         2006-03-11  Eric Blake  <ebb9@byu.net>
71125
71126         * lib/same.c (same_name): s/base_name/last_component/
71127         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71128         * lib/filenamecat.c (file_name_concat): Likewise.
71129
71130         2006-03-11  Eric Blake  <ebb9@byu.net>,
71131                     Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71134         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71135         drive prefix.
71136         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71137         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71138         (last_component): New method.
71139         * lib/dirname.c (dir_len): Determine when drive letters need a
71140         subsequent slash.  Preserve // when it is special.
71141         (dir_name): Don't append dot when drive letter is absolute.
71142         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71143         * lib/basename.c (base_name): New semantics - malloc the result.
71144         Preserve // when it is special.  Preserve relative files that look
71145         like drive letters.
71146         (base_len): Preserve // when it is special.
71147         (last_component): New method, similar to old base_name semantics.
71148         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71149         base_name.  Strip redundant slashes from ///.
71150
71151 2006-07-03  Jim Meyering  <jim@meyering.net>
71152
71153         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71154         macro is used before the first cycle_check call.
71155
71156 2006-07-03  Eric Blake  <ebb9@byu.net>
71157
71158         * modules/dirname (Depends-on): Add xstrndup.
71159
71160 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71161
71162         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71163         test cases, so that config.log is a bit easier to follow.
71164
71165 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71166
71167         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71168         both are 64 bits, since this seems to be the tradition, and this
71169         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71170         we ever run into a host that prefers long long to long in this
71171         case, we'll need another configure-time test.  Problem reported by
71172         Jim Meyering.
71173
71174 2006-07-02  Eric Blake  <ebb9@byu.net>
71175
71176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71177
71178 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71179
71180         * modules/inttypes (Depends-on): No longer depends on stdint.
71181         * modules/stdint (Description): Say more about assumptions.
71182         Say that the fast types might differ.  Say macros are used.
71183         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71184         (Makefile.am): Revise list of substituted symbols to match
71185         new stdint.m4.
71186         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71187         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71188         * tests/test-stdint.c (verify_same_types)
71189         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71190         the code conforms to C99/C89.
71191         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71192         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71193
71194 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71195
71196         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71197         but fix a bug, by requiring at least 64 bits.
71198         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71199         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71200         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71201         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71202
71203         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71204         changes.  Make 2.59 a prerequisite.  Check and substitute for
71205         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71206         inttypes.h.  Do not use special include files; just use the
71207         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71208         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71209         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71210         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71211         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71212         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71213         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71214         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71215         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71216         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71217         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71218         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71219         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71220         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71221         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71222         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71223         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71224         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71225         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71226         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71227         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71228         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71229         not check for things that C99 does not require, e.g., int8_t.  If
71230         a test isn't needed unless <stdint.h> isn't working, and is
71231         unlikely to be needed for any other reason, then don't do it
71232         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71233         size_t, since we assume C89 freestanding at least.  Do not check
71234         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71235         the right thing even if the types are not defined.  Instead use:
71236         (gl_STDINT_TYPE_PROPERTIES): New macro.
71237         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71238         testing whether <sys/types.h> clashes, as Autoconf does this for
71239         us now.  All uses removed.
71240         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71241         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71242         (gl_CHECK_TYPE_SAME):
71243         Remove; no longer needed.
71244         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71245         exists, since we'll return 0 anyway in that case.
71246         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71247
71248 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71249
71250         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71251         possible collision with system files.
71252         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71253         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71254         WCHAR_MIN and WCHAR_MAX in this case.
71255         (<stddef.h>): Do not include; no longer needed.
71256         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71257         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71258         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71259         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71260         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71261         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71262         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71263         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71264         !defined(__c99))]: Include in this case too, since it's harmless
71265         now.
71266         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71267         dangerous to do so.
71268         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71269         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71270         (_STDINT_MIN, _STDINT_MAX): New macros.
71271         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71272         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71273         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71274         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71275         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71276         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71277         macros, not typedefs; this simplifies things quite a bit.
71278         Use long int for all types narrower than int64_t.
71279         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71280         Define in terms of long long int or int64_t or long int,
71281         not int64_t or int32_t.  This saves some compile-time testing.
71282         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71283         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71284         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71285         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71286         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71287         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71288         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71289         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71290         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71291         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71292         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71293         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71294         undef any previous version and define our own version, for
71295         simplicity and consistency with the new macros for types.
71296         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71297         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71298         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71299         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71300         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71301         @WINT_T_SUFFIX@ to keep things simple here.
71302         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71303         Simplify by assuming typical 8/16/32/64 host, since we're
71304         already doing that elsewhere anyway.
71305         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71306         and assume long long int is 64 bits if available.  This
71307         speeds up 'configure'.
71308
71309 2006-07-01  Eric Blake  <ebb9@byu.net>
71310
71311         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71312         Reported by Andreas Buening.
71313
71314 2006-07-01  Eric Blake  <ebb9@byu.net>
71315
71316         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71317
71318 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71319
71320         * lib/getaddrinfo.c: fixed typo
71321
71322 2006-06-29  Jim Meyering  <jim@meyering.net>
71323
71324         * modules/strftime (Maintainer): Add my name, since with the
71325         FPRINTFTIME changes strftime.c has forked from glibc.
71326
71327 2006-06-29  Eric Blake  <ebb9@byu.net>
71328
71329         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71330
71331 2006-06-29  Eric Blake  <ebb9@byu.net>
71332
71333         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71334
71335 2006-06-29  Eric Blake  <ebb9@byu.net>
71336
71337         * lib/stat_.h: New file.
71338
71339 2006-06-29  Eric Blake  <ebb9@byu.net>
71340
71341         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71342         unused static function.
71343
71344 2006-06-29  Eric Blake  <ebb9@byu.net>
71345
71346         * doc/functions.texi (Function Portability): Document missing lstat
71347         on mingw.
71348
71349 2006-06-29  Eric Blake  <ebb9@byu.net>
71350
71351         * MODULES.html.sh: Add sys_stat.
71352         * modules/sys_stat: New module.
71353         * modules/mkstemp (Depends-on): Add sys_stat.
71354
71355 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71356
71357         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71358
71359 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71360
71361         * m4/c-bs-a.m4: Removed.
71362
71363 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71364
71365         * lib/strftime.c: Assume strftime() exists.
71366
71367 2006-06-29  Derek Price  <derek@ximbiot.com>
71368
71369         * modules/c-bs-a: Removed - \a is C89.
71370         * MODULES.html.sh: Remove c-bs-a.
71371
71372 2006-06-29  Bruno Haible  <bruno@clisp.org>
71373
71374         * modules/wcwidth (License): Change to LGPL.
71375
71376 2006-06-28  Simon Josefsson  <jas@extundo.com>
71377
71378         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71379         on _WIN32.
71380
71381         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71382         getnameinfo.
71383
71384 2006-06-28  Simon Josefsson  <jas@extundo.com>
71385
71386         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71387
71388 2006-06-28  Simon Josefsson  <jas@extundo.com>
71389
71390         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71391         functions there.  It will succeed on Windows XP, but on Windows
71392         2000 and (presumably) earlier, it will fail, and use the internal
71393         re-implementation.
71394         (use_win32_p): New function.
71395         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71396         Support AI_NUMERICSERV to disable getservbyname.
71397         (getnameinfo): New function, only supports
71398         NI_NUMERICHOST|NI_NUMERICSERV for now.
71399
71400         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71401         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71402         getnameinfo.
71403
71404 2006-06-28  Eric Blake  <ebb9@byu.net>
71405
71406         * modules/wcwidth: New file.
71407         * modules/mbchar (Depends-on): Add wcwidth.
71408         * modules/mbswidth (Depends-on): Add wcwidth.
71409         * MODULES.html.sh: Add wcwidth.
71410
71411 2006-06-28  Eric Blake  <ebb9@byu.net>
71412
71413         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71415
71416 2006-06-28  Eric Blake  <ebb9@byu.net>
71417
71418         * lib/xvasprintf.h: Fix comments.
71419
71420 2006-06-28  Eric Blake  <ebb9@byu.net>
71421
71422         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71423         * lib/mbswidth.c (wcwidth): Move from here...
71424         * lib/wcwidth.h: ...to this new file.
71425
71426 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71427
71428         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71429
71430         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71431         it's obsolete.
71432         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71433
71434 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71435
71436         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71437         Autoconf 2.60 says this stuff was obsolete.
71438
71439 2006-06-28  Bruno Haible  <bruno@clisp.org>
71440
71441         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71442
71443 2006-06-28  Bruno Haible  <bruno@clisp.org>
71444
71445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71446         gt_TYPE_WCHAR_T.
71447
71448 2006-06-28  Bruno Haible  <bruno@clisp.org>
71449
71450         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71451         declaration for wcwidth.
71452         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71453
71454 2006-06-28  Bruno Haible  <bruno@clisp.org>
71455
71456         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71457         (mkdir): Define using _mkdir.
71458
71459 2006-06-28  Bruno Haible  <bruno@clisp.org>
71460
71461         * lib/getaddrinfo.h: Fix POSIX URL.
71462         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71463         _WIN32.
71464         (use_win32_p): Make static.
71465         (getaddrinfo): Reject service name if it is empty or does not consist
71466         solely of decimal digits, or if its value is > 65535.
71467         (getnameinfo): Remove useless casts.
71468
71469 2006-06-27  Simon Josefsson  <jas@extundo.com>
71470
71471         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71472         Eggert and Martin Lambers.
71473
71474 2006-06-27  Simon Josefsson  <jas@extundo.com>
71475
71476         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71477         Eggert and Martin Lambers.
71478
71479 2006-06-27  Bruno Haible  <bruno@clisp.org>
71480
71481         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71482         result to 0, not to empty.
71483         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71484
71485 2006-06-27  Bruno Haible  <bruno@clisp.org>
71486
71487         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71488
71489 2006-06-26  Simon Josefsson  <jas@extundo.com>
71490
71491         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71492         present.
71493
71494 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71495
71496         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71497         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71498         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71499
71500 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71501
71502         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71503
71504 2006-06-26  Bruno Haible  <bruno@clisp.org>
71505
71506         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71507
71508 2006-06-26  Bruno Haible  <bruno@clisp.org>
71509
71510         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71511
71512 2006-06-26  Bruno Haible  <bruno@clisp.org>
71513
71514         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71515         SGI C compiler in pre-C99 mode.
71516         Suggested by Mark D. Baushke and Larry Jones.
71517
71518 2006-06-26  Bruno Haible  <bruno@clisp.org>
71519
71520         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71521         WCHAR_MAX.
71522         Reported by Mark D. Baushke and Larry Jones.
71523
71524 2006-06-26  Bruno Haible  <bruno@clisp.org>
71525
71526         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71527         in pre-C99 mode.
71528         Suggested by Mark D. Baushke and Larry Jones.
71529
71530 2006-06-23  Simon Josefsson  <jas@extundo.com>
71531             Bruno Haible  <bruno@clisp.org>
71532
71533         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71534         Emit mostlyclean-local rule.
71535         (func_emit_tests_Makefile_am): Likewise.
71536         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71537
71538 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71539
71540         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71541
71542 2006-06-23  Bruno Haible  <bruno@clisp.org>
71543
71544         * tests/test-stdint.c: Update to match ISO C 99 Technical
71545         Corrigendum 1.
71546
71547 2006-06-23  Bruno Haible  <bruno@clisp.org>
71548
71549         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71550
71551 2006-06-23  Bruno Haible  <bruno@clisp.org>
71552
71553         * lib/stdint_.h: Treat IRIX like OpenBSD.
71554
71555 2006-06-23  Bruno Haible  <bruno@clisp.org>
71556
71557         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71558         ISO C 99 Technical Corrigendum 1.
71559
71560 2006-06-22  Simon Josefsson  <jas@extundo.com>
71561
71562         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71563         MinGW.
71564
71565 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71566
71567         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71568         needed.  Some compiler complained about some of them.  Problem reported
71569         by Larry Jones in
71570         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71571
71572 2006-06-21  Simon Josefsson  <jas@extundo.com>
71573
71574         * tests/test-getaddrinfo.c: New file.
71575
71576         * modules/getaddrinfo-tests: New file.
71577
71578         * MODULES.html.sh: Add inet_pton.
71579
71580         * modules/inet_pton: New file.
71581
71582 2006-06-21  Simon Josefsson  <jas@extundo.com>
71583
71584         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71585         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71586         of using the (limited) gnulib implementation on Windows XP.
71587
71588         * m4/inet_pton.m4: New file.
71589
71590 2006-06-21  Simon Josefsson  <jas@extundo.com>
71591
71592         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71593         variable.
71594
71595         * lib/socket_.h: Don't define WINVER.
71596
71597         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71598         slightly modified to work in gnulib.
71599
71600 2006-06-21  Simon Josefsson  <jas@extundo.com>
71601
71602         * doc/gnulib.texi (Windows sockets): Add.
71603
71604 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71605
71606         * lib/read-file.c (fread_file): Start with buffer allocation of
71607         0 bytes rather than 1 byte; this simplifies the code.
71608         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71609         code to free buffer and save/restore errno.
71610         (internal_read_file): Remove unused local.
71611
71612 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71613
71614         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71615         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71616         Problem reported by Denis Excoffier in
71617         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71618
71619 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71620
71621         * modules/sys_socket, modules/socklen: Include sys/types since
71622         FreeBSD 4.x's sys/socket.h needs it.
71623
71624 2006-06-19  Simon Josefsson  <jas@extundo.com>
71625
71626         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71627
71628 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71629
71630         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71631
71632 2006-06-19  Bruno Haible  <bruno@clisp.org>
71633
71634         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71635         and FULL_PATH_INTTYPES_H in angle brackets.
71636         Reported by Mark D. Baushke <mdb@gnu.org>.
71637
71638 2006-06-17  Eric Blake  <ebb9@byu.net>
71639
71640         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71641         errno.
71642
71643 2006-06-17  Bruno Haible  <bruno@clisp.org>
71644
71645         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71646         <sys/inttypes.h>.
71647
71648 2006-06-17  Bruno Haible  <bruno@clisp.org>
71649
71650         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71651         whether errno is declared. Assume <errno.h> declares errno.
71652
71653 2006-06-17  Bruno Haible  <bruno@clisp.org>
71654
71655         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71656
71657 2006-06-17  Bruno Haible  <bruno@clisp.org>
71658
71659         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71660         problem on Solaris 2.5.1.
71661
71662 2006-06-16  Eric Blake  <ebb9@byu.net>
71663
71664         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71665         * lib/unicodeio.c [!defined errno]: Likewise.
71666         * lib/strtol.c [!defined errno]: Likewise.
71667         * lib/strtod.c [!defined errno]: Likewise.
71668
71669 2006-06-15  Eric Blake  <ebb9@byu.net>
71670
71671         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71672
71673 2006-06-15  Eric Blake  <ebb9@byu.net>
71674
71675         * config/srclist.txt (ssize_t.m4): Lose sync.
71676
71677 2006-06-15  Bruno Haible  <bruno@clisp.org>
71678
71679         * modules/stdint (Files): Include m4/full-header-path.m4,
71680         m4/size_max.m4, m4/wchar_t.m4.
71681         (Makefile.am): Many more substitutions.
71682         * modules/stdint-tests: New file.
71683         * tests/test-stdint.c: New file.
71684
71685 2006-06-15  Bruno Haible  <bruno@clisp.org>
71686
71687         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71688         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71689         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71690         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71691         gl_CHECK_TYPE_SAME): New macros.
71692
71693 2006-06-15  Bruno Haible  <bruno@clisp.org>
71694
71695         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71696
71697 2006-06-15  Bruno Haible  <bruno@clisp.org>
71698
71699         * lib/stdint_.h: Rewritten to be fully auto-configured.
71700         Fixes bug on HP-UX/IA64.
71701
71702 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71703
71704         * lib/getdate.y (__attribute__): Don't define if already defined.
71705         Problem reported by Larry Jones.
71706         * lib/utimens.c (__attribute__): Likewise.
71707
71708 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71709
71710         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71711         reported by Andreas Schwab.
71712
71713 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71714             Bruno Haible  <bruno@clisp.org>
71715
71716         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71717         check for the declaration of strnlen and a run test that exposes the
71718         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71719         rpl_strndup.
71720
71721 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71722             Bruno Haible  <bruno@clisp.org>
71723
71724         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71725
71726 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71727
71728         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71729         compile test, for Tru64 4.0D.
71730
71731 2006-05-28  Karl Berry  <karl@gnu.org>
71732
71733         * config/srclist.txt (printf-args.c): lose sync.
71734
71735 2006-05-26  Martin Lambers  <marlam@marlam.de>
71736
71737         * lib/getpass.c: Updates the test for the native W32 API, and adds
71738         missing includes, thus fixing compilation warnings.
71739
71740 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71741
71742         * lib/exclude.c (exclude_fnmatch): New function.
71743         (excluded_file_name): Call exclude_fnmatch.
71744         * lib/exclude.h (excluded_file_name): New prototype
71745
71746 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71747
71748         * lib/tempname.c (small_open, large_open): New macros.
71749         (__open, __open64) [!_LIBC]: Remove.
71750         (__gen_tempname): Use small_open and large_open instead of __open
71751         and __open64.  This fixes a portability bug on HP-UX 11.11i
71752         reported by Simon Wing-Tang in
71753         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71754
71755 2006-05-24  Bruno Haible  <bruno@clisp.org>
71756
71757         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71758         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71759         Reported by Thorsten Maerz <torte@netztorte.de> via
71760         Aaron Stone <aaron@serendipity.cx>.
71761
71762 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71763
71764         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71765         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71766         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71767         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71768         not really conditional on the cache.
71769         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71770
71771 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71772
71773         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71774         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71775         (my_usleep): Don't mishandle maximum value.
71776
71777 2006-05-19  Jim Meyering  <jim@meyering.net>
71778
71779         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71780
71781 2006-05-17  Bruno Haible  <bruno@clisp.org>
71782
71783         Cygwin portability.
71784         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71785
71786 2006-05-17  Bruno Haible  <bruno@clisp.org>
71787
71788         * lib/stdint_.h: Fix recognition of Cygwin.
71789
71790 2006-05-15  Bruno Haible  <bruno@clisp.org>
71791
71792         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71793         on libtool patch by Ralf Wildenhues.
71794
71795 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71796
71797         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71798         test for C99 conformance; (bool) 0.5 is an integer constant
71799         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71800         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71801
71802 2006-05-11  Simon Josefsson  <jas@extundo.com>
71803
71804         * m4/xvasprintf.m4: Fix obvious typo.
71805
71806 2006-05-11  Jim Meyering  <jim@meyering.net>
71807
71808         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71809         James Lemley.
71810
71811 2006-05-10  Simon Josefsson  <jas@extundo.com>
71812
71813         * lib/md4.c: Typo fix, update copyright years.
71814         (K1, K2): Don't use L because it turn computations into 64-bit on
71815         64-bit platforms.
71816
71817 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71818
71819         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71820         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71821         unwanted sign propagation, e.g., on hosts with 64-bit int.
71822         There still are some problems with reeelly weird theoretical hosts
71823         (e.g., 33-bit int) but it's not worth worrying about now.
71824         * lib/sha1.c (rol): Likewise.
71825         (K1, K2, K3, K4): Remove unnecessary L suffix.
71826
71827 2006-05-10  Bruno Haible  <bruno@clisp.org>
71828
71829         * lib/des.c: Cast to avoid warnings.
71830
71831 2006-05-09  Bruno Haible  <bruno@clisp.org>
71832
71833         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71834         (Depends-on): Depend also on xsize, stdarg.
71835         (configure.ac): Add gl_XVASPRINTF.
71836
71837 2006-05-09  Bruno Haible  <bruno@clisp.org>
71838
71839         * m4/xvasprintf.m4: New file.
71840
71841 2006-05-09  Bruno Haible  <bruno@clisp.org>
71842
71843         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71844         (EOVERFLOW): Define fallback value.
71845         (xstrcat): New function.
71846         (xvasprintf): Recognize the special case of a string concatenation.
71847
71848 2006-05-08  Eric Blake  <ebb9@byu.net>
71849
71850         * gnulib-tool (func_version): Base copyright year on CVS date.
71851         (func_emit_copyright_notice): New function.
71852         (func_emit_lib_Makefile_am): Use it.
71853         (func_emit_tests_Makefile_am): Likewise.
71854         (func_import): Likewise.
71855
71856 2006-05-08  Bruno Haible  <bruno@clisp.org>
71857
71858         * modules/stdarg: New file.
71859         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71860
71861 2006-05-08  Bruno Haible  <bruno@clisp.org>
71862
71863         * m4/stdarg.m4: New file, from GNU gettext.
71864
71865 2006-05-08  Bruno Haible  <bruno@clisp.org>
71866
71867         * config/srclist.txt (build-aux/config.rpath): different from latest
71868         release.
71869
71870 2006-05-08  Bruno Haible  <bruno@clisp.org>
71871
71872         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71873
71874 2006-05-05  Jim Meyering  <jim@meyering.net>
71875
71876         * m4/warning.m4: New file, derived from bison's file by the same name.
71877
71878 2006-05-03  Bruno Haible  <bruno@clisp.org>
71879
71880         * lib/stdint_.h: Shorter URL.
71881         * lib/inttypes.h: Likewise.
71882
71883 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71884
71885         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71886
71887 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71888
71889         * lib/verify.h: Document the internals better.  Most of this change
71890         was written by Bruno Haible.
71891
71892 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71893
71894         * doc/verify.texi: New file, partly based on a proposal by
71895         Bruno Haible.
71896
71897 2006-05-02  Bruno Haible  <bruno@clisp.org>
71898
71899         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71900         test from here...
71901         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71902
71903 2006-04-29  Bruno Haible  <bruno@clisp.org>
71904
71905         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71906         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71907
71908 2006-04-29  Bruno Haible  <bruno@clisp.org>
71909
71910         * gnulib-tool: Make --update option actually work.
71911
71912 2006-04-29  Bruno Haible  <bruno@clisp.org>
71913
71914         * doc/gcd.texi: New file.
71915         * doc/gnulib.texi: Include it.
71916
71917 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71918
71919         * lib/getdate.y (get_date): When adding relative date, start with the
71920         initial time, not with the result of the first mktime call.
71921
71922 2006-04-25  Bruno Haible  <bruno@clisp.org>
71923
71924         * gnulib-tool (func_import): Output the include directives in three
71925         blocks, sorted separately.
71926         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71927
71928 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71929
71930         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71931         to define main with arguments, for C++.  Reported by Eric Blake.
71932         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71933         Prefer 'int main ()' to 'int main (void)', for C++.
71934         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71935         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71936         for 'main', for C99 and C++.
71937
71938 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71939
71940         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71941         Don't assume that exit status -1 is valid.
71942         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71943         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71944         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71945         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71946         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71947         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71948         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71949         functions can be used without declaring them, or that you can
71950         exit with status -1.
71951         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71952
71953 2006-04-24  Karl Berry  <karl@gnu.org>
71954
71955         * config/srclist.txt (longdouble.m4): sync lost.
71956
71957 2006-04-24  Eric Blake  <ebb9@byu.net>
71958
71959         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71960
71961 2006-04-24  Bruno Haible  <bruno@clisp.org>
71962
71963         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71964         poll() implementation in AIX.
71965         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71966
71967 2006-04-24  Bruno Haible  <bruno@clisp.org>
71968
71969         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71970         assigned exactly once.
71971
71972 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71973             Bruno Haible  <bruno@clisp.org>
71974
71975         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71976         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71977         for AM_CPPFLAGS.
71978
71979 2006-04-23  Bruno Haible  <bruno@clisp.org>
71980
71981         * modules/copy-file: Depend on unistd.
71982         * modules/execute: Likewise.
71983         * modules/fatal-signal: Likewise.
71984         * modules/findprog: Likewise.
71985         * modules/mkdtemp : Likewise.
71986         * modules/pipe: Likewise.
71987         * modules/wait-process: Likewise.
71988
71989 2006-04-23  Bruno Haible  <bruno@clisp.org>
71990
71991         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71992         condition was already detected.
71993         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71994
71995 2006-04-23  Bruno Haible  <bruno@clisp.org>
71996
71997         * lib/copy-file.c: Include <unistd.h> unconditionally.
71998         * lib/execute.c: Likewise.
71999         * lib/fatal-signal.c: Likewise.
72000         * lib/findprog.c: Likewise.
72001         * lib/mkdtemp.c: Likewise.
72002         * lib/pipe.h: Likewise.
72003         * lib/pipe.c: Likewise.
72004         * lib/wait-process.h: Likewise.
72005
72006 2006-04-23  Bruno Haible  <bruno@clisp.org>
72007
72008         * gnulib-tool (func_usage): Fix --import description. Document
72009         --update.
72010         (func_import): Create temporary file in a temporary directory, if
72011         --dry-run is specified. Silence errors from 'grep' when there are no
72012         m4 files in $m4dir.
72013         (func_create_testdir): Silence errors from 'grep' when there are no
72014         m4 files in $m4dir.
72015         Reported by Karl Berry <karl@freefriends.org>.
72016
72017 2006-04-20  Bruno Haible  <bruno@clisp.org>
72018
72019         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72020         one argument, so that the code will be portable to Autoconf 2.60.
72021         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72022         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72023         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72024
72025 2006-04-19  Derek Price  <derek@ximbiot.com>
72026             Eric Blake  <ebb9@byu.net>
72027
72028         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72029         rather than "/full/path.h".  Update comment to match.  Shorten &
72030         generalize m4_translit call via AS_TR_CPP.
72031
72032 2006-04-19  Derek Price  <derek@ximbiot.com>
72033             Eric Blake  <ebb9@byu.net>
72034
72035         * lib/inttypes.h: Correct grammar in comment.
72036
72037 2006-04-18  Derek Price  <derek@ximbiot.com>
72038             Paul Eggert  <eggert@cs.ucla.edu>
72039
72040         * modules/inttypes: New file.
72041         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72042
72043 2006-04-18  Derek Price  <derek@ximbiot.com>
72044             Paul Eggert  <eggert@cs.ucla.edu>
72045
72046         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72047         New files.
72048
72049 2006-04-18  Derek Price  <derek@ximbiot.com>
72050             Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         * lib/inttypes.h: New file.
72053         * lib/strtoimax.c: Assume <inttypes.h>.
72054
72055 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72056
72057         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72058         isn't mounted.  Problem reported by Kir Kolyshkin.
72059
72060 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72061
72062         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72063         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72064         Derek R. Price.
72065         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72066         implementation.
72067
72068 2006-04-12  Eric Blake  <ebb9@byu.net>
72069
72070         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72071         is now done automatically by the corresponding Autoconf macro.
72072
72073 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72074
72075         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72076         time_r.h.
72077
72078 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72079
72080         Merge regex changes from libc, removing some of our
72081         POSIX-conformance changes that were rejected and redoing them in a
72082         less-intrusive way.
72083
72084         * lib/regcomp.c (re_compile_internal, init_dfa):
72085         Length arg is now size_t, not Idx.  All uses changed.
72086         (peek_token): Forward decl now says internal_function.
72087         (__re_error_msgid, __re_error_msgid_idx):
72088         Now static rather than extern with attribute_hidden.
72089         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72090         For some reason libc prefers K&R style defns for external functions.
72091         (regerror) [!defined _LIBC]: Likewise.
72092         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72093         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72094         (build_range_exp, build_collating_symbol):
72095         Use K&R-style defn.
72096         (re_compile_fastmap): Use '\0' to memset, not 0.
72097         (utf8_sb_map): Make the calculations more obvious.
72098         (init_dfa, parse_bracket_exp, build_charclass_op):
72099         Call calloc and cast result, as glibc does.
72100         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72101         (build_range_exp, build_collating_symbol):
72102         Now internal functions.
72103
72104         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72105
72106         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72107         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72108         Don't depend on VMS; depend on __VMS instead, for POSIX
72109         namespace cleanness.
72110         (regoff_t): Define to ssize_t, not long int.
72111
72112         Remove the REG_ macros named below.  Instead, make the old names
72113         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72114         __USE_GNU_REGEX.
72115         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72116         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72117         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72118         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72119         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72120         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72121         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72122         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72123         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72124         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72125         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72126         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72127         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72128         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72129         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72130         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72131         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72132         (REG_NREGS):
72133         Remove.  All uses replaced by the old RE_* names.
72134         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72135         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72136         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72137         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72138         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72139         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72140         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72141         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72142         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72143         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72144         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72145         Don't bother having these macros be independent of each others'
72146         values, since they no longer exist in the POSIX name space.
72147
72148         Rename the following member names back to their old names,
72149         unless !__USE_GNU_REGEX.  All uses changed back.
72150         (buffer): Renamed from re_buffer.
72151         (allocated): Renamed from re_allocated.
72152         (used): Renamed from re_used.
72153         (syntax): Renamed from re_syntax.
72154         (fastmap): Renamed from re_fastmap.
72155         (translate): Renamed from re_translate.
72156         (can_be_null): Renamed from re_can_be_null.
72157         (regs_allocated): Renamed from re_regs_allocated.
72158         (fastmap_accurate): Renamed from re_fastmap_accurate.
72159         (no_sub): Renamed from re_no_sub.
72160         (not_bol): Renamed from re_not_bol.
72161         (not_eol): Renamed from re_not_eol.
72162         (newline_anchor): Renamed from re_newline_anchor.
72163         (num_regs): Renamed from rm_num_regs.
72164         (start): Renamed from rm_start.
72165         (end): Renamed from rm_end.
72166
72167         (free_state): Move up a bit.
72168
72169         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72170         #define to be empty.
72171         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72172         when that is what is intended.
72173         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72174         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72175         (MAX): New macro.
72176         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72177         All uses changed back to re_malloc, etc.  It's now the caller's
72178         responsibility to check for overflow; all callers changed.
72179         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72180         (re_x2nrealloc): Remove.
72181         (free_state): Remove decl.
72182
72183         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72184         (re_set_registers, re_exec):
72185         Use K&R-style defn.
72186
72187         2006-01-31  Roland McGrath  <roland@redhat.com>
72188
72189         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72190         Reported by Mike Frysinger <vapier@gentoo.org>.
72191
72192         2006-01-15  Andreas Jaeger  <aj@suse.de>
72193
72194         [BZ #1950]
72195         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72196         build_wcs_upper_buffer change.
72197         (build_wcs_upper_buffer): Change return type.
72198
72199         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72200
72201         * lib/regex_internal.h: Include <stdint.h> if available.
72202
72203         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72204
72205         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72206
72207         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72208
72209         * lib/regcomp.c: Adjust for changed secondary hash function.
72210
72211         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72212
72213         * lib/regex.h: Pretty printing.
72214         Clean up namespace a bit.
72215
72216         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72217
72218         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72219         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72220
72221         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72222                     Ulrich Drepper  <drepper@redhat.com>
72223
72224         [BZ #1302]
72225         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72226         changed.
72227         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72228
72229         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72230
72231         [BZ #281]
72232         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72233         * lib/regcomp.c: Remove unnecessary uses of
72234         unsigned RE_TRANSLATE_TYPE.
72235         * lib/regex_internal.h: Likewise.
72236         * lib/regex_internal.c: Likewise.
72237         * lib/regexec.c: Likewise.
72238         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72239
72240         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72241
72242         * lib/regexec.c (find_recover_state): Remove unnecessary
72243         initialization.
72244         (transit_state_bkref): Make DFA a const pointer.
72245         (get_subexp): Likewise.
72246         (check_arrival): Likewise.
72247         (update_cur_sifted_state): Likewise.
72248         (re_search_internal): Likewise.
72249         (prune_impossible_nodes): Likewise.
72250         (acquire_init_state_context): Likewise.
72251         (proceed_next_node): Likewise.
72252         (set_regs): Likewise.
72253         (free_fail_stack_return): Likewise.
72254         (check_arrival_expand_ecl): Mark DFA parameter as const.
72255         (check_arrival_expand_ecl_sub): Likewise.
72256         (check_subexp_limits): Likewise.
72257         (sub_epsilon_src_nodes):  Likewise.
72258         (add_epsilon_src_nodes):  Likewise.
72259         (merge_state_array): Likewise.
72260         (update_regs): Likewise.
72261         (build_trtable): Likewise.
72262         (sift_states_backward): Mark MCTX parameter as const.
72263         (build_sifted_states): Likewise.
72264         (update_cur_sifted_state): Likewise.
72265         (sift_states_mkref): Likewise.
72266         (check_arrival_expand_ecl): Mark eclosure as const.
72267         (check_dst_limits_calc_pos_1): Likewise.
72268         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72269         pointer.
72270
72271         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72272
72273         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72274         (transit_state_sb): Likewise.
72275         (transit_state_mb): Likewise.
72276         (sift_states_iter_mb): Likewise.
72277         (check_arrival_add_next_nodes): Likewise.
72278         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72279         [_LIBC] (re_search_2_stub): Use mempcpy.
72280
72281         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72282         mbrtowc for very simple UTF-8 case.
72283
72284         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72285         a pointer-to-const.
72286         (re_acquire_state_context): Likewise.
72287         * lib/regex_internal.h: Adjust prototypes.
72288
72289         * lib/regex.c: Prevent using C++ compilers.
72290
72291         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72292         (re_acquire_state_context): Likewise.
72293
72294 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72295
72296         * modules/regex (Depends-on): Add ssize_t.
72297
72298 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72299
72300         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72301         translation table.
72302
72303 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72304
72305         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72306
72307 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72308             Bruno Haible  <bruno@clisp.org>
72309
72310         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72311         <sys/types.h> and <inttypes.h>.
72312
72313 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72314
72315         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72316         `__error_t_defined', so argp.h will not typedef the former.
72317
72318 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72319
72320         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72321         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72322         glibc names.  Even if glibc is changed to conform to POSIX, the
72323         traditional names will be available anyway, since regex depends on
72324         the extensions module.  Also, fix a longstanding typo in the
72325         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72326         reported by Emanuele Giaquinta.  Also, change sense of cached
72327         variable, so that the message makes sense.
72328
72329 2006-03-24  Simon Josefsson  <jas@extundo.com>
72330
72331         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72332         including some doc fixes.
72333         (base64_encode_alloc): Fix +1 bug on allocation failures.
72334
72335 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72336
72337         * lib/base64.c (base64_encode): Do not read past end of array with
72338         unsanitized input on systems with CHAR_BIT > 8.
72339
72340 2006-03-24  Eric Blake  <ebb9@byu.net>
72341
72342         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72343
72344 2006-03-22  Karl Berry  <karl@gnu.org>
72345
72346         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72347         * config/srclistvars.sh (COREUTILS): new var.
72348
72349 2006-03-17  Jim Meyering  <jim@meyering.net>
72350
72351         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72352         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72353
72354 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72355
72356         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72357         no longer needs it.  Instead, check that regoff_t is as least
72358         as wide as ptrdiff_t.
72359
72360         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72361         so that our regex.h stays compatible with the installed regex.
72362         This is helpful for installers who configure --without-included-regex.
72363         Problem reported by Emanuele Giaquinta.
72364
72365 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72366
72367         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72368         Typedef to long int, not to off_, as POSIX will likely change
72369         in that direction.
72370
72371 2006-03-15  Eric Blake  <ebb9@byu.net>
72372
72373         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72374
72375 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72376
72377         * lib/argp-help.c (validate_uparams): Fix typo
72378         * lib/argp-parse.c (argp_default_options): Consistently begin help
72379         messages with a lowercase letter.
72380
72381 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72382
72383         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72384         overrun buffers and shouldn't be used (much as gets shouldn't be
72385         used).
72386         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72387
72388 2006-03-08  Simon Josefsson  <jas@extundo.com>
72389
72390         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72391         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72392
72393 2006-03-08  Simon Josefsson  <jas@extundo.com>
72394
72395         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72396         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72397
72398 2006-03-08  Simon Josefsson  <jas@extundo.com>
72399
72400         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72401         signal that configure disabled the device.
72402
72403 2006-03-08  Simon Josefsson  <jas@extundo.com>
72404
72405         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72406         languages.
72407
72408 2006-03-07  Simon Josefsson  <jas@extundo.com>
72409
72410         * modules/getopt (Depends-on): Add unistd.
72411
72412         * modules/unistd: New file.
72413
72414 2006-03-07  Simon Josefsson  <jas@extundo.com>
72415
72416         * modules/gc-random: New file.
72417
72418 2006-03-07  Simon Josefsson  <jas@extundo.com>
72419
72420         * m4/unistd_h.m4: New file.
72421
72422 2006-03-07  Simon Josefsson  <jas@extundo.com>
72423
72424         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72425         test to be side-effect free by storing the result in the cache
72426         variable gl_cv_lib_readline, and moving the assignment of
72427         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72428         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72429
72430 2006-03-07  Simon Josefsson  <jas@extundo.com>
72431
72432         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72433         error on missing devices (the functions will return an error).
72434
72435         * m4/gc.m4: Move random stuff to gc-random.m4
72436
72437 2006-03-07  Simon Josefsson  <jas@extundo.com>
72438
72439         * lib/unistd_.h: New file.
72440
72441 2006-03-07  Simon Josefsson  <jas@extundo.com>
72442
72443         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72444
72445 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72446
72447         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72448         Problem reported by Juan Manuel Guerrero.
72449
72450 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72451
72452         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72453         the unistd module.
72454         * lib/getlogin_r.c: Likewise.
72455         * lib/getlogin_r.h: Likewise.
72456         * lib/glob.c: Likewise.
72457         * lib/pagealign_alloc.c: Likewise.
72458         * lib/unistd_.h: Remove; no longer needed.
72459
72460 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72461
72462         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72463         Add unistd.
72464         * modules/c-stack (Depends-on): Add unistd.
72465         * modules/getlogin_r: Likewise.
72466         * modules/glob: Likewise.
72467         * modules/pagealign_alloc: Likewise.
72468         * modules/unistd (Files): Remove lib/unistd_.h.
72469         (EXTRA_DIST): Remove.
72470         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72471         need unistd_.h.
72472         (MOSTLYCLEANFILES): Remove unistd.h-t.
72473
72474 2006-03-03  Simon Josefsson  <jas@extundo.com>
72475
72476         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72477
72478 2006-03-03  Simon Josefsson  <jas@extundo.com>
72479
72480         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72481         libidn and bison.
72482
72483 2006-03-03  Simon Josefsson  <jas@extundo.com>
72484
72485         * build-aux/maint.mk: Add indent target.
72486
72487 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72488
72489         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72490         our replacement poll.h in any case, to avoid a differing
72491         declaration from a system header.  Seen on AIX.
72492
72493 2006-03-01  Simon Josefsson  <jas@extundo.com>
72494
72495         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72496         <kasal@ucw.cz>.
72497
72498 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72499
72500         * modules/gettime (Depends-on): Add extensions module.
72501         * modules/nanosleep (Depends-on): Likewise.
72502         * modules/settime (Depends-on): Likewise.
72503
72504 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72505
72506         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72507         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72508         pedantically.
72509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72510         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72511
72512         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72513         not "==".  Reported by Ralf Wildenhues.
72514
72515 2006-03-01  Karl Berry  <karl@gnu.org>
72516
72517         * doc/Copyright/request-*: new files, synced from gnuorg.
72518
72519 2006-03-01  Karl Berry  <karl@gnu.org>
72520
72521         * config/srclist.txt (Copyright/*): new entries.
72522
72523 2006-02-28  Simon Josefsson  <jas@extundo.com>
72524
72525         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72526
72527 2006-02-27  Simon Josefsson  <jas@extundo.com>
72528
72529         * lib/base64.h: Indent #define's.  From Jim Meyering
72530         <jim@meyering.net>.
72531
72532 2006-02-27  Jim Meyering  <jim@meyering.net>
72533
72534         Revert the change of 2006-02-24, so these files can continue
72535         to be sync'd from gettext.
72536         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72537         of `config.h'.
72538
72539 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72540
72541         * modules/intprops: New file.
72542         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72543         Add intprops.
72544         * modules/getloadavg (Files): Remove lib/intprops.h.
72545         (Depends-on): Add intprops.
72546         * modules/human: Likewise.
72547         * modules/inttostr: Likewise.
72548         * modules/openat: Likewise.
72549         * modules/sig2str: Likewise.
72550         * modules/userspec: Likewise.
72551         * modules/utimecmp: Likewise.
72552         * modules/xnanosleep: Likewise.
72553         * modules/xstrtol: Likewise.
72554
72555 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72556
72557         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72558         * modules/lock-tests (TESTS): Use $(EXEEXT).
72559         * modules/tls-tests: Likewise.
72560         * modules/argp-tests: Likewise.
72561         (check_PROGRAMS): New var, replacing...
72562         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72563
72564 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72565
72566         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72567         `config.h'.
72568
72569 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72570
72571         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72572
72573 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72574
72575         Sync from coreutils.
72576         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72577         gl_CHDIR_SAFER.
72578
72579 2006-02-22  Jim Meyering  <jim@meyering.net>
72580
72581         Sync from coreutils.
72582         * m4/chdir-safer.m4: New file.
72583
72584 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72585
72586         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72587         AT_FDCWD exceeds INT_MAX.
72588         * lib/openat.h (AT_FDCWD): Likewise.
72589
72590 2006-02-17  Eric Blake  <address@hidden>
72591
72592         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72593
72594 2006-02-16  Simon Josefsson  <jas@extundo.com>
72595
72596         * modules/getaddrinfo (Depends-on): Add sys_socket.
72597
72598 2006-02-15  Simon Josefsson  <jas@extundo.com>
72599
72600         * build-aux/maint.mk: Add dsyntax-check rule.
72601
72602 2006-02-15  Eric Blake  <ebb9@byu.net>
72603
72604         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72605         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72606         'present but cannot compile' warnings on cygwin.
72607         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72608         use ws2tcpip.h if sys/socket.h works.
72609         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72610         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72611
72612 2006-02-14  Simon Josefsson  <jas@extundo.com>
72613
72614         * modules/maintainer-makefile (Files): Rename.
72615
72616         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72617         and (the local) Makefile.cfg to maint-cfg.mk.
72618
72619         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72620         to the latter.
72621
72622         * modules/maintainer-makefile: New module.
72623
72624         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72625         severaly stripped to make it possible to build it up from scratch
72626         with reliable tests.
72627
72628         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72629         fixes to permit overriding the default actions when configure and
72630         makefile are not available.
72631
72632 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72633
72634         Sync from coreutils.
72635         * modules/lstat (Depends-on): Don't depend on xalloc.
72636         (License): Change from GPL to LGPL, since this is now simply a
72637         replacement for a libc function.
72638
72639 2006-02-14  Jim Meyering  <jim@meyering.net>
72640
72641         Sync from coreutils.
72642
72643         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72644         failure on deficient systems, and simplify gnulib lgpl dependencies.
72645         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72646         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72647
72648         * lib/xalloc-die.c: Remove unused definition of N_.
72649
72650 2006-02-14  Jim Meyering  <jim@meyering.net>
72651
72652         Sync from coreutils.
72653         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72654         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72655         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72656         double-quote uses of that variable, to accommodate the rare case in
72657         which getmntent is available in none of the libraries checked.  This
72658         happens at least on FreeBSD 5.0.
72659
72660 2006-02-13  Simon Josefsson  <jas@extundo.com>
72661
72662         * gnulib-tool (Usage): Fix --import, from
72663         karl@freefriends.org (Karl Berry).
72664
72665 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72666
72667         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72668
72669 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72670
72671         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72672         "autoupdate" on 2005-12-12.
72673
72674 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         * modules/closeout (Depends-on): Remove atexit.
72677
72678 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72679
72680         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72681         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72682
72683 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72684
72685         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72686         __EXTENSIONS__ if this causes compilation to fail.  Problem
72687         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72688         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72689
72690 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72691
72692         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72693         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72694         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72695         All uses changed.
72696
72697 2006-01-26  Simon Josefsson  <jas@extundo.com>
72698
72699         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72700         prototype is visible on mingw32.
72701
72702         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72703         for mingw32.
72704
72705         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72706         mingw32).
72707
72708 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72711         attempt to open for write; this always fails, at least on POSIX
72712         hosts.  This reinstates the 2006-01-09 change, which was
72713         inadvertently removed.
72714
72715 2006-01-26  Bruno Haible  <bruno@clisp.org>
72716
72717         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72718         Reported by Paul Eggert.
72719
72720 2006-01-26  Bruno Haible  <bruno@clisp.org>
72721             Paul Eggert  <eggert@cs.ucla.edu>
72722
72723         * lib/stdbool_.h (_Bool)
72724         [(! (defined __cplusplus || defined __BEOS__)
72725           && !defined __GNUC__
72726           && !(defined __HP_cc || defined __xlc__
72727                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72728                || defined __sgi))]:
72729         #define to signed char in these cases too; this simplifies
72730         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72731         etc., separately) and makes it more conservative.
72732
72733 2006-01-25  Simon Josefsson  <jas@extundo.com>
72734
72735         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72736         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72737         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72738
72739 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72740
72741         * lib/argp-namefrob.h: Bugfix. Remove stray #
72742
72743 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72744
72745         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72746         so that we test the test.
72747         Check for yet another HP-UX cc bug involving *bool |= bool.
72748
72749 2006-01-25  Karl Berry  <karl@gnu.org>
72750
72751         * config/srclist.txt (vasnprintf.c): sync lost.
72752
72753 2006-01-25  Jim Meyering  <jim@meyering.net>
72754
72755         Sync from the stable (b5) branch of coreutils:
72756
72757         * lib/fts.c (fts_children): Don't let close() clobber errno from
72758         failed fchdir().
72759
72760         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72761         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72762         a dangling symlink.  That can also happen at least for ELOOP.
72763         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72764         FYI, this bug predates the inclusion of fts.c in coreutils.
72765
72766         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72767         in their own block, so pre-c99 compilers don't object.
72768
72769         Avoid the double-free (first in fts_read, second in fts_close) that
72770         would occur when an `active' directory is made inaccessible (e.g.,
72771         via chmod a-x) during a traversal.
72772         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72773         before returning.  Reproduce this failure by
72774         mkdir -p a/b; cd a; chmod a-x . b
72775         Reported by Stavros Passas.
72776
72777 2006-01-25  Jim Meyering  <jim@meyering.net>
72778
72779         * lib/fileblocks.c: Remove more useless parentheses.
72780         * lib/readutmp.h: Likewise.
72781
72782 2006-01-25  Bruno Haible  <bruno@clisp.org>
72783
72784         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72785         warnings.
72786         Reported by Paul Eggert.
72787
72788 2006-01-25  Bruno Haible  <bruno@clisp.org>
72789
72790         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72791         rid of a trap command. For Solaris sh.
72792         Reported by Mark D. Baushke <mdb@gnu.org>.
72793
72794 2006-01-24  Simon Josefsson  <jas@extundo.com>
72795
72796         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72797         Bruno.
72798
72799 2006-01-24  Karl Berry  <karl@gnu.org>
72800
72801         * config/srclist.txt (argp-namefrob.h): sync lost.
72802
72803 2006-01-24  Jim Meyering  <jim@meyering.net>
72804
72805         * modules/openat (Files): Add lib/intprops.h.
72806         From Mark D. Baushke.
72807
72808 2006-01-24  Jim Meyering  <jim@meyering.net>
72809
72810         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72811         Reported by Mark D. Baushke.
72812
72813 2006-01-24  Jim Meyering  <jim@meyering.net>
72814
72815         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72816
72817 2006-01-24  Bruno Haible  <bruno@clisp.org>
72818
72819         * modules/strnlen (Maintainer): Change from glibc to all.
72820
72821 2006-01-24  Bruno Haible  <bruno@clisp.org>
72822
72823         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72824         Patch by Paul Eggert.
72825
72826 2006-01-24  Bruno Haible  <bruno@clisp.org>
72827
72828         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72829         already has it.
72830         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72831         2005-11-26.
72832
72833         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72834         'signed char' to avoid problems with the built-in _Bool type.
72835         Reported by Paul Eggert on 2005-11-26.
72836
72837 2006-01-24  Bruno Haible  <bruno@clisp.org>
72838
72839         * gnulib-tool (func_import): Avoid constructing complicated sed
72840         expressions inside backquote.
72841         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72842
72843 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72844
72845         These changes imported from libc.
72846         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72847         test and two separate function calls.
72848         * lib/strndup.c (__strndup): Add libc_hidden_def.
72849
72850 2006-01-23  Simon Josefsson  <jas@extundo.com>
72851
72852         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72853         Remove the test_*_SOURCES variable: automake infers it by default.
72854         * modules/tls-tests: Likewise.
72855
72856 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72857
72858         Work around porting bugs reported by Dieter in
72859         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72860         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72861         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72862         Include "getopt.h" first, to check interface.
72863         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72864         !HAVE_DECL_GETENV.
72865         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72866         (__strndup): Revert to K&R-style function dfns, the glibc style.
72867         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72868         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72869         Include strnlen.h first, to get prototype properly.
72870         (strnlen): Renamed from __strnlen.
72871         Remove weak alias.
72872
72873 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72874
72875         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72876
72877 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72878
72879         * config/srclist.txt: Adjust to reflect glibc reorganization.
72880         This affects only comments.
72881
72882 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72883
72884          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72885          Reported by Bruce Korb <bkorb@gnu.org>.
72886
72887 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72888
72889         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72890         to pacify gcc -Wswitch-default.
72891
72892 2006-01-22  Bruno Haible  <bruno@clisp.org>
72893
72894         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72895         temporary buffer for sprintf, take into account the precision also
72896         for 'd', 'i', 'u', 'o', 'x', 'X'.
72897
72898 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72899
72900         * modules/argp-tests: New module
72901         * tests/test-argp.c: New file
72902         * tests/test-argp-2.sh: New file
72903
72904 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72905
72906         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72907         (__argp_base_name): Removed
72908         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72909         typo.
72910         (__argp_base_name): Provide macro definition or extern declaration
72911         depending on the configuration
72912
72913 2006-01-20  Simon Josefsson  <jas@extundo.com>
72914
72915         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72916
72917 2006-01-20  Simon Josefsson  <jas@extundo.com>
72918
72919         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72920
72921 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72922
72923         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72924         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72925         Suggested by Bruno Haible.
72926
72927 2006-01-20  Karl Berry  <karl@gnu.org>
72928
72929         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72930         until changes propagate, I guess.
72931
72932 2006-01-19  Simon Josefsson  <jas@extundo.com>
72933
72934         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72935
72936 2006-01-19  Simon Josefsson  <jas@extundo.com>
72937
72938         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72939
72940 2006-01-19  Simon Josefsson  <jas@extundo.com>
72941
72942         * gnulib-tool: Set check_PROGRAMS.
72943
72944         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72945         modules/des-tests, modules/gc-arcfour-tests,
72946         modules/gc-arctwo-tests, modules/gc-des-tests,
72947         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72948         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72949         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72950         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72951         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72952         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72953         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72954         test_*_SOURCES.
72955
72956 2006-01-18  Simon Josefsson  <jas@extundo.com>
72957
72958         * modules/socklen (Depends-on): Depend on sys_socket.
72959
72960 2006-01-18  Simon Josefsson  <jas@extundo.com>
72961
72962         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72963         modules/des-tests, modules/gc-arcfour-tests,
72964         modules/gc-arctwo-tests, modules/gc-des-tests,
72965         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72966         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72967         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72968         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72969         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72970         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72971         $(EXEEXT) to automake TESTS variable, for mingw32.
72972
72973 2006-01-17  Simon Josefsson  <jas@extundo.com>
72974
72975         * modules/socklen (Include): Need sys/socket.h.
72976
72977 2006-01-17  Bruno Haible  <bruno@clisp.org>
72978
72979         * modules/ssize_t (Include): Add <sys/types.h>.
72980
72981 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72982
72983         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72984         it's not portable and it doesn't work with cross-compiles.
72985         Problem reported by Bruno Haible.  Fix missing-$ typo in
72986         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72987         -zignore from being used with Sun's C compiler.
72988
72989 2006-01-12  Simon Josefsson  <jas@extundo.com>
72990
72991         * lib/base64.c: Fix warning, reported by Bruno Haible
72992         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72993
72994 2006-01-12  Bruno Haible  <bruno@clisp.org>
72995
72996         * modules/ldd: New file.
72997         * build-aux/ldd.sh.in: New file.
72998         * MODULES.html.sh (Support for building libraries and executables): Add
72999         ldd.
73000
73001 2006-01-12  Bruno Haible  <bruno@clisp.org>
73002
73003         * m4/ldd.m4: New file.
73004
73005 2006-01-12  Bruno Haible  <bruno@clisp.org>
73006
73007         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73008         endless loop while replacing $auxdir with build-aux.
73009
73010 2006-01-11  Simon Josefsson  <jas@extundo.com>
73011
73012         * lib/stdint_.h (SIZE_MAX): Add missing (.
73013
73014 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73015
73016         Sync from coreutils.
73017         * lib/md5.c: Fix commentary typos.
73018         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73019         * lib/md5.h (__attribute__): Remove; unused.
73020         * lib/sha1.c: Fix commentary to match md5 better.
73021         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73022         so that we don't need to worry about alignment.  All uses changed.
73023         This merges the 2005-10-28 md5 change into sha1.
73024
73025 2006-01-11  Jim Meyering  <jim@meyering.net>
73026
73027         Sync from coreutils.
73028         * lib/md5.c (OP): Fix spacing.
73029
73030 2006-01-11  Bruno Haible  <bruno@clisp.org>
73031
73032         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73033         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73034         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73035
73036 2006-01-11  Bruno Haible  <bruno@clisp.org>
73037
73038         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73039         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73040         the "early" section as well.
73041
73042 2006-01-11  Bruno Haible  <bruno@clisp.org>
73043
73044         Avoid "ar: no archive members specified" error on MacOS X.
73045         * gnulib-tool (func_modules_add_dummy): New function.
73046         (func_import, func_create_testdir): Invoke it.
73047
73048 2006-01-11  Bruno Haible  <bruno@clisp.org>
73049
73050         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73051         with $auxdir in AC_CONFIG_FILES statements.
73052
73053 2006-01-11  Bruno Haible  <bruno@clisp.org>
73054
73055         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73056         Initialize also noinst_HEADERS to empty.
73057
73058 2006-01-11  Bruno Haible  <bruno@clisp.org>
73059
73060         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73061         variables.
73062         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73063         autoreconf.
73064
73065 2006-01-11  Bruno Haible  <bruno@clisp.org>
73066
73067         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73068         overridable by the user.
73069         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73070
73071 2006-01-10  Simon Josefsson  <jas@extundo.com>
73072
73073         * modules/sys_socket: New file.
73074
73075 2006-01-10  Simon Josefsson  <jas@extundo.com>
73076
73077         * m4/sys_socket_h.m4: New file.
73078
73079 2006-01-10  Simon Josefsson  <jas@extundo.com>
73080
73081         * lib/socket_.h: New file.
73082
73083 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73084
73085         * modules/readutmp (Maintainer): Add myself.
73086
73087 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73088
73089         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73090         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73091         People who are still concerned with buggy memcmp implementations
73092         can invoke gl_FUNC_MEMCMP themselves.
73093
73094 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73095
73096         * lib/regex_internal.h (BITSET_WORD_BITS):
73097         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73098         preprocessor mishandles large unsigned values as if they were signed.
73099         Problem reported by Claudio Fontana in
73100         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73101
73102 2006-01-10  Jim Meyering  <jim@meyering.net>
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         Sync from coreutils.
73113         * lib/sha1.c: Tweak grammar in a comment.
73114
73115 2006-01-10  Jim Meyering  <jim@meyering.net>
73116
73117         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73118         Patch by Joerg Sonnenberger.
73119
73120 2006-01-10  Bruno Haible  <bruno@clisp.org>
73121
73122         * modules/readutmp: Depend on module free.
73123         * modules/strtok_r: Depend on module restrict.
73124
73125 2006-01-10  Bruno Haible  <bruno@clisp.org>
73126
73127         * modules/gettext (configure.ac): Add an invocation of
73128         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73129
73130 2006-01-10  Bruno Haible  <bruno@clisp.org>
73131
73132         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73133         Reported by Werner Lemberg <wl@gnu.org>.
73134
73135 2006-01-10  Bruno Haible  <bruno@clisp.org>
73136
73137         * lib/localcharset.c: Update from GNU gettext.
73138
73139 2006-01-10  Bruno Haible  <bruno@clisp.org>
73140
73141         * lib/argp.h (__const): Remove macro. Use const instead.
73142         * lib/argp-fmtstream.h (__const): Likewise.
73143         * lib/glob_.h (__const): Remove macro.
73144         * lib/glob-libc.h: Use const instead of __const.
73145
73146 2006-01-10  Bruno Haible  <bruno@clisp.org>
73147
73148         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73149         variable.
73150         Needed to avoid an automake error regarding the 'gettext' module.
73151
73152 2006-01-09  Simon Josefsson  <jas@extundo.com>
73153
73154         * modules/inet_ntop (Depends-on): Add restrict.
73155
73156 2006-01-09  Simon Josefsson  <jas@extundo.com>
73157
73158         * modules/gc-rijndael-tests (License): Put under LGPL.
73159
73160         * modules/gc-des-tests (License): Likewise.
73161
73162         * modules/gc-arcfour-tests (License): Likewise.
73163
73164         * modules/gc-arctwo-tests (License): Likewise.
73165
73166         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73167
73168         * modules/gc-hmac-sha1-tests (Files): Likewise.
73169
73170         * modules/gc-hmac-md5-tests (License): Likewise.
73171
73172         * modules/gc-sha1-tests (License): Likewise.
73173
73174         * modules/gc-md5-tests (License): Likewise.
73175
73176         * modules/gc-md4-tests (License): Likewise.
73177
73178         * modules/gc-md2-tests (License): Likewise.
73179
73180         * modules/gc-tests (License): Likewise.
73181
73182         * modules/des-tests (License): Likewise.
73183
73184         * modules/md4-tests (License): Likewise.
73185
73186         * modules/md2-tests (License): Likewise.
73187
73188 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73189
73190         Sync from coreutils:
73191
73192         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73193         * modules/lib-ignore: New file.
73194         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73195         chdir-safer.m4, lchmod.m4.
73196         * modules/openat: Add mkdirat.c, openat-priv.h.
73197
73198 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73199
73200         Sync from coreutils.
73201         * m4/lib-ignore.m4: New file.
73202         * m4/lchmod.m4: New file.
73203
73204 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73205
73206         Sync from coreutils.
73207         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73208         for write access: POSIX says that must fail.
73209         * lib/fts.c (diropen): Likewise.
73210         * lib/save-cwd.c (save_cwd): Likewise.
73211         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73212         well, for minor improvements on hosts that lack O_DIRECTORY.
73213         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73214         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73215         Fall back on chown if open failed with EACCES.
73216
73217         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73218         Report an error at compile-time if only a 1-second nominal clock
73219         resolution is found.
73220
73221         * lib/lchmod.h: New file.
73222         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73223         (make_dir_parents): Use lchown rather than chown, and
73224         lchmod rather than chmod.
73225
73226         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73227         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73228         "proc" reported by n0dalus.
73229
73230         * lib/mountlist.c: Include <limits.h>.
73231         (dev_from_mount_options)
73232         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73233         New function.  It no longer assumes "dev=" has the System V meaning
73234         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73235         (read_file_system_list)
73236         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73237         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73238         dev= in that case.
73239
73240         * lib/posixtm.h (PDS_PRE_2000): New macro.
73241         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73242         allow_century.  All usages changed.  Reject dates outside the range
73243         1969-1999 if PDS_PRE_2000 is used.
73244
73245 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73246
73247         Sync from coreutils.
73248         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73249         (Time of day items): Mention the possibility of leap seconds.
73250         Problem reported by Dr. David Alan Gilbert.
73251
73252 2006-01-09  Jim Meyering  <jim@meyering.net>
73253
73254         Sync from coreutils.
73255
73256         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73257
73258         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73259
73260         * lib/modechange.c (mode_compile): Reject an invalid mode string
73261         that starts with an octal digit.  From Andreas Gruenbacher.
73262
73263         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73264         and dup to open_safer and dup_safer, respectively.
73265         (openat_permissive): Fix typo in comment.
73266
73267         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73268         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73269         (_): Remove; no longer needed.
73270         (openat): Renamed from rpl_openat; no need for rpl_openat
73271         since openat.h renames openat for us.
73272         Replace most of the body with a call to openat_permissive,
73273         to avoid duplicate code.
73274         Port to (probably hypothetical) environments were mode_t is
73275         wider than int.
73276         (openat_permissive): Require mode arg, so that we can check
73277         types better.  Put it just after flags.  Change cwd failure
73278         indicator from pointer-to-bool to pointer-to-errno-value.
73279         All callers changed.
73280         Invoke openat_save_fail and/or openat_restore_fail if
73281         cwd_errno is null, so that openat can call us.
73282         (openat_permissive, fdopendir, fstatat, unlinkat):
73283         Simplify errno handling to avoid some duplicate code,
73284         as it's OK to set errno on success.
73285         * lib/openat.h: Revamp code so that function macros depend on
73286         __OPENAT_PREFIX only, not also on AT_FDCWD.
73287         (openat_ro): Remove.  Caller changed to use openat_permissive.
73288         (openat_permissive): Now a macro, if not a function.
73289         (openat_restore_fail, openat_save_fail): Now always functions,
73290         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73291
73292         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73293         and openat.c.
73294         * lib/mkdirat.c: Include openat-priv.h.
73295         Remove definitions of macros defined therein.
73296         * lib/openat.c: Likewise.
73297
73298         * lib/mkdirat.c (mkdirat): New file and function.
73299         * lib/openat.h (mkdirat): Declare.
73300
73301         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73302
73303         * lib/openat.h (openat_permissive): Declare.
73304         (openat_ro): Define.
73305
73306         * lib/openat.c (EXPECTED_ERRNO): New macro.
73307         (openat_permissive): New function -- used in remove.c rewrite.
73308         (all functions): Set errno just before returning, only if there
73309         was an actual failure.
73310         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73311
73312         Emulate openat-family functions using Linux's procfs, if possible.
73313         Idea and some code based on Ulrich Drepper's glibc changes.
73314
73315         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73316         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73317         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73318         before falling back on save_cwd and restore_cwd.
73319         (fdopendir, fstatat, unlinkat): Likewise.
73320
73321         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73322         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73323
73324         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73325         as second argument to va_arg.  Otherwise, some versions of gcc
73326         warn that `if this code is reached, the program will abort'.
73327
73328 2006-01-09  Jim Meyering  <jim@meyering.net>
73329
73330         Sync from coreutils.
73331         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73332         Require openat-priv.h.
73333
73334 2006-01-09  Bruno Haible  <bruno@clisp.org>
73335
73336         * modules/strnlen (Include): Use strnlen.h.
73337
73338 2006-01-09  Bruno Haible  <bruno@clisp.org>
73339
73340         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73341
73342 2006-01-09  Bruno Haible  <bruno@clisp.org>
73343
73344         * lib/sysexit_.h (EX_OK): New macro.
73345         Suggested by Martin Lambers <marlam@marlam.de>.
73346
73347 2006-01-09  Bruno Haible  <bruno@clisp.org>
73348
73349         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73350         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73351
73352 2006-01-09  Bruno Haible  <bruno@clisp.org>
73353
73354         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73355         numbers.
73356
73357 2006-01-09  Bruno Haible  <bruno@clisp.org>
73358
73359         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73360         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73361         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73362         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73363
73364 2006-01-09  Bruno Haible  <bruno@clisp.org>
73365
73366         * build-aux/javacomp.sh.in: New file, moved from lib/.
73367         * modules/javacomp-script (Files): Update.
73368         (configure.ac): Add AC_CONFIG_FILES invocation.
73369         (EXTRA_DIST): Remove variable.
73370
73371         * build-aux/javaexec.sh.in: New file, moved from lib/.
73372         * modules/javaexec (Files): Update.
73373         (configure.ac): Add AC_CONFIG_FILES invocation.
73374         (EXTRA_DIST): Remove javaexec.sh.in.
73375
73376         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73377         * modules/csharpcomp-script (Files): Update.
73378         (configure.ac): Add AC_CONFIG_FILES invocation.
73379         (EXTRA_DIST): Remove variable.
73380
73381         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73382         * modules/csharpexec (Files): Update.
73383         (configure.ac): Add AC_CONFIG_FILES invocation.
73384         (EXTRA_DIST): Remove csharpexec.sh.in.
73385
73386 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73387
73388         Sync from coreutils.
73389
73390         Add POSIX ACL support
73391         * lib/acl.h (copy_acl, set_acl): Add declarations.
73392         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73393         systems other than Linux.
73394         (chmod_or_fchmod): New function: use fchmod when possible,
73395         and chmod otherwise.
73396         (file_has_acl): Add a POSIX ACL implementation, with a
73397         Linux-specific subcase.
73398         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73399         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73400         acls are unsupported.
73401         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73402         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73403         are unsupported.
73404
73405 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73406
73407         Sync from coreutils.
73408         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73409
73410 2006-01-07  Bruno Haible  <bruno@clisp.org>
73411
73412         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73413         gl_EARLY.
73414
73415 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73416
73417         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73418         Problem reported for Mingw by Mark Junker.
73419
73420 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73421
73422         * README: Gnulib normally doesn't generate a tarball.
73423
73424 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73425
73426         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73427         long int, not int, for nanosecond counts, so that people who are
73428         used to POSIX struct timespec won't be surprised.  Reported by Jim
73429         Meyering.
73430
73431 2005-12-28  Bruno Haible  <bruno@clisp.org>
73432
73433         * build-aux/config.rpath: Update from GNU gettext.
73434
73435 2005-12-16  Jim Meyering  <jim@meyering.net>
73436
73437         * modules/fprintftime: New module.
73438         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73439
73440 2005-12-16  Jim Meyering  <jim@meyering.net>
73441
73442         * m4/fprintftime.m4: New file.
73443
73444 2005-12-16  Jim Meyering  <jim@meyering.net>
73445
73446         * lib/fprintftime.c, lib/fprintftime.h: New files.
73447
73448 2005-12-15  Simon Josefsson  <jas@extundo.com>
73449
73450         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73451         new m4/socklen.m4.
73452
73453 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73454
73455         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73456         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73457
73458 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73459
73460         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73461         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73462         struct uparams is valid. Fall back to the default values if it is
73463         not.
73464
73465 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73466
73467         * modules/argp (Files): Add argp-pin.c
73468         (Depends-on): dirname
73469         (lib_SOURCES): Add argp-pin.c
73470
73471 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73472
73473         * m4/argp.m4:  Check if program_invocation_name and
73474         program_invocation_short_name are declared and define appropriate
73475         macros if they are not.
73476
73477 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73478
73479         * lib/argp-help.c (__argp_base_name): New function
73480         (__argp_short_program_name): Rewrite using __argp_base_name
73481         * lib/argp-namefrob.h: Define program_invocation_name and
73482         program_invocation_short_name if requested
73483         (__argp_base_name): Add prototype
73484         * lib/argp-parse.c (argp_def): Use gettext wrappers
73485         (argp_default_parser): Use __argp_base_name
73486         * lib/argp-pin.c: New file. Defines program_invocation_name and
73487         program_invocation_short_name on systems that lack them.
73488
73489 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73490
73491         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73492         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73493         porting problem reported by Georg Schwarz in
73494         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73495
73496 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73497
73498         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73499         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73500         porting problem reported by Georg Schwarz in
73501         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73502
73503 2005-12-05  Bruno Haible  <bruno@clisp.org>
73504
73505         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73506         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73507         Reported by Mark Junker <mjscod@gmx.de>.
73508
73509 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73510
73511         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73512         Use implementation from Albert Chin, with some
73513         comments/corrections by Stepan Kasal and myself.
73514
73515 2005-12-02  Bruno Haible  <bruno@clisp.org>
73516
73517         * gnulib-tool (func_import): Accept GPLed build tool modules when
73518         --lgpl is given.
73519         * modules/csharpcomp-script: New file.
73520         * modules/csharpcomp: Depend on it.
73521         * modules/javacomp-script: New file.
73522         * modules/javacomp: Depend on it.
73523         Suggested by Simon Josefsson.
73524
73525 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73526
73527         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73528         statement, to work around an HP-UX 10.20 compiler bug reported by
73529         Peter O'Gorman.
73530
73531 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73532
73533         * modules/savedir (Depends-on): Add openat.
73534
73535 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73536
73537         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73538         (uintmax_t) [defined uintmax_t]: Do not declare.
73539         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73540         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73541         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73542         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73543         sake of portability to weird hosts that C allows (though we don't
73544         know of any practical examples).
73545
73546         * lib/savedir.h (fdsavedir): New decl.
73547         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73548         contains most of the former guts of savedir.
73549         (savedir): Use savedirstream.
73550         Include "openat.h".
73551
73552 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73553
73554         * modules/obstack (Files): Add m4/ulonglong.m4.
73555         Problem reported by Davide Angelocola.
73556
73557 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73558
73559         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73560         coreutils no longer futzes with rounding modes.
73561
73562 2005-11-14  Jim Meyering  <jim@meyering.net>
73563
73564         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73565         replacement of mkstemp.
73566
73567 2005-11-10  Simon Josefsson  <jas@extundo.com>
73568
73569         * lib/readline.c: Remove EOL.
73570
73571 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73572
73573         * modules/gethrxtime (Depends-on): Add gettime.
73574
73575 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73576
73577         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73578         or gettimeofday; no longer needed.
73579
73580 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73581
73582         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73583         time business.
73584         (gethrxtime) [! (HAVE_NANOUPTIME
73585         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73586         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73587         our own approximation.
73588
73589 2005-11-08  Eric Blake  <ebb9@byu.net>
73590
73591         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73592
73593 2005-11-08  Eric Blake  <ebb9@byu.net>
73594
73595         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73596
73597 2005-11-04  Bruno Haible  <bruno@clisp.org>
73598
73599         * gnulib-tool: Implement --update mode.
73600
73601 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73602
73603         Fix porting problem reported by Theodoros V. Kalamatianos.
73604         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73605         Don't assume that futimes failing means we must fail.
73606
73607 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73608
73609         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73610         variables to suggest the intended function of the PATH_MAX check.
73611
73612 2005-10-30  Kean Johnston  <jkj@sco.com>
73613
73614         Trivial changes to support SCO systems.
73615         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73616         as PATH_MAX.
73617         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73618         where __ptr is null when no I/O is pending.
73619
73620 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73621
73622         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73623         leave errno alone.  Problem reported by Dmitry V. Levin.
73624
73625 2005-10-28  Simon Josefsson  <jas@extundo.com>
73626
73627         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73628         Test more.
73629
73630         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73631
73632         * modules/md2, modules/md2-tests: New files.
73633
73634 2005-10-28  Simon Josefsson  <jas@extundo.com>
73635
73636         * m4/inet_ntop.m4: More tests.
73637
73638         * m4/gc-md2.m4, md2.m4: New file.
73639
73640 2005-10-28  Simon Josefsson  <jas@extundo.com>
73641
73642         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73643         "restrict" keywords, as per POSIX.  Protect the function
73644         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73645         Don't use K&R prototypes.  Check the sprintf return values.
73646         Re-define EAFNOSUPPORT if not present.  Indent.
73647
73648         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73649         suggested by Bruno Haible <bruno@clisp.org>.
73650
73651         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73652
73653         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73654
73655         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73656         libgcrypt).
73657
73658         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73659
73660         * lib/md2.h, lib/md2.c: New files.
73661
73662 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73663
73664         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73665         errno alone.  Problem reported by Frederic Jolliton.
73666
73667 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73668
73669         * modules/verify (License): Change from GPL to LGPL.  This is a
73670         tiny module and there are apparently near-equivalents that are
73671         under the BSD license.
73672
73673 2005-10-24  Simon Josefsson  <jas@extundo.com>
73674
73675         * modules/sha1: Relicense to LGPL.
73676
73677 2005-10-24  Simon Josefsson  <jas@extundo.com>
73678
73679         * lib/md4.h: Shrink buffer size, now that we changed the type.
73680
73681 2005-10-23  Simon Josefsson  <jas@extundo.com>
73682
73683         * gnulib-tool (func_import): Fix --tests-base.
73684
73685 2005-10-22  Simon Josefsson  <jas@extundo.com>
73686
73687         * modules/arcfour (Depends-on): Need stdint.
73688
73689 2005-10-22  Simon Josefsson  <jas@extundo.com>
73690
73691         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73692         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73693
73694 2005-10-22  Simon Josefsson  <jas@extundo.com>
73695
73696         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73697         suggested by Bruno Haible <bruno@clisp.org>.
73698
73699 2005-10-22  Simon Josefsson  <jas@extundo.com>
73700
73701         * lib/crc.h: Include stddef.h, for size_t.
73702
73703 2005-10-22  Simon Josefsson  <jas@extundo.com>
73704
73705         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73706         arcfour_context struct (simplify test vector testing in GNU
73707         Shishi).
73708
73709 2005-10-21  Simon Josefsson  <jas@extundo.com>
73710
73711         * modules/des, modules/des-tests: New files.
73712
73713         * modules/gc-des, modules/gc-des-tests: New files.
73714
73715         * tests/test-des.c, tests/test-gc-des.c: New file.
73716
73717 2005-10-21  Simon Josefsson  <jas@extundo.com>
73718
73719         * modules/arctwo, modules/arctwo-tests: New files.
73720
73721         * tests/test-arctwo.c: New file.
73722
73723         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73724
73725         * tests/test-gc-arctwo.c: New file.
73726
73727 2005-10-21  Simon Josefsson  <jas@extundo.com>
73728
73729         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73730         Bruno Haible <bruno@clisp.org>.
73731
73732         * m4/gc-des.m4: New file.
73733
73734 2005-10-21  Simon Josefsson  <jas@extundo.com>
73735
73736         * m4/arctwo.m4: New file.
73737
73738         * m4/gc-arctwo.m4: New file.
73739
73740 2005-10-21  Simon Josefsson  <jas@extundo.com>
73741
73742         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73743         block.
73744
73745 2005-10-21  Simon Josefsson  <jas@extundo.com>
73746
73747         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73748         <bruno@clisp.org>.
73749
73750         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73751
73752         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73753         Bruno Haible <bruno@clisp.org>.
73754
73755         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73756         <bruno@clisp.org>.
73757
73758 2005-10-21  Simon Josefsson  <jas@extundo.com>
73759
73760         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73761
73762 2005-10-21  Simon Josefsson  <jas@extundo.com>
73763
73764         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73765
73766 2005-10-21  Simon Josefsson  <jas@extundo.com>
73767
73768         * lib/des.h, lib/des.c: New files.
73769
73770         * lib/gc-gnulib.c: Support DES.c
73771
73772 2005-10-21  Simon Josefsson  <jas@extundo.com>
73773
73774         * lib/arctwo.h, lib/arctwo.c: New files.
73775
73776         * lib/gc-gnulib.c: Support ARCTWO.
73777
73778 2005-10-21  Simon Josefsson  <jas@extundo.com>
73779
73780         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73781         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73782
73783 2005-10-21  Simon Josefsson  <jas@extundo.com>
73784
73785         * gnulib-tool (func_import, func_create_testdir): Define automake
73786         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73787         Makefile.am snippet),
73788         suggested by Bruno Haible <bruno@clisp.org>.
73789
73790         * modules/gc (Makefile.am): Use it.
73791
73792 2005-10-21  Bruno Haible  <bruno@clisp.org>
73793
73794         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73795         patch.
73796
73797 2005-10-19  Simon Josefsson  <jas@extundo.com>
73798
73799         * tests/test-gc-rijndael.c: New file.
73800
73801         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73802
73803 2005-10-19  Simon Josefsson  <jas@extundo.com>
73804
73805         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73806         interface too.
73807
73808 2005-10-19  Simon Josefsson  <jas@extundo.com>
73809
73810         * tests/test-gc-arcfour.c: New file.
73811
73812         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73813
73814 2005-10-19  Simon Josefsson  <jas@extundo.com>
73815
73816         * modules/gc-md4, modules/gc-md4-tests: New file.
73817
73818         * tests/test-gc-md4.c: New file.
73819
73820 2005-10-19  Simon Josefsson  <jas@extundo.com>
73821
73822         * m4/gc-md4.m4: New file.
73823
73824 2005-10-19  Simon Josefsson  <jas@extundo.com>
73825
73826         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73827         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73828         <kasal@ucw.cz>.
73829
73830 2005-10-19  Simon Josefsson  <jas@extundo.com>
73831
73832         * m4/gc-arcfour.m4: New file.
73833
73834         * m4/gc-rijndael.m4: New file.
73835
73836 2005-10-19  Simon Josefsson  <jas@extundo.com>
73837
73838         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73839
73840 2005-10-19  Simon Josefsson  <jas@extundo.com>
73841
73842         * lib/gc-gnulib.c: Support ARCFOUR.
73843
73844 2005-10-19  Simon Josefsson  <jas@extundo.com>
73845
73846         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73847         support.
73848
73849         * lib/gc.h: Add ECB enum type.
73850
73851         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73852
73853 2005-10-18  Simon Josefsson  <jas@extundo.com>
73854
73855         * tests/test-md5.c: New file.
73856
73857         * modules/md5-tests: New file.
73858
73859 2005-10-18  Simon Josefsson  <jas@extundo.com>
73860
73861         * tests/test-md4.c: New file.
73862
73863         * modules/md4, modules/md4-tests: New files.
73864
73865 2005-10-18  Simon Josefsson  <jas@extundo.com>
73866
73867         * m4/md4.m4: New file.
73868
73869 2005-10-18  Simon Josefsson  <jas@extundo.com>
73870
73871         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73872
73873 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73874
73875         * gnulib-tool (func_create_testdir): Omit the second check whether
73876         BUILT_SOURCES in nonempty.
73877
73878 2005-10-17  Simon Josefsson  <jas@extundo.com>
73879
73880         * tests/test-rijndael.c: New file.
73881
73882 2005-10-17  Simon Josefsson  <jas@extundo.com>
73883
73884         * modules/sha1: Depend on stdint instead of md5.
73885
73886         * modules/md5: Depend on stdint, remove uint32_t.
73887
73888 2005-10-17  Simon Josefsson  <jas@extundo.com>
73889
73890         * modules/gc-sha1-tests: New file.
73891
73892         * tests/test-gc-sha1.c: New file.
73893
73894 2005-10-17  Simon Josefsson  <jas@extundo.com>
73895
73896         * m4/md5.m4: Remove call to uint32_t.m4.
73897
73898 2005-10-17  Simon Josefsson  <jas@extundo.com>
73899
73900         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73901
73902         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73903         md5.h.
73904
73905         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73906
73907         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73908
73909 2005-10-17  Simon Josefsson  <jas@extundo.com>
73910
73911         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73912
73913 2005-10-17  Simon Josefsson  <jas@extundo.com>
73914
73915         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73916
73917 2005-10-17  Simon Josefsson  <jas@extundo.com>
73918
73919         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73920
73921         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73922
73923 2005-10-17  Bruno Haible  <bruno@clisp.org>
73924
73925         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73926         that it can also be used in a test.
73927
73928 2005-10-16  Bruno Haible  <bruno@clisp.org>
73929
73930         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73931         TESTS_ENVIRONMENT, so that individual tests can augment it.
73932
73933         * gnulib-tool (func_create_testdir): Use an intermediate target for
73934         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73935         macros, like $(ALLOCA_H), which cannot be passed through the command
73936         line.
73937
73938 2005-10-15  Simon Josefsson  <jas@extundo.com>
73939
73940         * modules/rijndael-tests: New file.
73941
73942         * modules/rijndael: New file.
73943
73944 2005-10-15  Simon Josefsson  <jas@extundo.com>
73945
73946         * m4/rijndael.m4: New file.
73947
73948 2005-10-15  Simon Josefsson  <jas@extundo.com>
73949
73950         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73951
73952         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73953
73954 2005-10-14  Simon Josefsson  <jas@extundo.com>
73955
73956         * tests/test-arcfour.c: New file.
73957
73958         * modules/arcfour, modules/arcfour-tests: New files.
73959
73960 2005-10-14  Simon Josefsson  <jas@extundo.com>
73961
73962         * m4/arcfour.m4: New file.
73963
73964 2005-10-14  Simon Josefsson  <jas@extundo.com>
73965
73966         * lib/arcfour.h, lib/arcfour.c: New files.
73967
73968 2005-10-14  Roland McGrath  <roland@redhat.com>
73969
73970         Import from libc.  [BZ #1331]
73971         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73972         macro argument.
73973         Reported by Matej Vela <vela@debian.org>.
73974
73975 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73976
73977         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73978         include <wchar.h>; no longer needed.
73979
73980 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73981
73982         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73983
73984 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73985         and  Ulrich Drepper  <drepper@redhat.com>
73986
73987         Import from libc.
73988         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73989         instead of inline stream orientation test and two separate
73990         function calls.  Pay no attention to USE_IN_LIBIO.
73991
73992 2005-10-13  Simon Josefsson  <jas@extundo.com>
73993
73994         * modules/gc-hmac-md5-tests: New file.
73995
73996         * tests/test-gc-hmac-sha1.c: New file.
73997
73998         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73999
74000         * modules/gc-hmac-md5-tests: New file.
74001
74002         * tests/test-gc-md5.c: New file.
74003
74004         * modules/gc-md5-tests: New file.
74005
74006 2005-10-13  Simon Josefsson  <jas@extundo.com>
74007
74008         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74009         Move memory allocation outside of loop.
74010
74011 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74012
74013         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74014         intermediate directory is in a read-only file system.  Problem
74015         reported by Eric Blake.
74016
74017 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74018
74019         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74020
74021 2005-10-12  Simon Josefsson  <jas@extundo.com>
74022
74023         * tests/test-hmac-sha1.c: New file.
74024
74025         * modules/hmac-sha1-tests: New file.
74026
74027         * modules/hmac-sha1: New file.
74028
74029 2005-10-12  Simon Josefsson  <jas@extundo.com>
74030
74031         * modules/gc-sha1: New file.
74032
74033 2005-10-12  Simon Josefsson  <jas@extundo.com>
74034
74035         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74036
74037         * tests/test-gc-pbkdf2-sha1.c: New file.
74038
74039 2005-10-12  Simon Josefsson  <jas@extundo.com>
74040
74041         * modules/gc-md5, modules/gc-hmac-md5: New files.
74042
74043         * modules/gc (Files): Remove md5, memxor and hmac files.
74044
74045 2005-10-12  Simon Josefsson  <jas@extundo.com>
74046
74047         * m4/gc-pbkdf2-sha1.m4: New file.
74048
74049         * m4/gc-hmac-sha1.m4: New file.
74050
74051         * m4/gc-sha1: New file.
74052
74053         * m4/hmac-sha1.m4: New file.
74054
74055 2005-10-12  Simon Josefsson  <jas@extundo.com>
74056
74057         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74058
74059         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74060
74061 2005-10-12  Simon Josefsson  <jas@extundo.com>
74062
74063         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74064         suggested by Bruno Haible <bruno@clisp.org>.
74065
74066 2005-10-12  Simon Josefsson  <jas@extundo.com>
74067
74068         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74069
74070 2005-10-12  Simon Josefsson  <jas@extundo.com>
74071
74072         * lib/gc-pbkdf2-sha1.c: New file.
74073
74074         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74075
74076 2005-10-12  Simon Josefsson  <jas@extundo.com>
74077
74078         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74079
74080         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74081
74082 2005-10-12  Simon Josefsson  <jas@extundo.com>
74083
74084         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74085         GC_USE_HMAC_MD5, respectively.
74086
74087         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74088         (gc_md5): Fix typo.
74089
74090         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74091
74092         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74093
74094         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74095
74096 2005-10-12  Bruno Haible  <bruno@clisp.org>
74097
74098         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74099         Reported by Stepan Kasal <kasal@ucw.cz>.
74100
74101 2005-10-11  Simon Josefsson  <jas@extundo.com>
74102
74103         * tests/test-crc.c: New file.
74104
74105         * modules/crc, modules/crc-tests: New files.
74106
74107 2005-10-11  Simon Josefsson  <jas@extundo.com>
74108
74109         * m4/crc.m4: New file.
74110
74111 2005-10-11  Simon Josefsson  <jas@extundo.com>
74112
74113         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74114
74115         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74116
74117         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74118
74119 2005-10-11  Simon Josefsson  <jas@extundo.com>
74120
74121         * lib/crc.h, lib/crc.c: New files.
74122
74123         * lib/gc.h (gc_hash_buffer): Add doc.
74124
74125 2005-10-11  Bruno Haible  <bruno@clisp.org>
74126
74127         * modules/c-strcasestr: New file.
74128         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74129
74130 2005-10-11  Bruno Haible  <bruno@clisp.org>
74131
74132         * modules/c-strcase: New file.
74133         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74134
74135 2005-10-11  Bruno Haible  <bruno@clisp.org>
74136
74137         * lib/strcasecmp.c: Include limits.h.
74138         (strcasecmp): Avoid integer overflow on exotic platforms.
74139         * lib/strncasecmp.c: Include limits.h.
74140         (strncasecmp): Avoid integer overflow on exotic platforms.
74141         Reported by Paul Eggert.
74142
74143 2005-10-11  Bruno Haible  <bruno@clisp.org>
74144
74145         * lib/c-strcasestr.h: New file, from GNU gettext.
74146         * lib/c-strcasestr.c: New file, from GNU gettext.
74147
74148 2005-10-11  Bruno Haible  <bruno@clisp.org>
74149
74150         * lib/c-strcase.h: New file, from GNU gettext.
74151         * lib/c-strcasecmp.c: New file, from GNU gettext.
74152         * lib/c-strncasecmp.c: New file, from GNU gettext.
74153
74154 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74155
74156         * modules/mempcpy (License): GPL -> LGPL.
74157         * modules/strchrnul (License): Likewise.
74158         * modules/sysexits (License): Likewise.
74159
74160 2005-10-08  Simon Josefsson  <jas@extundo.com>
74161
74162         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74163
74164 2005-10-07  Simon Josefsson  <jas@extundo.com>
74165
74166         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74167
74168 2005-10-06  Simon Josefsson  <jas@extundo.com>
74169
74170         * tests/test-hmac-md5.c: New file.
74171
74172         * modules/hmac-md5-tests: New file.
74173
74174         * modules/hmac-md5: New file.
74175
74176 2005-10-06  Simon Josefsson  <jas@extundo.com>
74177
74178         * m4/hmac-md5.m4: New file.
74179
74180         * m4/memxor.m4: Require gl_C_RESTRICT.
74181
74182 2005-10-06  Simon Josefsson  <jas@extundo.com>
74183
74184         * lib/memxor.c (memxor): Avoid casts and warnings.
74185
74186 2005-10-06  Simon Josefsson  <jas@extundo.com>
74187
74188         * lib/hmac-md5.c: New file.
74189
74190         * lib/hmac.h: New file.
74191
74192 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74193
74194         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74195         promotes to int, not unsigned int, to catch the AIX 5.3
74196         compiler bug.
74197
74198 2005-10-05  Simon Josefsson  <jas@extundo.com>
74199
74200         * modules/memxor: New file.
74201
74202         * modules/iconv (Files): Move config.rpath to havelib, it is used
74203         there.
74204
74205         * modules/havelib (Files): Add config.rpath.
74206
74207 2005-10-05  Simon Josefsson  <jas@extundo.com>
74208
74209         * m4/memxor.m4: New file.
74210
74211 2005-10-05  Simon Josefsson  <jas@extundo.com>
74212
74213         * lib/memxor.c (memxor): Fix compiler error.
74214
74215         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74216         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74217
74218         * lib/memxor.h, lib/memxor.c: New files.
74219
74220         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74221         we assume all systems have it, suggested by Jim Meyering
74222         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74223         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74224         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74225         same reasons.
74226
74227 2005-10-05  Simon Josefsson  <jas@extundo.com>
74228
74229         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74230
74231 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74232
74233         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74234         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74235         needed, since the source code now assumes these .h files.
74236
74237 2005-10-05  Derek Price  <derek@ximbiot.com>
74238
74239         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74240
74241 2005-10-05  Bruno Haible  <bruno@clisp.org>
74242
74243         * modules/stdint (License): Change to LGPL.
74244
74245 2005-10-04  Simon Josefsson  <jas@extundo.com>
74246
74247         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74248         D. Baushke" <mdb@gnu.org>.
74249
74250 2005-10-04  Bruno Haible  <bruno@clisp.org>
74251
74252         * lib/verify.h (verify_true): Provide alternative definition for C++.
74253
74254 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74255
74256         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74257         (SSIZE_MAX): New macro, if not already defined.
74258         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74259         than 2 GiB.
74260
74261 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74262
74263         Sync from coreutils.
74264         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74265         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74266         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74267         ULLONG_MAX doesn't work with 2.7.2.1.
74268
74269 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74270
74271         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74272         From Ben Pfaff.
74273
74274         * modules/exclude (Depends-on): Depend on verify.
74275         * modules/strtoimax (Depends-on): Likewise.
74276         * modules/utimecmp (Depends-on): Likewise.
74277
74278 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74279
74280         * lib/exclude.c: Include verify.h.
74281         (verify): Remove.  All callers changed to use verify.h's version.
74282         * lib/strtoimax.c: Likewise.
74283         * lib/utimecmp.c: Likewis.e
74284
74285         Sync from coreutils.
74286         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74287         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74288         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74289         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74290         bother returning ENOSYS if settimeofday or stime fails; just let
74291         them return whatever errno they want to return.
74292         * lib/utimens.c: Include unistd.h, for dup2.
74293         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74294         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74295
74296 2005-10-02  Jim Meyering  <jim@meyering.net>
74297
74298         Sync from coreutils.
74299         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74300         from glibc-2.2.5 that fails for read-only files.
74301
74302 2005-10-02  Jim Meyering  <jim@meyering.net>
74303
74304         Sync from coreutils.
74305         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74306         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74307         `#if HAVE_CONFIG_H'.
74308         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74309         Remove AT_FDCWD test.
74310         Do not consume the fd unless successful.
74311         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74312         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74313         block, so that we don't even try to compile it if settimeofday is
74314         available.  This works around a compilation failure on OSF1 V5.1,
74315         due to stime requiring a `long int*' while tv_sec is `int'.
74316
74317 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74318
74319         Sync from coreutils.
74320         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74321         against `yes', rather than just testing for nonempty.
74322
74323 2005-10-01  Simon Josefsson  <jas@extundo.com>
74324
74325         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74326         and Darwin.
74327
74328         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74329         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74330         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74331         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74332         Check if struct addrinfo is declared.
74333
74334 2005-10-01  Simon Josefsson  <jas@extundo.com>
74335
74336         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74337         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74338         AI_* and EAI_* definitions.  Protect function declarations.
74339
74340 2005-10-01  Jim Meyering  <jim@meyering.net>
74341
74342         Sync from coreutils.
74343
74344         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74345         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74346         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74347         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74348         in the inet and nsl libraries.  Required on Solaris 5.7.
74349
74350 2005-10-01  Jim Meyering  <jim@meyering.net>
74351
74352         Sync from coreutils.
74353         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74354         in the inet and nsl libraries.  Required on Solaris 5.7.
74355
74356 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74357
74358         * lib/getdelim.c (getdelim): Remove unused variables.
74359
74360 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74361
74362         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74363         so that the code works even with ancient cpp.  Portability problem
74364         with GCC 2.7.2.1 reported by Thomas M.Ott.
74365
74366 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74367
74368         * modules/regex (Depends-on): Add strcase.
74369
74370         * modules/gethostname (Licence): Change from GPL to LGPL, since
74371         gethostname.c is a trivial implementation of a standard library
74372         function.
74373         * modules/poll (License): Change from GPL to LGPL, since it's
74374         derived from LGPL code.
74375
74376 2005-09-27  Jim Meyering  <jim@meyering.net>
74377
74378         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74379         HAVE_CONFIG_H.
74380
74381         * lib/intprops.h (signed_type_or_expr__): Define.
74382         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74383         for unsigned types.
74384
74385 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74386
74387         * lib/verify.h (verify_expr): Remove, replacing with:
74388         (verify_true): New macro that returns true instead of void.
74389         (verify_type__): Remove.
74390         (verify): Use verify_true rather than verify_type__.
74391
74392 2005-09-26  Bruno Haible  <bruno@clisp.org>
74393
74394         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74395         is necessary.
74396         (lib_SOURCES): Remove mbchar.c.
74397         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74398         (Files): Add m4/mbrtowc.m4.
74399         * modules/mbiter: Likewise.
74400         * modules/mbuiter: Likewise.
74401
74402 2005-09-26  Bruno Haible  <bruno@clisp.org>
74403
74404         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74405         compile mbchar.c if they are not both present.
74406         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74407         * m4/mbiter.m4 (gl_MBITER): Likewise.
74408         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74409         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74410         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74411
74412 2005-09-25  Jim Meyering  <jim@meyering.net>
74413
74414         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74415         also uses socklen_t.
74416
74417 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74418
74419         * lib/utimens.c (ENOSYS): Define if not already defined.
74420         (futimens): Support having a null PATH if the file descriptor
74421         is nonnegative.
74422
74423         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74424         Remove.
74425         (__attribute): Define to empty unless GCC 3.1 or later.
74426         This works around a core dump on OpenBSD 3.4, which has GCC
74427         2.95.3, which dumps core when given __attribute__(()).  It also
74428         simplifies other tests, since we really don't want to bother with
74429         worrying about which ancient version of GCC supported what.
74430         Original problem reported by Yoann Vandoorselaere, with part of
74431         the fix suggested by Derek Price.
74432
74433 2005-09-24  Jim Meyering  <jim@meyering.net>
74434
74435         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74436         so we can once again use a positive bitfield width of 1 -- now we
74437         don't have to explain why we were using a bitfield width of 2.
74438
74439 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74440
74441         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74442         and similarly for the other external symbols.  Problem reported
74443         by James Gallager.
74444
74445         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74446         bug reported by Jim Meyering.
74447
74448         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74449         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74450         not needed, since socklen is a prerequisite module.
74451
74452 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74453
74454         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74455         Problem reported by Eric Blake.
74456         (getaddrinfo): Initialize se so that it's not garbage.
74457         Redo internal storage allocation so that it doesn't make unportable
74458         assumptions about alignment.
74459         Fix a memory leak.
74460
74461         * lib/utimens.c (futimens): Use futimesat if available.
74462         Prefer it to futimes since it doesn't have the futimes bug.
74463
74464         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74465         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74466         Instead, declare a function that returns a pointer to an array,
74467         and use verify_type__ to declare the size of the array.
74468         Problem and germ of a solution reported by Bruno Haible.
74469         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74470         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74471
74472 2005-09-23  Jim Meyering  <jim@meyering.net>
74473
74474         Sync from coreutils.
74475         Correct build failure (socklen_t not defined) on at least
74476         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74477         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74478
74479 2005-09-23  Jim Meyering  <jim@meyering.net>
74480
74481         * modules/getaddrinfo (Depends-on): Add socklen.
74482
74483 2005-09-23  Bruno Haible  <bruno@clisp.org>
74484
74485         * tests/test-verify.c: New file.
74486
74487 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74488
74489         Sync from coreutils.
74490
74491         * modules/argmatch (Depends-on): Add verify.
74492         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74493         unistd-safer.
74494         * modules/save-cwd (Depends-on): Likewise.
74495
74496         * modules/openat (Files): Add lib/openat-die.c.
74497         (Depends-on): Remove error, exitfail.
74498         Add dirname.
74499
74500         * modules/verify: New file.
74501         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74502         with "verify" module.
74503
74504 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         Sync from coreutils.
74507
74508         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74509         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74510         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74511         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74512         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74513         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74514         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74515         Don't bother checking for string.h, stdlib.h, unistd.h.
74516         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74517         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74518         module's job.
74519         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74520         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74521
74522         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74523         (gl_GETDATE): Use it.
74524
74525         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74526
74527 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74528
74529         Sync from coreutils.
74530
74531         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74532         stat-time.h.
74533         * lib/argmatch.h: Include verify.h
74534         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74535         (ARGMATCH_ASSERT): Remove; unused.
74536         * lib/canonicalize.c: Assume STDC_HEADERS.
74537         * lib/exclude.c: Include "strcase.h".
74538         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74539         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74540         and stdio-safer.h.
74541         (getusershell): Call fopen, not fopen_safer.
74542         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74543         Do not include unistd-safer.h.
74544         (save_cwd): Don't call fd_safer; no longer needed
74545         now that we include fcntl--.h.
74546
74547         * lib/getdate.y (relative_time): New type.
74548         (RELATIVE_TIME_0): New constant.
74549         (parser_control): Use relative_time instead of doing it ourselves.
74550         (%union): Add new relative_time rel member.
74551         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74552         Now typeless.
74553         (relunit, relunit_snumber): Now of type rel.
74554         (zone, rel, relunit, get_date): Adjust to above changes.
74555
74556         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74557         Do not include unistd-safer.h.
74558         (getloadavg): Don't call fd_safer; no longer needed
74559         now that we include fcntl--.h.
74560
74561         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74562         (make_dir_parents): Treat ENOSYS like EEXIST.
74563
74564         Improve quality of diagnostics on restore_cwd failure.
74565         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74566         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74567         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74568         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74569         each time through the loop.  Do not diagnose restore_cwd failure;
74570         that is the caller's job (and perhaps the caller does not care).
74571
74572         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74573         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74574         If the file already exists but is not a directory, don't bother
74575         to try to make its parents.
74576         Close potential file descriptor leak if we can't chdir("/") (!).
74577         Don't always return true if chdir($PWD) fails; return true only
74578         if the requested action was done successfully (except for the
74579         chdir($PWD)).
74580         Don't log final directory unless we actually made it.
74581         Refactor to avoid duplicate code to fix up permissions.
74582         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74583
74584         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74585         to make it a bit faster and (I hope) clearer.
74586         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74587         Fix bug in formats like %2N.
74588
74589         * lib/verify.h: New file.
74590
74591 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74592
74593         Sync from coreutils.
74594         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74595
74596 2005-09-22  Jim Meyering  <jim@meyering.net>
74597
74598         Sync from coreutils.
74599
74600         * m4/lstat.m4 (gl_FUNC_LSTAT):
74601         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74602         Remove obsolete comment.
74603         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74604         * m4/xstrtod.m4: Likewise.
74605
74606         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74607
74608 2005-09-22  Jim Meyering  <jim@meyering.net>
74609
74610         Sync from coreutils.
74611
74612         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74613
74614         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74615         the .tm_year member, since otherwise gcc-4.0 would now warn about
74616         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74617
74618         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74619         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74620
74621         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74622         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74623         when run in a time zone for which daylight savings time is in effect
74624         for the starting date.
74625
74626         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74627         stop us from restricting permissions of just-created absolute-named
74628         directories.
74629         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74630         to restore initial working directory.
74631         * lib/mkdir-p.c (make_dir_parents): New parameter:
74632         different_working_dir, to tell caller if/when we change the working
74633         directory and are unable to return to the initial one.
74634         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74635         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74636         `return false'.  This fixes a bug introduced on 2004-07-30.
74637
74638         * lib/openat.c (fdopendir): Be sure to close the supplied
74639         file descriptor before returning.  This makes our replacement
74640         implementation a little closer to Solaris's, where fdopendir
74641         ties the file descriptor to the returned DIR* pointer.
74642         * lib/openat.c (unlinkat): New function.
74643         * lib/openat.h (unlinkat): Add prototype.
74644         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74645         (openat_restore_fail): Rename from openat_restore_die.
74646         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74647
74648         Provide an alternative to exiting immediately upon save_cwd or
74649         restore_cwd failure.  Now, an application can arrange e.g.,
74650         to perform a longjump in that case.
74651         * lib/openat.c: Include dirname.h.
74652         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74653         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74654         and openat_restore_die rather than calling error directly.
74655         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74656
74657         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74658         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74659         define.
74660
74661         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74662         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74663                             int utc, int nanoseconds);
74664         Background:
74665         date should not have to allocate a megabyte of virtual memory to
74666         handle a format argument like +%1048575T.  When implemented with
74667         strftime, it must allocate such a buffer, use strftime to fill it
74668         in, print it, then free it.
74669         With fprintftime, it simply prints everything and exits.
74670         With no need for memory allocation, that's one fewer way to fail.
74671         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74672         optional field width, not before, so we accept %9:z, not %:9z.
74673         (my_strftime): Be sure to use L_('x') for literals.
74674
74675         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74676         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74677         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74678         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74679         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74680         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74681         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74682         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74683         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74684         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74685         * lib/xgethostname.c, lib/xreadlink.c:
74686         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74687
74688         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74689         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74690         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74691         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74692         and don't include <sys/file.h>).
74693
74694 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74695
74696         Sync from coreutils.
74697
74698         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74699         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74700         [!LDAV_DONE]: Avoid unused variable warning.
74701
74702 2005-09-21  Bruno Haible  <bruno@clisp.org>
74703
74704         * lib/unicodeio.h (unicode_to_mb): New declaration.
74705
74706 2005-09-20  Derek Price  <derek@ximbiot.com>
74707
74708         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74709         getaddrinfo.h.
74710
74711 2005-09-20  Bruno Haible  <bruno@clisp.org>
74712
74713         * gnulib-tool: Remove trailing slashes from the values specified for
74714         --source-base, --m4-base, --tests-base, --aux-dir.
74715         Suggested by Simon Josefsson <jas@extundo.com>.
74716
74717 2005-09-20  Bruno Haible  <bruno@clisp.org>
74718
74719         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74720         func_modules_to_filelist, func_import, func_create_testdir): Make all
74721         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74722         change when gnulib-tool is invoked in a different locale.
74723
74724 2005-09-19  Simon Josefsson  <jas@extundo.com>
74725
74726         * m4/socklen.m4: Fix typo.
74727
74728 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74729
74730         Use a consistent style for including <config.h>.
74731         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74732         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74733         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74734         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74735         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74736         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74737         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74738         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74739         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74740         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74741         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74742         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74743         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74744         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74745         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74746         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74747         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74748         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74749         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74750         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74751         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74752         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74753         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74754         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74755         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74756         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74757         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74758         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74759         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74760         lib/xstrtoumax.c, lib/yesno.c:
74761         Standardize inclusion of config.h.
74762         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74763         lib/inttostr.h:  Removed inclusion of config.h from header files.
74764         * lib/inttostr.c:  Adjusted in-tree users.
74765         * lib/timespec.h: Remove superfluous warning to include config.h.
74766         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74767         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74768         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74769         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74770         config.h with HAVE_CONFIG_H.
74771
74772 2005-09-19  Jim Meyering  <jim@meyering.net>
74773
74774         * modules/pathmax (License): Change to LGPL.
74775
74776 2005-09-19  Derek Price  <derek@ximbiot.com>
74777
74778         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74779
74780 2005-09-19  Bruno Haible  <bruno@clisp.org>
74781
74782         * gnulib-tool (import): Provide default for --tests-base.
74783
74784 2005-09-19  Bruno Haible  <bruno@clisp.org>
74785
74786         * doc/quote.texi: New file, extracted from gnulib.texi.
74787         * doc/ctime.texi: New file, extracted from gnulib.texi.
74788         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74789         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74790         * doc/gnulib.texi: Include them.
74791
74792 2005-09-18  Bruno Haible  <bruno@clisp.org>
74793
74794         Portability fix.
74795         * gnulib-tool (func_readlink): New function.
74796         (func_ln_if_changed): Use it.
74797
74798 2005-09-18  Bruno Haible  <bruno@clisp.org>
74799
74800         * gnulib-tool: Support --with-tests also with --import.
74801         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74802         (func_import): Use variables $testsbase and $inctests. Emit a
74803         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74804         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74805         SUBDIRS += $testsdir.
74806         (func_create_testdir): Update.
74807
74808 2005-09-18  Bruno Haible  <bruno@clisp.org>
74809
74810         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74811         instead of $dry_run.
74812         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74813         (func_ln_if_changed): Don't handle dry-run here.
74814         (func_import): In dry-run mode, detect more precisely which actions
74815         would be performed, and don't use "...ing" verbs.
74816
74817 2005-09-18  Bruno Haible  <bruno@clisp.org>
74818
74819         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74820         (func_import): Use join on two temporary files instead of three nested
74821         loops, in order to determine which files are new or old.
74822
74823 2005-09-18  Bruno Haible  <bruno@clisp.org>
74824
74825         * gnulib-tool (func_import): Comment out code that spits out the
74826         new files with --dry-run.
74827
74828 2005-09-18  Bruno Haible  <bruno@clisp.org>
74829
74830         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74831
74832 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         * lib/stat-time.h: New file.
74835         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74836         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74837         in a different way.
74838         (timespec_cmp): New function.
74839         * lib/utimecmp.c: Include stat-time.h.
74840         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74841         members exist, not on the obsolescent ST_MTIM_NSEC.
74842         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74843
74844 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74847
74848 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74849
74850         * MODULES.html.sh (File system functions): Add stat-time.
74851         * modules/stat-time: New file.
74852         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74853         is now done in a different way, by the stat-time module.
74854         * modules/utimecmp (Depends-on): Add stat-time.
74855
74856 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74857
74858         * m4/st_mtim.m4: Remove.  Superseded by...
74859         * m4/stat-time.m4: New file.
74860         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74861         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74862
74863 2005-09-15  Derek Price  <derek@ximbiot.com>
74864
74865         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74866
74867 2005-09-15  Derek Price  <derek@ximbiot.com>
74868
74869         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74870         * lib/regex_internal.c: Ditto, using this...
74871         (__GNUC_PREREQ): ...new macro.
74872         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74873         using...
74874         (__GNUC_PREREQ): ...this new macro.
74875
74876         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74877
74878 2005-09-15  Derek Price  <derek@ximbiot.com>
74879             Paul Eggert  <eggert@cs.ucla.edu>
74880
74881         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74882         changes, consolidating in...
74883         * lib/regex_internal.h: ...this file.
74884
74885 2005-09-13  Jim Meyering  <jim@meyering.net>
74886
74887         * lib/canon-host.c: Filter through gnu indent and reword comments
74888         slightly.
74889         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74890
74891 2005-09-13  Derek Price  <derek@ximbiot.com>
74892
74893         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74894         failure.
74895         Reported by Jim Meyering  <jim@meyering.net>.
74896
74897 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74898
74899         * lib/base64.c: Typo.
74900         (base64_encode): Put b64str in initialized data section.
74901
74902 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74903
74904         Merge glibc and coreutils changes into gnulib, plus a few
74905         extra fixes.
74906         * lib/md5.c: Use #error rather than a string.
74907         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74908         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74909         (__attribute__): Define to empty for non recent-GCC.
74910         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74911         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74912         Renamed from their non-__ counterparts, with new macros replacing
74913         them if not _LIBC.  Add __THROW attribute.
74914         (rol): Remove.
74915         (struct md5_ctx): Align buffer if using GCC.
74916         * lib/sha1.h (struct sha1_ctx): Likewise.
74917         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74918         The old name was backwards.
74919         (NOTSWAP): Remove; not used.
74920         (rol): New macro, moved here from md5.h.
74921         (sha1_process_block): Remove a FIXME that doesn't make sense.
74922
74923 2005-09-12  Derek Price  <derek@ximbiot.com>
74924
74925         Return usable errors from canon-host.
74926         * lib/canon-host.h: New file.
74927         * lib/canon-host.c (canon_host): Wrap...
74928         (canon_host_r): ...this new function, which now relies exclusively on
74929         getaddrinfo.
74930         (ch_strerror): New function.
74931         (last_cherror): New global.
74932         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74933         interface.
74934         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74935         void *.
74936         (freeaddrinfo): Free ai->ai_canonname when set.
74937
74938 2005-09-12  Derek Price  <derek@ximbiot.com>
74939
74940         Make canon-host require getaddrinfo.
74941         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74942         AC_LIBSOURCE canon-host.h.  Call...
74943         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74944         gl_GETADDRINFO.
74945         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74946
74947 2005-09-12  Derek Price  <derek@ximbiot.com>
74948
74949         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74950         LGPL.
74951         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74952
74953 2005-09-12  Derek Price  <derek@ximbiot.com>
74954
74955         * lib/gai_strerror.c: Include config.h when available.  Include
74956         getaddrinfo.h before other headers to test interface.
74957         Reported by Larry Jones <lawrence.jones@ugs.com>.
74958
74959 2005-09-12  Derek Price  <derek@ximbiot.com>
74960             Paul Eggert  <eggert@cs.ucla.edu>
74961
74962         * modules/glob (Files): Add glob-libc.h.
74963
74964 2005-09-12  Derek Price  <derek@ximbiot.com>
74965             Paul Eggert  <eggert@cs.ucla.edu>
74966
74967         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74968         glob_.h, glob-libc.h.
74969         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74970
74971 2005-09-12  Derek Price  <derek@ximbiot.com>
74972             Paul Eggert  <eggert@cs.ucla.edu>
74973
74974         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74975         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74976         protecting things that should be done only in gnulib contexts.
74977         * lib/glob_.h: New file, containing only the glob things needed for
74978         gnulib.
74979         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74980         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74981         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74982         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74983         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74984         and to respect the namespace rules better.
74985
74986 2005-09-08  Simon Josefsson  <jas@extundo.com>
74987
74988         * modules/socklen: New file.
74989
74990 2005-09-08  Simon Josefsson  <jas@extundo.com>
74991
74992         * m4/socklen.m4: New file.
74993
74994 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74995
74996         * modules/utimens (Files): Add m4/utimbuf.m4, since
74997         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74998         Reported by Sergey Poznyakoff.
74999
75000 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75001
75002         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75003         definitions, since that's the preferred style in glibc.
75004         Fix a minor spacing issue, and update copyright notice to match
75005         glibc's.
75006
75007 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75010
75011 2005-09-06  Simon Josefsson  <jas@extundo.com>
75012
75013         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75014         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75015
75016 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75017
75018         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75019         warning.
75020
75021 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75022
75023         * config/srclist.txt: Add glibc bug 1302.
75024
75025 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         Change bitset word type from unsigned int to unsigned long int,
75028         as this has better performance on typical 64-bit hosts.
75029         Port bitset code to hosts with unusual word sizes.
75030         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75031         (build_collating_symbol):
75032         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75033         argument is a bitset.  This is merely a style issue, but it makes
75034         it clearer that an entire array is expected.
75035         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75036         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75037         Port to the case where bitset_word is not the same as unsigned int.
75038         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75039         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75040         Likewise.
75041         * lib/regexec.c (check_dst_limits_calc_pos_1,
75042         check_subexp_matching_top):
75043         (build_trtable, group_nodes_into_DFAstates):
75044         Likewise.
75045         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75046         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75047         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75048         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75049         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75050         * lib/regcomp.c (optimize_subexps, lower_subexp):
75051         Work even if bitset_word has holes in its bitwise representation.
75052         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75053         * lib/regexec.c (check_dst_limits_calc_pos_1,
75054         check_subexp_matching_top):
75055         Likewise.
75056         * lib/regex_internal.c (re_string_reconstruct):
75057         Don't assume UCHAR_MAX == 255.
75058         * lib/regex_internal.h (bitset_set_all): Likewise.
75059         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75060         All uses changed.
75061         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75062         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75063         All uses changed.
75064         (BITSET_WORD_MAX): New macro.
75065         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75066         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75067         (bitset_empty, bitset_copy):
75068         Prefer sizeof (bitset) to multiplying it out ourselves.
75069         (bitset_not_merge): Remove; unused.
75070         (bitset_contain): Return bool, not unsigned int with one bit on.
75071         All callers changed.
75072         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75073         alignment than re_node_set; do this by defining a new internal
75074         type struct dests_alloc and using it to allocate memory.
75075
75076 2005-09-05  Bruno Haible  <bruno@clisp.org>
75077
75078         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75079         links.
75080
75081 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75082
75083         * modules/size_max (Makefile.am): Add size_max.h
75084
75085 2005-09-04  Derek Price  <derek@ximbiot.com>
75086
75087         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75088
75089 2005-09-03  Simon Josefsson  <jas@extundo.com>
75090
75091         * gnulib-tool: Fix typo.
75092
75093 2005-09-03  Simon Josefsson  <jas@extundo.com>
75094
75095         * config/srclist.txt: Add glibc bug 1293.
75096
75097 2005-09-03  Derek Price  <derek@ximbiot.com>
75098
75099         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75100         From Larry Jones <lawrence.jones@ugs.com>.
75101
75102 2005-09-02  Simon Josefsson  <jas@extundo.com>
75103
75104         * modules/socklen: New file.
75105
75106 2005-09-02  Simon Josefsson  <jas@extundo.com>
75107
75108         * modules/havelib: New module.
75109
75110         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75111         Use havelib.
75112
75113 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75114
75115         Check for arithmetic overflow when calculating sizes, to prevent
75116         some buffer-overflow issues.  These patches are conservative, in the
75117         sense that when I couldn't determine whether an overflow was possible,
75118         I inserted a run-time check.
75119         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75120         macros.
75121         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75122         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75123         (re_xnrealloc, re_x2nrealloc): New inline functions.
75124         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75125         parse_bracket_exp):
75126         (build_equiv_class, build_charclass): Check for arithmetic overflow
75127         in size expression calculations.
75128         * lib/regex_internal.c (re_string_realloc_buffers):
75129         (build_wcs_upper_buffer, re_node_set_add_intersect):
75130         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75131         (re_dfa_add_node, register_state): Likewise.
75132         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75133         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75134         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75135         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75136
75137 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75138
75139         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75140         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75141
75142 2005-09-02  Bruno Haible  <bruno@clisp.org>
75143
75144         Support for lib vs. lib64 distinction on biarch platforms.
75145         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75146         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75147         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75148
75149 2005-09-02  Bruno Haible  <bruno@clisp.org>
75150
75151         * gnulib-tool (import): In the other first-use case, provide defaults
75152         as well.
75153
75154 2005-09-02  Bruno Haible  <bruno@clisp.org>
75155
75156         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75157         patches not yet found in the latest gettext release.
75158
75159 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75160
75161         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75162         to avoid a collision with bits/local_lim.h in glibc.
75163         All uses changed.  Problem reported by Dmitry V. Levin in
75164         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75165
75166         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75167         bugs in int versus size_t comparisons.
75168         (re_string_context_at): Fix bug where the code assumed that
75169         Idx is signed.
75170
75171         Use bool where appropriate.
75172         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75173         All callers changed.
75174         (calc_eclosure_iter): Likewise, for ROOT arg.
75175         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75176         (build_charclass_op): Likewise, for NON_MATCH arg.
75177         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75178         (re_string_construct_common): Likewise, for ICASE arg.
75179         * lib/regexec.c (re_search_2_stub, re_search_stub):
75180         Likewise, for RET_LEN arg.
75181         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75182         (set_regs): Likewise, for FL_BACKTRACK arg.
75183         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75184         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75185         (calc_eclosure_iter, parse_bracket_exp):
75186         Use bool for internal variables that are booleans.
75187         * lib/regexec.c (re_search_internal, check_matching,
75188         proceed_next_node):
75189         (set_regs, build_sifted_states, sift_states_bkref):
75190         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75191         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75192         (find_collation_sequence_value):
75193         Likewise.
75194         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75195         (re_node_set_compare):
75196         Return bool, not int. All callers changed.
75197         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75198         (build_trtable, check_node_accept): Likewise.
75199         * lib/regex_internal.h: Include stdbool.h.
75200
75201         Fix bugs uncovered when converting to bool.
75202         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75203         failure instead of charging ahead blindly.
75204         * lib/regex_internal.c (register_state): Likewise.
75205         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75206         for freeing internal storage.
75207         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75208         bitset pieces used as boolean, to avoid undefined behavior
75209         on hosts that do int overflow checking.
75210
75211 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75212
75213         * config/srclist.txt: Add glibc bugs 1285-1287.
75214
75215 2005-09-01  Jim Meyering  <jim@meyering.net>
75216
75217         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75218         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75219         Require gl_STAT_MACROS, too.
75220
75221 2005-09-01  Bruno Haible  <bruno@clisp.org>
75222
75223         * gnulib-tool (import): In the first-use case, provide defaults.
75224
75225 2005-09-01  Bruno Haible  <bruno@clisp.org>
75226
75227         * gnulib-tool (func_import): Remove the .tmp files.
75228
75229 2005-09-01  Bruno Haible  <bruno@clisp.org>
75230
75231         * gnulib-tool (func_import): Fix handling of symbolic links.
75232
75233 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75234
75235         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75236         old glibc regex code mishandles strings longer than 2**31 bytes.
75237         This patch fixes this when the regex code is used in gnulib
75238         (i.e., outside glibc).
75239
75240         This patch should not affect the use of the regex code inside
75241         glibc.  No doubt this problem also needs to be handled for glibc
75242         as well, but the result will be an incompatible change to the
75243         glibc ABI, and the old ABI will have to be supported too.  That
75244         can be the the subject for another patch.
75245
75246         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75247         governing whether the rest of this patch is active.  By default,
75248         the macro is disabled and the patch has no effect.
75249         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75250         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75251         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75252         (re_match_2, re_set_registers): Use the new types.
75253         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75254         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75255         New macros.
75256         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75257         (re_string_context_at, bin_tree_t, re_dfastate_t):
75258         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75259         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75260         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75261         (re_string_char_size_at, re_string_wchar_at):
75262         (re_string_elem_size_at):
75263         Use the new types and macros to port to 64-bit hosts.
75264         Use unsigned types for internal values, so that the code
75265         mostly works even for arrays larger than SSIZE_MAX.
75266         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75267         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75268         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75269         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75270         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75271         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75272         (calc_inveclosure, parse_dup_op, build_range_exp):
75273         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75274         (fetch_number, create_token_tree, mark_opt_subexp):
75275         Likewise.
75276         * lib/regex_internal.c (re_string_construct_common,
75277         create_ci_newstate):
75278         (create_cd_newstate, re_string_allocate, re_string_construct):
75279         (re_string_realloc_buffers, build_wcs_upper_buffer):
75280         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75281         (re_string_reconstruct, re_string_peek_byte_case):
75282         (re_string_fetch_byte_case, re_string_context_at):
75283         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75284         (re_node_set_init_copy, re_node_set_add_intersect):
75285         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75286         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75287         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75288         (re_acquire_state, re_acquire_state_context, register_state):
75289         Likewise.
75290         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75291         search_cur_bkref_entry):
75292         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75293         (re_search_internal, re_search_2_stub, re_search_stub)
75294         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75295         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75296         (update_cur_sifted_state, check_dst_limits):
75297         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75298         (check_subexp_limits, sift_states_bkref, merge_state_array):
75299         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75300         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75301         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75302         (expand_bkref_cache, check_node_accept_bytes):
75303         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75304         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75305         (acquire_init_state_context, check_halt_node_context):
75306         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75307         (sift_states_backward, clean_state_log_if_needed):
75308         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75309         (find_recover_state, transit_state_sb, transit_state_mb):
75310         (transit_state_bkref, build_trtable, match_ctx_clean):
75311         Likewise.
75312         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75313         to work around an assumption that REG_MISSING is negative.
75314
75315         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75316         (seek_collating_symbol_entry) [defined _LIBC]:
75317         (lookup_collation_sequence_value) [defined _LIBC]:
75318         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75319         Use prototypes rather than old-style function definitions.
75320         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75321         (transit_state_sb) [0]:
75322         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75323
75324         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75325         rm_eo.
75326
75327         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75328         (optimize_subexps, lower_subexp):
75329         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75330         since the signed shift might overflow.  Use 1u<<31 instead.
75331         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75332         Likewise.
75333         * lib/regexec.c (check_dst_limits_calc_pos_1,
75334         check_subexp_matching_top): Likewise.
75335
75336         * lib/regcomp.c (optimize_subexps, lower_subexp):
75337         Use CHAR_BIT rather than 8, for clarity.
75338         * lib/regexec.c (check_dst_limits_calc_pos_1):
75339         (check_subexp_matching_top): Likewise.
75340         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75341         have to worry about portability issues when shifting it left.
75342         Remove no-longer-needed test for table_size > 0.
75343         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75344         in a word, as the resulting behavior is undefined.
75345         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75346         in one case, a <= should have been an <, and in another case the
75347         whole test was missing.
75348         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75349         the standard name CHAR_BIT.
75350         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75351         this is not true on one's complement and signed-magnitude hosts.
75352
75353         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75354         next_last_offset.
75355         (struct re_dfa_t): Remove unused member states_alloc.
75356         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75357
75358 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75359
75360         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75361         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75362         and large-file glibc and in 32-bit large-file Solaris.
75363
75364 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75365
75366         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75367         lengths fit in regoff_t; this isn't true if regoff_t is the same
75368         width as size_t.
75369         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75370         (= START + RANGE) instead of RANGE.  This avoids overflow
75371         problems when regoff_t is the same width as size_t.
75372         All callers changed.
75373         (re_search_2_stub): Check for overflow when adding the
75374         sizes of the two strings.
75375         (re_search_stub): Check for overflow when adding START
75376         to RANGE; if it occurs, substitute the extreme value.
75377
75378 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75379
75380         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75381
75382 2005-08-31  Jim Meyering  <jim@meyering.net>
75383
75384         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75385         a pointer-to-const.
75386         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75387         (register_state): Likewise.
75388         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75389         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75390         (group_nodes_into_DFAstates): Likewise.
75391
75392 2005-08-31  Jim Meyering  <jim@meyering.net>
75393
75394         * check-module: Add a FIXME comment.
75395
75396 2005-08-31  Eric Blake  <ebb9@byu.net>
75397
75398         * modules/unistd-safer (Files): Add unistd--.h.
75399         * modules/stdio-safer (Files): Add stdio--.h.
75400
75401 2005-08-31  Derek Price  <derek@ximbiot.com>
75402
75403         * lib/getdelim.c (getdelim): Return EOF on EOF.
75404         Reported by Larry Jones <lawrence.jones@ugs.com>.
75405
75406 2005-08-31  Bruno Haible  <bruno@clisp.org>
75407
75408         Avoid unnecessary diffs in the generated lib/Makefile.am.
75409         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75410         the generated files.
75411         (func_import): Don't set cmd.
75412
75413 2005-08-31  Bruno Haible  <bruno@clisp.org>
75414
75415         * lib/strstr.c: Include <stddef.h>, for NULL.
75416         * lib/strcasestr.c: Likewise.
75417         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75418
75419 2005-08-31  Bruno Haible  <bruno@clisp.org>
75420
75421         * gnulib-tool: New option --macro-prefix.
75422         (func_import): Use macro_prefix.
75423         (import): Handle option --macro-prefix.
75424
75425 2005-08-31  Bruno Haible  <bruno@clisp.org>
75426
75427         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75428         Also use new variables cached_lgpl, cached_libtool.
75429
75430 2005-08-31  Bruno Haible  <bruno@clisp.org>
75431
75432         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75433         always instantiating them.
75434
75435 2005-08-31  Bruno Haible  <bruno@clisp.org>
75436
75437         * gnulib-tool (func_import): Read the previous cached settings
75438         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75439         earlier added by gnulib but are now dropped. Warn when a gnulib file
75440         overwrites a non-gnulib file.
75441
75442 2005-08-31  Bruno Haible  <bruno@clisp.org>
75443
75444         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75445         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75446         projects that don't keep autogenerated files in CVS. Put into
75447         actioncmd only the specified modules, not the transitive closure.
75448
75449 2005-08-31  Bruno Haible  <bruno@clisp.org>
75450
75451         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75452         Create directories that shall be filled.
75453         (import): Don't look for gl_* macros in configure.ac. Recurse across
75454         all directories containing a gnulib-cache.m4 files, if meaningful.
75455
75456 2005-08-31  Bruno Haible  <bruno@clisp.org>
75457
75458         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75459         (import): Set seen_libtool when we see gl_LIBTOOL.
75460
75461 2005-08-31  Bruno Haible  <bruno@clisp.org>
75462
75463         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75464         declaration macro definitions from generated gnulib.m4.
75465
75466 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75467
75468         * lib/iconvme.h: Add prototype for iconv_alloc.
75469
75470 2005-08-29  Simon Josefsson  <jas@extundo.com>
75471
75472         * lib/iconvme.c: Fix errno.
75473
75474 2005-08-29  Bruno Haible  <bruno@clisp.org>
75475
75476         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75477         that it works when the directory contains spaces.
75478
75479 2005-08-29  Bruno Haible  <bruno@clisp.org>
75480
75481         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75482
75483 2005-08-29  Bruno Haible  <bruno@clisp.org>
75484
75485         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75486         Emit more advice.
75487
75488 2005-08-29  Bruno Haible  <bruno@clisp.org>
75489         and Stepan Kasal  <kasal@ucw.cz>
75490
75491         * check-module: If more parameters are given, check each of them
75492         separately; add more exceptions, as noted by Jim Meyering.
75493         (check_module): New procedure.
75494         (%exempt_header): Now contains all exceptions.
75495
75496 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75497
75498         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75499
75500 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75501
75502         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75503
75504 2005-08-28  Bruno Haible  <bruno@clisp.org>
75505
75506         * m4/gnulib-tool.m4: New file.
75507
75508 2005-08-27  Jim Meyering  <jim@meyering.net>
75509
75510         * modules/unistd-safer (Files): Add pipe-safer.c.
75511         * modules/fcntl-safer (Files): Add creat-safer.c.
75512
75513 2005-08-27  Jim Meyering  <jim@meyering.net>
75514
75515         * m4/stdlib-safer.m4: New file.  From coreutils.
75516         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75517         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75518         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75519         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75520         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75521
75522 2005-08-27  Jim Meyering  <jim@meyering.net>
75523
75524         * lib/fopen-safer.c: Merge minor changes from coreutils.
75525         * lib/dup-safer.c: Likewise.
75526         * lib/fd-safer.c: Likewise.
75527
75528         Merge from coreutils.
75529         * lib/stdio--.h: New file.
75530         * lib/stdlib--.h: New file.
75531         * lib/mkstemp-safer.c: New file.
75532
75533         GNU tar needs these.
75534         * lib/pipe-safer.c: New file.
75535         * lib/creat-safer.c: New file.
75536         * lib/fcntl--.h (creat): Define to creat_safer.
75537         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75538         * lib/unistd--.h (pipe): Define to pipe_safer.
75539         * lib/unistd-safer.h: Declare pipe_safer.
75540
75541 2005-08-26  Simon Josefsson  <jas@extundo.com>
75542
75543         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75544         Haible <bruno@clisp.org>.
75545
75546 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         * lib/regex_internal.h: Remove all references to
75549         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75550         or better.
75551         (bitset_not, bitset_merge, bitset_not_merge):
75552         (bitset_mask, re_string_allocate, re_string_construct):
75553         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75554         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75555         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75556         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75557         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75558         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75559         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75560         (re_acquire_state_context):
75561         Remove unnecessary forward decls.
75562         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75563         Put __attribute at function definition,
75564         now that the function decl has been removed.
75565         * lib/regex_internal.c (re_string_peek_byte_case):
75566         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75567         Likewise.
75568
75569 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75570
75571         * m4/regex.m4: Add AC_PREREQ(2.50).
75572         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75573
75574 2005-08-25  Simon Josefsson  <jas@extundo.com>
75575
75576         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75577         __fsetlocking.
75578
75579 2005-08-25  Simon Josefsson  <jas@extundo.com>
75580
75581         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75582         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75583         GLIBC specific code.
75584
75585 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75586
75587         Make regex safe for g++.  This fixes one real bug (an "err"
75588         that should have been "*err").  g++ problem reported by
75589         Sam Steingold.
75590         * lib/regex_internal.h (re_calloc): New macro, consistent with
75591         re_malloc etc.  All callers of calloc changed to use re_calloc.
75592         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75593         not int.  All callers changed.
75594         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75595         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75596         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75597         (find_recover_state): Change "err" to "*err"; this fixes what
75598         appears to be a real bug.
75599         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75600         versus int.
75601
75602 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75603
75604         * modules/regex (Depends-on): Add malloc, since the code
75605         assumes that !malloc(0) means failure.
75606
75607 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75608
75609         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75610
75611         alloca modernization/simplification for regex.
75612         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75613         needs to be at the start of the file, and can be moved into
75614         regex_internal.h and simplified.
75615         * lib/regex_internal.h: Include <alloca.h>.
75616         (__libc_use_alloca) [!defined _LIBC]: New macro.
75617         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75618         now works outside glibc.
75619
75620 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75621
75622         * config/srclist.txt: Add glibc bugs 1241, 1245.
75623
75624 2005-08-25  Jim Meyering  <jim@meyering.net>
75625
75626         * lib/open-safer.c: Include <config.h>.
75627         Otherwise, we'd lose LARGEFILE support in any file using
75628         e.g. "fcntl--.h"
75629
75630 2005-08-25  Bruno Haible  <bruno@clisp.org>
75631
75632         * m4/minmax.m4: Require autoconf 2.52.
75633         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75634         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75635         alternatives of translit over the alphabet.
75636         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75637
75638 2005-08-24  Simon Josefsson  <jas@extundo.com>
75639
75640         * tests/test-getpass.c: New file.
75641
75642 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75643
75644         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75645         for GNU regex features.
75646
75647 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75648
75649         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75650         * lib/regex.h (regerror): Likewise.
75651
75652         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75653         requires this.  (The code never needed it.)
75654
75655         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75656         All uses of recently-renamed identifiers changed to use the new,
75657         POSIX-compliant names.  The code will build and run just fine
75658         without these changes, but it's better to eat our own dog food
75659         and use the standard-conforming names.
75660
75661         * lib/regex.h: Fix a multitude of POSIX name space violations.
75662         These changes have an effect only for programs that define
75663         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75664         do not change anything for programs compiled in the normal way.
75665         Also, there is no effect on the ABI.
75666
75667         (_REGEX_SOURCE): New macro.
75668         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75669         defined and _GNU_SOURCE is not; this fixes a name space violation.
75670
75671         Rename the following macros to obey POSIX requirements.
75672         The old names are still visible as macros if _REGEX_SOURCE is defined.
75673         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75674         RE_BACKSLASH_ESCAPE_IN_LISTS.
75675         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75676         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75677         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75678         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75679         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75680         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75681         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75682         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75683         (REG_INTERVALS): renamed from RE_INTERVALS.
75684         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75685         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75686         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75687         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75688         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75689         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75690         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75691         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75692         RE_UNMATCHED_RIGHT_PAREN_ORD.
75693         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75694         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75695         (REG_DEBUG): renamed from RE_DEBUG.
75696         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75697         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75698         unusual, since we can't clash with the POSIX REG_ICASE.
75699         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75700         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75701         (REG_NO_SUB): renamed from RE_NO_SUB.
75702         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75703         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75704         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75705         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75706         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75707         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75708         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75709         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75710         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75711         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75712         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75713         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75714         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75715         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75716         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75717         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75718         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75719         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75720         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75721         (REG_FIXED): Renamed from REGS_FIXED.
75722         (REG_NREGS): Renamed from RE_NREGS.
75723
75724         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75725         of other REG_* macros, since POSIX says the user is allowed to
75726         #undef these macros selectively.
75727
75728         (reg_errcode_t): Update comment stating what other tables need
75729         to be consistent.
75730
75731         Rename the following enum values to obey POSIX requirements.
75732         The old names are still visible as macros.
75733         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75734         is not defined, since GNU is supposed to be a superset of POSIX as
75735         much as possible, and since we want reg_errcode_t to be a signed
75736         type for implementation consistency.
75737         (_REG_NOERROR): Renamed from REG_NOERROR.
75738         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75739         (_REG_BADPAT): Renamed from REG_BADPAT.
75740         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75741         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75742         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75743         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75744         (_REG_EBRACK): Renamed from REG_EBRACK.
75745         (_REG_EPAREN): Renamed from REG_EPAREN.
75746         (_REG_EBRACE): Renamed from REG_EBRACE.
75747         (_REG_BADBR): Renamed from REG_BADBR.
75748         (_REG_ERANGE): Renamed from REG_ERANGE.
75749         (_REG_ESPACE): Renamed from REG_ESPACE.
75750         (_REG_BADRPT): Renamed from REG_BADRPT.
75751         (_REG_EEND): Renamed from REG_EEND.
75752         (_REG_ESIZE): Renamed from REG_ESIZE.
75753         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75754         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75755         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75756         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75757         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75758
75759         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75760         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75761         changed.  But support the old name if the new one is not defined
75762         and if _REGEX_SOURCE.
75763
75764         Change the following member names in struct re_pattern_buffer.
75765         The old names are still supported if !_REGEX_SOURCE.
75766         The new names are always supported, regardless of _REGEX_SOURCE.
75767         (re_buffer): Renamed from buffer.
75768         (re_allocated): Renamed from allocated.
75769         (re_used): Renamed from used.
75770         (re_syntax): Renamed from syntax.
75771         (re_fastmap): Renamed from fastmap.
75772         (re_translate): Renamed from translate.
75773         (re_can_be_null): Renamed from can_be_null.
75774         (re_regs_allocated): Renamed from regs_allocated.
75775         (re_fastmap_accurate): Renamed from fastmap_accurate.
75776         (re_no_sub): Renamed from no_sub.
75777         (re_not_bol): Renamed from not_bol.
75778         (re_not_eol): Renamed from not_eol.
75779         (re_newline_anchor): Renamed from newline_anchor.
75780
75781         Change the following member names in struct re_registers.
75782         The old names are still supported if !_REGEX_SOURCE.
75783         The new names are always supported, regardless of _REGEX_SOURCE.
75784         (rm_num_regs): Renamed from num_regs.
75785         (rm_start): Renamed from start.
75786         (rm_end): Renamed from end.
75787
75788         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75789         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75790         Prepend __ to parameter names.
75791
75792         Undo yesterday's changes.
75793
75794 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75795
75796         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75797         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75798         lib/regex.c.
75799
75800 2005-08-24  Jim Meyering  <jim@meyering.net>
75801
75802         Sync from coreutils.
75803         * m4/fcntl-safer.m4: New file.
75804
75805         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75806         and object files for this module.
75807
75808 2005-08-24  Jim Meyering  <jim@meyering.net>
75809
75810         Sync from coreutils.
75811         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75812
75813 2005-08-24  Jim Meyering  <jim@meyering.net>
75814
75815         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75816         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75817
75818 2005-08-24  Jim Meyering  <jim@meyering.net>
75819
75820         * modules/fcntl-safer: New module.
75821         * modules/fts (Depends-on): Add fcntl-safer.
75822         * MODULES.html.sh (File descriptor based Input/Output):
75823         Add fcntl-safer.
75824
75825 2005-08-24  Bruno Haible  <bruno@clisp.org>
75826
75827         Support for unit test modules.
75828         * modules/README: Mention tests modules.
75829         * modules/TEMPLATE-TESTS: New file.
75830         * gnulib-tool: New options --extract-tests-module, --with-tests and
75831         --tests-base (unused for the moment).
75832         (testsbase, inctests): New variables.
75833         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75834         (func_verify_module): Exclude TEMPLATE-TESTS.
75835         (func_verify_nontests_module, func_verify_tests_module): New functions.
75836         (func_get_dependencies): Add implicit dependency for tests modules.
75837         (func_get_tests_module): New function.
75838         (func_modules_transitive_closure): When --with-tests was specified,
75839         include the unit tests as well, unless explicitly avoided.
75840         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75841         (func_emit_tests_Makefile_am): New function.
75842         (func_create_testdir): When --with-tests was specified, emit a
75843         tests/ directory.
75844         * MODULES.html.sh (Future developments): Update.
75845
75846 2005-08-24  Bruno Haible  <bruno@clisp.org>
75847
75848         * modules/tls-tests: New file.
75849         * tests/test-tls.c: New file, from GNU gettext.
75850
75851 2005-08-24  Bruno Haible  <bruno@clisp.org>
75852
75853         * modules/lock-tests: New file.
75854         * tests/test-lock.c: New file, from GNU gettext.
75855
75856 2005-08-24  Bruno Haible  <bruno@clisp.org>
75857
75858         * lib/lock.h: Add multiple inclusion guard.
75859         * lib/tls.h: Add multiple inclusion guard.
75860
75861 2005-08-24  Bruno Haible  <bruno@clisp.org>
75862
75863         * gnulib-tool: Add support for the --aux-dir option to
75864         --create-testdir, --create-megatestdir, --test, --megatest.
75865         (func_create_testdir, func_create_megatestdir): Optionally emit a
75866         AC_CONFIG_AUX_DIR directive.
75867         (create-testdir, create-megatestdir, test, megatest): Provide a
75868         default value for $auxdir.
75869
75870 2005-08-24  Bruno Haible  <bruno@clisp.org>
75871
75872         * gnulib-tool (import): Use compound statement instead of subshell
75873         where possible.
75874
75875 2005-08-24  Bruno Haible  <bruno@clisp.org>
75876
75877         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75878
75879 2005-08-24  Bruno Haible  <bruno@clisp.org>
75880
75881         * gnulib-tool (func_version): Update.
75882
75883 2005-08-24  Bruno Haible  <bruno@clisp.org>
75884
75885         * gnulib-tool (func_import, func_create_testdir,
75886         func_create_megatestdir): Quote all autoconf macro arguments.
75887
75888 2005-08-24  Bruno Haible  <bruno@clisp.org>
75889
75890         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75891         option --force, because --force causes the aclocal.m4 of each
75892         subdirectory to be newer than the corresponding config.h.in.
75893
75894 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75895
75896         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75897         All contents moved to gl_REGEX.
75898         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75899         assume that it does.
75900
75901 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75902
75903         * lib/regex.h (REG_NOSYS)
75904         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75905         Define, since POSIX requires it as of 2001.
75906         (_REG_ENOSYS)
75907         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75908         New private symbol, used to keep the enum signed in all cases.
75909         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75910         Youngman in
75911         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75912
75913         * lib/regex_internal.c (re_string_skip_chars, register_state):
75914         (calc_state_hash):
75915         Remove forward decls; no longer needed now that we use prototypes.
75916         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75917         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75918         (clean_state_log_if_needed): Likewise.
75919
75920 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75921
75922         * config/srclist.txt: Add glibc bugs 1231-1233.
75923
75924 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         Fix problems reported by Sam Steingold in
75927         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75928         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75929         assumed that reg_errcode_t is a signed type, which is not
75930         necessarily true if _XOPEN_SOURCE is not defined.
75931         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75932         since some compilers warn about it otherwise.
75933
75934 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75937         (init_word_char, create_initial_state, duplicate_node_closure):
75938         (fetch_token, peek_token_bracket, build_range_exp):
75939         (build_collating_symbol): Remove forward decls; no longer needed
75940         now that we use prototypes.
75941
75942         * lib/regcomp.c:
75943         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75944         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75945         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75946         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75947         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75948         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75949         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75950         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75951         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75952         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75953         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75954         (build_charclass, build_charclass_op, fetch_number, create_tree):
75955         (create_token_tree, mark_opt_subexp, duplicate_tree):
75956         Use prototypes rather than old-style definitions.
75957
75958         * lib/regex_internal.c:
75959         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75960         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75961         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75962         (re_string_reconstruct, re_string_peek_byte_case):
75963         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75964         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75965         (re_node_set_init_copy, re_node_set_add_intersect):
75966         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75967         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75968         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75969         (re_acquire_state, re_acquire_state_context, register_state):
75970         (create_ci_newstate, create_cd_newstate, free_state):
75971         Likewise.
75972         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75973         re_search_2):
75974         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75975         (re_search_internal, prune_impossible_nodes):
75976         (acquire_init_state_context, check_matching, static):
75977         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75978         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75979         (update_regs, sift_states_backward, build_sifted_states):
75980         (clean_state_log_if_needed, merge_state_array):
75981         (update_cur_sifted_state, add_epsilon_src_nodes):
75982         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75983         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75984         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75985         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75986         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75987         (check_arrival, check_arrival_add_next_nodes):
75988         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75989         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75990         (check_node_accept_bytes, check_node_accept, extend_buffers):
75991         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75992         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75993         (sift_ctx_init):
75994         Likewise.
75995
75996         * lib/regex_internal.h:
75997         (re_string_allocate, re_string_construct, re_string_reconstruct):
75998         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75999         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76000         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76001         (re_string_context_at, re_string_peek_byte_case):
76002         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76003         is defined, since we now use prototypes always.
76004
76005         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76006         C89 or better.  All uses removed.
76007
76008 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76009
76010         * config/srclist.txt: Add glibc bugs 1220-1227.
76011
76012 2005-08-20  Jim Meyering  <jim@meyering.net>
76013
76014         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76015         of unused local, dfa.
76016
76017 2005-08-20  Bruno Haible  <bruno@clisp.org>
76018
76019         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76020
76021 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76022
76023         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76024         (re_node_set_insert_last, re_dfa_add_node):
76025         Rename local variables to avoid GCC shadowing warnings.
76026
76027 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76030         [defined lint]: Suppress bogus uninitialized-variable warnings.
76031
76032         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76033         and let the caller return REG_ESPACE if out of space.  This
76034         removes an uninitialied-variable warning with GCC 4.0.1, and also
76035         avoids taking the address of a local variable.  All callers
76036         changed.
76037
76038 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76039
76040         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76041         $LIBCSRC/posix/regexec.c.
76042         Add glibc bug 1217 for regcomp.c.
76043
76044 2005-08-19  Jim Meyering  <jim@meyering.net>
76045
76046         * lib/regexec.c (proceed_next_node): Redo local variables to
76047         avoid GCC shadowing warnings.
76048
76049 2005-08-18  Bruno Haible  <bruno@clisp.org>
76050
76051         * lib/strstr.c (strstr): Fix return value in multibyte case.
76052         * lib/strcasestr.c (strcasestr): Likewise.
76053
76054 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76055
76056         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76057
76058 2005-08-17  Jim Meyering  <jim@meyering.net>
76059
76060         Make the %s format (seconds since the epoch) work for a negative
76061         number and when used with a zero-padded field width, e.g. %015s.
76062
76063         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76064         label so that it precedes the code to set `digits'.  Otherwise,
76065         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76066         print `00-22'.  Now, it prints `-0022', as it should.
76067
76068 2005-08-17  Bruno Haible  <bruno@clisp.org>
76069
76070         * modules/strstr (Files): Add m4/mbrtowc.m4.
76071         (Depends-on): Add mbuiter.
76072
76073 2005-08-17  Bruno Haible  <bruno@clisp.org>
76074
76075         * modules/strcasestr: New file.
76076         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76077         strcasestr.
76078
76079 2005-08-17  Bruno Haible  <bruno@clisp.org>
76080
76081         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76082
76083 2005-08-17  Bruno Haible  <bruno@clisp.org>
76084
76085         * modules/mbuiter: New file.
76086         * MODULES.html.sh (Extended multibyte and wide character utilities):
76087         Add mbuiter.
76088
76089 2005-08-17  Bruno Haible  <bruno@clisp.org>
76090
76091         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76092         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76093
76094 2005-08-17  Bruno Haible  <bruno@clisp.org>
76095
76096         * m4/strcasestr.m4: New file.
76097
76098 2005-08-17  Bruno Haible  <bruno@clisp.org>
76099
76100         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76101         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76102
76103 2005-08-17  Bruno Haible  <bruno@clisp.org>
76104
76105         * lib/strcasestr.h: New file.
76106         * lib/strcasestr.c: New file.
76107
76108 2005-08-17  Bruno Haible  <bruno@clisp.org>
76109
76110         * lib/strcasecmp.c: Use mbuiter.h.
76111
76112 2005-08-17  Bruno Haible  <bruno@clisp.org>
76113
76114         * lib/mbuiter.h: New file.
76115
76116 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76117
76118         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76119         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76120         and gl_GETOPT are both invoked via different paths (as happens
76121         with GNU tar CVS because it uses both argp and getopt), the former
76122         wins.
76123
76124 2005-08-16  Bruno Haible  <bruno@clisp.org>
76125
76126         * modules/tls: New file.
76127         * MODULES.html.sh (Multithreading): Add tls.
76128
76129 2005-08-16  Bruno Haible  <bruno@clisp.org>
76130
76131         * modules/strnlen1: New file.
76132         * MODULES.html.sh (String handling): Add strnlen1.
76133
76134 2005-08-16  Bruno Haible  <bruno@clisp.org>
76135
76136         * modules/strcase (Files): Add m4/mbrtowc.m4.
76137         (Depends-on): Add strnlen1, mbchar.
76138
76139 2005-08-16  Bruno Haible  <bruno@clisp.org>
76140
76141         * modules/mbiter: New file.
76142         * MODULES.html.sh (Extended multibyte and wide character utilities):
76143         Add mbiter.
76144
76145 2005-08-16  Bruno Haible  <bruno@clisp.org>
76146
76147         * modules/mbfile: New file.
76148         * MODULES.html.sh (Extended multibyte and wide character utilities):
76149         Add mbfile.
76150
76151 2005-08-16  Bruno Haible  <bruno@clisp.org>
76152
76153         * modules/mbchar: New file.
76154         * MODULES.html.sh (Extended multibyte and wide character utilities):
76155         New section.
76156
76157 2005-08-16  Bruno Haible  <bruno@clisp.org>
76158
76159         * m4/tls.m4: New file, from GNU gettext.
76160
76161 2005-08-16  Bruno Haible  <bruno@clisp.org>
76162
76163         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76164         always.
76165         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76166
76167 2005-08-16  Bruno Haible  <bruno@clisp.org>
76168
76169         * m4/mbiter.m4: New file.
76170
76171 2005-08-16  Bruno Haible  <bruno@clisp.org>
76172
76173         * m4/mbfile.m4: New file.
76174
76175 2005-08-16  Bruno Haible  <bruno@clisp.org>
76176
76177         * m4/mbchar.m4: New file.
76178
76179 2005-08-16  Bruno Haible  <bruno@clisp.org>
76180
76181         * lib/tls.h: New file, from GNU gettext.
76182         * lib/tls.c: New file, from GNU gettext.
76183
76184 2005-08-16  Bruno Haible  <bruno@clisp.org>
76185
76186         * lib/strnlen1.h: New file.
76187         * lib/strnlen1.c: New file.
76188
76189 2005-08-16  Bruno Haible  <bruno@clisp.org>
76190
76191         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76192         (mbi_init): Update.
76193         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76194         NUL byte, not after it.
76195
76196 2005-08-16  Bruno Haible  <bruno@clisp.org>
76197
76198         * lib/strcase.h (strcasecmp): Add note in comments.
76199         * lib/strncasecmp.c: Use code from strcasecmp.c.
76200         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76201         (strcasecmp): Work correctly in multibyte locales.
76202
76203 2005-08-16  Bruno Haible  <bruno@clisp.org>
76204
76205         * lib/mbiter.h: New file.
76206
76207 2005-08-16  Bruno Haible  <bruno@clisp.org>
76208
76209         * lib/mbfile.h: New file.
76210
76211 2005-08-16  Bruno Haible  <bruno@clisp.org>
76212
76213         * lib/mbchar.h: New file.
76214         * lib/mbchar.c: New file.
76215
76216 2005-08-16  Bruno Haible  <bruno@clisp.org>
76217
76218         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76219         the valid ones. Makes the comparison operations transitive:
76220         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76221         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76222
76223 2005-08-15  Simon Josefsson  <jas@extundo.com>
76224
76225         * modules/ssize_t (License): Change to 'unlimited'.
76226
76227         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76228
76229 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76230
76231         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76232         Add comments for each pending glibc patch.
76233
76234 2005-08-15  Bruno Haible  <bruno@clisp.org>
76235
76236         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76237         __cplusplus is defined.
76238
76239 2005-08-14  Jim Meyering  <jim@meyering.net>
76240
76241         Sync from coreutils.
76242
76243         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76244         Use the hash-table-based cycle-detection code not just when
76245         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76246         Reported by James Youngman in
76247         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76248         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76249         FTS_TIGHT_CYCLE_CHECK.
76250         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76251         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76252         once again.
76253         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76254         * lib/fts.c (fd_safer): Remove decl.
76255         Include fcntl--.h rather than unistd-safer.h
76256         (fts_safe_changedir): Don't call fd_safer; no longer needed
76257         now that we include fcntl--.h.
76258
76259 2005-08-12  Simon Josefsson  <jas@extundo.com>
76260
76261         * modules/getndelim2: Use ssize_t module.
76262         * modules/getnline: Likewise.
76263         * modules/safe-read: Likewise.
76264         * modules/xreadlink: Likewise.
76265
76266         * modules/ssize_t: New file.
76267
76268 2005-08-12  Simon Josefsson  <jas@extundo.com>
76269
76270         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76271
76272 2005-08-12  Simon Josefsson  <jas@extundo.com>
76273
76274         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76275         ssize_t.
76276
76277 2005-08-12  Simon Josefsson  <jas@extundo.com>
76278
76279         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76280         readline, getdelim and check_version.
76281         (Support for systems lacking ISO C 99: Sizes of integer types):
76282         Add size_max.
76283
76284 2005-08-12  Bruno Haible  <bruno@clisp.org>
76285
76286         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76287
76288 2005-08-11  Simon Josefsson  <jas@extundo.com>
76289
76290         * modules/readline: New file.
76291
76292         * modules/strnlen (Files): Add strnlen.h.
76293
76294 2005-08-11  Simon Josefsson  <jas@extundo.com>
76295
76296         * m4/readline.m4: New file.
76297
76298 2005-08-11  Simon Josefsson  <jas@extundo.com>
76299
76300         * lib/readline.h, readline.c: New file.
76301
76302 2005-08-11  Simon Josefsson  <jas@extundo.com>
76303
76304         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76305         gl_AVOID.
76306
76307 2005-08-11  Bruno Haible  <bruno@clisp.org>
76308
76309         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76310
76311 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76312
76313         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76314
76315 2005-08-10  Simon Josefsson  <jas@extundo.com>
76316
76317         * tests/test-iconvme.c: New file.
76318
76319 2005-08-10  Simon Josefsson  <jas@extundo.com>
76320
76321         * m4/strnlen.m4: New file.
76322
76323         * m4/strndup.m4: Don't check for strnlen declaration, done in
76324         strnlen.m4.
76325
76326 2005-08-10  Simon Josefsson  <jas@extundo.com>
76327
76328         * lib/strndup.c: Use strnlen.h.
76329
76330         * lib/strnlen.h: New file.
76331
76332 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76333
76334         * README: Typos.
76335
76336 2005-08-02  Simon Josefsson  <jas@extundo.com>
76337
76338         * modules/readline: New file.
76339
76340 2005-08-02  Simon Josefsson  <jas@extundo.com>
76341
76342         * modules/getdelim: New file.
76343
76344         * modules/getline: Rewrite, don't use getndelim2.
76345
76346 2005-08-02  Simon Josefsson  <jas@extundo.com>
76347
76348         * m4/getline.m4: Separate out getdelim stuff into separate module.
76349
76350         * m4/getdelim.m4: New file.
76351
76352 2005-08-02  Simon Josefsson  <jas@extundo.com>
76353
76354         * lib/getline.h, getline.c: Rewrite.
76355
76356         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76357
76358 2005-07-31  Bruno Haible  <bruno@clisp.org>
76359
76360         * lib/lock.h (gl_lock_initializer): New macro.
76361         (gl_lock_define_initialized): Use it.
76362         (gl_rwlock_initializer): New macro.
76363         (gl_rwlock_define_initialized): Use it.
76364         (gl_recursive_lock_initializer): New macro.
76365         (gl_recursive_lock_define_initialized): Use it.
76366
76367 2005-07-30  Karl Berry  <karl@gnu.org>
76368
76369         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76370         Report from Ben Pfaff, regarding getopt.
76371
76372 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76373
76374         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76375         normal way.
76376         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76377         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76378         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76379         (gl_GETOPT): Use the new macros.  Most of the implementation
76380         is moved to the new macros.  This is for programs like Emacs
76381         that don't want all the functionality of gl_GETOPT.
76382
76383 2005-07-26  Bruno Haible  <bruno@clisp.org>
76384
76385         * m4/lock.m4: Update from GNU gettext.
76386
76387 2005-07-26  Bruno Haible  <bruno@clisp.org>
76388
76389         * lib/lock.h: Update from GNU gettext.
76390         * lib/lock.c: Update from GNU gettext.
76391
76392 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76393
76394         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76395         obsolescent AC_TRY_RUN.  Include the default includes files, for
76396         'exit'.
76397
76398 2005-07-24  Bruno Haible  <bruno@clisp.org>
76399
76400         * modules/visibility: New file.
76401         * MODULES.html.sh (Misc): Add visibility.
76402
76403 2005-07-24  Bruno Haible  <bruno@clisp.org>
76404
76405         * m4/visibility.m4: New file.
76406
76407 2005-07-24  Bruno Haible  <bruno@clisp.org>
76408
76409         * doc/visibility.texi: New file.
76410
76411 2005-07-22  Bruno Haible  <bruno@clisp.org>
76412
76413         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76414         $(ALLOCA_H), redundant through BUILT_SOURCES.
76415         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76416         redundant through BUILT_SOURCES.
76417         * modules/byteswap (Makefile.am): Remove explicit dependency on
76418         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76419         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76420         $(FNMATCH_H), redundant through BUILT_SOURCES.
76421         * modules/getopt (Makefile.am): Remove explicit dependency on
76422         $(GETOPT_H), redundant through BUILT_SOURCES.
76423         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76424         redundant through BUILT_SOURCES.
76425         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76426         redundant through BUILT_SOURCES.
76427         * modules/stdbool (Makefile.am): Remove explicit dependency on
76428         $(STDBOOL_H), redundant through BUILT_SOURCES.
76429         * modules/stdint (Makefile.am): Remove explicit dependency on
76430         $(STDINT_H), redundant through BUILT_SOURCES.
76431         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76432         Remove explicit dependency on $(SYSEXITS_H).
76433         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76434
76435 2005-07-18  Simon Josefsson  <jas@extundo.com>
76436
76437         * lib/check-version.c (check_version): Accept identical versions too.
76438
76439 2005-07-18  Bruno Haible  <bruno@clisp.org>
76440
76441         * modules/lock: New file.
76442         * MODULES.html.sh (Multithreading): New section.
76443
76444 2005-07-18  Bruno Haible  <bruno@clisp.org>
76445
76446         * m4/lock.m4: New file, from GNU gettext.
76447
76448 2005-07-18  Bruno Haible  <bruno@clisp.org>
76449
76450         * lib/lock.h: New file, from GNU gettext.
76451         * lib/lock.c: New file, from GNU gettext.
76452
76453 2005-07-18  Bruno Haible  <bruno@clisp.org>
76454
76455         * lib/lock.h (gl_once_t): New type.
76456         (gl_once_define, gl_once): New macros.
76457         * lib/lock.c (fresh_once): New variable.
76458         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76459         functions.
76460
76461 2005-07-16  Simon Josefsson  <jas@extundo.com>
76462
76463         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76464         workaround, suggested by Bruno.
76465
76466 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76467
76468         * modules/xalloc (Depends-on): Add xalloc-die.
76469         * modules/xvasprintf (Depends-on): Add xalloc-die.
76470
76471 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76472
76473         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76474         with a minor change.
76475
76476 2005-07-15  Bruno Haible  <bruno@clisp.org>
76477
76478         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76479         When using lib/poll.c, define poll as rpl_poll.
76480
76481 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76482
76483         * modules/argp (Depends-on): Remove unlocked-io.
76484
76485 2005-07-14  Derek Price  <derek@ximbiot.com>
76486
76487         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76488         for glob symlink bug.
76489
76490 2005-07-14  Bruno Haible  <bruno@clisp.org>
76491
76492         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76493         Instead, test for *_unlocked function declarations directly.
76494
76495 2005-07-11  Simon Josefsson  <jas@extundo.com>
76496
76497         * modules/size_max: New file.
76498
76499         * modules/xsize: Depend on size_max module for size_max.m4.
76500
76501 2005-07-11  Simon Josefsson  <jas@extundo.com>
76502
76503         * lib/size_max.h: New file.
76504
76505 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76506
76507         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76508         copyright symbol and the year.
76509         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76510         (version_etc_va): Use parameterized copyright notice.
76511         Reword to conform to the current GNU coding standards.
76512
76513 2005-07-11  Karl Berry  <karl@gnu.org>
76514
76515         * doc/gnulib.texi (Quoting): new node.
76516         (Initial import): more info, from Patrice.
76517
76518 2005-07-11  Bruno Haible  <bruno@clisp.org>
76519
76520         * gnulib-tool (func_usage): Document option --avoid.
76521         (Command line options): Handle --avoid.
76522         (func_acceptable): New function.
76523         (func_modules_transitive_closure): Use it.
76524
76525 2005-07-11  Bruno Haible  <bruno@clisp.org>
76526
76527         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76528         Reported by Jim Meyering.
76529
76530 2005-07-10  Bruno Haible  <bruno@clisp.org>
76531
76532         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76533         Needed when size_t is smaller than 'unsigned int'.
76534         Reported by Paul Eggert.
76535
76536 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76537
76538         * modules/argp (Depends-on): Add unlocked-io
76539
76540 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76541
76542         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76543         block of defines.
76544
76545 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76546
76547         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76548         fix now.
76549
76550 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76551         and Paul Eggert  <eggert@cs.ucla.edu>
76552
76553         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76554         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76555
76556 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76557
76558         * modules/regex (Files): Add lib/regex_internal.c,
76559         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76560         (Depends-on): Add extensions.
76561         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76562
76563 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76564
76565         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76566         pathconf.
76567         * m4/same.m4 (gl_SAME): Likewise.
76568         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76569
76570         * m4/regex.m4: Adjust to new libc regex implementation.
76571         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76572         all the .c and .h parts of (the new) regex.
76573         Quote the m4 stuff better.
76574         Check for RE_ICASE bug of old gnulib.
76575         Check for REG_STARTEND of recent libc.
76576         Rename local variables from jm_* to gl_*.
76577         Quote operand of "test -f".
76578         Say "recent enough" version of libc, not "version 2".
76579         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76580         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76581         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76582         Remove check for btowc, isascii.
76583         Require AM_LANGINFO_CODESET.
76584
76585 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76586
76587         * lib/regex.c, regex.h: Sync from libc.
76588         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76589         * lib/regexec.c:
76590         New files, synced from libc, except that regex_internal.h
76591         currently has a small porting fix.
76592
76593 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76594
76595         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76596         regex_internal.c, regexec.c.
76597         Add regex_internal.h too, but as a comment, since the libc version
76598         is currently broken in gnulib mode.
76599
76600 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76601
76602         Support programs like Emacs that use gnulib but not gettext.
76603         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76604         * modules/gettext-h: New file.
76605         * modules/gettext (Files): Remove lib/gettext.h.
76606         (Depends-on): Add gettext-h.
76607         (Makefile.am): Remove lib_SOURCES.
76608         * modules/argmatch, modules/c-stack, modules/closeout:
76609         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76610         * modules/execute, modules/file-type, modules/getaddrinfo:
76611         * modules/getopt, modules/human, modules/javacomp:
76612         * modules/javaexec, modules/mkdir-p, modules/obstack:
76613         * modules/openat, modules/pagealign_alloc, modules/pipe:
76614         * modules/quotearg, modules/regex, modules/rpmatch:
76615         * modules/unicodeio, modules/userspec, modules/version-etc:
76616         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76617         * modules/xsetenv:
76618         Depend on gettext-h, not gettext.
76619
76620 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         * gnulib-tool (func_import): Add support for 'public domain' license.
76623         * modules/alloca, modules/atexit, modules/memmove:
76624         Now public domain, not GPL.
76625         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76626         * modules/realloc, modules/strerror, modules/strtod:
76627         Now LGPL, not GPL.
76628
76629 2005-07-05  Bruno Haible  <bruno@clisp.org>
76630
76631         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76632         autoconf CVS. Needed for mingw.
76633
76634 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76635
76636         Remove the dependency of the strftime module on the tzset module.
76637         * modules/strftime (Depends-on): Remove dependency on tzset.
76638
76639 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76640
76641         Remove the dependency of the strftime module on the tzset module.
76642         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76643         gl_FUNC_TZSET_CLOBBER.
76644
76645 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76646
76647         Remove the dependency of the strftime module on the tzset module.
76648         * lib/strftime.c (my_strftime)
76649         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76650         Copy the input structure, to work around some of the bug with
76651         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76652         Solaris releases, you should also use the tzset module, but we won't
76653         require it as a dependency any more since we don't want LGPLed code
76654         to depend on GPLed code.
76655
76656 2005-07-02  Jim Meyering  <jim@meyering.net>
76657
76658         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76659         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76660         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76661         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76662
76663 2005-07-02  Jim Meyering  <jim@meyering.net>
76664
76665         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76666
76667 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76668
76669         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76670         declares only 'struct timespec;' (!).
76671
76672 2005-07-01  Jim Meyering  <jim@meyering.net>
76673
76674         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76675         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76676         * lib/save-cwd.c, tempname.c:
76677         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76678         and don't include <sys/file.h>).
76679
76680 2005-06-29  Jim Meyering  <jim@meyering.net>
76681
76682         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76683         type name.  Use the variable name instead.
76684         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76685         Likewise.
76686
76687 2005-06-28  Simon Josefsson  <jas@extundo.com>
76688
76689         * modules/check-version (Files): Add check-version.m4.
76690
76691 2005-06-28  Simon Josefsson  <jas@extundo.com>
76692
76693         * m4/check-version.m4: New file, suggested by Jim Meyering
76694         <jim@meyering.net>.
76695
76696 2005-06-28  Simon Josefsson  <jas@extundo.com>
76697
76698         * lib/check-version.h, lib/check-version.c: New files.
76699
76700 2005-06-28  Simon Josefsson  <jas@extundo.com>
76701
76702         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76703         collision with global variable.  Better indentation.  Don't
76704         increment buffer pointer beyond buffer end.  Based on comments
76705         from Paul Eggert <eggert@cs.ucla.edu>.
76706
76707         * lib/base64.h: Indent.
76708
76709 2005-06-28  Simon Josefsson  <jas@extundo.com>
76710
76711         * doc/gnulib.texi (Library version handling): New section.
76712
76713 2005-06-28  Jim Meyering  <jim@meyering.net>
76714
76715         * check-module (find_included_lib_files): Hard-code another
76716         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76717         but modules/fts-lgpl (correctly) does not list those files.
76718
76719         * modules/canonicalize (Files): Add lib/pathmax.h.
76720
76721 2005-06-25  Simon Josefsson  <jas@extundo.com>
76722
76723         * modules/check-version: New file.
76724
76725 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76728         initializer of struct addrinfo, as an indication that we don't
76729         care how many members the structure has.
76730
76731 2005-06-24  Derek Price  <derek@ximbiot.com>
76732         and Bruno Haible  <bruno@clisp.org>
76733
76734         Remove stat module & update lstat.
76735         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76736         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76737         * m4/stat.m4: Remove this file.
76738
76739 2005-06-24  Derek Price  <derek@ximbiot.com>
76740         and Bruno Haible  <bruno@clisp.org>
76741
76742         Remove stat module & update lstat.
76743         * lib/stat.c: Remove this file...
76744         (slash_aware_lstat): ...moving this content and its support...
76745         * lib/lstat.c (rpl_lstat): ...into here.
76746         * lib/lstat.h: New file.
76747
76748 2005-06-24  Derek Price  <derek@ximbiot.com>
76749         and Bruno Haible  <bruno@clisp.org>
76750
76751         Remove stat module & update lstat.
76752         * config/srclist.txt (libc sources): Remove stat.
76753
76754 2005-06-24  Derek Price  <derek@ximbiot.com>
76755         and Bruno Haible  <bruno@clisp.org>
76756
76757         Remove stat module & update lstat.
76758         * MODULES.html.sh (stat): Remove.
76759         * MODULES.html: Regenerated.
76760         * modules/lstat (Description): Correct function name.
76761         (Files): Add "lstat.h".
76762         (Depends-on): Remove stat, add xalloc, stat-macros.
76763         * modules/stat: Remove this file.
76764         (Include): Add "lstat.h", remove <sys/stat.h>.
76765
76766 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76767
76768         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76769         (ranged_convert): Don't save conversion in a temporary struct.
76770         This causes a warning with GCC 4.0.0, and anyway in the typical
76771         case it's not worth the extra 100 bytes or so of code.
76772         (ranged_convert, __mktime_internal): When calling a function via a
76773         pointer P, use P () rather than (*P) (), as we now assume C89 or
76774         better.
76775
76776 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76777
76778         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76779         "who -r" failed to give output.  Problem reported by Tim Waugh.
76780
76781         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76782         (xcalloc): Use it to avoid needless tests.
76783         Problem reported by Jim Meyering.
76784
76785 2005-06-20  Derek Price  <derek@ximbiot.com>
76786
76787         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76788         unnecessary for Autoconfs > 2.59c.
76789
76790 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76791
76792         * lib/argp.h (__option_is_short): Check upper limit of
76793         __key. Isprint() requires its argument to have the value
76794         of an unsigned char or EOF.
76795
76796 2005-06-16  Jim Meyering  <jim@meyering.net>
76797
76798         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76799         when either N or S is zero.
76800
76801 2005-06-16  Derek Price  <derek@ximbiot.com>
76802
76803         * m4/bison.m4: Declare YACC & YFLAGS precious.
76804
76805 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76806
76807         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76808         multibyte string or pattern, fall back on unibyte matching.
76809         Problem reported by James Youngman.
76810
76811 2005-06-08  Bruno Haible  <bruno@clisp.org>
76812
76813         * modules/csharpcomp: New file.
76814         * MODULES.html.sh (C#): Add csharpcomp.
76815
76816 2005-06-08  Bruno Haible  <bruno@clisp.org>
76817
76818         * m4/csharpcomp.m4: New file, from GNU gettext.
76819
76820 2005-06-08  Bruno Haible  <bruno@clisp.org>
76821
76822         * lib/csharpcomp.h: New file, from GNU gettext.
76823         * lib/csharpcomp.c: New file, from GNU gettext.
76824         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76825
76826 2005-06-08  Bruno Haible  <bruno@clisp.org>
76827
76828         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76829         warning on mingw.
76830
76831 2005-06-07  Derek Price  <derek@ximbiot.com>
76832
76833         Sync from CVS.
76834         * lib/glob_.h: Indent nested #ifdef.
76835
76836 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76837
76838         Sync from coreutils.
76839         Use "file name" when talking about file names, instead of "filename"
76840         or "path", as per the GNU coding standards.
76841         * lib/mkdir-p.c: Renamed from makepath.c.
76842         (make_dir_parents): Renamed from make_path.  All callers changed.
76843         * lib/mkdir-p.h: Likewise.  All includers changed.
76844         * lib/filenamecat.c: Renamed from path-concat.c.
76845         (file_name_concat): Renamed from path_concat.  All callers changed.
76846         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76847         * lib/filenamecat.h: Likewise.  All includers changed.
76848         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76849         in comments or local variable names.
76850         * lib/basename.c: Likewise.
76851         * lib/canonicalize.c, canonicalize.h: Likewise.
76852         * lib/dirname.c, dirname.h: Likewise.
76853         * lib/euidaccess.c: Likewise.
76854         * lib/exclude.c: Likewise
76855         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76856         * lib/fsusage.c, fsuage.h: Likewise.
76857         * lib/fts.c, fts_.h: Likewise.
76858         * lib/getcwd.c: Likewise.
76859         * lib/getloadavg.c: Likewise.
76860         * lib/mkstemp.c: Likewise.
76861         * lib/mountlist.c, mountlist.h: Likewise.
76862         * lib/openat.c, openat.h: Likewise.
76863         * lib/readlink-stub.c: Likewise.
76864         * lib/readutmp.c, readutmp.h: Likewise.
76865         * lib/rename.c: Likewise.
76866         * lib/rmdir.c: Likewise.
76867         * lib/same.c: Likewise.
76868         * lib/savedir.c: Likewise.
76869         * lib/stripslash.c: Likewise.
76870         * lib/tempname.c: Likewise.
76871         * lib/xreadlink.c: Likewise.
76872         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76873         All uses changed.
76874         * lib/exclude.h: Likewise.
76875
76876         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76877         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76878         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76879         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76880         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76881         files have been getting away with it for years (MORE/BSD 4.3
76882         is extinct now).
76883         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76884         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76885
76886         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76887         Define to 256, not 255, as per modern POSIX.
76888
76889 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76890
76891         Sync from coreutils.
76892         Use "file name" when talking about file names, instead of "filename"
76893         or "path", as per the GNU coding standards.
76894         * MODULES.html.sh: mkdir-p renamed from makepath.
76895         filenamecat renamed from path-concat.
76896         * modules/filenamecat: Renamed from modules/path-concat.
76897         (Files): filenamecat.h and filenamecat.c renamed from
76898         path-concat.h and path-concat.c.
76899         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76900         (Include): filenamecat.h, not path-concat.h.
76901         * modules/mkdir-p: Renamed from modules/makepath.
76902         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76903         makepath.c.
76904         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76905         (Include): mkdir-p.h, not makepath.h.
76906
76907 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76908
76909         Sync from coreutils.
76910         * m4/mkdir-p.m4: Renamed from makepath.m4.
76911         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76912         Rename files from makepath.c to mkdir-p.c, and from
76913         makepath.h to mkdir-p.h.
76914         * m4/filenamecat.m4: Renamed from path-concat.m4.
76915         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76916         Rename files from path-concat.c to filenamecat.c,
76917         and from path-concat.h to filenamecat.h.
76918         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76919         "file name" in local variables or comments.
76920         * m4/rename.m4: Likewise.
76921
76922 2005-06-01  Bruno Haible  <bruno@clisp.org>
76923
76924         * modules/csharpexec: New file.
76925         * MODULES.html.sh (C#): New section.
76926
76927 2005-06-01  Bruno Haible  <bruno@clisp.org>
76928
76929         * m4/csharp.m4: New file, from GNU gettext.
76930         * m4/csharpexec.m4: New file, from GNU gettext.
76931
76932 2005-06-01  Bruno Haible  <bruno@clisp.org>
76933
76934         * lib/csharpexec.h: New file, from GNU gettext.
76935         * lib/csharpexec.c: New file, from GNU gettext.
76936         * lib/csharpexec.sh.in: New file, from GNU gettext.
76937
76938 2005-05-31  Derek Price  <derek@ximbiot.com>
76939             Paul Eggert  <eggert@cs.ucla.edu>
76940
76941         Sync from cvs.
76942         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76943
76944 2005-05-31  Derek Price  <derek@ximbiot.com>
76945             Paul Eggert  <eggert@cs.ucla.edu>
76946
76947         Sync from cvs.
76948         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76949
76950 2005-05-29  Derek Price  <derek@ximbiot.com>
76951
76952         * config/srclist.txt (glob_.h, glob.c): Add these files.
76953
76954 2005-05-29  Derek Price  <derek@ximbiot.com>
76955
76956         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76957         * modules/glob: New file.
76958         * modules/getlogin_r: Add link to POSIX spec in description.
76959
76960 2005-05-29  Derek Price  <derek@ximbiot.com>
76961             Paul Eggert  <eggert@cs.ucla.edu>
76962
76963         * m4/glob.m4: New file.
76964
76965 2005-05-29  Derek Price  <derek@ximbiot.com>
76966             Paul Eggert  <eggert@cs.ucla.edu>
76967
76968         * lib/glob_.h, lib/glob.c: New files.
76969
76970 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76971
76972         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76973         * modules/fts-lgpl (Depends-on): Remove gettext.
76974
76975 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76976
76977         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76978         and don't require gt_INTTYPES_PRI.
76979
76980 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76981
76982         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76983
76984         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76985         the configuration hassle isn't worth it.
76986         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76987         (LONGEST_MODIFIER, PRIuMAX): Remove.
76988
76989 2005-05-27  Bruno Haible  <bruno@clisp.org>
76990
76991         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76992
76993 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76994
76995         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76996         _POSIX_PTHREAD_SEMANTICS for Solaris.
76997
76998 2005-05-25  Derek Price  <derek@ximbiot.com>
76999
77000         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77001
77002 2005-05-25  Derek Price  <derek@ximbiot.com>
77003             Paul Eggert  <eggert@cs.ucla.edu>
77004
77005         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77006         * lib/getlogin_r.c, getlogin_r.h: New files.
77007
77008 2005-05-25  Bruno Haible  <bruno@clisp.org>
77009             Derek Price  <derek@ximbiot.com>
77010
77011         * lib/getlogin_r.h: Simplify API documentation.
77012
77013 2005-05-23  Derek Price  <derek@ximbiot.com>
77014
77015         * modules/minmax (Files): Add m4/minmax.m4.
77016         (configure.ac): Add gl_MINMAX.
77017
77018 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77019
77020         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77021         so that unistd-safer.h (GPL'ed code) need not be included.
77022
77023 2005-05-22  Bruno Haible  <bruno@clisp.org>
77024
77025         * m4/minmax.m4: New file.
77026         Based on a patch by Derek Price <derek@ximbiot.com>.
77027
77028 2005-05-22  Bruno Haible  <bruno@clisp.org>
77029
77030         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77031         (INT64_MIN): Fix definition.
77032         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77033
77034         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77035         NEED_SIGNED_INT_TYPES.
77036
77037         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77038         HAVE_SYSTEM_INTTYPES.
77039
77040 2005-05-22  Bruno Haible  <bruno@clisp.org>
77041
77042         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77043         Also include <sys/param.h> if it defines MIN, MAX.
77044         Based on a patch by Derek Price <derek@ximbiot.com>.
77045
77046 2005-05-21  Jim Meyering  <jim@meyering.net>
77047
77048         * modules/fts (Files): Add m4/inttypes-pri.m4.
77049         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77050
77051 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77052
77053         New fts module.
77054         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77055         (setup_dir, free_dir): New functions.
77056         (enter_dir, leave_dir): Define trivial
77057         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77058         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77059         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77060         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77061         Move to fts-cycle.c.
77062         (fts_open): Use setup_dir.
77063         (fts_close): Use free_dir.
77064         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77065         This adds a label and some gotos, but the alternatives were messier.
77066         Check for memory allocation failure when entering a dir.
77067         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77068         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77069         (FTS): New member fts_cycle, that is a union that contains the
77070         old active_dir_ht and cycle_state.  All uses changed to mention
77071         fts_cycle.ht and fts_cycle.state.
77072         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77073         fts.c, with the following changes:
77074         (setup_dir, free_dir): New functions.
77075         (enter_dir): Now returns bool.  Return true if successful, false
77076         if memory exhausted.  All callers changed.
77077         Do not bother partly cleaning up on
77078         memory allocation failure; that is free_dir's job.
77079         However, free ad if hash_insert fails, to avoid memory leak.
77080         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77081         fts->fts_options to see which union member to use.
77082
77083 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77084
77085         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77086         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77087
77088 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77089
77090         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77091
77092 2005-05-20  Jim Meyering  <jim@meyering.net>
77093
77094         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77095         Now a macro, to pacify GCC.
77096
77097 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77098
77099         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77100         of -1.
77101
77102 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77103
77104         * lib/chown.c (rpl_chown): Return -1 on failure.
77105
77106 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77107
77108         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77109         Don't check for stddef.h.
77110         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77111         don't use its results.
77112         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77113         since we include them unconditionally.  Don't require
77114         AM_STDBOOL_H, since stdbool is a prerequisite.
77115         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77116         since we assume C89 or better.
77117         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77118         as we don't use their results.
77119         Don't check for fchdir, memmove, memset, strrchr, as we use
77120         them unconditionally.
77121         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77122         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77123
77124 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77125
77126         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77127         Include <stddef.h> unconditionally, since we assume C89 now.
77128         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77129         * lib/fts.c: Include fts_.h first, to check interface.
77130         Do not include intprops.h; no longer needed.
77131         Include cycle-check.h and hash.h, since fts_.h no longer does.
77132         Remove unnecessary casts of closedir to void.
77133         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77134         decide whether to decrement nlinks.
77135         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77136         (FTS): Use struct hash_table * instead of Hash_table, so that
77137         we no longer need to include hash.h here.
77138
77139 2005-05-18  Jim Meyering  <jim@meyering.net>
77140
77141         * modules/dirfd (License): Change to LGPL.  Most of the code
77142         is already in the public domain.
77143
77144 2005-05-18  Jim Meyering  <jim@meyering.net>
77145
77146         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77147         Reported by Yoann Vandoorselaere.
77148
77149 2005-05-17  Jim Meyering  <jim@meyering.net>
77150
77151         * m4/fts.m4: New file, from coreutils.
77152
77153 2005-05-17  Jim Meyering  <jim@meyering.net>
77154
77155         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77156
77157 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77158
77159         Sync from coreutils.
77160         * m4/unlinkdir.m4: New file.
77161
77162 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77163
77164         Sync from coreutils.
77165         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77166         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77167         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77168         White space changes only.
77169         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77170         special.
77171         * lib/yesno.c: Include getline.h, not ctype.h.
77172         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77173         Use getline to remove arbitrary restriction on response length.
77174
77175 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77176
77177         * config/srclist-update: Spell out "Street" in FSF postal
77178         mail address; this is the style the FSF seems to prefer.
77179
77180         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77181         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77182         this updates FSF postal mail address.
77183
77184         Sync from coreutils.
77185         * modules/unlinkdir: New file.
77186         * modules/yesno (Depends-on): Add getline.
77187         * MODULES.html.sh (File system functions): Add unlinkdir.
77188
77189 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77190
77191         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77192         lib/strsep.h:
77193         Change the initial comment to refer to GPL, not LGPL.
77194         gnulib-tool will change it to LGPL as needed.
77195
77196         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77197         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77198         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77199         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77200         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77201         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77202         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77203         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77204         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77205         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77206         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77207         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77208         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77209         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77210         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77211         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77212         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77213         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77214         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77215         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77216         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77217         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77218         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77219         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77220         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77221         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77222         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77223         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77224         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77225         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77226         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77227         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77228         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77229         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77230         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77231         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77232         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77233         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77234         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77235         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77236         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77237         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77238         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77239         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77240         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77241         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77242         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77243         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77244         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77245         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77246         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77247         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77248         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77249         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77250         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77251         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77252         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77253         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77254         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77255         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77256         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77257         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77258         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77259         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77260         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77261         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77262         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77263         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77264         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77265         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77266         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77267         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77268         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77269         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77270         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77271         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77272         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77273         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77274         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77275         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77276         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77277         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77278         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77279         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77280         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77281         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77282         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77283         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77284         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77285         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77286         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77287         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77288         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77289         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77290         lib/yesno.c, lib/yesno.h:
77291         Update FSF postal mail address.
77292
77293 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77294
77295         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77296         tests/test-memmem.c, tests/test-stpncpy.c:
77297         Update FSF postal mail address.
77298
77299 2005-05-13  Bruno Haible  <bruno@clisp.org>
77300
77301         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77302         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77303         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77304         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77305         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77306         Add support for 64-bit integers in the MSVC compiler.
77307
77308 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77309
77310         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77311
77312 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77313
77314         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77315
77316 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77317
77318         * doc/getdate.texi (General date syntax): Don't say that date
77319         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77320         Problem reported by Nic Ferrier.
77321
77322 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77323
77324         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77325         specified in ai_socktype. Fix invalid ai_protocol
77326         check. ai_protocol is usually set to 0 or depending on
77327         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77328         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77329         ai_socktype / ai_protocol in the returned addrinfo structure.
77330
77331 2005-05-10  Simon Josefsson  <jas@extundo.com>
77332
77333         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77334         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77335
77336 2005-05-10  Karl Berry  <karl@gnu.org>
77337
77338         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77339         (from http://www.gnu.org/licenses).
77340         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77341         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77342         fdl.texi suffices.
77343
77344 2005-05-10  Karl Berry  <karl@gnu.org>
77345
77346         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77347         (COPYING.DOC): remove.
77348
77349         * config/srclist-update: new FSF address.
77350
77351 2005-05-10  Derek Price  <derek@ximbiot.com>
77352
77353         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77354         possible.
77355
77356 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77357             Bruno Haible  <bruno@clisp.org>
77358
77359         * modules/inet_ntop: New file.
77360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77361         inet_ntop.
77362
77363 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77364             Bruno Haible  <bruno@clisp.org>
77365
77366         * m4/inet_ntop.m4: New file.
77367
77368 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77369             Bruno Haible  <bruno@clisp.org>
77370
77371         * lib/inet_ntop.h: New file.
77372         * lib/inet_ntop.c: New file, from glibc with modifications.
77373
77374 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77375
77376         * modules/time_r (License): Change to LGPL.
77377         * modules/extensions (License): Change to LGPL.  Actually,
77378         the license is more permissive than that, but currently gnulib-tool
77379         doesn't know how to handle more-permissive licenses.
77380
77381         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77382         Problem reported by Dave Love.
77383
77384 2005-05-08  Jim Meyering  <jim@meyering.net>
77385
77386         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77387         blank.
77388
77389 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77390
77391         * modules/argmatch (Depends-on): Add stdbool.
77392         * modules/backupfile (Depends-on): Likewise.
77393         * modules/chdir-long (Depends-on): Likewise.
77394         * modules/closeout (Depends-on): Likewise.
77395         * modules/cycle-check (Depends-on): Likewise.
77396         * modules/dirname (Depends-on): Likewise.
77397         * modules/fnmatch (Depends-on): Likewise.
77398         * modules/fsusage (Depends-on): Likewise.
77399         * modules/fwriteerror (Depends-on): Likewise.
77400         * modules/getcwd (Depends-on): Likewise.
77401         * modules/getloadavg (Depends-on): Likewise.
77402         * modules/hard-locale (Depends-on): Likewise.
77403         * modules/makepath (Depends-on): Likewise.
77404         * modules/mountlist (Depends-on): Likewise.
77405         * modules/nanosleep (Depends-on): Likewise.
77406         * modules/posixtm (Depends-on): Likewise.
77407         * modules/quotearg (Depends-on): Likewise.
77408         * modules/readtokens (Depends-on): Likewise.
77409         * modules/readtokens0 (Depends-on): Likewise.
77410         * modules/readutmp (Depends-on): Likewise.
77411         * modules/save-cwd (Depends-on): Likewise.
77412         * modules/strftime (Depends-on): Likewise.
77413         * modules/userspec (Depends-on): Likewise.
77414         * modules/utimecmp (Depends-on): Likewise.
77415         * modules/xgetcwd (Depends-on): Likewise.
77416         * modules/xnanosleep (Depends-on): Likewise.
77417         * modules/xstrtod (Depends-on): Likewise.
77418         * modules/yesno (Depends-on): Likewise.
77419
77420 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77421
77422         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77423         needless checks.
77424
77425 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         Merge from coreutils.  Among other things,
77428         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77429         * lib/fd-safer.c: New file.
77430         * lib/fcntl-safer.h, open-safer.c: Remove.
77431         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77432         * lib/dup-safer.c: Include unistd-safer.h first.
77433         Don't include errno.h.
77434         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77435         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77436         * lib/file-type.c: Rely on file-type.h change.
77437         * lib/getloadavg.c: Include unistd-safer.h.
77438         (getloadavg): Use safer open.
77439         * lib/getusershell.c: Include "stdio-safer.h".
77440         (getusershell): Use safer fopen.
77441         * lib/long-options.c (long_options): Use NULL rather than 0.
77442         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77443         'free'.
77444         * lib/modechange.c: Likewise.
77445         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77446         (MODE_DONE): New constant.
77447         (struct mode_change): Remove 'next' member.
77448         (make_node_op_equals): New function; like the old one of the
77449         same name, except it allocates an array.
77450         (mode_compile, mode_create_from_ref): Use it.
77451         (mode_compile): Allocate result as an array, not a linked list.
77452         Parse octal string ourself, so that we catch mistakes like "+0".
77453         (mode_adjust): Arg is an array, not a linked list.
77454         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77455         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77456         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77457         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77458         Remove.  This is now stat-macros.h's job.
77459         (talloc): Remove.  All callers replaced by xalloc, so that
77460         our invokers don't have to worry about reporting memory failures.
77461         (make_node_op_equals): Remove.
77462         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77463         New constants.
77464         (struct mode_change): Moved here from modechange.h.
77465         (mode_append_entry): Remove.
77466         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77467         apps to have incorrect behavior.  Use simpler algorithm for head
77468         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77469         Detect more invalid usages rather than having somewhat-random behavior.
77470         Don't insert an "a=" action, as that leads to incorrect behavior.
77471         (mode_compile, mode_create_from_ref): Return NULL on error instead
77472         of an enum, since now there's only one way to have an error.  All
77473         callers changed.
77474         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77475         at the correct time.  Simplify calculation of "+u" and its ilk.
77476         Don't mishandle "+X".
77477         (mode_free): Remove "register" and localize decls.
77478         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77479         (struct mode_change): Move to modechange.c; callers don't
77480         need to see this stuff.
77481         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77482         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77483         (mode_change, mode_adjust): Reflect the new signatures noted above.
77484         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77485         that might redefine system include files.
77486         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77487         (my_usleep): Use NULL rather than (void *) 0.
77488         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77489         Use siginterrupt to specify that system calls should be interrupted.
77490         (rpl_nanosleep): Move initialization of suspended closer to call of
77491         my_usleep.
77492         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77493         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77494         (desirable_utmp_entry): New function.
77495         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77496         using x2nrealloc, to simplify logic.
77497         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77498         size calculation.  Do not assume utmp file is a regular file.
77499         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77500         (READ_UTMP_CHECK_PIDS): New constant.
77501         * lib/save-cwd.c: Include unistd-safer.h.
77502         (save_cwd): Use fd_safer.
77503         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77504         [!_LIBC] Include "stat-macros.h" instead.
77505         * lib/unistd-safer.h (fd_safer): New decl.
77506
77507 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77508
77509         * modules/getloadavg (Depends-on): Add unistd-safer.
77510         * modules/getusershell (Depends-on): Add stdio-safer.
77511         * modules/lstat (Depends-on): Remove xalloc.
77512         * modules/mkstemp (Depends-on): Add stat-macros.
77513         * modules/modechange (Depends-on): Remove xstrtol.
77514         Add stat-macros, xalloc.
77515         * modules/save-cwd (Depends-on): Add unistd-safer.
77516         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77517         * modules/unistd-safer (Files): Add lib/fd-safer.c
77518         (Makefile.am): Remove lib_SOURCES.
77519
77520         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77521         Remove fcntl-safer; unistd-safer supersedes it.
77522
77523 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77524
77525         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77526         AC_HEADER_STAT.
77527         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77528         (gl_PREREQ_CHOWN): Remove.
77529         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77530         it.  Don't require AC_HEADER_STAT.
77531         (gl_PREREQ_LSTAT): Remove.
77532         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77533         Don't require AC_HEADER_STAT.
77534         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77535         (gl_PREREQ_RMDIR): Remove.
77536         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77537         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77538         the stat-macros module a prerequisite.
77539         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77540         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77541         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77542         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77543         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77544         variable names.
77545         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77546         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77547         variable prefixes.
77548         * m4/fcntl-safer.m4: Remove.
77549         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77550         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77551         Invoke gl_PREREQ_FD_SAFER.
77552         (gl_PREREQ_FD_SAFER): New macro.
77553         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77554         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77555         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77556         Remove duplicate call to AC_LIBOBJ(readutmp).
77557         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77558
77559         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77560         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77561
77562 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77563
77564         * MODULES.html.sh (Misc): Add byteswap.
77565
77566 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77567
77568         * modules/getcwd (Depends-on): Add extensions.
77569         * modules/openat (Depends-on): Likewise.
77570
77571 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77572
77573         * modules/byteswap: New file.
77574
77575 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77576
77577         * m4/byteswap.m4: New file.
77578
77579 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77580
77581         * lib/byteswap_.h: New file.
77582
77583 2005-04-25  Karl Berry  <karl@gnu.org>
77584
77585         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77586
77587 2005-04-25  Albert Chin  <china@thewrittenword.com>
77588
77589         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77590         Toolkit C bug.
77591
77592 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77593
77594         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77595         (func_ln_if_changed): Remove forcibly for no error message
77596         in case file does not exist.
77597
77598 2005-04-19  Simon Josefsson  <jas@extundo.com>
77599
77600         * gnulib-tool (Options): Make --symlink mean --symbolic.
77601
77602 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77603
77604         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77605
77606 2005-04-16  Simon Josefsson  <jas@extundo.com>
77607
77608         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77609
77610 2005-04-15  Simon Josefsson  <jas@extundo.com>
77611
77612         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77613
77614 2005-04-15  Simon Josefsson  <jas@extundo.com>
77615
77616         * gnulib-tool: Rename --symlink to --symbolic.
77617
77618 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77619
77620         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77621         symbolic links to files instead of copying/moving.  Add --aux-dir,
77622         specifying directory relative --dir where auxiliary build tools
77623         are placed.
77624
77625 2005-04-14  Bruno Haible  <bruno@clisp.org>
77626
77627         * modules/allocsa (License): Change to LGPL.
77628         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77629
77630 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77631
77632         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77633         that "UTC +1 second" continues to work.  Problem reported
77634         by Dmitry V. Levin.
77635         (relunit_snumber): New rule.
77636         (relunit): Use it.
77637
77638 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77639
77640         * lib/getdate.y (universal_time_zone_table): New constant.
77641         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77642         universal_time_zone_table.
77643         (lookup_zone): Prefer universal_time_zone_table to
77644         local_time_zone_table, so that "GMT" time stamps are allowed in
77645         London during the summer.  Problem reported by Ian Abbott.
77646
77647 2005-04-12  Jim Meyering  <jim@meyering.net>
77648
77649         * lib/human.c (humblock): Set *options even when returning due to
77650         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77651         warning from gcc-4.
77652
77653 2005-04-09  Jim Meyering  <jim@meyering.net>
77654
77655         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77656         -Wuninitialized: initialize tm0.tm_year.
77657
77658 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77659
77660         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77661         count, since there's no maximum.  All uses changed.
77662         Add member dsts_seen.
77663         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77664         not being INT_MAX.
77665         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77666         Use pc_rels_seen to decide whther a date is absolute.
77667
77668         * lib/getdate.y (number): Don't overwrite year.
77669         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77670         check.
77671
77672 2005-04-02  Simon Josefsson  <jas@extundo.com>
77673
77674         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77675         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77676
77677 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77678
77679         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77680         where no absolute path name can be longer than PATH_MAX.
77681
77682 2005-03-27  Jim Meyering  <jim@meyering.net>
77683
77684         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77685
77686 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77687
77688         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77689         "one's complement" -> "ones' complement" in comment, as per Knuth.
77690         "value of type" -> "type or expression" in comment.
77691         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77692
77693 2005-03-26  Jim Meyering  <jim@meyering.net>
77694
77695         Comment nits.
77696         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77697         Correct typos: s/or/of/.
77698
77699 2005-03-26  Jim Meyering  <jim@meyering.net>
77700
77701         * modules/check-include-files: Move to ../ and rename to...
77702         * check-module: ...this.
77703
77704 2005-03-25  Jim Meyering  <jim@meyering.net>
77705
77706         * modules/xvasprintf (Files): Add xalloc.h.
77707
77708 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77709
77710         * modules/gettext (Files): config/config.rpath ->
77711         build-aux/config.rpath
77712         * modules/iconv (Files): Likewise.
77713         Problem reported by Oskar Liljeblad.
77714
77715 2005-03-23  Jim Meyering  <jim@meyering.net>
77716
77717         * modules/check-include-files: New script to check for
77718         missing dependencies, multiple includes, etc.
77719
77720         * modules/c-strtold (Depends-on): Add xalloc.
77721         * modules/c-strtod (Depends-on): Add xalloc.
77722         * modules/hash (Depends-on): Add xalloc.
77723         (Files): Remove lib/xalloc.h.
77724
77725         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77726         * modules/userspec (Files): Add lib/inttostr.h.
77727
77728 2005-03-23  Jim Meyering  <jim@meyering.net>
77729
77730         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77731
77732 2005-03-22  Jim Meyering  <jim@meyering.net>
77733
77734         * modules/stat-macros: New module.
77735         * modules/canonicalize, modules/euidaccess, modules/file-type,
77736         * modules/filemode, modules/lchown, modules/makepath,
77737         * modules/rmdir, modules/stat: Depend on new stat-macros module
77738         rather than listing lib/stat-macros.h manually.
77739         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77740
77741 2005-03-22  Jim Meyering  <jim@meyering.net>
77742
77743         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77744
77745 2005-03-22  Bruno Haible  <bruno@clisp.org>
77746
77747         * config/srclist.txt: Replace target directory 'config' with
77748         'build-aux'.
77749         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77750         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77751         ../build-aux/.
77752
77753 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77754
77755         * modules/chdir-long (Depends-on): Add mempcpy.
77756
77757         * modules/acl, modules/backupfile, modules/c-strtod,
77758         modules/c-strtold, modules/canon-host, modules/canonicalize,
77759         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77760         modules/exclude, modules/exitfail, modules/file-type,
77761         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77762         modules/getdate, modules/getline, modules/getpagesize,
77763         modules/getpass, modules/getugroups, modules/group-member,
77764         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77765         modules/inttostr, modules/long-options, modules/makepath,
77766         modules/md5, modules/memcasecmp, modules/memcoll,
77767         modules/modechange, modules/mountlist, modules/path-concat,
77768         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77769         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77770         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77771         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77772         modules/strftime, modules/strndup, modules/strverscmp,
77773         modules/timespec, modules/unlocked-io, modules/userspec,
77774         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77775         modules/yesno:
77776         Remove lib_SOURCES line from Makefile.am section, as this is now
77777         done automatically by the corresponding Autoconf macro.
77778
77779 2005-03-21  Jim Meyering  <jim@meyering.net>
77780
77781         Changes imported from coreutils.
77782
77783         * lib/cycle-check.c: Don't include xalloc.h.
77784
77785         * lib/path-concat.c: Don't include assert.h.
77786         (path_concat): Remove assertion that would have triggered
77787         for ABASE starting with more than one slash.
77788         Reported by Andreas Schwab.
77789
77790         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77791         properly when ABASE is an absolute file name.
77792         Correct the description of this function.
77793         Include <assert.h>.
77794         Add an assertion and a test driver.
77795         This fixes a bug introduced on 2004-07-02.
77796         Andreas Schwab reported the resulting failure of cp --parents:
77797         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77798
77799 2005-03-21  Jim Meyering  <jim@meyering.net>
77800
77801         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77802         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77803
77804 2005-03-21  Jim Meyering  <jim@meyering.net>
77805         and  Paul Eggert  <eggert@cs.ucla.edu>
77806
77807         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77808         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77809         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77810         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77811         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77812         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77813         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77814         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77815         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77816         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77817         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77818         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77819         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77820         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77821         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77822         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77823         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77824         for these modules.
77825
77826 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77827
77828         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77829         (which shouldn't happen), generate nothing instead of returning 0
77830         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77831
77832 2005-03-16  Bruno Haible  <bruno@clisp.org>
77833
77834         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77835         HAVE_LONGLONG_64BIT.
77836
77837 2005-03-16  Bruno Haible  <bruno@clisp.org>
77838
77839         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77840         HAVE_LONGLONG_64BIT.
77841
77842 2005-03-16  Bruno Haible  <bruno@clisp.org>
77843
77844         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77845         HAVE_LONGLONG_64BIT.
77846
77847 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77848
77849         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77850         reliably distinguish strftime failure from empty output on POSIX
77851         hosts.
77852
77853 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77854
77855         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77856         (iconv_string): Don't guess a size-zero buffer, as that might cause
77857         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77858         result would be 'too large', where 'too large' is (heuristically)
77859         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77860         overflow concerns.  This will prevent some unwanted malloc failures
77861         when the inputs are very large.
77862
77863 2005-03-15  Karl Berry  <karl@gnu.org>
77864
77865         * config/srclist.txt (config.rpath): from gettext.
77866         * config/config.rpath: update.
77867
77868 2005-03-15  Bruno Haible  <bruno@clisp.org>
77869
77870         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77871         to 'negate'.
77872
77873         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77874         variable.
77875
77876         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77877         results.
77878
77879 2005-03-14  Simon Josefsson  <jas@extundo.com>
77880
77881         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77882         <fx@gnu.org>.
77883
77884 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77885
77886         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77887         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77888         intprops.h.
77889         * lib/strtol.c: Likewise.
77890
77891 2005-03-14  Jim Meyering  <jim@meyering.net>
77892
77893         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77894         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77895         to be nonzero so that we (and caller) can detect the difference
77896         between a valid zero-length expansion and an error return, even
77897         when the underlying strftime fails before writing anything into
77898         that location.
77899
77900 2005-03-14  Bruno Haible  <bruno@clisp.org>
77901
77902         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77903         Update from GNU gettext 0.14.3.
77904
77905 2005-03-10  Jim Meyering  <jim@meyering.net>
77906
77907         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77908
77909 2005-03-10  Jim Meyering  <jim@meyering.net>
77910
77911         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77912         so that this module works on systems without fchdir.
77913
77914 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77915
77916         Factor int-properties macros into a single file, except for
77917         glibc-related files.
77918         * lib/intprops.h: New file.
77919         * lib/getloadavg.c: Include it instead of limits.h.
77920         (INT_STRLEN_BOUND): Remove.
77921         * lib/human.c: Include intprops.h.
77922         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77923         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77924         302/1000.
77925         * lib/inttostr.h: Include intprops.h instead of limits.h.
77926         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77927         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77928         for consistency with intprops.h.
77929         (time_t_is_integer, twos_complement_arithmetic): Use them.
77930         * lib/sig2str.h: Include <signal.h>, intprops.h.
77931         (INT_STRLEN_BOUND): Remove.
77932         * lib/strftime.c (TYPE_SIGNED): Remove.
77933         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77934         * lib/strtol.c: Adjust comments to match intprops.h.
77935         * lib/userspec.c: Include intprops.h.
77936         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77937         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77938         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77939         instead of rolling our own expressions.
77940         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77941
77942         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77943         instead of int.
77944         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77945         the right thing even if adding 1900 would overflow.  Similarly
77946         for tm_mon + 1 and tm_yday + 1.
77947         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77948         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77949         (DO_SIGNED_NUMBER): New macro.
77950         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77951
77952 2005-03-07  Bruno Haible  <bruno@clisp.org>
77953
77954         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77955
77956 2005-03-07  Bruno Haible  <bruno@clisp.org>
77957
77958         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77959
77960 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77961
77962         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77963         (func_import): Only replace files via --import when they have actually
77964         changed.
77965
77966 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77967
77968         * m4/mmap-anon.m4: New file.
77969         * m4/pagealign_alloc.m4: New file.
77970
77971 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77972             Bruno Haible  <bruno@clisp.org>
77973
77974         * modules/pagealign_alloc: New file.
77975         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77976
77977 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77978             Bruno Haible  <bruno@clisp.org>
77979
77980         * lib/pagealign_alloc.h: New file.
77981         * lib/pagealign_alloc.c: New file.
77982
77983 2005-03-03  Bruno Haible  <bruno@clisp.org>
77984
77985         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77986         Use an all-permissive copyright notice, recommended by RMS.
77987
77988 2005-03-02  Bruno Haible  <bruno@clisp.org>
77989
77990         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77991         of AIX, the replacement has to be done only after <string.h> is
77992         included, therefore not in config.h. stpncpy.h does the replacement,
77993         and stpncpy.c uses it.
77994
77995 2005-03-02  Bruno Haible  <bruno@clisp.org>
77996
77997         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77998         stpncpy.c uses it.
77999
78000 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78003         The workaround isn't strictly needed for POSIX conformance, and
78004         it's too much of a pain to configure and maintain.  We'll ask
78005         people to fix their kernels instead.
78006         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78007         (NANOSLEEP_BUG_WORKAROUND): Remove.
78008         (xnanosleep): Remove the workaround.
78009
78010 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78011
78012         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78013         Reported by Derek Price.
78014         (Include): Add "timespec.h".
78015
78016         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78017
78018 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78019
78020         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78021         to detect nanosleep bug.
78022
78023 2005-03-01  Bruno Haible  <bruno@clisp.org>
78024
78025         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78026
78027 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78028
78029         * modules/gethrxtime: New file.
78030         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78031         (Depends-on): Add gethrxtime.
78032         (configure.ac): Add gl_XNANOSLEEP.
78033         (Makefile.am): Remove lib_SOURCES line.
78034
78035 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78036
78037         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78038         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78039
78040 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78041
78042         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78043         * lib/timespec.h (gettime): Return void, since it always
78044         succeeds now.  All uses changed.
78045         * lib/gettime.c (gettime): Likewise.
78046         [HAVE_NANOTIME]: Prefer nanotime.
78047         Assume gettimeofday succeeds, as POSIX requires.
78048         Assime time () succeeds, since other code already does.
78049         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78050         (timespec_subtract): Remove.
78051         (NANOSLEEP_BUG_WORKAROUND): New constant.
78052         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78053         things considerably.  Use it only on GNU/Linux hosts, since the
78054         workaround shouldn't be needed elsewhere.
78055
78056 2005-02-24  Bruno Haible  <bruno@clisp.org>
78057
78058         * modules/gettext (Files): Add m4/glibc2.m4.
78059
78060 2005-02-24  Bruno Haible  <bruno@clisp.org>
78061
78062         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78063         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78064         * m4/progtest.m4:
78065         Update from GNU gettext 0.14.2.
78066         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78067
78068 2005-02-24  Bruno Haible  <bruno@clisp.org>
78069
78070         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78071         * lib/config.charset: Update from GNU gettext 0.14.2.
78072
78073 2005-02-24  Bruno Haible  <bruno@clisp.org>
78074
78075         * lib/gettext.h: Update from GNU gettext 0.14.2.
78076
78077 2005-02-23  Simon Josefsson  <jas@extundo.com>
78078
78079         * m4/iconvme.m4: New file.
78080
78081 2005-02-23  Jim Meyering  <jim@meyering.net>
78082
78083         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78084         change.
78085         Thanks to Bruno Haible for catching it.
78086
78087 2005-02-22  Simon Josefsson  <jas@extundo.com>
78088
78089         * modules/iconvme: New file.
78090
78091         * MODULES.html.sh: Add iconvme.
78092
78093 2005-02-22  Simon Josefsson  <jas@extundo.com>
78094
78095         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78096
78097 2005-02-22  Simon Josefsson  <jas@extundo.com>
78098
78099         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78100
78101 2005-02-22  Jim Meyering  <jim@meyering.net>
78102
78103         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78104         s/ifndef/ifdef/.
78105
78106 2005-02-20  Neil Conway  <neilc@samurai.com>
78107
78108         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78109         returned by OSX/Darwin if the specified buffer is not large
78110         enough for the hostname.
78111
78112 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78113
78114         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78115         pass it to _help, otherwise the latter coredumps trying to
78116         dereference state.root_argp.
78117
78118 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78119
78120         * modules/chdir-long (Depends-on): Add memrchr.
78121         * modules/memrchr (Files): Add lib/memrchr.h.
78122         (Include): "memrchr.h".
78123
78124 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78127
78128 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         * lib/memrchr.h: New file.
78131         * lib/chdir-long.c: Include it.
78132         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78133         Don't bother including stddef.h.
78134
78135 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78136
78137         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78138         inclusion.
78139         Include <sys/types.h>, for dev_t.
78140         (ME_DUMMY, ME_REMOTE): Move from here....
78141         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78142         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78143         Dmitry V. Levin.
78144         Include mountlist.h first, to test the interface.
78145
78146 2005-01-29  Bruno Haible  <bruno@clisp.org>
78147
78148         * lib/progname.c (program_name): Initialize.
78149         Needed when linking statically on MacOS X.
78150
78151 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78152
78153         Sync from coreutils.
78154         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78155         (Depends-on): Add c-strtod.
78156         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78157
78158 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78159
78160         Sync from coreutils.
78161         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78162
78163         Remove files that are specific to coreutils.
78164         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78165
78166 2005-01-28  Bruno Haible  <bruno@clisp.org>
78167
78168         * modules/javacomp: New file.
78169         * MODULES.html.sh (Java): Add javacomp.
78170
78171 2005-01-28  Bruno Haible  <bruno@clisp.org>
78172
78173         * m4/javacomp.m4: New file, from GNU gettext.
78174
78175 2005-01-28  Bruno Haible  <bruno@clisp.org>
78176
78177         * lib/javacomp.sh.in: New file, from GNU gettext.
78178         * lib/javacomp.h: New file, from GNU gettext.
78179         * lib/javacomp.c: New file, from GNU gettext.
78180
78181 2005-01-26  Simon Josefsson  <jas@extundo.com>
78182
78183         * lib/gai_strerror.c: Use GPL in header.
78184
78185 2005-01-26  Bruno Haible  <bruno@clisp.org>
78186
78187         * modules/javaexec: New file.
78188         * MODULES.html.sh (Java): Add javaexec.
78189
78190 2005-01-26  Bruno Haible  <bruno@clisp.org>
78191
78192         * m4/javaexec.m4: New file, from GNU gettext.
78193
78194 2005-01-26  Bruno Haible  <bruno@clisp.org>
78195
78196         * lib/javaexec.sh.in: New file, from GNU gettext.
78197         * lib/javaexec.h: New file, from GNU gettext.
78198         * lib/javaexec.c: New file, from GNU gettext.
78199
78200 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78201
78202         * modules/lchown (Depends-on): Remove lchown.h
78203
78204 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78205
78206         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78207         must be defined if the header file was not found, in order
78208         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78209
78210 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78211
78212         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78213         initializers for struct pentry_state.
78214         (__argp_error): Check return value of __asprintf
78215         (__argp_failure): Translate error message
78216
78217         * lib/argp-parse.c: Removed braces around the expansion of N_()
78218
78219 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78220
78221         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78222         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78223         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78224         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78225         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78226         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78227         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78228         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78229         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78230         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78231         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78232         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78233         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78234         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78235         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78236         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78237         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78238         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78239         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78240         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78241         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78242         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78243         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78244         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78245         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78246         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78247         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78248         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78249         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78250         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78251         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78252         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78253         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78254         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78255         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78256         Use an all-permissive copyright notice, recommended by RMS.
78257
78258 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78259
78260         * modules/chdir-long (Depends-on): Remove mempcpy.
78261
78262 2005-01-21  Jim Meyering  <jim@meyering.net>
78263
78264         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78265         same value as for Solaris 9.
78266
78267         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78268         component length.  This included changing the parameter to be
78269         of type `char *' rather than `char const *'.
78270         * lib/chdir-long.h (chdir_long): Update prototype.
78271
78272         * lib/openat.c (fdopendir, fstatat): New functions.
78273         * lib/openat.h: Include headers required for use of DIR and struct
78274         stat.
78275         [AT_SYMLINK_NOFOLLOW]: Define.
78276         (fdopendir, fstatat): Add prototypes.
78277
78278 2005-01-21  Bruno Haible  <bruno@clisp.org>
78279
78280         * modules/classpath: New file.
78281         * MODULES.html.sh (Java): Add classpath.
78282
78283 2005-01-21  Bruno Haible  <bruno@clisp.org>
78284
78285         * lib/classpath.h: New file, from GNU gettext.
78286         * lib/classpath.c: New file, from GNU gettext.
78287
78288 2005-01-20  Simon Josefsson  <jas@extundo.com>
78289
78290         * modules/version-etc-fsf: New file.
78291
78292 2005-01-20  Simon Josefsson  <jas@extundo.com>
78293
78294         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78295         * lib/version-etc.c: Remove version_etc_copyright.
78296         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78297         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78298
78299 2005-01-20  Simon Josefsson  <jas@extundo.com>
78300
78301         * lib/base64.h (isbase64): Add.
78302
78303         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78304         using a unsigned prototype, don't inline.
78305         (base64_decode): Use it.
78306
78307 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78308
78309         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78310         it.
78311
78312 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78313
78314         * lib/save-cwd.c (save_cwd): Remove code to support the case
78315         where fchdir is missing or flaky.
78316
78317 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78318
78319         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78320
78321 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78322
78323         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78324         AC_LIBSOURCES now does this.
78325         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78326         with new ullong_max module.
78327
78328 2005-01-19  Bruno Haible  <bruno@clisp.org>
78329
78330         * modules/sh-quote: New file.
78331         * MODULES.html.sh (Executing programs): Add sh-quote.
78332
78333 2005-01-19  Bruno Haible  <bruno@clisp.org>
78334
78335         * lib/sh-quote.h: New file, from GNU gettext.
78336         * lib/sh-quote.c: New file, from GNU gettext.
78337
78338 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78339
78340         Merge from coreutils.
78341         * m4/ullong_max.m4: New file.
78342         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78343         (gl_MACROS): Assume localeconv exists.
78344
78345 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78346
78347         Merge changes from coreutils, as described below in several
78348         changelogs dated today.
78349
78350         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78351         (O_DIRECTORY): Remove; not needed here, since "." must be
78352         a directory.  All uses removed.
78353         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78354         universal on Suns, and we also need to test for IRIX.
78355         Revamp code to use 'if' rather than '#if'.
78356         Avoid unnecessary comparison of cwd->desc to 0.
78357
78358         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78359         for known valid error numbers rather than observed invalid ones.
78360
78361 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78362
78363         * modules/ullong_max: New file.
78364
78365         * modules/chdir-long, modules/openat: New files.
78366         * modules/save-cwd (Depends-on): Depend on chdir-long.
78367         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78368
78369 2005-01-18  Jim Meyering  <jim@meyering.net>
78370
78371         Merge from coreutils.
78372         * m4/chdir-long.m4, m4/openat.m4: New files.
78373         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78374         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78375         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78376         is sane and DOES follow symlinks.  Besides, testing 20 different
78377         systems found no broken chown implementations.
78378         Prompted by a change in rsync's copy of this macro.
78379         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78380
78381         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78382
78383         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78384         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78385         NULL-means-set-to-current-time semantics.
78386         Remove temporary file immediately, rather than waiting
78387         for configure's at-exit trap code to do it.
78388
78389 2005-01-18  Jim Meyering  <jim@meyering.net>
78390
78391         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78392
78393         * lib/utimens.c (futimens): Account for the fact that futimes
78394         can also fail with errno == ENOSYS or errno == ENOENT.
78395         Patch from Dmitry V. Levin.
78396
78397         Change the name of the robust chdir function from chdir to chdir_long.
78398         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78399         (restore_cwd): Use chdir_long, not chdir.
78400         * lib/chdir-long.c: Renamed from chdir.c.
78401         * lib/chdir-long.h: Renamed from chdir.h.
78402         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78403         Hurd.
78404
78405 2005-01-18  Bruno Haible  <bruno@clisp.org>
78406
78407         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78408         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78409         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78410         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78411         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78412         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78413         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78414         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78415         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78416         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78417         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78418         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78419         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78420         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78421         Use an all-permissive copyright notice, recommended by RMS.
78422
78423 2005-01-18  Bob Proulx  <bob@proulx.com>
78424
78425         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78426         simplify offsetof() macro construct to avoid compile failure with
78427         native HP-UX 11.0 ANSI C compiler.
78428
78429 2005-01-17  Bruno Haible  <bruno@clisp.org>
78430
78431         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78432         redundant because stpncpy.m4 takes care of it.
78433
78434 2005-01-17  Bruno Haible  <bruno@clisp.org>
78435
78436         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78437
78438 2005-01-17  Bruno Haible  <bruno@clisp.org>
78439
78440         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78441         used.
78442
78443 2005-01-17  Bruno Haible  <bruno@clisp.org>
78444
78445         * lib/fwriteerror.h (fwriteerror): Change specification to include
78446         fclose.
78447         * lib/fwriteerror.c: Include <stdbool.h>.
78448         (fwriteerror): At the end, close the file stream. Record whether
78449         stdout was already closed.
78450
78451 2005-01-17  Bruno Haible  <bruno@clisp.org>
78452
78453         * lib/execute.c (environ): Declare if needed.
78454         * lib/pipe.c (environ): Likewise.
78455         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78456
78457 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78458
78459         * modules/argp: Depend on vsnprintf
78460
78461 2005-01-10  Jim Meyering  <jim@meyering.net>
78462
78463         * modules/closeout (Depends-on): Add atexit.
78464
78465 2005-01-06  Bruno Haible  <bruno@clisp.org>
78466
78467         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78468
78469 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78470
78471         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78472         definitions to be after all include files, to avoid collisions.
78473         Problem reported by Bob Proulx.
78474
78475 2005-01-04  Jim Meyering  <jim@meyering.net>
78476
78477         Changes imported from coreutils.
78478         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78479         as the mkstemp template, use a temporary directory and an
78480         8.3-friendly template to avoid trouble on systems like DJGPP.
78481         Reported by Juan M. Guerrero via Stepan Kasal.
78482         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78483         close. Remove the temporary directory right away, rather than waiting
78484         for configure's at-exit trap code to do it.
78485         Suggestion from Stepan Kasal.
78486
78487 2005-01-01  Simon Josefsson  <jas@extundo.com>
78488
78489         * gnulib-tool: Print #include directives when --import'ing.
78490
78491 2004-12-28  Simon Josefsson  <jas@extundo.com>
78492
78493         * tests/test-base64.c: Include required header files.  Remove
78494         unused variables.
78495
78496 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78497
78498         * modules/error (Depends-on): Remove gettext.
78499
78500 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78501
78502         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78503         not needed.  This removes a dependency on the gettext module.
78504         [defined _LIBC]: Do not include <libintl.h>; not needed.
78505
78506 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78507
78508         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78509         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78510
78511 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78512
78513         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78514         HAVE_DECL_STRTOLD.
78515
78516 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78517
78518         * modules/getdate (Depends-on): Remove alloca-opt.
78519
78520 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78521
78522         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78523
78524 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78525
78526         * lib/argp-parse.c: Include <stddef.h>.
78527         (alignof, alignto): New macros.
78528         (parser_init): Don't assume that void * is aligned sufficiently
78529         for struct option.
78530
78531         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78532         need to extend the stack.
78533         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78534         large.
78535
78536 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78537
78538         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78539
78540 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78541
78542         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78543         (2004-10-24) change.  Apparently this was a false alarm.
78544
78545         * modules/getdate: Depend on alloca-opt, not alloca.
78546
78547 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78550         Remove now-obsolete comment about AIX.
78551         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78552         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78553         (YYMAXDEPTH): New macro.
78554
78555 2004-12-18  Simon Josefsson  <jas@extundo.com>
78556
78557         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78558
78559 2004-12-18  Bruno Haible  <bruno@clisp.org>
78560
78561         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78562
78563 2004-12-18  Bruno Haible  <bruno@clisp.org>
78564
78565         * lib/fatal-signal.c (fatal_signals): Make non-const.
78566         (init_fatal_signals): New function.
78567         (uninstall_handlers, install_handlers): Ignore signals that were set to
78568         SIG_IGN.
78569         (at_fatal_signal): Call init_fatal_signals.
78570         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78571         SIG_IGN.
78572         Reported by Paul Eggert.
78573
78574 2004-12-18  Bruno Haible  <bruno@clisp.org>
78575
78576         * doc/alloca.texi: New file.
78577         * doc/alloca-opt.texi: New file.
78578
78579 2004-12-17  Jim Meyering  <jim@meyering.net>
78580
78581         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78582         Otherwise, install-sh could exit with improper exit status when
78583         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78584
78585 2004-12-16  Simon Josefsson  <jas@extundo.com>
78586
78587         * tests/test-base64.c: Add license.
78588
78589 2004-12-15  Stepan Kasal  <address@hidden>
78590
78591         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78592
78593 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78594
78595         * modules/getcwd (Files): Add m4/d-ino.m4.
78596         Suggested by Mark D. Baushke.
78597
78598 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78599
78600         * lib/getdate.y (textint): New member "negative".
78601         (time_zone_hhmm): New function.
78602         Expect 14 shift-reduce conflicts, not 13.
78603         (o_colon_minutes): New rule.
78604         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78605         (yylex): Set the "negative" member of signed numbers.
78606
78607 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78608
78609         * doc/getdate.texi (Time of day items, Time zone items):
78610         Describe new formats +00:00, UTC+00:00.
78611
78612 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78613
78614         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78615         spurious "-l"s.  Problem reported by Stepan Kasal.
78616
78617 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78618
78619         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78620         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78621
78622 2004-12-04  Simon Josefsson  <jas@extundo.com>
78623
78624         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78625         Vandoorselaere <yoann@prelude-ids.org>.
78626
78627 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78628
78629         Changes imported from coreutils.
78630         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78631         exist.
78632         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78633
78634 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78635
78636         Changes imported from coreutils.
78637         * lib/hard-locale.c: Assume <locale.h> exists.
78638         Include "strdup.h".
78639         (GLIBC_VERSION): New macro.
78640         (hard_locale): Assume setlocale exists.
78641         Rewrite to avoid #ifdef.
78642         Use strdup rather than malloc + strcpy.
78643         * lib/human.c: Assume <locale.h> exists.
78644         (human_readable): Assume localeconv exists.
78645
78646 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78647
78648         * modules/hard-locale (Depends-on): Add strdup.
78649
78650 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78651
78652         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78653         convert T2, not T.  (Imported from libc.)
78654
78655 2004-11-30  Simon Josefsson  <jas@extundo.com>
78656
78657         * modules/restrict (License): Change to LGPL.
78658
78659 2004-11-30  Simon Josefsson  <jas@extundo.com>
78660
78661         * m4/restrict.m4: Add copyright and copying conditions.
78662
78663 2004-11-30  Simon Josefsson  <jas@extundo.com>
78664
78665         * m4/base64.m4: New file.
78666
78667 2004-11-30  Simon Josefsson  <jas@extundo.com>
78668
78669         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78670         base64.
78671
78672         * tests/test-base64.c: New file.
78673
78674         * modules/base64: New file.
78675
78676 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78677
78678         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78679         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78680
78681         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78682
78683 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78684
78685         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78686         (__getcwd.c): Don't restore errno; glibc doesn't.
78687         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78688         first, falling back to our code only if its results look suspicious.
78689         Ensure that the resulting buffer is only as large as necessary.
78690
78691         * lib/readutmp.c: Include readutmp.h first.
78692         Include <errno.h>, since readutmp.h no longer does that.
78693         * lib/readutmp.h: Don't include <errno.h>,
78694         <sys/param.h>, <time.h>; not needed to establish interface.
78695         (errno): Remove decl.
78696         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78697         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78698         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78699
78700 2004-11-28  Simon Josefsson  <jas@extundo.com>
78701
78702         * lib/base64.h, base64.c: New file.
78703
78704 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78705
78706         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78707
78708 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78709
78710         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78711         (Depends-on): Remove pathmax, same.  Add mempcpy.
78712         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78713         (Makefile.am): Append getcwd.h to lib_SOURCES.
78714         (Include): Add getcwd.h.
78715         (Maintainer): Change from Jim Meyering to "all, glibc",
78716         since getdate now uses intended-for-glibc code.
78717         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78718         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78719
78720 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78721
78722         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78723         HP's ANSI C compiler.
78724         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78725         Declaring int functions causes warnings on some modern systems and
78726         shouldn't be needed to compile on ancient ones.
78727         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78728         defined.
78729
78730         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78731         with the following changes.
78732         (__set_errno): Parenthesize properly.
78733         Include <stdbool.h>.
78734         (MIN, MAX, MATCHING_INO): New macros.
78735         (__getcwd): Define with prototype, not K&R form.
78736         Use heuristics to allocate default buffer on stack if possible.
78737         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78738         behavior, and to avoid the PATH_MAX limit when computing
78739         ../../../../...
78740         Use MATCHING_INO to compare inode number to file.
78741         Check for arithmetic overflow in size calculations.
78742         Fix bug in reallocation of dot array that caused getcwd to fail
78743         on directories nested deeper than 75.
78744         Be more careful about saving errno on error.
78745         Do not use realloc; use only free+malloc, as this is a bit
78746         more flexible and avoids a needless copy operation.
78747         Do not inspect st_dev and st_ino for symbolic links; POSIX
78748         doesn't specify the latter.
78749         Check for closedir errors.
78750         Avoid needless casts.
78751         Use "#ifdef weak_alias" around weak_alias, to be like other
78752         glibc code.
78753         The following changes to getcwd.c have effect only when used in
78754         gnulib; they have no effect inside glibc proper.
78755         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78756         as alloca isn't used.
78757         (alloca, __alloca): Likewise.
78758         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78759         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78760         unconditionally, as gnulib assumes C89 or better.
78761         Do not include <sys/param.h>.
78762         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78763         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78764         better.
78765         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78766         Include <dirent.h> in a way that is compatible with modern Autoconf.
78767         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78768         New macros, if not already defined.
78769         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78770         Use "_LIBC", not "defined _LIBC", for consistency.
78771         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78772         a mempcpy module.
78773         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78774         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78775         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78776         credit only to Jim Meyering and adjust the copyright dates.
78777         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78778         <stdlib.h>, <unistd.h>, "pathmax.h".
78779         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78780         (INITIAL_BUFFER_SIZE): Remove.
78781         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78782
78783 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78784
78785         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78786         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78787         Use the _ONCE methods, for efficiency.
78788         Check for fcntl.h.  In test program, include <errno.h>
78789         and <fcntl.h> if available.  Remove old K&R cruft from
78790         test program.  Check for common errors in GNU/Linux,
78791         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78792         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78793         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78794         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78795         name accordingly.
78796         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78797         accommodate new getcwd.c.
78798         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78799         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78800         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78801         that's all we need now.
78802
78803 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78804
78805         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78806         argp-parse.c depends on getopt internals, that means we should
78807         always use our getopt, to be on the safe side.
78808         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78809         order not to spoil the result of an eventual previous invocation
78810         of gl_GETOPT_SUBSTITUTE.
78811
78812 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78813
78814         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78815         redefinition warnings. To avoid them, include the defines
78816         in `#if !defined __need_getopt ... #endif'. The only place
78817         where __getopt_argv_const is used is in definitions
78818         of getopt_long and getopt_long_only below, which are as well
78819         protected by `#ifndef __need_getopt'.
78820         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78821         __need_getopt after including <stdio.h> and <unistd.h> These
78822         headers might have defined it.
78823
78824 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78825
78826         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78827
78828 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78829
78830         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78831         (futimens): New function, which uses futimes if available.
78832         (futimens, utimens): Support timespec==NULL, with same semantics
78833         as utime and utimens.
78834         * lib/utimens.h (futimens): New decl.
78835
78836 2004-11-23  Jim Meyering  <jim@meyering.net>
78837
78838         * lib/getopt_.h: Remove trailing blanks.
78839
78840 2004-11-23  Jim Meyering  <jim@meyering.net>
78841
78842         * lib/__fpending.c: Add comment.
78843
78844 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78845
78846         * modules/canonicalize (Depends-on): Add xreadlink.
78847         Problem reported by James Youngman.
78848
78849 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78850
78851         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78852         New macros.
78853         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78854         optopt): Use them instead of invoking ## directly; otherwise, the
78855         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78856
78857 2004-11-19  Bruno Haible  <bruno@clisp.org>
78858
78859         * lib/strtok_r.c: Move comments from here...
78860         * lib/strtok_r.h: ... to here.
78861
78862 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78863
78864         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78865         implementations that mishandle size_t overflow.
78866
78867 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78868
78869         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78870         might fail.  Problem reported by Yoann Vandoorselaere.
78871         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78872         implementations that mishandle size_t overflow.
78873
78874 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78875
78876         * modules/canon-host (Depends-on): Add strdup.
78877
78878 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78881
78882 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78883
78884         * lib/canon-host.c: Include "strdup.h".
78885         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78886         Use strdup instead of malloc/strcpy to duplicate strings.
78887
78888         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78889         (human_space_before_unit): New constant.
78890         * lib/human.c (human_readable): Support it.
78891
78892         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78893         (xgetcwd): Set errno correctly when failing.
78894         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78895         the failure is actually due to a PATH_MAX problem.
78896
78897         Further getopt changes to make it more likely that glibc will
78898         buy the changes back.
78899         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78900         (getopt): Use it, so to preserve glibc semantic
78901         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78902         when compiling for libc.
78903         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78904         (getopt_long, getopt_long_only): Use it.
78905
78906         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78907         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78908         (getopt): Argv is now char * const *, as per standard.
78909         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78910         not char *__getopt_argv_const *.
78911         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78912         _getopt_long_only_r): Likewise.
78913         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78914         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78915         _getopt_long_r, _getopt_long_only_r): Likewise.
78916         * lib/getopt_.h (__getopt_argv_const): Remove.
78917         (getopt): Argv is now char * const *, as per standard.
78918
78919         * lib/getdate.y (tORDINAL): New token.
78920         (day, relunit): Allow it for relative times.
78921         (relative_time_table): Use tORDINAL for ordinals.
78922
78923 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78924
78925         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78926         Document that "second" isn't allowed as an ordinal number.
78927
78928 2004-11-16  Jim Meyering  <jim@meyering.net>
78929
78930         * modules/closeout (Depends-on): Add fpending.
78931
78932 2004-11-15  Jim Meyering  <jim@meyering.net>
78933
78934         * lib/closeout.c: Include "__fpending.h" once again.
78935         Include <stdbool.h>.
78936         (close_stdout): Don't fail just because stdout was closed initially,
78937         since some programs don't write to stdout in the normal course of
78938         operation (other than --version and --help), and we don't want this
78939         function to make e.g. `touch file >&-' fail.
78940         But do fail if it was closed and someone has tried to write to it.
78941         E.g., `printf foo >&-' must fail.
78942
78943 2004-11-13  Jim Meyering  <jim@meyering.net>
78944
78945         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78946
78947 2004-11-12  Simon Josefsson  <jas@extundo.com>
78948
78949         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78950         small doc fix is still pending.
78951
78952 2004-11-11  Simon Josefsson  <jas@extundo.com>
78953
78954         * modules/strtok_r: New file.
78955
78956         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78957         strtok_r.
78958
78959 2004-11-11  Simon Josefsson  <jas@extundo.com>
78960
78961         * m4/strtok_r.m4: New file.
78962
78963         * m4/getopt.m4: Replace opterr.
78964
78965 2004-11-11  Simon Josefsson  <jas@extundo.com>
78966
78967         * lib/strtok_r.h, strtok_r.c: New file.
78968
78969 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78970
78971         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78972         of replacing opterr, getopt, etc.  This should handle the
78973         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78974
78975 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78976
78977         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78978         we can stop lying to compilers about the constness of argv when we
78979         are compiled outside glibc.
78980         (getopt, getopt_long, getopt_long_only): Use it.
78981         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78982         _getopt_internal, getopt): Likewise.
78983         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78984         _getopt_long_only_r): Likewise.
78985         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78986         _getopt_long_r, _getopt_long_only_r): Likewise.
78987
78988         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78989         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78990         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78991         the other external symbols.
78992         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78993         declaration, since the above renaming now works around collisions.
78994
78995 2004-11-11  Jim Meyering  <jim@meyering.net>
78996
78997         * lib/linebreak.c: Remove trailing blanks.
78998         * lib/alloca_.h: Likewise.
78999         * lib/acosl.c: Likewise.
79000         * lib/euidaccess.c: Likewise.
79001         * lib/allocsa.h: Likewise.
79002
79003 2004-11-10  Simon Josefsson  <jas@extundo.com>
79004
79005         * m4/getaddrinfo.m4: New file.
79006
79007 2004-11-10  Simon Josefsson  <jas@extundo.com>
79008
79009         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79010
79011 2004-11-10  Simon Josefsson  <jas@extundo.com>
79012
79013         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79014         getaddrinfo.
79015
79016         * modules/getaddrinfo: New file.
79017
79018 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79019
79020         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79021
79022 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79023
79024         * lib/mktime.c (SHR): New macro, which is a portable
79025         substitute for >> that should work even on Crays.
79026         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79027         Problem reported by Mark D. Baushke in
79028         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79029         * lib/getdate.y (SHR): Likewise.
79030         (tm_diff): Use it.
79031         * lib/strftime.c (SHR): Likewise.
79032         (tm_diff): Use it.
79033         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79034         quote_these_too, so that right shifts are well defined.  All uses
79035         changed.
79036
79037 2004-11-10  Jim Meyering  <jim@meyering.net>
79038
79039         Ensure that no close failure goes unreported.
79040         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79041         return early when it seems there's nothing to flush.
79042         Don't include __fpending.h.
79043
79044 2004-11-10  Jim Meyering  <jim@meyering.net>
79045
79046         * modules/closeout (Depends-on): Remove fpending.
79047
79048 2004-11-10  Jim Meyering  <jim@meyering.net>
79049
79050         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79051
79052 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79053
79054         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79055         gl_FUNC_STRFTIME.
79056         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79057         and AC_REQUIRE when possible, to avoid duplicate checks.
79058         Check for <wchar.h>.
79059
79060 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79061
79062         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79063
79064 2004-11-09  Bruno Haible  <bruno@clisp.org>
79065
79066         * m4/sockpfaf.m4: New file.
79067
79068 2004-11-05  Bruno Haible  <bruno@clisp.org>
79069
79070         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79071         Reported by Mark D. Baushke <mdb@cvshome.org>.
79072
79073 2004-11-04  Bruno Haible  <bruno@clisp.org>
79074
79075         2004-09-11  Bruno Haible  <bruno@clisp.org>
79076                 * allocsa.valgrind: New file.
79077         2004-02-06  Bruno Haible  <bruno@clisp.org>
79078                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79079                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79080                 Reported by Christopher Seip <chris.seip@hp.com>.
79081
79082 2004-11-04  Bruno Haible  <bruno@clisp.org>
79083
79084         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79085         (Makefile.am): Distribute it.
79086
79087 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79088
79089         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79090         with errno == ERANGE if the buffer is too small.
79091         Problem reported by Mark D. Baushke.
79092
79093 2004-11-03  Albert Chin  <china@thewrittenword.com>
79094             Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79097         equivalent, substitute $ac_type for equivalent type rather than
79098         blindly using uint32_t *always* which won't work if uint32_t is not
79099         available.  Define _UINT32_T to work around typedef of uint32_t if
79100         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79101         2.5.1.
79102
79103 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79104
79105         * m4/jm-macros.m4: Sync from coreutils.
79106         (gl_MACROS): Check for mbrlen, for pathchk.
79107         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79108
79109 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79110
79111         * lib/xreadlink.c (MAXSIZE): New macro.
79112         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79113         size does not exceed MAXSIZE.  Avoid cast.
79114         As suggested by Mark D. Baushke in
79115         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79116         if readlink fails with buffer size just under MAXSIZE, try again
79117         with MAXSIZE.
79118
79119 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79122
79123 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79124         and  Paul Eggert  <eggert@cs.ucla.edu>
79125
79126         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79127         (get_date): Overparenthesize to avoid GCC warning.
79128
79129 2004-11-02  Bruno Haible  <bruno@clisp.org>
79130
79131         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79132         returns void.
79133
79134 2004-11-02  Bruno Haible  <bruno@clisp.org>
79135
79136         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79137         function returns void.
79138
79139 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79140
79141         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79142         fflush_unlocked, flockfile, funlockfile, funlockfile,
79143         fputs_unlocked, putc_unlocked.
79144
79145 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79148         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79149         already declared.
79150
79151 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79152
79153         * modules/getdate (Files): Add doc/getdate.texi.
79154         (Depends-on): Add setenv, xalloc.
79155
79156 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79157
79158         * lib/getdate.y: Add support for TZ="foo" within a date string.
79159         Fix some bugs near time_t boundaries.  Reject dates with
79160         out-of-range components, e.g., "Sept 31".
79161         Include <stdlib.h>, "setenv.h", "xalloc.h".
79162         (ISDIGIT_LOCALE): Remove; unused.
79163         Note that the TZ and time functions used here are not reentrant.
79164         (mktime_ok, get_tz): New functions.
79165         (TZBUFSIZE): New constant.
79166         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79167         This requires that we sometimes generate our own TZ="XXX..." setting.
79168
79169 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79170
79171         * doc/getdate.texi: New file, from coreutils with modifications for
79172         the new TZ parsing.
79173
79174 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79175
79176         * lib/mktime.c (not_equal_tm): Remove redundant check.
79177
79178 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79179
79180         * modules/regex (lib_SOURCES): Add regex.c.
79181         Reported by James Youngman in
79182         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79183
79184 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79185
79186         * lib/getdate.y: Use Bison 1.875 features, and some minor
79187         code cleanups.  This change does not affect semantics.
79188         Don't include <stdlib.h>; no longer needed.
79189         Don't include unlocked-io.h; only the "#if TEST" code uses
79190         stdio, and performance isn't crucial there.
79191         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79192         Bison 1.875 features as described below.
79193         All uses of "PC." replaced by "pc->".
79194         (YYSTYPE): Add a forward declaration.
79195         (yylex, yyerror): Use full prototypes in forward decls.
79196         Use "%pure-parser" rather than obsolescent "%pure_parser".
79197         Use %parse-param and %lex-param instead of obsolescent
79198         YYPARSE_PARAM and YYLEX_PARAM.
79199         (meridian_table, month_and_day_table, time_units_table,
79200         relative_time_table, time_zone_table, military_table,
79201         lookup_zone, lookup_word, get_date):
79202         Use NULL instead of 0 where appropriate.
79203         (to_hour): Avoid abort (), to avoid a dependency on
79204         stdlib.h.
79205         (yyerror, yylex): Now accepts parser_control * arg.
79206         (main) [TEST]: Use '\0' rather than 0 for char.
79207
79208 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79209
79210         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79211
79212 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79213
79214         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79215         It's now the caller's responsibility to handle the case where
79216         !HAVE_GETPAGESIZE && !defined getpagesize.
79217
79218         * lib/mktime.c (leapyear): Arg is long int, not int.
79219
79220 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79221
79222         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79223
79224 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79225
79226         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79227         missing.  Problem reported by James Youngman.
79228
79229 2004-10-16  Simon Josefsson  <jas@extundo.com>
79230
79231         * gnulib-tool: Fix comments.  Fix parse problem.
79232         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79233
79234 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79235
79236         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79237         implementation of getopt_long.  Problem reported by Alexander Taler in:
79238         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79239
79240 2004-10-15  Bruno Haible  <bruno@clisp.org>
79241
79242         * gnulib-tool: Untabify. Initialize supplied_libname.
79243         (func_usage): More homogenous output.
79244         (func_modules_transitive_closure, func_modules_to_filelist,
79245         func_emit_lib_Makefile_am): New functions.
79246         (func_import): New function, extracted from big case statement. Use
79247         func_get_license, func_modules_transitive_closure,
79248         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79249         opt_lgpl. Don't use test -a, as it's not portable.
79250         (func_create_testdir): Use func_modules_transitive_closure,
79251         func_modules_to_filelist, func_emit_lib_Makefile_am.
79252
79253 2004-10-15  Bruno Haible  <bruno@clisp.org>
79254
79255         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79256
79257 2004-10-15  Bruno Haible  <bruno@clisp.org>
79258
79259         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79260         the portions belonging to each module.
79261         Suggested by Derek Robert Price <derek@ximbiot.com>.
79262
79263 2004-10-12  Simon Josefsson  <jas@extundo.com>
79264
79265         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79266         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79267         to real functions.
79268
79269 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79270
79271         * modules/vsnprintf: New file.
79272
79273 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79274
79275         * m4/vsnprintf.m4: New file.
79276
79277 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79278
79279         * lib/vsnprintf.h: New file.
79280         * lib/vsnprintf.c: New file.
79281
79282 2004-10-11  Bruno Haible  <bruno@clisp.org>
79283
79284         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79285         vsnprintf.
79286
79287 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79288
79289         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79290
79291 2004-10-07  Bruno Haible  <bruno@clisp.org>
79292
79293         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79294         fits into the provided buffer.
79295
79296 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79297
79298         * lib/diacrit.c, diacrit.h: Add GPL notice.
79299
79300         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79301         notice.
79302         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79303         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79304         This avoids a potential constant-folding bug.
79305
79306 2004-10-05  Bruno Haible  <bruno@clisp.org>
79307
79308         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79309         for the declaration of strsep.
79310
79311 2004-10-05  Bruno Haible  <bruno@clisp.org>
79312
79313         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79314
79315 2004-10-04  Simon Josefsson  <jas@extundo.com>
79316
79317         * modules/memmem: New file.
79318         * tests/test-memmem.c: New file.
79319         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79320
79321 2004-10-04  Simon Josefsson  <jas@extundo.com>
79322
79323         * m4/memmem.m4: New file.
79324
79325 2004-10-04  Simon Josefsson  <jas@extundo.com>
79326
79327         * lib/memmem.h: New file.
79328         * lib/memmem.c: New file, taken from glibc.
79329
79330 2004-10-04  Simon Josefsson  <jas@extundo.com>
79331
79332         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79333         '#ifdef USE_UNLOCKED_IO'.
79334
79335 2004-10-04  Simon Josefsson  <jas@extundo.com>
79336
79337         * config/srclist.txt: Add memmem from glibc.
79338
79339 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79342
79343         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79344         modules/exclude, modules/getdate, modules/getline,
79345         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79346         modules/getusershell, modules/linebuffer, modules/md5,
79347         modules/mountlist, modules/posixtm, modules/readtokens,
79348         modules/readutmp, modules/regex, modules/sha1,
79349         modules/version-etc, modules/yesno:
79350         Remove dependency on unlocked-io.
79351
79352 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79353
79354         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79355
79356         * m4/unlocked-io.m4: Add copyright notice.
79357         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79358
79359 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79360
79361         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79362         * lib/xmalloc.c (xmemdup): Likewise.
79363         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79364         XFREE): Remove these long-obsolescent macros.
79365         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79366         * lib/xstrdup.c: Remove.
79367
79368         * lib/regex.c (re_comp): Cast gettext return value to char *,
79369         Problem reported by Martin Neitzel via Mark D. Baushke.
79370
79371 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79372
79373         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79374         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79375         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79376         regex.c, sha1.c, version-etc.c, yesno.c:
79377         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79378         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79379         the includer's responsibility.
79380
79381         Sync from coreutils.
79382
79383         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79384         points to the start of a string, as the C Standard says the
79385         resulting behavior is undefined.
79386
79387         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79388         simple -> simple_backups, numbered_existing ->
79389         numbered_existing_backups, numbered -> numbered_backups
79390         to avoid shadowing problems.  All uses changed.
79391         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79392         * lib/backupfile.c (check_extension, numbered_backup):
79393         Rename locals to avoid shadowing 'basename'.
79394         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79395         once.
79396
79397         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79398         * lib/.cvsignore: Add getopt.h.
79399
79400 2004-10-04  Bruno Haible  <bruno@clisp.org>
79401
79402         * modules/README: New file.
79403         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79404         not a module.
79405
79406 2004-10-02  Jim Meyering  <jim@meyering.net>
79407
79408         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79409
79410 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79411
79412         * modules/strsep: New file.
79413
79414 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79415
79416         * m4/strsep.m4: New file.
79417
79418 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79419
79420         * lib/strsep.h: New file.
79421         * lib/strsep.c: New file.
79422
79423 2004-10-01  Simon Josefsson  <jas@extundo.com>
79424
79425         * lib/snprintf.c (snprintf): Handle size==0.
79426
79427 2004-10-01  Simon Josefsson  <jas@extundo.com>
79428             Bruno Haible  <bruno@clisp.org>
79429
79430         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79431         (snprintf): Declare 'args'.
79432
79433 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79434
79435         * lib/snprintf.c: Remove comments as to why each header is needed.
79436
79437 2004-10-01  Bruno Haible  <bruno@clisp.org>
79438
79439         * MODULES.html.sh: Add strsep.
79440
79441 2004-09-30  Simon Josefsson  <jas@extundo.com>
79442
79443         * modules/snprintf: New file.
79444
79445 2004-09-30  Simon Josefsson  <jas@extundo.com>
79446
79447         * m4/snprintf.m4: New file.
79448
79449 2004-09-30  Simon Josefsson  <jas@extundo.com>
79450
79451         * lib/snprintf.h, lib/snprintf.c: New files.
79452
79453 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79454
79455         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79456         (hol_entry_help): Never translate an empty string.
79457         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79458         * lib/argp.h (OPTION_NO_TRANS): New option.
79459
79460 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79461
79462         * modules/argp (Maintainer): Replace Simon Josefsson
79463         by Sergey Poznyakoff.
79464
79465 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79466
79467         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79468         changes merged back into glibc.
79469
79470 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79471
79472         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79473
79474 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79475
79476         * lib/xvasprintf.c: Include xalloc.h.
79477         (xvasprintf): Use xalloc_die, not xmalloc_die.
79478
79479 2004-09-29  Bruno Haible  <bruno@clisp.org>
79480
79481         * modules/alloca-opt: New file, derived from modules/alloca.
79482         * modules/allocsa: Depend on alloca-opt instead of alloca.
79483         * modules/setenv: Likewise.
79484         * modules/vasnprintf: Likewise.
79485         * MODULES.html.sh: Add alloca-opt.
79486
79487 2004-09-28  Simon Josefsson  <jas@extundo.com>
79488
79489         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79490         LGPL, and to replace license template from GPL to LGPL.
79491
79492 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79493
79494         * modules/dummy: Change license to LGPL.
79495
79496 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79497
79498         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79499
79500 2004-09-24  Simon Josefsson  <jas@extundo.com>
79501
79502         * modules/minmax (License): Change from GPL to LGPL.
79503
79504 2004-09-23  Simon Josefsson  <jas@extundo.com>
79505
79506         * gnulib-tool (--import): Typo.
79507
79508 2004-09-23  Simon Josefsson  <jas@extundo.com>
79509
79510         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79511
79512 2004-09-22  Bruno Haible  <bruno@clisp.org>
79513
79514         * modules/*: Add 'License' field.
79515         * gnulib-tool: Accept --extract-license option.
79516         (func_get_license): New function.
79517
79518 2004-09-21  Bruno Haible  <bruno@clisp.org>
79519
79520         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79521         Reported by Simon Josefsson.
79522
79523 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79524
79525         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79526         gl_AC_TYPE_LONG_LONG.
79527
79528 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79529
79530         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79531
79532 2004-09-18  Simon Josefsson  <jas@extundo.com>
79533         and  Paul Eggert  <eggert@cs.ucla.edu>
79534
79535         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79536         calls with autoreconf.  Define GL_LIB.
79537
79538 2004-09-14  Karl Berry  <karl@gnu.org>
79539
79540         * config/srclist.txt: unsync setenv.c, sigh.
79541
79542 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79543
79544         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79545         Problem reported by Bruno Haible in:
79546         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79547
79548 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79549
79550         * config/srclist.txt: Comment out argp-pvh.c.
79551
79552 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79553
79554         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79555         in case some system header has #define'd it.  Problem reported by
79556         Soeren D. Schulze in
79557         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79558
79559 2004-09-09  Karl Berry  <karl@gnu.org>
79560
79561         * regex.[ch]: delete from the root.  These were supposed to be
79562                 synced with emacs cvs, but this has not happened for about
79563                 a year, and anyway nothing else uses emacs regex.[ch].
79564                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79565                 lib/regex[.ch] is untouched.
79566
79567 2004-09-09  Bruno Haible  <bruno@clisp.org>
79568
79569         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79570
79571 2004-09-09  Bruno Haible  <bruno@clisp.org>
79572
79573         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79574         modifications.
79575         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79576
79577 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79578
79579         * modules/xvasprintf: New file.
79580         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79581
79582 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79583
79584         * lib/xvasprintf.h: New file.
79585         * lib/xvasprintf.c: New file.
79586         * lib/xasprintf.c: New file.
79587
79588 2004-09-08  Bruno Haible  <bruno@clisp.org>
79589
79590         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79591
79592 2004-09-08  Bruno Haible  <bruno@clisp.org>
79593
79594         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79595         length is > INT_MAX.
79596         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79597         more.
79598
79599 2004-09-08  Bruno Haible  <bruno@clisp.org>
79600
79601         * lib/stdint_.h: New file, taken from GNU clisp.
79602
79603 2004-09-08  Bruno Haible  <bruno@clisp.org>
79604             Oskar Liljeblad  <oskar@osk.mine.nu>
79605
79606         * modules/stdint: New file.
79607         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79608
79609 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79610
79611         Import from coreutils.
79612         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79613         strings on unbounded length.  alloca's performance benefits aren't
79614         that important here.
79615         (V_STRDUP): Remove.
79616         (parse_with_separator): New function, with most of the internals
79617         of the old parse_user_spec.  Allow user to omit both user and group,
79618         for compatibility with FreeBSD.
79619         Clone only the user name, not the entire spec.
79620         Do not set *uid, *gid unless entirely successful.
79621         Avoid memory leak in some failing cases.
79622         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79623         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79624         (parse_user_spec): Rewrite to use parse_with_separator.
79625
79626 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79627
79628         * modules/userspec: Don't depend on alloca.
79629
79630 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79631
79632         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79633
79634 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79635
79636         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79637         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79638         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79639
79640 2004-08-16  Simon Josefsson  <jas@extundo.com>
79641
79642         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79643         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79644         Add --dry-run for --import.
79645         Let user provided command line parameters override configure.ac
79646         settings.
79647
79648 2004-08-12  Simon Josefsson  <jas@extundo.com>
79649
79650         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79651         as discussed with Paul Eggert in threads rooted at
79652         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79653         and
79654         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79655         Before, the test was empty, and relied on ELIDE_CODE in source
79656         code.)
79657         (gl_PREREQ_GETOPT): New macro.
79658         (gl_GETOPT): Use them.
79659
79660 2004-08-12  Simon Josefsson  <jas@extundo.com>
79661
79662         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79663         * lib/getopt_.h: Renamed from getopt.h.
79664
79665 2004-08-12  Simon Josefsson  <jas@extundo.com>
79666
79667         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79668         Change default library name from libfoo to libgnu.
79669         Now, if you have a configure.ac that says:
79670                 gl_SOURCE_BASE(gl)
79671                 gl_M4_BASE(gl/m4)
79672                 gl_MODULES(error getopt etcetera)
79673                 gl_INIT
79674         you can import all you need by running:
79675                 ../gnulib/gnulib-tool --import
79676
79677         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79678         (Makefile.am): Rewrite, use logic from argz.
79679         (Include): Use <getopt.h> instead of "getopt.h".
79680
79681 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79682
79683         * modules/argp (Files): Add m4/unlocked-io.m4.
79684         (Depends-on): Add extensions.
79685
79686 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79687
79688         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79689         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79690         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79691         Check for program_invocation_name, program_invocation_short_name,
79692         flockfile, funlockfile, features.h, _getopt_long_only_r.
79693
79694 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79697         its complicated substitute.
79698         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79699         and program_invocation_name.
79700         (__argp_basename) [!_LIBC]: Remove; the only use was
79701         replaced by its body.
79702         (__argp_short_program_name): Change condition from
79703         !defined __argp_short_program_name to
79704         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79705         to match argp-namefrob.h.
79706         (__argp_failure): Don't assume strerror_r returns char *.
79707         * lib/argp-parse.c (N_): Define unconditionally.
79708         (argp_default_options): Fill out initializers with 0 to avoid
79709         gcc warnings.
79710
79711 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79712
79713         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79714         getopt1.c.
79715
79716 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79717
79718         Merge from coreutils.
79719
79720         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79721
79722         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79723         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79724
79725 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79726
79727         Merge from coreutils.
79728
79729         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79730         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79731         for Reliant Unix 5.43.
79732
79733         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79734         (union fooround): Use uintmax_t, not long int.
79735         The rest is a merge from libc:
79736         [defined _LIBC]: Include <shlib-compat.h>.
79737         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79738
79739         * lib/settime.c (settime): Recode to avoid warning with
79740         Sun Forte C 6U2.
79741
79742         * lib/strverscmp.c: Convert to UTF-8.
79743
79744 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79745
79746         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79747         m4/uintmax_t.m4.
79748
79749 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79750
79751         * modules/xalloc-die: New file.
79752         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79753
79754         * modules/md5 (Files): Add m4/uint32_t.m4.
79755         * modules/sha1: Renamed from modules/sha.
79756         (Files):
79757         Rename lib/sha.h to lib/sha1.h.
79758         Rename lib/sha.c to lib/sha1.c.
79759         Rename m4/sha.m4 to m4/sha1.m4.
79760         (lib_SOURCES): Likewise.
79761         (configure.ac): Rename gl_SHA to gl_SHA1.
79762         (Include): sha.h -> sha1.h.
79763
79764 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79765
79766         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79767         * m4/sha1.m4: Renamed from sha.m4.
79768         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79769
79770 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79771
79772         * lib/obstack.h (obstack_empty_p):
79773         Don't assume that chunk->contents is suitably aligned.
79774         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79775         Likewise. Problem reported by Benno in
79776         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79777
79778         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79779         readable.  This could be improved further but it'd take some work.
79780
79781 2004-08-08  Simon Josefsson  <jas@extundo.com>
79782
79783         * modules/xgethostname (Depends-on): Remove exit and error (not
79784         used).
79785
79786         * modules/getpass-gnu: Add getpass.h.
79787         (Depends-on): Add stdbool.
79788         * modules/getpass: Add getpass.h.
79789
79790 2004-08-08  Simon Josefsson  <jas@extundo.com>
79791
79792         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79793         Check getpass declaration.
79794
79795 2004-08-08  Simon Josefsson  <jas@extundo.com>
79796
79797         * lib/xgethostname.c: Don't include error.h (not used).
79798
79799         * lib/getpass.h: Add.
79800         * lib/getpass.c: Include getpass.h first.
79801
79802 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79803
79804         * lib/xalloc-die.c: New file.
79805         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79806         All uses removed.
79807         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79808         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79809         xalloc-die.c.
79810         (_, N_, xalloc_die): Move to xalloc-die.c.
79811         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79812         so that we needn't mess with xalloc_msg_memory_exhausted.
79813
79814         * lib/sha1.h: Renamed from sha.h.
79815         (SHA1_H): Renamed from _SHA_H.
79816         (sha1_ctx): Renamed from sha_ctx.
79817         (sha1_init_ctx): Renamed from sha_init_ctx.
79818         (sha1_process_block): Renamed from sha_process_block.
79819         (sha1_process_bytes): Renamed from sha_process_bytes.
79820         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79821         (sha1_read_ctx): Renamed from sha_read_ctx.
79822         (sha1_stream): Renamed from sha_stream.
79823         (sha1_buffer): Renamed from sha_buffer.
79824         * lib/sha1.c: Likewise; renamed from sha.c.
79825         Do not include <sys/types.h>.
79826         Include <stddef.h> rather than <stdlib.h>.
79827
79828 2004-08-08  Bruno Haible  <bruno@clisp.org>
79829
79830         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79831         FILESYSTEM_PREFIX_LEN.
79832         * lib/progreloc.c: Likewise.
79833         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79834
79835 2004-08-06  Simon Josefsson  <jas@extundo.com>
79836
79837         * modules/progname (Depends-on): Don't depend on stdbool.
79838
79839 2004-08-06  Simon Josefsson  <jas@extundo.com>
79840
79841         * modules/getsubopt: New file.
79842         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79843         getsubopt.
79844
79845 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79846
79847         More merge from coreutils.
79848
79849         * m4/utimens.m4, m4/utimecmp.m4: New files.
79850         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79851         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79852         prereq.m4, sha.m4: Import changes from coreutils.
79853
79854 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79855
79856         More merge from coreutils.
79857         * modules/raise, modules/readtokens0, modules/utimens:
79858         * modules/utimecmp, module/xnanosleep: New files.
79859         * modules/strftime: Add lib/strftime.h.
79860         Change include from <time.h> to "strftime.h".
79861         * modules/yesno: Add lib/yesno.h.
79862         * modules/backupfile: Remove lib/addext.c.
79863         * modules/euidaccess: Add stat-macros.h.
79864         * modules/canonicalize, modules/euidaccess,
79865         modules/filemode, modules/lchown, modules/makepath,
79866         modules/rmdir, modules/stat: Likewise.
79867
79868 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79869
79870         Merge from tar.
79871         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79872         SIZE_MAX is a valid preprocessor constant.
79873         (__argp_basename): Change from "#ifndef _LIBC"
79874         to "#ifndef __argp_short_program_name", so that
79875         we don't compile these functions for tar.
79876
79877         More merges from coreutils.
79878         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79879         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79880         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79881         * lib/addext.c: Remove; no longer needed.
79882         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79883         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79884         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79885         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79886         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79887         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79888         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79889         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79890         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79891         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79892         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79893         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79894         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79895         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79896         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79897         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79898         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79899         Import changes from coreutils.
79900
79901 2004-08-05  Simon Josefsson  <jas@extundo.com>
79902
79903         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79904
79905 2004-08-05  Simon Josefsson  <jas@extundo.com>
79906
79907         * m4/getsubopt.m4: New file.
79908
79909 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79910
79911         Merge from coreutils.
79912
79913         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79914         * m4/getcwd-path-max.m4: New files.
79915
79916         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79917         FILESYSTEM_PREFIX_LEN ->
79918         FILE_SYSTEM_PREFIX_LEN.
79919         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79920         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79921         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79922         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79923
79924         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79925         prerequisite modules now handle the DOS stuff.
79926         Don't check for unistd.h.
79927
79928 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         Merge from coreutils.
79931
79932         * lib/.gdb-history: Remove; this doesn't belong here.
79933
79934         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79935         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79936         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79937         * lib/getcwd.c: New files.
79938
79939         * lib/dirname.h: Include <stdbool.h>.
79940         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79941         for consistency with POSIX terminology.  All uses changed.
79942         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79943         (strip_trailing_slashes): Use bool for booleans.
79944         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79945
79946         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79947         sometimes returns a positive errno value even when it succeeds.
79948         (print_errno_message) [!LIBC]: Fall back on strerror if
79949         __strerror_r fails.
79950
79951         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79952         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79953         (longest_relative_suffix): New function.
79954         (path_concat): Use it.  Assume first argument is not NULL.
79955         Port to DOS.  Omit redundant separators.
79956         Report an error instead of returning NULL.
79957         Use mempcpy instead of memcpy.
79958         (xpath_concat): Remove: not declared or used.
79959
79960         * lib/same.h: Include <stdbool.h>
79961         (same_name): Return bool, not int.
79962         * lib/same.c (same_name): Likewise.
79963         (errno): Don't declare; we assume C89 or better now.
79964
79965         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79966         if not already defined.
79967
79968         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79969         * lib/dup-safer.c (errno): Likewise.
79970
79971 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79972
79973         Merge from coreutils.
79974         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79975         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79976         * modules/path-concat: Don't depend on strdup.
79977
79978 2004-08-03  Simon Josefsson  <jas@extundo.com>
79979
79980         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79981         * lib/progname.h: Don't include stdbool.h.
79982
79983 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79984
79985         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79986         * MODULES.html.sh (func_all_modules): Remove fatal.
79987
79988 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79989
79990         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79991
79992 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79993
79994         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79995         working.
79996
79997 2004-08-02  Simon Josefsson  <jas@extundo.com>
79998
79999         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80000         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80001         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80002
80003 2004-08-01  Simon Josefsson  <jas@extundo.com>
80004
80005         * lib/xgetdomainname.c: Include stdlib.h, for free().
80006
80007 2004-07-19  Bruno Haible  <bruno@clisp.org>
80008
80009         * MODULES.html.sh (func_all_modules): Add dummy.
80010
80011 2004-07-16  Simon Josefsson  <jas@extundo.com>
80012
80013         * modules/dummy: New file.
80014
80015 2004-07-16  Simon Josefsson  <jas@extundo.com>
80016
80017         * lib/dummy.c: New file.
80018
80019 2004-07-16  Bruno Haible  <bruno@clisp.org>
80020
80021         * lib/backupfile.h: Add extern "C" for C++.
80022         * lib/closeout.h: Likewise.
80023         * lib/copy-file.h: Likewise.
80024         * lib/findprog.h: Likewise.
80025         * lib/full-write.h: Likewise.
80026         * lib/pathname.h: Likewise.
80027         * lib/progname.h: Likewise.
80028         * lib/stpcpy.h: Likewise.
80029         * lib/stpncpy.h: Likewise.
80030         * lib/strcase.h: Likewise.
80031         * lib/strstr.h: Likewise.
80032         * lib/xalloc.h: Likewise.
80033
80034         * lib/mbswidth.h: Add extern "C" for C++.
80035         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80036
80037 2004-07-13  Robert Millan  <robertmh@gnu.org>
80038
80039         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80040
80041 2004-07-09  Simon Josefsson  <jas@extundo.com>
80042
80043         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80044         failed without this.)
80045
80046 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80047
80048         * modules/chown (Files): Add lib/fchown-stub.c, since
80049         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80050
80051 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80052
80053         * lib/fchown-stub.c: New file.
80054
80055 2004-06-24  Jim Meyering  <jim@meyering.net>
80056
80057         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80058
80059 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80060
80061         * modules/argz: Omit "#include".
80062
80063         * MODULES.html.sh (func_all_modules): Add calloc, to match
80064         2004-06-01 addition of calloc module.
80065
80066 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         * m4/argz.m4: New file, which is autoupdated from libtool.
80069
80070 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80071
80072         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80073         libtool.
80074
80075 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         * config/srclist-update: Don't insist on "USA." before the
80078         close-comment, as libtool omits the period and puts the */ on a
80079         separate line.
80080         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80081         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80082
80083 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80084
80085         * modules/argz: New file.
80086         * MODULES.html.sh (func_all_modules): Add argz.
80087
80088 2004-06-12  Jim Meyering  <jim@meyering.net>
80089         and  Paul Eggert  <eggert@cs.ucla.edu>
80090
80091         * modules/hash (Files): Add lib/xalloc.h.
80092         * modules/pipe (Depends-on): Add wait-process.
80093         * modules/stat (Depends-on): Add xalloc.
80094         * modules/userspec (Files): Add lib/userspec.h.
80095         * modules/xstrto
80096
80097         Upgrade from gettext-0.13.
80098         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80099         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80100         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80101
80102 2004-06-10  Jim Meyering  <jim@meyering.net>
80103
80104         * lib/calloc.c: New file.
80105
80106 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80107
80108         * lib/getdate.y (yylex): Allow space between sign and number.
80109         Problem reported by Dan Jacobson.
80110
80111 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80112
80113         Merge from coreutils CVS.
80114
80115         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80116         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80117         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80118         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80119         xstrtol.m4: Fix copyright date and/or serial number.
80120
80121         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80122         See if we need an fchown replacement.
80123         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80124         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80125         and use the replacement function if we detect either defect.
80126
80127         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80128         gl_UTIMECMP.
80129
80130 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80131         and  Jim Meyering  <jim@meyering.net>
80132
80133         Merge from coreutils CVS.
80134
80135         * lib/stat-macros.h: New file, with contents from file-type.h
80136         and coreutils' system.h.
80137         * lib/file-type.c: Include "stat-macros.h".
80138         * lib/file-type.h (file_type): Move all macro definitions to new file,
80139         stat-macros.h.
80140
80141         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80142         Wrap old code with this conditional.
80143         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80144         function that does not dereference symlinks.
80145         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80146
80147         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80148         dependency problems.
80149         (xreadlink): Accept new arg SIZE, for efficiency.
80150         All decls and uses changed.
80151         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80152
80153         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80154         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80155
80156         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80157         sysexits.h.
80158
80159 2004-06-01  Jim Meyering  <jim@meyering.net>
80160
80161         * m4/calloc.m4: New file.
80162
80163 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80164
80165         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80166         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80167         Also, fix a typo in a diagnostic.
80168
80169 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80170
80171         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80172         or AC_FUNC_REALLOC.
80173
80174 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80175
80176         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80177         macros to be defined.
80178         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80179         the allocator returns NULL because the requested size is zero.
80180
80181 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80182
80183         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80184         var.  Add comment explaining why libc still defines it.  This
80185         merges the following patch from glibc:
80186         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80187
80188 2004-05-20  Andreas Schwab  <schwab@suse.de>
80189
80190         * m4/free.m4: Replace free if it not known to work, not the other
80191         way round.
80192
80193 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80194
80195         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80196         present in glibc since revision 1.1 of this file.
80197         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80198         obstack_alignment_mask, obstack_alloc, obstack_base,
80199         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80200         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80201         obstack_grow0, obstack_init, obstack_int_grow,
80202         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80203         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80204         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80205         nonexistent functions.
80206
80207 2004-05-18  Karl Berry  <karl@gnu.org>
80208
80209         * config/srclist.txt: break link for vasnprintf.c.
80210
80211 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80212
80213         Port obstack to the AS/400, where pointers are 16 bytes wide and
80214         you cannot cast an integer to a valid pointer.  This patch is
80215         currently waiting to be integrated into glibc; see
80216         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80217
80218         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80219         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80220         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80221         (struct obstack): temp member is now a union of a pointer and
80222         an integer, instead of an integer.  All integer uses changed.
80223         This does not affect the physical layout of struct obstack,
80224         except on hosts (like the AS/400) where the size or alignment of
80225         void * is greater than that of ptrdiff_t.
80226         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80227         __STDC__)]: Store temporary in pointer member of union, not
80228         integer member.
80229         * lib/obstack.c: Include <stddef.h>, for offsetof.
80230         (struct fooalign): Remove; it doesn't need a name.
80231         (union fooround): Change double to long double, and add void *.
80232         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80233         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80234         not a macro.  Hence the values are always int; so remove all
80235         casts-to-int in uses.
80236
80237 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80238
80239         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80240         we can get this patch merged into glibc.
80241
80242 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80243             Paul Eggert  <eggert@cs.ucla.edu>
80244
80245         * m4/argp: Depend on alloca.
80246
80247 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80248             Paul Eggert  <eggert@cs.ucla.edu>
80249
80250         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80251         freecoding.
80252
80253 2004-05-17  Bruno Haible  <bruno@clisp.org>
80254
80255         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80256         precision that consists of a '.' followed by an empty digit string.
80257         Patch by Tor Lillqvist <tml@iki.fi>.
80258
80259 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80262         for backward compatibility with older code.  We need our own
80263         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80264         it under some other name, and our alloca.h will define it.
80265
80266 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80267             Derek Price  <derek@ximbiot.com>
80268
80269         * lib/alloca.c: Include <alloca.h>, to get our interface.
80270         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80271         include <alloca.h> first.  Use C89 prototype for alloca; this
80272         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80273         Use #elif for simplicity, since we can assume C89 now.
80274         Don't try to source the system alloca.h since it will not be found
80275         and to prevent recursively including its replacement.
80276         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80277         * lib/regex.c: Likewise.
80278
80279 2004-05-16  Derek Price  <derek@ximbiot.com>
80280             Paul Eggert  <eggert@cs.ucla.edu>
80281
80282         getline cleanup.  This changes the getndelim2 API: both order of
80283         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80284         no delimiter).
80285
80286         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80287         interface does that.
80288         (getline): Always use getdelim, so that we don't have two
80289         copies of this code.
80290         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80291         if available.
80292         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80293         (GETNDELIM2_MAXIMUM): New macro.
80294         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80295         instead of the old practice of delim2==0.  All callers changed.
80296         Return -1 on overflow, instead of returning junk.
80297         Do not set *linesize unless allocation succeeds.
80298         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80299         that we include sys/types.h.
80300         * lib/getnline.h: Likewise.
80301         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80302         (getndelim2): Reorder arguments.
80303         * lib/getnline.c (getnline, getndelim):
80304         Don't discard the NMAX argument.
80305         (getnline): Invoke getndelim, to avoid code duplication.
80306         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80307         of (size_t) -1 by callers of the getnline family.
80308
80309 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80310
80311         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80312         Check for gettimeofday.
80313         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80314         Check for settimeofday, stime.
80315
80316 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80317
80318         * lib/nanosleep.c (suspended): Change its type from int to
80319         sig_atomic_t volatile.
80320         (first_call): Make it private to rpl_nanosleep, and have it
80321         be zero initially as that's a bit faster.
80322         (my_usleep): Round up fractional times instead of truncating them,
80323         as this is the usual meaning for 'sleep'.
80324
80325         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80326         doesn't work.
80327         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80328         (ENOSYS): Define if not defined.
80329         (settime): Fall back on stime if it exists and settimeofday fails.
80330         But don't bother with fallbacks if a method fails with errno == EPERM.
80331
80332 2004-05-11  Jim Meyering  <jim@meyering.net>
80333
80334         Prior to this change, the save_cwd caller required read access to the
80335         current directory on most systems (ones with the fchdir function).
80336
80337         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80338         fails, try write-only, and finally, resort to using xgetcwd.
80339
80340 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80341
80342         * lib/obstack.c, obstack.h: Import changes from libc.
80343
80344 2004-04-28  Bruno Haible  <bruno@clisp.org>
80345
80346         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80347         also implicitly appends .exe to executables.
80348         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80349         accepts Windows pathnames.
80350         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80351         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80352         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80353         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80354         Reported by Derek Robert Price <derek@ximbiot.com>.
80355
80356 2004-04-21  Karl Berry  <karl@gnu.org>
80357
80358         * config/srclist.txt (localcharset.c): break sync.
80359
80360 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80361
80362         * m4/host-os.m4: Add a copyright notice.
80363
80364 2004-04-20  Jim Meyering  <jim@meyering.net>
80365
80366         Change UTILS_ to gl_ in AC_DEFINE'd names.
80367         Change utils_- and jm_-prefixed variables, too.
80368         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80369         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80370         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80371
80372         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80373         Don't emit trailing blanks.
80374         Also rename jm_-prefixed variables to have gl_ prefix.
80375
80376         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80377         Also rename jm_-prefixed variables to have gl_ prefix.
80378
80379         * m4/jm-macros.m4: Reflect the renamings.
80380         * m4/prereq.m4: Likewise.
80381
80382 2004-04-20  Jim Meyering  <jim@meyering.net>
80383
80384         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80385         memory.
80386
80387 2004-04-20  Jim Meyering  <jim@meyering.net>
80388             Bruno Haible  <bruno@clisp.org>
80389
80390         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80391         memory when realloc fails.
80392
80393 2004-04-19  Jim Meyering  <jim@meyering.net>
80394
80395         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80396         now that readutmp.c may call `free (0)'.
80397
80398 2004-04-19  Bruno Haible  <bruno@clisp.org>
80399
80400         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80401         * m4/inttypes_h.m4: Likewise.
80402         * m4/stdint_h.m4: Likewise.
80403         * m4/intmax_t.m4: Likewise.
80404         * m4/uintmax_t.m4: Likewise.
80405
80406 2004-04-18  Jim Meyering  <jim@meyering.net>
80407
80408         * m4/prereq.m4: Don't forbid jm_ prefix.
80409
80410         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80411         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80412         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80413         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80414         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80415         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80416         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80417         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80418         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80419         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80420         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80421         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80422         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80423         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80424         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80425         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80426         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80427         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80428         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80429
80430 2004-04-18  Jim Meyering  <jim@meyering.net>
80431
80432         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80433         failure, don't leak memory and do call END_UTMP_ENT.
80434
80435 2004-04-16  Jim Meyering  <jim@meyering.net>
80436
80437         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80438         coreutils' stat program.
80439         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80440
80441 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80442
80443         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80444         C89.
80445         (CHAR_BIT): Remove, since we assume C89.
80446         Include <stdint.h> if available, as per current Autoconf CVS advice.
80447
80448 2004-03-31  Jim Meyering  <jim@meyering.net>
80449
80450         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80451         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80452         * m4/xalloc.m4: Likewise.
80453
80454 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80455
80456         Merge from coreutils.
80457
80458         * m4/inttostr.m4: New file.
80459         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80460         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80461         Require gl_CLOCK_TIME.
80462         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80463
80464 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80465
80466         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80467         not bool, to be more consistent with Unix conventions.
80468         Suggested by Bruno Haible.
80469
80470         Merge from coreutils.
80471
80472         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80473         * lib/umaxtostr.c: New files.
80474
80475         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80476         the usual <time.h> dance.
80477         (get_date): Change signature to support fractional time stamps.
80478         All callers changed.
80479         * lib/getdate.y: Include "getdate.h" first, as we can now
80480         assume C89 and don't need to worry about 'const'.
80481         Similarly, include "unlocked-io.h" near start, not in middle.
80482         Include <limits.h>.
80483         (textint.value): Use long int rather than int.
80484         (textint.digits): Use size_t rather than int.
80485         (BILLION, LOG10_BILLION): New constants.
80486         (parser_control): New member rel_ns.  Members day_ordinal,
80487         time_zone, month, day, hour, minutes, rel_year, rel_month,
80488         rel_day, rel_hour, rel_minutes, rel_seconds
80489         are now long int, not int.  Member seconds is now struct timespec,
80490         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80491         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80492         not int.
80493         (%union.intval): Now long int, not int.
80494         New member timespec.
80495         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80496         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80497         (spec): Now is a timespec or an item list.
80498         (timespec, items): New nonterminals.
80499         (time, rel, relunit, number, get_date):
80500         Add support for fractional seconds.
80501         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80502         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80503         (to_hour): First arg is now long int, not int.
80504         (to_year): Returns long int, not int.
80505         Don't treat year -70 like 70.
80506         (tm_diff): Returns long int, not int.
80507         (lookup_word): Use bool instead of int when appropriate.
80508         (yylex): Use size_t for count, not int.
80509         Detect overflow when parsing large integer constants.
80510         Add support for fractions.
80511         (get_date): Make pointers 'const' if possible.
80512         Use more-portable code to detect integer overflow.
80513         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80514         Don't use ctime; it's not reliable if the year has >4 digits.
80515
80516         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80517         This is for compatibility with BSD.
80518
80519         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80520         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80521         From coreutils' system.h.
80522
80523         * lib/userspec.c: Don't include "posixver.h".
80524         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80525         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80526         compatible extension.  Simplify code by removing a boolean int
80527         that was always nonzero if a string was nonnull.
80528
80529 2004-03-30  Jim Meyering  <jim@meyering.net>
80530
80531         Merge from coreutils.
80532
80533         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80534         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80535         on some systems one must include <grp.h> before it.
80536         Reported by Christian Krackowizer.
80537
80538 2004-03-30  Jim Meyering  <jim@meyering.net>
80539
80540         Merge from coreutils.
80541
80542         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80543
80544         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80545         an empty input stream.
80546
80547         * lib/readtokens.c: Include <stdbool.h>.
80548         (readtoken): Use `size_t' rather than int/long.
80549         All callers adjusted.
80550         Use `bool' rather than `int' where appropriate.
80551         Use memset rather than an explicit loop.
80552         Use x2nrealloc rather than xrealloc.
80553         Allow the use of `\0' as a delimiter.
80554         (readtokens): Likewise.
80555         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80556
80557 2004-03-30  Jim Meyering  <jim@meyering.net>
80558
80559         * m4/realloc.m4: Remove file, since now it does no more than
80560         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80561         the `configure.ac' section of module/realloc.
80562         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80563
80564 2004-03-30  Bruno Haible  <bruno@clisp.org>
80565
80566         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80567         nonnull.
80568
80569 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80570
80571         Merge changes to getloadavg.c from coreutils and Emacs.
80572
80573         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80574         Define to an expression, not to the empty string.
80575         Include cloexec.h and xalloc.h.
80576         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80577         Use set_cloexec_flag rather than rolling our own.
80578         * lib/cloexec.c, lib/cloexec.h: New files.
80579
80580 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80581
80582         * m4/cloexec.m4: New file.
80583
80584 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80585
80586         * lib/getopt.h: Sync with libc CVS.
80587
80588 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80589             Bruno Haible  <bruno@clisp.org>
80590
80591         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80592         mbswidth.
80593
80594 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80595             Bruno Haible  <bruno@clisp.org>
80596
80597         * lib/mbswidth.h: Include <wchar.h> only if
80598         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80599         <wchar.h>.
80600         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80601
80602 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80603
80604         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80605         Sync with libc CVS.
80606         * lib/getopt_int.h: New file, also synced from libc.
80607
80608 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80609
80610         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80611         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80612         Bring back getopt.c, getopt.h, getopt1.c.
80613
80614 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80615
80616         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80617         All uses changed.  Check for sa_sigaction member; this fixes
80618         a bug first reported by Jason Andrade in
80619         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80620
80621 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80622
80623         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80624         '#if' expressions.  Unlike the code it replaces, it does not
80625         depend on (defined _SC_PAGESIZE).  However, it does depend on
80626         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80627         first reported by Jason Andrade in
80628         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80629
80630 2004-02-25  Simon Josefsson  <jas@extundo.com>
80631
80632         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80633
80634 2004-02-25  Simon Josefsson  <jas@extundo.com>
80635
80636         * lib/strdup.h: New file.
80637         * lib/strdup.c: Include it.
80638         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80639         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80640
80641 2004-02-23  Karl Berry  <karl@gnu.org>
80642
80643         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80644         (from fencepost.gnu.org:/gd/gnuorg).
80645
80646 2004-02-23  Karl Berry  <karl@gnu.org>
80647
80648         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80649         * config/srclist.txt: add maintain/standards documents.
80650
80651 2004-02-18  Bruno Haible  <bruno@clisp.org>
80652
80653         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80654         Reported by Derek Robert Price <derek@ximbiot.com>.
80655
80656 2004-02-16  Karl Berry  <karl@gnu.org>
80657
80658         * config/mkinstalldirs, install-sh: update from automake.
80659
80660 2004-02-06  Karl Berry  <karl@gnu.org>
80661
80662         * m4/po.m4: update from gettext 0.14.1.
80663
80664 2004-02-06  Karl Berry  <karl@gnu.org>
80665
80666         * lib/config.charset: update from gettext 0.14.1.
80667
80668 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80669
80670         Add comments and code, prompted by suggestions from Bruno Haible
80671         for sh-quote.
80672         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80673         describing the enum quoting_style values.
80674         * lib/quotearg.c (quotearg_alloc): New function.
80675         (quotearg_buffer_restyled): Treat lone { and } as special.
80676         Treat = as special.  Work around bug with older shells
80677         that "see" a '\' that is really the 2nd byte of a multibyte char.
80678         Quote empty string with shell_quoting_style.
80679
80680 2004-02-03  Bruno Haible  <bruno@clisp.org>
80681
80682         * m4/pipe.m4: New file, from GNU gettext.
80683
80684 2004-02-03  Bruno Haible  <bruno@clisp.org>
80685
80686         * lib/pipe.h: New file, from GNU gettext.
80687         * lib/pipe.c: New file, from GNU gettext.
80688
80689 2004-01-27  Bruno Haible  <bruno@clisp.org>
80690
80691         * m4/execute.m4: New file, from GNU gettext.
80692
80693 2004-01-27  Bruno Haible  <bruno@clisp.org>
80694
80695         * lib/execute.h: New file, from GNU gettext.
80696         * lib/execute.c: New file, from GNU gettext.
80697         * lib/w32spawn.h: New file, from GNU gettext.
80698
80699 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80700
80701         Merge from diffutils.
80702
80703         * lib/file-type.c (file_type): Add typed memory objects.
80704         * lib/file-type.h (S_TYPEISTMO): New macro.
80705
80706         * lib/c-stack.h (c_stack_action): Remove argv argument.
80707         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80708         (die): Don't calculate message unless segv_action returns.
80709         (get_stack_location, min_address_from_argv, max_address_from_argv,
80710         volatile stack_base, volatile_stack_size): Remove.
80711         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80712         that every segmentation violation is a stack overflow.  (Ouch!)
80713         See Debian bug 136249 (still outstanding) for more info about why
80714         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80715
80716 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80717
80718         Exit-status fix from coreutils.
80719
80720         Use exit_failure consistently in place of EXIT_FAILURE,
80721         so that program exit statuses are consistent on failure.
80722
80723         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80724         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80725         * lib/argmatch.h: Comment fix to match the above.
80726         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80727         Now a macro referring to exit_failure, instead of a separate
80728         variable.  Include "exitfail.h" to get it.
80729         * lib/xstrtol.h: Include "exitfail.h".
80730         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80731
80732         * lib/long-options.c (parse_long_options): Use prototype
80733         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80734         for clarity.
80735
80736 2004-01-21  Jim Meyering  <jim@meyering.net>
80737
80738         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80739         so as not to conflict with a different-sized __mktime_internal
80740         function in GNU libc.
80741         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80742         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80743
80744 2004-01-20  Karl Berry  <karl@gnu.org>
80745
80746         * config/config.guess: update from config.
80747
80748         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80749
80750 2004-01-20  Bruno Haible  <bruno@clisp.org>
80751
80752         Safer stack allocation.
80753         * lib/setenv.c: Include allocsa.h.
80754         (alloca): Remove fallback definition.
80755         (freea): Remove macro.
80756         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80757         instead of freea.
80758
80759 2004-01-20  Bruno Haible  <bruno@clisp.org>
80760
80761         * m4/eealloc.m4: New file, from GNU gettext.
80762
80763 2004-01-20  Bruno Haible  <bruno@clisp.org>
80764
80765         * m4/allocsa.m4: New file, from GNU gettext.
80766
80767 2004-01-20  Bruno Haible  <bruno@clisp.org>
80768
80769         * lib/xallocsa.h: New file, from GNU gettext.
80770         * lib/xallocsa.c: New file, from GNU gettext.
80771
80772 2004-01-20  Bruno Haible  <bruno@clisp.org>
80773
80774         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80775
80776 2004-01-20  Bruno Haible  <bruno@clisp.org>
80777
80778         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80779         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80780         specially.
80781
80782 2004-01-20  Bruno Haible  <bruno@clisp.org>
80783
80784         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80785         patch.
80786
80787 2004-01-20  Bruno Haible  <bruno@clisp.org>
80788
80789         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80790
80791 2004-01-20  Bruno Haible  <bruno@clisp.org>
80792
80793         * lib/eealloc.h: New file.
80794
80795 2004-01-20  Bruno Haible  <bruno@clisp.org>
80796
80797         * lib/binary-io.h: Avoid warnings on Cygwin.
80798
80799 2004-01-20  Bruno Haible  <bruno@clisp.org>
80800
80801         * lib/allocsa.h: New file, from GNU gettext.
80802         * lib/allocsa.c: New file, from GNU gettext.
80803
80804 2004-01-18  Karl Berry  <karl@gnu.org>
80805
80806         * doc/gpl.texi, doc/lgpl.texi: new files.
80807
80808 2004-01-18  Karl Berry  <karl@gnu.org>
80809
80810         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80811         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80812
80813 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80814
80815         Merge from coreutils.
80816
80817         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80818         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80819         (gl_DEFAULT_POSIX2_VERSION): Move
80820         the documentation from 'configure' into 'config.hin',
80821         so that 'configure --help' isn't burdened by it and
80822         we don't have to worry about its formatting there.
80823         Reword the documentation so that it's more succinct
80824         and can be run together into a single paragraph.
80825         * m4/same.m4 (gl_SAME): Check for pathconf.
80826
80827 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80828
80829         Merge from coreutils.
80830
80831         * lib/posixver.c: Include posixver.h.
80832
80833         * lib/same.c: Include <stdbool.h>, <limits.h>.
80834         (_POSIX_NAME_MAX): Define if not defined.
80835         (MIN): New macro.
80836         (same_name): If file names are silently truncated, report
80837         that the file names are the same if they are the same after
80838         the silent truncation.
80839
80840         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80841         conversion function.
80842         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80843         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80844         longer needed.
80845
80846 2004-01-15  Jim Meyering  <jim@meyering.net>
80847
80848         Merge from coreutils.
80849
80850         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80851         if no library is required.
80852         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80853         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80854         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80855         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80856         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80857         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80858         value, $ac_cv_search_crypt, if it's "none required".
80859         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80860         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80861         not gl_FUNC_GETLOADAVG.
80862         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80863         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80864
80865 2004-01-15  Jim Meyering  <jim@meyering.net>
80866
80867         Merge from coreutils.
80868
80869         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80870         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80871         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80872
80873         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80874         optional configure-time default.
80875
80876         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80877
80878         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80879
80880 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80881
80882         Merge from coreutils.
80883
80884         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80885         value, $ac_cv_search_nanosleep, if it's "none required".
80886
80887 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80888
80889         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80890         with like-named macro in fnmatch.c.
80891         (EXT): Use an internal constant instead.
80892
80893         Merge fnmatch patches from glibc.
80894         * lib/fnmatch.c (mbsinit): Remove define.
80895         Add libc_hidden_ver (__fnmatch, fnmatch).
80896         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80897         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80898
80899 2004-01-14  Karl Berry  <karl@gnu.org>
80900
80901         * config/install-sh: update from automake.
80902
80903 2004-01-13  Karl Berry  <karl@gnu.org>
80904
80905         * config/install-sh: update from automake.
80906
80907 2004-01-09  Karl Berry  <karl@gnu.org>
80908
80909         * config/install-sh: update from automake.
80910
80911 2004-01-05  Karl Berry  <karl@gnu.org>
80912
80913         * config/config.{sub,guess}: update from config.
80914
80915 2003-12-31  Karl Berry  <karl@gnu.org>
80916
80917         * config/depcomp: update from automake.
80918
80919 2003-12-14  Karl Berry  <karl@gnu.org>
80920
80921         * lib/config.charset: update from gettext-runtime.
80922
80923 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80924
80925         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80926         Bug reported by Alfred M. Szmidt.
80927
80928 2003-12-03  Bruno Haible  <bruno@clisp.org>
80929
80930         * m4/gettext.m4: Upgrade from gettext-0.13.
80931         * m4/po.m4: Upgrade from gettext-0.13.
80932         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80933         * m4/intmax.m4: New file, from gettext-0.13.
80934         * m4/printf-posix.m4: New file, from gettext-0.13.
80935
80936 2003-11-29  Karl Berry  <karl@gnu.org>
80937
80938         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80939
80940 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80941             Bruno Haible  <bruno@clisp.org>
80942
80943         * lib/printf-parse.h: Don't include sys/types.h.
80944         (ARG_NONE): New macro.
80945         (char_directive): Change type of *arg_index fields to size_t.
80946         * lib/printf-parse.c: Don't include sys/types.h.
80947         (SSIZE_MAX): Remove macro.
80948         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80949         Remove unnecessary overflow check.
80950         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80951         fields.
80952
80953 2003-11-25  Bruno Haible  <bruno@clisp.org>
80954
80955         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80956
80957 2003-11-25  Bruno Haible  <bruno@clisp.org>
80958
80959         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80960         gt_TYPE_SSIZE_T.
80961
80962 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80963
80964         * modules/alloca: Remove dependency on xalloc.
80965
80966 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80967
80968         * lib/alloca.c: Remove dependency on xalloc module.
80969         (xalloc_die): Remove.
80970         (memory_full) [!defined emacs]: New macro.
80971         [!defined emacs]: Don't include xalloc.h.
80972         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80973         address arithmetic overflows.  Change datatypes a bit to avoid
80974         unnecessary casts.
80975
80976 2003-11-22  Jim Meyering  <jim@meyering.net>
80977
80978         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80979         s/size/size_t/.
80980
80981 2003-11-21  Karl Berry  <karl@gnu.org>
80982
80983         * config/config.{sub,guess}: update from config.
80984
80985 2003-11-18  Karl Berry  <karl@gnu.org>
80986
80987         * config/config.{sub,guess}: update from config.
80988
80989         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80990
80991 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80992
80993         * README: Mention that S+T cannot overflow if S is the size of
80994         an existing object and T is sufficiently small.
80995
80996 2003-11-17  Jim Meyering  <jim@meyering.net>
80997
80998         On systems without utime and without a utimes function capable of
80999         dealing with a NULL struct utimbuf* argument, this utime replacement
81000         could -- in unusual circumstances -- leak a file descriptor.
81001         * lib/utime.c: Include <unistd.h> and <errno.h>.
81002         (utime_null): Be sure to close `fd' and to preserve errno.
81003         Reported by Geoff Collyer via Arnold Robbins.
81004
81005 2003-11-17  Bruno Haible  <bruno@clisp.org>
81006
81007         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81008         (Depends-on): Add xsize.
81009
81010 2003-11-17  Bruno Haible  <bruno@clisp.org>
81011
81012         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81013
81014 2003-11-17  Bruno Haible  <bruno@clisp.org>
81015
81016         * lib/vasnprintf.c (alloca): Remove fallback definition.
81017         (freea): Remove definition.
81018         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81019         Reported by Paul Eggert.
81020
81021 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81022             Bruno Haible  <bruno@clisp.org>
81023
81024         Protect against address arithmetic overflow.
81025         * lib/printf-args.h: Include stddef.h.
81026         (arguments): Change type of field 'count' to size_t.
81027         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81028         'unsigned int' where appropriate.
81029         * lib/printf-parse.h: Include sys/types.h.
81030         (char_directive): Change type of *arg_index fields to ssize_t.
81031         (char_directives): Change type of fields 'count', max_*_length to
81032         size_t.
81033         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81034         (SSIZE_MAX): Define fallback value.
81035         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81036         instead of 'int' where appropriate. Check a_allocated, d_allocated
81037         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81038         * lib/vasnprintf.c: Include xsize.h.
81039         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81040         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81041         overflow. Avoid wraparound when converting a width or precision from
81042         decimal to binary.
81043
81044 2003-11-16  Bruno Haible  <bruno@clisp.org>
81045
81046         Update from GNU gettext.
81047         * lib/printf-parse.c: Generalize to it can be compiled for wide
81048         strings.
81049         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81050         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81051         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81052         SNPRINTF): New macros.
81053         Don't include <alloca.h> if the file is used inside libintl.
81054         (local_wcslen): New function, for Solaris 2.5.1.
81055         (VASNPRINTF): Use it instead of wcslen.
81056
81057 2003-11-16  Bruno Haible  <bruno@clisp.org>
81058
81059         * lib/xsize.h (xmax): New function.
81060         (xsum, xsum3, xsum4): Declare as "pure" functions.
81061
81062 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81063
81064         * modules/xalloc (Files): Undo latest change, since xalloc.h
81065         no longer needs SIZE_MAX or PTRDIFF_MAX.
81066
81067 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81068
81069         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81070         gl_PTRDIFF_MAX.
81071
81072 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81073
81074         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81075         "return", to pacify some unknown compiler.  Problem reported
81076         by Joerg Schilling.
81077
81078 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81079
81080         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81081         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81082         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81083         heuristic is just as accurate as far as we know, and it removes a
81084         dependency on size_max.m4 and ptrdiff_max.m4.
81085
81086 2003-11-11  Bruno Haible  <bruno@clisp.org>
81087
81088         * modules/xsize (Files): Add m4/size_max.m4.
81089         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81090
81091 2003-11-11  Bruno Haible  <bruno@clisp.org>
81092
81093         * m4/size_max.m4: New file.
81094         * m4/ptrdiff_max.m4: New file.
81095         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81096         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81097         (gl_XALLOC): Invoke it.
81098
81099 2003-11-11  Bruno Haible  <bruno@clisp.org>
81100
81101         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81102         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81103         defined.
81104
81105 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81106
81107         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81108         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81109         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81110         From Bruno Haible.
81111         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81112         not (size_t) -1, since it's defined here.
81113
81114 2003-11-09  Karl Berry  <karl@gnu.org>
81115
81116         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81117
81118 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81119
81120         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81121         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81122         Reject sizes of exactly SIZE_MAX bytes.
81123         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81124         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81125
81126 2003-11-05  Bruno Haible  <bruno@clisp.org>
81127
81128         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81129         SIZE_MAX defined in <limits.h> on Solaris.
81130
81131 2003-11-04  Jim Meyering  <jim@meyering.net>
81132
81133         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81134         variable names, rather than @VAR@.
81135         * modules/poll: Likewise.
81136
81137 2003-11-04  Bruno Haible  <bruno@clisp.org>
81138
81139         * modules/xsize: New file.
81140         * modules/linebreak: Depend on xsize.
81141         * MODULES.html.sh (func_all_modules): Add xsize.
81142
81143 2003-11-04  Bruno Haible  <bruno@clisp.org>
81144
81145         * m4/xsize.m4: New file.
81146
81147 2003-11-04  Bruno Haible  <bruno@clisp.org>
81148
81149         * lib/xsize.h: New file.
81150         * lib/linebreak.c: Include xsize.h.
81151         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81152         argument for overflow.
81153         Suggested by Paul Eggert.
81154
81155 2003-11-03  Karl Berry  <karl@gnu.org>
81156
81157         * config/config.{guess,sub}: update from config.
81158
81159 2003-11-03  Jim Meyering  <jim@meyering.net>
81160
81161         * modules/userspec (lib_SOURCES): Add userspec.h.
81162         (Include): Add "userspec.h".
81163         Improve description.
81164
81165 2003-11-03  Jim Meyering  <jim@meyering.net>
81166
81167         * lib/userspec.c: Include "userspec.h".
81168         * lib/userspec.h: New file.
81169
81170 2003-11-03  Bruno Haible  <bruno@clisp.org>
81171
81172         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81173
81174 2003-11-03  Bruno Haible  <bruno@clisp.org>
81175
81176         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81177         available, to avoid (extremely rare) race condition.
81178         Suggested by Paul Eggert.
81179
81180 2003-11-02  Karl Berry  <karl@gnu.org>
81181
81182         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81183
81184 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81185
81186         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81187         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81188         (read_filesystem_list): Set and use me_type_malloced.
81189         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81190         whatever the type happens to be), for brevity and consistency.
81191         Check for size calculation overflow on Alphas running OSF/1.
81192
81193 2003-10-31  Jim Meyering  <jim@meyering.net>
81194
81195         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81196
81197         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81198
81199 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81200             Bruno Haible  <bruno@clisp.org>
81201
81202         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81203         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81204
81205 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81206
81207         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81208         netbsd*-gnu*.  Suggested by Robert Millan.
81209
81210 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81211
81212         * modules/group-member: Depend on stdbool.
81213
81214 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81215
81216         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81217
81218 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81219
81220         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81221         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81222         after the 'gnu' in these cases.  This fixes some bugs in the
81223         previous change, and is based on suggestions by Robert Millan.
81224
81225 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81226
81227         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81228         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81229         no longer needed.
81230         * lib/quotearg.c (quotearg_n_options): Use it.
81231         * lib/group-member.c: Include <stdbool.h>.
81232         (free_group_info): Arg is now const *; don't free arg.
81233         (get_group_info): Now returns bool and accepts struct group_info *,
81234         rather than returning a malloc'ed struct group_info *.
81235         All uses changed.  Check for overflow in internal size calculation.
81236
81237         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81238         rather than xmalloc/xrealloc.
81239         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81240         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81241         conformance bug: the old code used a pointer after freeing the
81242         storage that it addressed.
81243         * lib/hash.c (hash_initialize): Simplify the code by using
81244         xalloc_oversized rather than doing it by hand.
81245         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81246         the buffer preserved.  Use free and xmalloc instead.
81247         * lib/quotearg.c (quotearg_n_options): Likewise.
81248         Use a simpler test for size overflow.  Don't use xalloc_oversized
81249         because unsigned int might be wider than size_t (!); this suggests
81250         that we should switch from unsigned int to size_t for slot numbers.
81251
81252 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81253
81254         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81255         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81256         NetBSD kernels.  Requested by Richard Stallman.
81257
81258 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81259
81260         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81261         to allocate the returned structure.  Do not allocate a subarray,
81262         as x2nrealloc will do that.
81263         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81264         instead of xnrealloc.
81265         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81266
81267 2003-10-27  Bruno Haible  <bruno@clisp.org>
81268
81269         * lib/stdbool_.h: Better support for BeOS.
81270
81271 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81272
81273         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81274         now uses inline.
81275
81276 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81277
81278         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81279         callers that want to do their own size-overflow checking.  Include
81280         <stdbool.h>, since xalloc_oversized returns bool.
81281         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81282         to use xalloc_oversized.
81283
81284         Add two functions x2realloc, x2nrealloc, for programs that grow
81285         arrays dynamically by doubling their sizes.
81286         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81287         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81288         New functions.
81289
81290         Port to C99 semantics for 'inline' of external functions.
81291         Bug reported by Bruno Haible.
81292         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81293         with the old contents of xnmalloc.
81294         (xnmalloc, xmalloc): Use it.
81295         (xnrealloc_inline): New static inline function,
81296         with the old contents of xnrealloc.
81297         (xnrealloc, xrealloc): Use it.
81298
81299         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81300         that.
81301
81302 2003-10-26  Karl Berry  <karl@gnu.org>
81303
81304         * config/srclist.txt (COPYING.DOC): no longer available from
81305         /gd/gnuorg; don't know where the ultimate source is.
81306
81307 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81308
81309         Fix several address-calculation bugs in the hash modules,
81310         plus some minor code cleanup.
81311
81312         * lib/hash.h: Include <stdbool.h>, for bool.
81313         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81314         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81315         hash_get_n_entries, hash_get_max_bucket_length,
81316         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81317         hash_rehash): Use size_t rather than unsigned.
81318         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81319         hash_get_n_buckets_used, hash_get_n_entries,
81320         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81321         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81322         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81323         Likewise.
81324         (SIZE_MAX): Define if not defined.
81325         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81326         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81327         hash_print):
81328         Use const * when possible.
81329         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81330         (check_tuning): Fix bug: if tuning parameters were very close to
81331         0 or 1, rounding errors could have caused subscript violations.
81332         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81333         (hash_initialize): Add 'fail:' label
81334         to free table and return NULL, and use it to simplify code.
81335         Use calloc rather than clearing the storage ourself.
81336         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81337         buffer size calculations.
81338         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81339         Include <stddef.h>, for size_t.
81340         * lib/hash-pjw.c (hash_pjw): Likewise.
81341         Switch to method described by Bruno Haible.
81342         Include <limits.h>, for CHAR_BIT.
81343         (SIZE_BITS): New macro.
81344
81345 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81346
81347         * m4/getline.m4 (AM_FUNC_GETLINE):
81348         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81349         hosts.  Problem reported by Derek Robert Price in
81350         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81351         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81352         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81353
81354 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81355
81356         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81357         ceiling the allocation at NMAX bytes rather than silently
81358         discarding input bytes before NMAX is reached.  This makes
81359         a difference only if NMAX exceeds SIZE_MAX / 2.
81360
81361         * lib/obstack.c: Merge from glibc.
81362         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81363         Add libc_hidden_def (_obstack_newchunk).
81364         (_obstack_free) [! defined _LIBC]: Remove.
81365         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81366         a clone of the function body.
81367         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81368         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81369
81370         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81371         glibc.
81372         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81373         arg to memcpy.
81374
81375         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81376         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81377         Don't use lvalue casts, as GCC plans to remove support for them
81378         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81379         was also present in the non-GCC version, indicating that this
81380         code had always been buggy and had never been widely used.
81381         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81382         Use the fast variant of each macro, rather than copying the
81383         definiens of the fast variant; that way, we'll be more likely to
81384         catch future bugs in the fast variants.
81385
81386 2003-10-20  Bruno Haible  <bruno@clisp.org>
81387
81388         * modules/wait-process: New file.
81389         * MODULES.html.sh (func_all_modules): Add wait-process.
81390
81391 2003-10-20  Bruno Haible  <bruno@clisp.org>
81392
81393         * m4/wait-process.m4: New file.
81394
81395 2003-10-20  Bruno Haible  <bruno@clisp.org>
81396
81397         * lib/wait-process.h: New file, from GNU gettext.
81398         * lib/wait-process.c: New file, from GNU gettext.
81399
81400 2003-10-19  Jim Meyering  <jim@meyering.net>
81401
81402         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81403         HPUX 10.20.
81404
81405 2003-10-18  Karl Berry  <karl@gnu.org>
81406
81407         * config/config.guess: update from config.
81408
81409 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81410
81411         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81412         (getgroups): First arg is int, not size_t.
81413         Don't let 'free' mangle errno.
81414
81415 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81416
81417         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81418
81419 2003-10-16  Karl Berry  <karl@gnu.org>
81420
81421         * config/config.{guess,sub}: update from config.
81422
81423 2003-10-16  Jim Meyering  <jim@meyering.net>
81424
81425         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81426         memcpy.
81427
81428 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81429
81430         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81431         (SIZE_MAX): Remove.
81432         (new_exclude, add_exclude_file): Initial size no longer needs to
81433         be a power of 2.
81434         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81435         our own address arithmetic overflow checking.
81436
81437         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81438         (fnmatch): Do not alloca more than 2000 wide characters;
81439         instead, use malloc for large buffers.
81440         Check for address arithmetic overflow, and return -1
81441         with errno set to ENOMEM in that case.
81442         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81443         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81444         instead, return -1.  Check for address arithmetic overflow.
81445
81446 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81447
81448         Handle invalid suffixes and overflow independently, so that
81449         callers can treat them independently as needed.  Fix some bugs in
81450         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81451         suffix for a human-readable blocksize.  The major caller-visible
81452         change is the addition of a new
81453         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81454         that both overflow and suffix chars were found.
81455
81456         * lib/human.c (humblock): Don't check separately for invalid suffix
81457         char; that is xstrtoumax's job (now that its bug is fixed).
81458         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81459         INTMAX_MAX]: New macros.
81460         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81461         TYPE_MAXIMUM): New macros.
81462         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81463         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81464         if overflow occurs, as it's what __strtol does and it's more useful
81465         in practice.
81466         (__xstrtol): If __strtol reports some error other than ERANGE,
81467         reflect it to the caller as LONGINT_INVALID.  If it reports
81468         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81469         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81470         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81471         value.
81472         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81473         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81474         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81475         [defined UINTMAX_MAX]: New macros.
81476
81477 2003-10-14  Bruno Haible  <bruno@clisp.org>
81478
81479         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81480
81481 2003-10-14  Bruno Haible  <bruno@clisp.org>
81482
81483         * m4/sig_atomic_t: New file, from GNU gettext.
81484         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81485
81486 2003-10-14  Bruno Haible  <bruno@clisp.org>
81487
81488         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81489         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81490         Also use volatile where needed.
81491
81492 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81493
81494         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81495         Change maintainer from Bruno Haible to 'all'.
81496
81497 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81498
81499         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81500
81501 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81502
81503         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81504         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81505         and define in terms of the other primitives.
81506         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81507         (SIZE_MAX): Define if not already defined.
81508         (array_size_overflow): New function.
81509         (xalloc_die): Abort instead of exiting if 'error' returns.
81510         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81511         (xmalloc, xrealloc): Use them.
81512         (xcalloc): Check for address arithmetic overflow.
81513         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81514         a bit faster than strcpy.
81515
81516 2003-10-10  Simon Josefsson  <jas@extundo.com>
81517
81518         * modules/argp (Depends-on): Add restrict and strcase.
81519
81520 2003-10-10  Simon Josefsson  <jas@extundo.com>
81521
81522         * m4/argp.m4: Add AC_C_INLINE.
81523
81524 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81525
81526         Merge getpass from libc, plus a few fixes.
81527
81528         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81529         Include <stdbool.h>.
81530         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81531         __fsetlocking to empty.
81532         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81533         do include <bits/libc-lock.h>.
81534         Do not include <fcntl.h>; not needed.
81535         [_LIBC]: Include <wchar.h>.
81536         (NOTCANCEL_MODE): New macro.
81537         (flockfile, funlockfile) [_LIBC]: New macros.
81538         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81539         [!_LIBC]: New macros.
81540         (call_fclose): New function.
81541         (getpass): Use it.  Save tty stream separately; this simplifies the
81542         code and makes it more reliable if stdin happens to equal stdout.
81543         Invoke __fsetlocking on tty.
81544         Handle thread cancellation if needed.
81545         Namespace cleanup (use __tcgetattr, __getline).
81546         Use bool for Booleans.
81547         [USE_IN_LIBIO]: Handle wide streams.
81548         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81549         stream might go where.
81550
81551         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81552         doesn't have to include <stdio.h> before us.
81553         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81554         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81555         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81556         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81557         if not declared, so that we can use getpass.c code from libc without
81558         rewriting it.
81559         (flockfile, ftrylockfile, funlockfile): New macros.
81560
81561 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81562
81563         * modules/getpass: Depend on stdbool.
81564
81565 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81566
81567         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81568
81569 2003-10-07  Karl Berry  <karl@gnu.org>
81570
81571         * config/config.{guess,sub}: update from config.
81572
81573 2003-10-06  Jim Meyering  <jim@meyering.net>
81574             Bruno Haible  <bruno@clisp.org>
81575
81576         This lets translators provide better translations for the
81577         "Written by ..." part of --version output.
81578         * lib/version-etc.h: Include stdarg.h.
81579         (version_etc_copyright): Declare as readonly.
81580         (version_etc): Make this function variadic with a NULL-terminated list
81581         of author name strings.
81582         (version_etc_va): New declaration.
81583         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81584         (version_etc_copyright): Declare as readonly.
81585         (version_etc_va): New function. Provide a different translatable string
81586         for each possible number of authors < 10. Abbreviate when there are 10
81587         authors or more.
81588         (version_etc): Make this function variadic. Call version_etc_va.
81589         Suggestion from Gary V. Vaughan.
81590
81591         * lib/long-options.h (parse_long_options): Change prototype: the
81592         authors string is moved to the end and becomes variadic.
81593         * lib/long-options.c: Include stdarg.h.
81594         (parse_long_options): Make this function variadic, too.
81595         Call version_etc_va, not version_etc.
81596
81597 2003-10-06  Bruno Haible  <bruno@clisp.org>
81598
81599         * modules/version-etc-2: Remove file.
81600         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81601
81602 2003-10-06  Bruno Haible  <bruno@clisp.org>
81603
81604         * modules/fatal-signal: New file.
81605         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81606
81607 2003-10-06  Bruno Haible  <bruno@clisp.org>
81608
81609         * m4/fatal-signal.m4: New file.
81610         * m4/signalblocking.m4: New file, from GNU gettext.
81611
81612 2003-10-06  Bruno Haible  <bruno@clisp.org>
81613
81614         * lib/version-etc-2.h: Remove file.
81615         * lib/version-etc-2.c: Remove file.
81616
81617 2003-10-06  Bruno Haible  <bruno@clisp.org>
81618
81619         * lib/fatal-signal.h: New file, from GNU gettext.
81620         * lib/fatal-signal.c: New file, from GNU gettext.
81621
81622 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81623
81624         * README: Rework advice for preventing empty .o files.
81625         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81626         not <sys/types.h>.
81627
81628 2003-10-04  Karl Berry  <karl@gnu.org>
81629
81630         * lib/argp*: update from libc.
81631
81632 2003-10-04  Karl Berry  <karl@gnu.org>
81633
81634         * config/config.{guess,sub}: update from config.
81635
81636 2003-10-02  Bruno Haible  <bruno@clisp.org>
81637
81638         * modules/lchown (Include): Add lchown.h.
81639         * modules/time_r (Include): Use "..." syntax.
81640         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81641
81642 2003-10-01  Simon Josefsson  <jas@extundo.com>
81643
81644         * MODULES.html.sh (func_all_modules): Move gethostname from section
81645         'based on' to section 'lacking' POSIX:2001.
81646
81647 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81648
81649         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81650         to output mode on the same stream.
81651
81652 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81653
81654         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81655         Fix arg typo in previous patch.
81656
81657 2003-09-28  Jim Meyering  <jim@meyering.net>
81658
81659         * lib/error.c: Correct cpp indentation.
81660
81661 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81662
81663         * modules/free: New file.
81664
81665 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81666
81667         * m4/free.m4: New file.
81668
81669 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81670
81671         * lib/minmax.h (MIN, MAX)
81672         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81673         Omit the special code that used __typeof__, since we worry that
81674         it could be more trouble than it's worth.  See:
81675         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81676         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81677
81678         * lib/free.c: New file.
81679
81680 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81681
81682         Trivial fixes to Makefile.am parts of module listings.
81683         * modules/strstr: Append strstr.h to lib_SOURCES.
81684         * modules/strcase: Likewise, for strcase.h.
81685
81686 2003-09-27  Karl Berry  <karl@gnu.org>
81687
81688         * config/mkinstalldirs: update from automake.
81689
81690 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81691
81692         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81693         (error_tail): Do not loop, reallocating temporary buffer, since
81694         the output cannot contain more wide characters than the input
81695         contains bytes, the size must be big enough already.  This avoids
81696         one potential size overflow calculation.  Check for size overflow
81697         when calculating temporary buffer size.  Free temporary buffer
81698         when done, if it was allocated with malloc; this plugs a memory
81699         leak.  Remove casts from void * to pointers, that are no longer
81700         needed now that we're assuming C89 or better.
81701
81702         Merge error changes from glibc.
81703
81704         * lib/error.c, error.h: Update copyright notice header to match glibc.
81705         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81706         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81707         Disable cancellation while printing error.
81708         * lib/error.h: Prepend __ to parameter names.
81709
81710 2003-09-26  Jim Meyering  <jim@meyering.net>
81711
81712         * lib/error.c (error_tail): Move some declarations
81713         into inner scope where the local variables are used.
81714
81715 2003-09-26  Bruno Haible  <bruno@clisp.org>
81716
81717         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81718         stpncpy().
81719         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81720
81721 2003-09-26  Bruno Haible  <bruno@clisp.org>
81722
81723         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81724         (stpncpy): Define as alias for gnu_stpncpy.
81725         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81726
81727 2003-09-25  Simon Josefsson  <jas@extundo.com>
81728
81729         * lib/xgetdomainname.h: New file.
81730         * lib/xgetdomainname.c: New file.
81731
81732 2003-09-25  Simon Josefsson  <jas@extundo.com>
81733             Bruno Haible  <bruno@clisp.org>
81734
81735         * modules/getdomainname: New file.
81736         * modules/xgetdomainname: New file.
81737         * MODULES.html.sh (func_all_modules): Add getdomainname,
81738         xgetdomainname.
81739
81740 2003-09-25  Simon Josefsson  <jas@extundo.com>
81741             Bruno Haible  <bruno@clisp.org>
81742
81743         * m4/getdomainname.m4: New file.
81744
81745 2003-09-25  Simon Josefsson  <jas@extundo.com>
81746             Bruno Haible  <bruno@clisp.org>
81747
81748         * lib/getdomainname.h: New file.
81749         * lib/getdomainname.c: New file.
81750
81751 2003-09-25  Karl Berry  <karl@gnu.org>
81752
81753         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81754
81755 2003-09-25  Karl Berry  <karl@gnu.org>
81756
81757         * config/install-sh: update from automake.
81758
81759 2003-09-25  Bruno Haible  <bruno@clisp.org>
81760
81761         * modules/version-etc-2: New file, from modules/version-etc with
81762         modifications.
81763         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81764
81765 2003-09-25  Bruno Haible  <bruno@clisp.org>
81766
81767         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81768         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81769
81770 2003-09-24  Simon Josefsson  <jas@extundo.com>
81771
81772         * modules/xgethostname: Add xgethostname.h.
81773
81774 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81775
81776         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81777         the buffer associated with the argument.  Bug reported by
81778         Simon Josefsson.
81779
81780 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81781
81782         * README: Document assumptions that 'int' is at least 32 bits
81783         wide, that integer arithmetic is 2's complement without overflow,
81784         that there are no holes in integer values, that adding sizes of
81785         two nonoverlapping objects can't overflow, and that all-bits-zero
81786         yields scalar zero.  Fix spelling and capitalization typos.
81787
81788 2003-09-19  Karl Berry  <karl@gnu.org>
81789
81790         * lib/argp.h: update from libc.
81791
81792 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81793
81794         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81795         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81796         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81797
81798 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81799
81800         * gnulib-tool: Use "test -h", not "test -L", for portability
81801         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81802         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81803         (sed_extract_prog): Issue s commands one-by-one, rather than
81804         using \| in one s command.
81805
81806 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81807
81808         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81809         input error, instead of returning NULL the next time we are called
81810         (and therefore losing track of errno).
81811
81812 2003-09-16  Bruno Haible  <bruno@clisp.org>
81813
81814         * gnulib-tool (func_create_testdir): Warn about duplicated
81815         dependencies.
81816
81817 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81818
81819         * modules/argmatch, modules/fatal, modules/obstack,
81820         modules/xalloc, modules/xgethostname: Sort dependencies by
81821         importance, not alphabetically.
81822
81823 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81824
81825         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81826         fails, so that the caller gets the proper errno.
81827
81828         * lib/readutmp.c (read_utmp): Likewise.
81829         Check for fstat error.  Close stream and free storage
81830         when failing.
81831
81832 2003-09-14  Karl Berry  <karl@gnu.org>
81833
81834         * config/srclist.txt (strdup.c): disable for c89 changes.
81835
81836 2003-09-14  Jim Meyering  <jim@meyering.net>
81837
81838         * lib/getloadavg.c: Correct cpp indentation.
81839         * lib/strdup.c: Likewise.
81840         * lib/vasnprintf.c: Likewise.
81841
81842 2003-09-14  Bruno Haible  <bruno@clisp.org>
81843
81844         * modules/fwriteerror: New file.
81845         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81846
81847 2003-09-14  Bruno Haible  <bruno@clisp.org>
81848
81849         * lib/fwriteerror.h: New file.
81850         * lib/fwriteerror.c: New file.
81851
81852 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81853
81854         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81855         modules/xgethostname, modules/xalloc: Depend on exit.
81856
81857 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81858
81859         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81860
81861         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81862         and AC_MINIX, too, so that their extensions are available.
81863
81864         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81865         This macro has been superseded by gl_BACKUPFILE.
81866
81867         More patches to assume C89 or better.
81868
81869         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81870
81871         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81872         unconditionally.
81873         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81874         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81875         Include <string.h>, <stdlib.h> unconditionally.
81876         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81877         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81878         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81879         headers or for string.h.
81880         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81881         or strtoul.
81882
81883         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81884         headers.
81885         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81886         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81887         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81888         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81889         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81890         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81891         memcpy, memset.
81892         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81893         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81894         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81895         strtol.
81896         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81897         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81898         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81899         strtoul.
81900
81901 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81902
81903         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81904         * lib/obstack.c [!defined _LIBC]: Likewise.
81905         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81906         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81907         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81908
81909         More changes to assume C89 or better.
81910
81911         * lib/error.c (error_tail): Assume vprintf.
81912
81913         * lib/argmatch.c (getenv): Remove decl.
81914         * lib/progreloc.c (get_full_program_name): Define via prototype.
81915         * lib/setenv.c (clearenv): Likewise.
81916         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81917         needed.
81918         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81919         (malloc, memcpy): Remove decls.
81920         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81921         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81922         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81923         (memcpy): Remove macro.
81924         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81925         (__P): Remove.  All uses removed.
81926         (PTR): Remove.  All uses changed to void *.
81927         (CHAR_BIT, NULL): Remove.
81928         (spaces, zeros, memset_space, memset_zero)
81929         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81930         Remove.
81931         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81932         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81933         Define with prototype.
81934         Remove now-unnecessary prototype decl.
81935         (extra_args_spec): Assume ANSI C.  All uses changed.
81936         (extra_args_spec_iso): Remove.
81937         (my_strftime, emacs_strftimeu): Define via prototype.
81938         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81939         unconditionally.
81940         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81941         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81942         (strtoul, strtol): Remove decls.
81943         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81944         LONG_MAX): Remove.
81945         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81946         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81947         (LOCALE_PARAM_PROTO): New macro.
81948         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81949         (INTERNAL (strtol), strtol): Define with a prototype.
81950         (PARAMS): Remove.  All uses removed.
81951         * lib/tempname.c: Include <string.h> unconditionally.
81952         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81953         * lib/xgethostname.c (main): Define with a prototype.
81954         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81955         Include <stdlib.h> unconditionally.
81956         (calloc, malloc, realloc, free): Remove decls.
81957         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81958         Include <stdlib.h> unconditionally.  Sort include file names.
81959         (strtod): Remove.
81960         (xstrtod): Define with a prototype.
81961         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81962         (strtol, strtoul): Remove decls.
81963
81964 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81965
81966         More patches to assume C89 or better.
81967         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81968         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81969         string.h, memchr, STDC_HEADERS.
81970
81971 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81972
81973         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81974         Include <stdlib.h>, <string.h> unconditionally.
81975         Remove now-unnecessary cast to char *.
81976         * lib/strnlen.c: Include <string.h> unconditionally.
81977         * lib/yesno.c (yesno): Define with a prototype.
81978
81979 2003-09-11  Bruno Haible  <bruno@clisp.org>
81980
81981         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81982
81983 2003-09-10  Jim Meyering  <jim@meyering.net>
81984
81985         * lib/error.c: Correct indentation of cpp directives.
81986
81987 2003-09-10  Bruno Haible  <bruno@clisp.org>
81988
81989         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81990         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81991         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81992         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81993         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81994         <stdlib.h> and <string.h> checks.
81995         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81996         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81997
81998 2003-09-10  Bruno Haible  <bruno@clisp.org>
81999
82000         * lib/strcspn.c: Include <string.h> unconditionally.
82001         * lib/strpbrk.c: Include <string.h> unconditionally.
82002         * lib/strstr.c: Include <string.h> unconditionally.
82003         * lib/unicodeio.c: Include <string.h> unconditionally.
82004         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82005         * lib/unsetenv.c: Likewise.
82006         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82007         * lib/yesno.c: Include <stdlib.h> unconditionally.
82008         (rpmatch): Add prototype.
82009
82010 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82011
82012         More patches to assume C89 or better.
82013         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82014         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82015         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82016         or for string.h.
82017         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82018         stdlib.h.
82019         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82020         C headers.
82021         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82022         string.h.
82023         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82024         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82025         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82026         or for string.h.
82027         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82028         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82029         C headers.
82030         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82031         memcpy.
82032         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82033         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82034         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82035         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82036         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82037         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82038         string.h, free.
82039         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82040         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82041         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82042         C headers, or for string.h.
82043         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82044         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82045         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82046         headers, memory.h, stdlib.h, string.h, strings.h.
82047         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82048         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82049         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82050         strchr.
82051         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82052         headers, memory.h, string.h.
82053         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82054         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82055         free.
82056         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82057         headers.
82058         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82059         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82060         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82061         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82062         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82063
82064 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82065
82066         More K&R removal.
82067
82068         * lib/acosl.c (main): Use a prototype.
82069         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82070         tanl.c: Likewise.
82071
82072         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82073
82074         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82075         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82076         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82077         with a prototype.
82078         * lib/getopt.c (const): Remove macro.
82079         Include <string.h> unconditionally.
82080         (my_index): Remove; all uses changed to strchr.
82081         (strlen): Remove decl.
82082         (exchange): Remove forward decl; no longer needed.
82083         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82084         Define with prototype.
82085         * lib/getopt1.c (const): Remove macro.
82086         (getopt_long, getopt_long_only, main): Define with prototype.
82087
82088         * lib/getugroups.c: Include <string.h> unconditionally.
82089
82090         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82091         (getusershell, setusershell, endusershell, readname, main):
82092         Define with prototypes.
82093
82094         * lib/group-member.c: Include group-member.h first.
82095         Include <stdlib.h> unconditionally.
82096
82097         * lib/hard-locale.c: Include hard-locale.h first.
82098         Include <stdlib.h>, <string.h> unconditionally.
82099
82100         * lib/hash.c (free, malloc): Remove decls.
82101         Include <stdlib.h> unconditionally.
82102
82103         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82104         (getenv): Do not declare.
82105
82106         * lib/idcache.c: Include <string.h> unconditionally.
82107
82108         * lib/long-options.c: Include long-options.h first, to test interface.
82109         Include <stdlib.h> unconditionally.
82110
82111         * lib/makepath.c: Include makepath.h first, to test interface.
82112         Include <stdlib.h> and <string.h> unconditionally.
82113
82114         * lib/linebuffer.c: Include <stdlib.h>.
82115         (free): Remove decl.
82116
82117         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82118         stddef.h. rpl_malloc returns void *, not char *.
82119         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82120         prototype.
82121
82122         * lib/md5.h: Include <limits.h> unconditionally.
82123         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82124         (__P): Remove; all uses removed.
82125         * lib/md5.c: Include "md5.h" first.
82126         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82127         md5_buffer, md5_process_bytes, md5_process_block):
82128         Define with prototypes.
82129         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82130         * lib/sha.c: Include "sha.h" first.
82131         Include <stdlib.h>, <string.h> unconditionally.
82132
82133         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82134         * lib/memcmp.c (__ptr_t): Likewise.
82135         * lib/memrchr.c (__ptr_t): Likewise.
82136         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82137         Include <string.h> unconditionally.
82138         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82139         * lib/memchr.c: Include <stdlib.h> unconditionally.
82140         * lib/memchr.c (LONG_MAX): Remove.
82141         * lib/memrchr.c (LONG_MAX): Likewise.
82142         * lib/memchr.c (__memchr): Define via a prototype.
82143         * lib/memrchr.c (__memrchr): Likewise.
82144         * lib/memcmp.c (__P): Remove, and remove all uses.
82145         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82146         Remove forward decls; no longer needed.
82147         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82148         Use types required by C89 in prototype.
82149
82150         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82151         * lib/savedir.c: Likewise.
82152         * lib/mkdir.c (free): Remove decl.
82153         * lib/rmdir.c (rmdir): Define with a prototype.
82154         * lib/savedir.c: Include savedir.h first, to test interface.
82155
82156         * lib/mktime.c (STDC_HEADERS): Remove.
82157         Include <stdlib.h>, <string.h> unconditionally.
82158
82159         * lib/modechange.c: Include <stdlib.h> unconditionally.
82160         (malloc): Remove decl.
82161
82162         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82163         (free): Remove decl.
82164
82165         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82166         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82167         (This type really should be intptr_t, but that's a C99ism.)
82168         (_obstack_memcpy): Remove: all uses changed to memcpy.
82169         Include <string.h> unconditionally.
82170         (struct obstack): Assume __STDC__ for types of members
82171         chunkfun, freefun, extra_arg.
82172         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82173         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82174         obstack_begin, obstack_specify_allocation,
82175         obstack_specify_allocation_with_arg, obstack_chunkfun,
82176         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82177         Remove unprototyped decls and the macros that use them.
82178         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82179         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82180         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82181         (defined __STDC__ && __STDC__)]:
82182         Remove nonprototyped code.
82183         Include <stdlib.h> unconditionally.
82184         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82185         _obstack_allocated_p, _obstack_free, obstack_free,
82186         _obstack_memory_used, print_and_abort):
82187         Define using prototypes.
82188         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82189         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82190         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82191         obstack_next_free, obstack_object_size, obstack_room) [0]:
82192         Remove unused, unprototyped code.
82193
82194         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82195
82196         * lib/physmem.c (physmem_total, physmem_available, main): Define
82197         with prototypes.
82198
82199         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82200         (main): Define with a prototype.
82201
82202         * lib/posixver.c (getenv): Remove decl.
82203
82204         * lib/putenv.c (malloc): Returns void *, not char *.
82205         Include <string.h> unconditionally.
82206         (strchr, memcpy, NULL): Do not define.
82207
82208         * lib/readtokens.c: Include readtokens.h first, to test interface.
82209         Include <stdlib.h>, <string.h> unconditionally.
82210         (init_tokenbuffer): Define with a prototype.
82211
82212         * lib/regex.c (PARAMS): Remove.  All uses removed.
82213         All uses of _RE_ARGS removed, too.
82214         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82215         unconditionally.
82216         (bzero): Assume memset exists.
82217         (memcmp, memcpy, NULL): Remove.
82218         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82219         char, or assignments to local vars of type signed char.
82220         (init_syntax_once, PREFIX(extract_number_and_incr),
82221         PREFIX(print_partial_compiled_pattern),
82222         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82223         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82224         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82225         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82226         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82227         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82228         wcs_compile_range, byte_compile_range, truncate_wchar,
82229         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82230         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82231         count_mbs_length, wcs_re_match_2_internal,
82232         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82233         PREFIX(alt_match_null_string_p),
82234         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82235         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82236         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82237         now-unnecessary declaration, if any.
82238         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82239         regcomp, regexec):
82240         Remove now-unnecessary casts among pointer types.
82241         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82242
82243         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82244         (free): Remove decl.
82245
82246         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82247
82248         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82249         (free): Remove decl.
82250
82251         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82252         * lib/xgetcwd.c: Likewise.
82253
82254         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82255         (free): Remove decl.
82256
82257         * lib/strchrnul.c (strchrnul): Define with a prototype.
82258         Fix bug: c_in was not converted to char before searching.
82259
82260         The following changes are not K&R related:
82261
82262         * lib/group-member.h: Include <sys/types.h>, so that this file is
82263         self-contained.
82264         * lib/makepath.h: Likewise.
82265
82266         * lib/getusershell.c (readname, default_index, line_size, readname):
82267         Use size_t, not int, for sizes.
82268         (readname): If the size overflows, report an error instead of
82269         looping forever.
82270
82271 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82272
82273         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82274         libc.
82275
82276 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82277
82278         * README: New section: portability guidelines.
82279
82280 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82281
82282         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82283         C89 spec.
82284
82285 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82286
82287         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82288
82289 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82290
82291         Assume C89 or better; remove K&R cruft.
82292         A few of these changes were first proposed by Derek Robert Price
82293         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82294
82295         * lib/addext.c: Include <string.h> unconditionally.
82296         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82297         Don't declare getenv or malloc.
82298
82299         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82300         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82301         (NULL): Remove.
82302         (find_stack_direction, alloca): Use prototypes.
82303
82304         * lib/atexit.c (atexit): Define using a prototype.
82305
82306         * lib/basename.c, dirname.c, stripslash.c:
82307         Include <string.h> unconditionally.
82308
82309         * lib/bcopy.c: Include <stddef.h>.
82310         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82311
82312         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82313
82314         * lib/error.h (error, error_at_line, error_print_progname)
82315         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82316         * lib/error.c: Include error.h first, to check interface.
82317         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82318         (VA_START): Remove; all uses changeed to va_start.
82319         (exit, strerror): Remove decls.
82320         (error_print_progname): Prototype uncondionally.
82321         Don't include <errno.h>; no longer needed.
82322         (private_strerror): Remove.
82323         (error_tail): Always define.
82324         (error, error_at_line): Assume C89 or better; always use prototypes.
82325         * lib/fatal.c: Include "fatal.h" first, to test interface.
82326         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82327         (VA_START): Remove; all uses changed to va_start.
82328         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82329         this case.
82330         (exit): Remove decl.
82331         (fatal): Prototype unconditionally.  Assume va_start works.
82332         Abort at end, to pacify gcc.
82333
82334         * lib/euidaccess.c (main): Define with a prototype.
82335
82336         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82337
82338         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82339
82340         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82341         prototypes.
82342         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82343         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82344         (getenv): Remove decl.
82345         (fnmatch): Define using a prototype.
82346         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82347         (FCT): Define using a prototype.
82348
82349         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82350
82351         * lib/gethostname.c: Include <stddef.h>.
82352         (gethostname): Define with prototype.  Length is size_t, not int.
82353
82354 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82355
82356         Assume C89 or better; remove K&R cruft.
82357         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82358         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82359         string.h, getenv, malloc.
82360         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82361         headers.
82362         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82363         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82364         do not check for strerror.
82365         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82366         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82367         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82368         do not check for doprnt or vprintf.
82369         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82370         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82371
82372 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82373
82374         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82375         getversion.c should have been removed then, but was accidentally
82376         preserved.
82377
82378         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82379         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82380
82381 2003-09-08  Karl Berry  <karl@gnu.org>
82382
82383         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82384                 config, forget about prep.
82385
82386         * config/depcomp, missing: update from automake.
82387
82388 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82389
82390         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82391         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82392
82393 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82394
82395         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82396         copy_tm_result.  Bug reported by Simon Josefsson in
82397         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82398
82399 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82400
82401         * m4/time_r.m4: New file.
82402         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82403         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82404         is. Check for timegm declaration.
82405         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82406         Do not check for gmtime_r.
82407         Replace mktime if __mktime_internal does not exist and if mktime
82408         hasn't been replaced already.
82409
82410 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82411
82412         * lib/time_r.c, lib/time_r.h: New files.
82413
82414         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82415         __localtime_r.
82416         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82417         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82418
82419         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82420         __gmtime_r.
82421         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82422         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82423         Include <time_r.h>.
82424
82425         * lib/timegm.c: Switch to glibc implementation, with the following
82426         changes:
82427         [defined HAVE_CONFIG_H]: Include <config.h>.
82428         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82429         (__mktime_internal) [!defined _LIBC]: New decl.
82430         (__gmtime_r) [!defined _LIBC]: New macro and function.
82431         (timegm): Use a prototype, since gnulib assumes C89.
82432         Do not bother declaring tmp to be const, as it's not really usefu.
82433         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82434         (timegm): Declare only if HAVE_DECL_TIMEGM.
82435
82436 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82437
82438         * MODULES.html.sh (func_all_modules): Add time_r.
82439         * modules/time_r: New file.
82440         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82441         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82442
82443 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82444
82445         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82446         Bug reported by Lute Kamstra in
82447         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82448
82449         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82450         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82451         course with correspondingly smaller numbers for tomorrow and
82452         yesterday.  From Tadayoshi Funaba.  Originally installed into
82453         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82454         coreutils merge?).
82455
82456 2003-08-31  Simon Josefsson  <jas@extundo.com>
82457
82458         * modules/timegm: New file.
82459         * MODULES.html.sh (func_all_modules): Add timegm.
82460
82461 2003-08-31  Simon Josefsson  <jas@extundo.com>
82462
82463         * m4/timegm.m4: New file.
82464
82465 2003-08-31  Simon Josefsson  <jas@extundo.com>
82466
82467         * lib/timegm.h: New file.
82468         * lib/timegm.c: New file.  Based on
82469         wget-1.8.2/src/http.c:mktime_from_utc.
82470
82471 2003-08-31  Karl Berry  <karl@gnu.org>
82472
82473         * lib/argp.h: update from libc.
82474
82475 2003-08-28  Bruno Haible  <bruno@clisp.org>
82476
82477         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82478         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82479         followed by '#define fnmatch fnmatch_posix' gives an error.
82480
82481 2003-08-28  Bruno Haible  <bruno@clisp.org>
82482
82483         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82484         warning on QNX, which defines O_BINARY to 000000.
82485
82486 2003-08-27  Jim Meyering  <jim@meyering.net>
82487
82488         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82489         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82490         would fail after 32.  Reported by Danny Levinson.  Details here:
82491         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82492
82493 2003-08-24  Bruno Haible  <bruno@clisp.org>
82494
82495         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82496         MSVC7 <stdio.h> is included later.
82497
82498 2003-08-22  Simon Josefsson  <jas@extundo.com>
82499
82500         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82501
82502 2003-08-20  Karl Berry  <karl@gnu.org>
82503
82504         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82505
82506 2003-08-20  Bruno Haible  <bruno@clisp.org>
82507
82508         * modules/progname: New file.
82509         * MODULES.html.sh (func_all_modules): Add progname.
82510
82511 2003-08-20  Bruno Haible  <bruno@clisp.org>
82512
82513         * lib/progname.h: New file, from GNU gettext.
82514         * lib/progname.c: New file, from GNU gettext.
82515         * lib/progreloc.c: New file, from GNU gettext.
82516
82517 2003-08-19  Jim Meyering  <jim@meyering.net>
82518
82519         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82520         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82521
82522 2003-08-19  Bruno Haible  <bruno@clisp.org>
82523
82524         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82525         more.
82526
82527 2003-08-19  Bruno Haible  <bruno@clisp.org>
82528
82529         * lib/xstrdup.c: Assume <string.h> exists.
82530
82531 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82532
82533         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82534         in makefile rules.
82535
82536 2003-08-18  Jim Meyering  <jim@meyering.net>
82537
82538         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82539         * m4/lib-ld.m4: Likewise.
82540
82541 2003-08-18  Jim Meyering  <jim@meyering.net>
82542
82543         * lib/setenv.h: Indent nested cpp directive.
82544         * lib/vasnprintf.c: Remove trailing blanks.
82545
82546 2003-08-17  Simon Josefsson  <jas@extundo.com>
82547
82548         * modules/xstrndup: New file.
82549         * MODULES.html.sh (func_all_modules): Add xstrndup.
82550
82551 2003-08-17  Simon Josefsson  <jas@extundo.com>
82552
82553         * modules/argp: Fix autoconf macro name. Add more dependencies.
82554
82555 2003-08-17  Simon Josefsson  <jas@extundo.com>
82556
82557         * m4/xstrndup.m4: New file.
82558
82559 2003-08-17  Simon Josefsson  <jas@extundo.com>
82560
82561         * m4/argp.m4: New file.
82562
82563 2003-08-17  Simon Josefsson  <jas@extundo.com>
82564             Bruno Haible  <bruno@clisp.org>
82565
82566         * lib/xstrndup.h: New file.
82567         * lib/xstrndup.c: New file.
82568
82569 2003-08-17  Bruno Haible  <bruno@clisp.org>
82570
82571         * modules/strndup (Files, Include): Add lib/strndup.h.
82572
82573 2003-08-17  Bruno Haible  <bruno@clisp.org>
82574
82575         * modules/euidaccess (Files): Add lib/euidaccess.h.
82576
82577 2003-08-17  Bruno Haible  <bruno@clisp.org>
82578
82579         * lib/strndup.h: New file.
82580
82581 2003-08-17  Bruno Haible  <bruno@clisp.org>
82582
82583         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82584         like AC_GNU_SOURCE.
82585         * modules/extensions (configure.ac): Comment out the invocation of
82586         gl_USE_SYSTEM_EXTENSIONS.
82587
82588 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82589
82590         Merges from coreutils, etc.
82591         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82592         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82593         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82594         fixing a typo.
82595         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82596         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82597
82598 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82599
82600         Document merge from coreutils.
82601         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82602         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82603         * modules/utime: Add m4/utimes-null.m4.
82604
82605 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82606
82607         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82608         space, undoing this 2003-08-12 change:
82609         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82610
82611 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82612
82613         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82614         strtoul.c from libc, undoing this 2003-08-12 change:
82615         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82616
82617 2003-08-16  Jim Meyering  <jim@meyering.net>
82618
82619         Merges from coreutils.
82620         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82621         prefix.  Adjust cache variables similarly.  Create 500 rather than
82622         just 300 files, to exercise bug on Darwin6.5, too.
82623         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82624         $missing_dir.
82625         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82626         AM_SYS_POSIX_TERMIOS.
82627         Reported by mkc@mathdogs.com.
82628         Also change use of $am_cv_sys_posix_termios
82629         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82630         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82631         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82632         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82633         in /proc/mounts until it finds one with matching device number.  This
82634         is unnecessary when the FILE argument *is* a mount point.  No stat call
82635         is necessary in that case.  So, disable the statvfs-testing code on
82636         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82637         as RedHat bug# 84846.
82638         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82639         to 1MB, so as not to render systems with no stack size limit (e.g.,
82640         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82641         Include <unistd.h>.  On some systems,
82642         it is required for the definition of _SC_PAGESIZE.
82643
82644 2003-08-16  Jim Meyering  <jim@meyering.net>
82645
82646         Merge from coreutils.
82647         * lib/xstrtoimax.c: #else #if -> #elif.
82648         * lib/xstrtoumax.c: Likewise.
82649
82650 2003-08-16  Jim Meyering  <jim@meyering.net>
82651
82652         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82653         * m4/utimes.m4: Removed.
82654         * m4/utimes-null.m4: Renamed from utimes.m4.
82655
82656         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82657         to 1MB, so as not to render systems with no stack size limit (e.g.,
82658         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82659         Include <unistd.h>.  On some systems,
82660         it is required for the definition of _SC_PAGESIZE.
82661
82662 2003-08-16  Jim Meyering  <jim@meyering.net>
82663         and Paul Eggert  <eggert@cs.ucla.edu>
82664
82665         Merges from coreutils, etc.
82666
82667         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82668         using the latest version from cvs.  This avoids problems with #line
82669         directives using a vendor (Sun) compiler.
82670         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82671         Don't set GETGROUPS_LIB here; now it's
82672         done via getgroups.m4's wrapper function.
82673         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82674         rather than just in sh-util/configure.in, so that the
82675         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82676         same.
82677         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82678         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82679         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82680         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82681         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82682         Remove code that is now done by the newly-required macros.
82683         Append $(EXEEXT) to DF_PROG.
82684         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82685         Do not invoke or require the following here,
82686         since prereq.m4 or some gnulib .m4 now does this for us:
82687         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82688         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82689         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82690         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82691         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82692         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82693         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82694         AC_FUNC_OBSTACK.
82695         Do not replace the following functions, as this is now the job
82696         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82697         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82698         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82699         atexit getpass, strdup, getpagesize.
82700         Replace 'raise'.
82701         Do not check for the following functions, as this is now the job
82702         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82703         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82704         setregid.
82705         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82706         Check for sys/sysctl.h.
82707         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82708         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82709         of checking for ssize_t ourselves.
82710
82711         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82712         Require every macro that gnulib/modules/* suggests for us.
82713         (jm_PREREQ_ADDEXT): New macro.
82714         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82715         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82716
82717         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82718         (gl_PHYSMEM): Use it.
82719         Also check for `table' function.
82720         Check for new headers and functions.
82721         Add check for sys/sysmp.h.
82722         With suggestions from Kaveh Ghazi.
82723         Ignore headers that are present but cannot be compiled.  This
82724         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82725         C 5.4.
82726
82727 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82728
82729         Document merge from coreutils.
82730         * modules/userspec: Depend on posixver.
82731         * modules/strftime: Depend on tzset.
82732
82733 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82734
82735         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82736         rather than tab, after '#' in shell-script copyright notices.
82737         Suggested by Bruno Haible.
82738
82739 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82740
82741         * config/srclist-update: Use three spaces, rather than tab, after '#'
82742         in shell-script copyright notices.  Suggested by Bruno Haible.
82743         Remove unnecessary parenthesization in regular expression.
82744
82745 2003-08-15  Jim Meyering  <jim@meyering.net>
82746
82747         Merge from coreutils.
82748         * lib/xgethostname.c: Include <stdlib.h>.
82749         (xghostname): Don't exit for anything other than memory-related
82750         failure; just return NULL.
82751         * lib/userspec.c: Include "posixver.h".
82752         (parse_user_spec): Accept `.' as a separator only
82753         in pre-POSIX-200112 mode.
82754         * lib/strtoimax.c: Use #elif rather than #else #if.
82755         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82756         Remove function, now that we can rely on a working tzset function.
82757         [!_LIBC]: Ensure that the required autoconf test has been run.
82758         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82759         Use underlying_strftime for %r.
82760         * lib/sha.c: Merge in some clean-up and optimization changes from
82761         glibc.
82762         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82763         Ensure that it is a multiple of 64.
82764         Rearrange loop exit tests so as to avoid performing an
82765         additional fread after encountering an error or EOF.
82766         * lib/realloc.c: Update copyright date.
82767
82768 2003-08-15  Jim Meyering  <jim@meyering.net>
82769         and Paul Eggert  <eggert@twinsun.com>
82770
82771         Merge from coreutils.
82772         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82773         member but strut utmpx does not.  Needed for AIX 4.3.3.
82774         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82775
82776 2003-08-15  Jim Meyering  <jim@meyering.net>
82777         and Paul Eggert  <eggert@cs.ucla.edu>
82778
82779         Merges from coreutils, etc.
82780         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82781         Require gl_FUNC_TZSET_CLOBBER.
82782         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82783         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82784         members.
82785
82786 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82787
82788         Help the merge from coreutils.
82789         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82790         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82791         * m4/tzset.m4: Use it too.
82792
82793 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82794
82795         * modules/tzset: New file.
82796
82797 2003-08-14  Jim Meyering  <jim@meyering.net>
82798
82799         Merges from coreutils.
82800         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82801         variable names, rather than @FNMATCH_H@.
82802         * modules/alloca: Likewise for $(ALLOCA_H).
82803
82804         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82805         the three copies of the literal target, `fnmatch.h'.
82806         * modules/alloca (alloca.h): Likewise.
82807
82808 2003-08-14  Jim Meyering  <jim@meyering.net>
82809
82810         Merge from coreutils.
82811         * m4/tzset.m4: New file.
82812         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82813         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82814         otherwise, AIX 5.1 systems would end up using the latter.
82815         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82816         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82817         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82818         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82819
82820 2003-08-14  Jim Meyering  <jim@meyering.net>
82821
82822         Merge from coreutils.
82823         * lib/obstack.h: Whitespace changes.
82824         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82825         and xcalloc return values.
82826         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82827         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82828         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82829         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82830         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82831         error from mntctl.
82832         Use mntctl's return value to drive the entry-processing loop, since
82833         we can't rely on the value of the vmt_length member in the last
82834         entry.  On some systems doing so could result in exhausting
82835         virtual memory.  Based in part on a patch from Mike Jetzer.
82836
82837 2003-08-14  Jim Meyering  <jim@meyering.net>
82838         and Paul Eggert  <eggert@twinsun.com>
82839
82840         Merges from coreutils, plus other fixes.
82841         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82842         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82843         for credits and details.  Thanks to Kaveh Ghazi for helping
82844         to keep these files in sync.
82845         (ARRAY_SIZE): Define it.
82846         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82847         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82848         (memcasecmp): Don't assume size_t fits in unsigned int.
82849         Remove casts and duplicate code.
82850         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82851         (memcpy): Remove definition.
82852         Merge in some clean-up and optimization changes from glibc.
82853         [BLOCKSIZE]: Move definition to top of file.
82854         Ensure that it is a multiple of 64.
82855         Rearrange loop exit tests so as to avoid performing an
82856         additional fread after encountering an error or EOF.
82857         * lib/md5.h (md5_uintptr): Define.
82858         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82859         return to the initial working directory.  Preserve errno
82860         for caller.
82861         * lib/idcache.c: Include "xalloc.h".
82862         (xmalloc, xrealloc): Remove decls.
82863         (getuser): Remove casts no longer required in C89.
82864         * lib/human.c: Include stdio.h, for sprintf.
82865         * lib/group-member.c: Include "xalloc.h".
82866         (xmalloc, xrealloc): Remove decls.
82867         (get_group_info): Remove casts no longer required in C89.
82868         * lib/getusershell.c (readname): Remove casts no longer required in
82869         C89.
82870         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82871         * lib/getline.c: Whitespace fix, from coreutils.
82872
82873 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82874
82875         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82876         Check for isascii.
82877
82878         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82879         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82880         Undo previous (whitespace-only) change.
82881
82882 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82883
82884         * lib/exclude.c: Include <ctype.h>
82885         (IN_CTYPE_DOMAIN): New macro.
82886         (is_space): New fn.
82887         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82888         and empty lines.
82889
82890         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82891         Undo previous (whitespace-only) change.
82892
82893 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82894
82895         * config/srclist-update: Change update back to the old behavior,
82896         leaving whitespace alone.  Use one 'sed' command rather than a
82897         pipeline.
82898         (fixlicense): Now a variable, not a function.
82899         (remove_trailing_blanks): Remove.
82900         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82901         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82902         Undo previous (whitespace-only) change.
82903
82904 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82905
82906         Merge from coreutils.
82907         * modules/euidaccess: Add lib_SOURCES, include for new
82908         file euidaccess.h
82909
82910 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82911
82912         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82913         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82914         Normalize leading white space and remove trailing white space.
82915
82916         Merge from coreutils
82917         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82918
82919         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82920         0.12.1.  These files are now being upgraded automatically by
82921         ../config/srclist-update.
82922
82923 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82924
82925         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82926         Normalize leading white space and remove trailing white space.
82927         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82928         notice, as per ../config/srclist-update.
82929
82930         Merge from coreutils.
82931         * lib/euidaccess.h: New file.
82932         * lib/euidaccess.c: Include it.
82933         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82934         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82935         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82936
82937 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82938
82939         * config/srclist-update: Add copyright notice.
82940         (remove_id_lines, remove_trailing_blanks): New constants.
82941         (fixfile): Use them to normalize spacing a bit in copied files.
82942         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82943         Normalize leading white space and remove trailing white space.
82944
82945         * config/texinfo.tex: Sync with texinfo.
82946
82947         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82948         strtoul.c from libc, to merge coreutils whitespace changes.
82949
82950         * config/srclist.txt: Get the following m4 files from gettext:
82951         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82952         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82953         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82954         wint_t.m4.
82955
82956 2003-08-12  Karl Berry  <karl@gnu.org>
82957
82958         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82959         been made.
82960
82961 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82962
82963         * modules/gnu-source, m4/gnu-source.m4:
82964         Remove; we're assuming Autoconf 2.54 or later now.
82965         Suggested by Bruno Haible.
82966         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82967
82968 2003-08-11  Bruno Haible  <bruno@clisp.org>
82969
82970         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82971
82972 2003-08-11  Bruno Haible  <bruno@clisp.org>
82973
82974         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82975         (vasnprintf): Use it instead of wcslen.
82976
82977 2003-08-11  Bruno Haible  <bruno@clisp.org>
82978
82979         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82980         value to ensure that _Bool promotes to int. Use #define for _Bool when
82981         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82982
82983 2003-08-10  Karl Berry  <karl@gnu.org>
82984
82985         * lib/regex.h: update from libc (whitespace fix).
82986
82987 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82988
82989         Merge some files from coreutils.  These changes were
82990         originally made by Jim Meyering.
82991         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82992         many older Unixes require this.
82993         * lib/alloca.c (alloca): Remove cast to argument of free;
82994         no longer needed in C89.
82995         * lib/alloca_.h, regex.h: Fix white space to match
82996         what GNU indent does.
82997
82998 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82999
83000         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83001         apparently Emacs's Unicode mode got confused before my 2003-08-05
83002         checkin.
83003
83004 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83005
83006         * m4/extensions.m4: New file.
83007         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83008         Require gl_USE_SYSTEM_EXTENSIONS.
83009         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83010         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83011
83012 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83013
83014         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83015         * modules/extensions, modules/gnu-source: New files.
83016         * modules/timespec, modules/unlocked-io: Depend on extensions.
83017
83018 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83019
83020         * modules/restrict: New file.
83021         * MODULES.html.sh (func_all_modules): Add restrict.
83022         * modules/regex: Depend on restrict.
83023
83024 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83025
83026         * m4/restrict.m4: New file.
83027         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83028
83029 2003-08-07  Bruno Haible  <bruno@clisp.org>
83030
83031         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83032         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83033
83034 2003-08-07  Bruno Haible  <bruno@clisp.org>
83035
83036         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83037         makes the module 'getndelim2' compatible with the module 'getline'.
83038
83039 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83040
83041         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83042         byte with "\201" to avoid glitches when editing that source file
83043         with multi-gnome-terminal.
83044
83045 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83046
83047         * lib/bumpalloc.h: Remove.
83048
83049 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83050
83051         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83052         * modules/bumpalloc: Remove.
83053
83054 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83055
83056         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83057         GNU coding style.
83058
83059         Merge from coreutils.
83060         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83061         1. From glibc.
83062         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83063         from Karl Berry, implemented by Jim Meyering.
83064         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83065         from Dmitry V. Levin.
83066         Remove anachronistic cast of xrealloc.
83067         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83068         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83069         type. Otherwise, it wouldn't compile with at least /bin/cc on
83070         ymp-cray-unicos9.0.2.X.
83071         Combine two mostly-identical uses of alloca into one.
83072         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83073
83074 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83075
83076         [From Emacs.]
83077
83078         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83079         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83080         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83081         obsolete NLIST_NAME_UNION.
83082         [__GNU__]: Undef BSD and FSCALE.
83083         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83084
83085 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83086
83087         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83088         an enum type, so that it's guaranteed to promote to int.  See:
83089         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83090
83091 2003-08-03  Karl Berry  <karl@gnu.org>
83092
83093         * config/depcomp: update from automake.
83094
83095 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83096
83097         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83098         (strerror): Don't assume that a printable int fits in 14 bytes.
83099
83100 2003-07-31  Bruno Haible  <bruno@clisp.org>
83101
83102         * modules/getpass-gnu: New file.
83103         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83104
83105 2003-07-31  Bruno Haible  <bruno@clisp.org>
83106
83107         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83108
83109 2003-07-24  Karl Berry  <karl@gnu.org>
83110
83111         * config/missing: update from automake.
83112
83113 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83114             Bruno Haible  <bruno@clisp.org>
83115
83116         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83117         * lib/getline.c (getline, getdelim): Likewise.
83118         Remove _GNU_SOURCE define; now it's defined in config.h through
83119         m4/getline.m4.
83120
83121 2003-07-23  Karl Berry  <karl@gnu.org>
83122
83123         * config/config.sub: update from prep.
83124
83125 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83126
83127         * modules/xalloc (Depends-on): Add exitfail.
83128         * modules/xmemcoll: Likewise.
83129
83130 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83131
83132         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83133         over-parenthesization in macros.
83134
83135         Sync with coreutils.
83136
83137         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83138         required by C99.
83139
83140         Use `exit_failure' for xalloc and xmemcoll instead of their own
83141         private exit-failure variables.
83142         * lib/xalloc.h (xalloc_exit_failure): Remove.
83143         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83144         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83145         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83146         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83147         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83148
83149 2003-07-20  Jim Meyering  <jim@meyering.net>
83150
83151         * modules/closeout (Depends-on): Add exitfail.
83152         Suggestion from Bruno Haible.
83153
83154 2003-07-19  Karl Berry  <karl@gnu.org>
83155
83156         * config/config.sub: update from prep.
83157
83158 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83159
83160         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83161         Remove.
83162         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83163         to test that it can stand by itself.  Include "exitfail.h".
83164         Clients should set exit_failure instead.
83165         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83166
83167 2003-07-18  Bruno Haible  <bruno@clisp.org>
83168
83169         * modules/getndelim2: New file.
83170         * modules/getline: Share files with module getndelim2.
83171         * modules/getnline: Depend on getndelim2 instead of sharing files with
83172         it. Add getnline.c to lib_SOURCES.
83173         * MODULES.html.sh (func_all_modules): Add getndelim2.
83174
83175 2003-07-18  Bruno Haible  <bruno@clisp.org>
83176
83177         * m4/getndelim2.m4: New file.
83178         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83179         invoke gl_PREREQ_GETNDELIM2.
83180         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83181         gl_PREREQ_GETNDELIM2.
83182         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83183         gl_GETNDELIM2.
83184
83185 2003-07-18  Bruno Haible  <bruno@clisp.org>
83186
83187         * lib/getndelim2.h: New file.
83188         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83189         getndelim2.h.
83190         (getndelim2): Make non-static. Change return type to ssize_t.
83191         * lib/getline.h: Change argument names.
83192         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83193         * lib/getnline.c: Include getndelim2.h.
83194
83195 2003-07-18  Andreas Schwab  <schwab@suse.de>
83196
83197         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83198
83199 2003-07-17  Karl Berry  <karl@gnu.org>
83200
83201         * config/config.sub: update from prep.
83202
83203 2003-07-17  Bruno Haible  <bruno@clisp.org>
83204
83205         * modules/getnline: New file.
83206         * modules/getline: Add lib/getndelim2.c to source file list.
83207         * MODULES.html.sh (func_all_modules): Add getnline.
83208
83209 2003-07-17  Bruno Haible  <bruno@clisp.org>
83210
83211         * m4/getnline.m4: New file.
83212
83213 2003-07-17  Bruno Haible  <bruno@clisp.org>
83214
83215         * m4/Makefile.am.in: Remove file.
83216         * m4/Makefile.am: Remove file.
83217         * m4/Makefile.in: Remove file.
83218
83219 2003-07-17  Bruno Haible  <bruno@clisp.org>
83220
83221         * lib/getnline.h: New file.
83222         * lib/getnline.c: New file.
83223         * lib/getndelim2.c: New file, extracted from getline.c.
83224         (getndelim2): Renamed from getdelim2, with added nmax argument.
83225         * lib/getline.c: Include getndelim2.c.
83226         (getdelim2): Moved out to getndelim2.c.
83227         (getline, getdelim): Update.
83228
83229 2003-07-17  Bruno Haible  <bruno@clisp.org>
83230
83231         * lib/Makefile.am: Remove file.
83232         * lib/Makefile.in: Remove file.
83233
83234 2003-07-17  Bruno Haible  <bruno@clisp.org>
83235
83236         * configure.in: Remove file.
83237         * Makefile.in: Remove file.
83238
83239 2003-07-17  Bruno Haible  <bruno@clisp.org>
83240
83241         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83242
83243 2003-07-16  Karl Berry  <karl@gnu.org>
83244
83245         * config/srclist-update: was running fixlicense twice, which caused
83246                 texinfo.tex to be nullified for some reason.  Simplify,
83247                 $gplsrc is no longer needed as far as I can see?
83248
83249 2003-07-16  Jim Meyering  <jim@meyering.net>
83250
83251         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83252
83253 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83254
83255         * config/srclist.txt: Get the following files from gettext-runtime/intl
83256         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83257         ref-del.sin.  From Bruno Haible.
83258         * config/srclist-update (fixfile): Change grep pattern again, since the
83259         previous fix didn't work (there was another trailing $).  Use
83260         '[$]' to escape the $s.
83261
83262 2003-07-15  Karl Berry  <karl@gnu.org>
83263
83264         * lib/vasnprintf.c: update from gettext.
83265
83266 2003-07-15  Karl Berry  <karl@gnu.org>
83267
83268         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83269         gets expanded when surrounded by '$'.
83270
83271 2003-07-15  Jim Meyering  <jim@meyering.net>
83272
83273         * modules/save-cwd: Don't depend on error.  From Derek Price.
83274
83275 2003-07-15  Jim Meyering  <jim@meyering.net>
83276
83277         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83278
83279 2003-07-14  Simon Josefsson  <jas@extundo.com>
83280
83281         * modules/mempcpy: New file.
83282         * MODULES.html.sh (func_all_modules): Add mempcpy.
83283
83284 2003-07-14  Simon Josefsson  <jas@extundo.com>
83285
83286         * m4/mempcpy.m4: New file.
83287
83288 2003-07-14  Simon Josefsson  <jas@extundo.com>
83289
83290         * lib/mempcpy.h: New file.
83291         * lib/mempcpy.c: New file.
83292
83293 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83294
83295         * modules/getdate, modules/posixtm: Depend on mktime.
83296
83297 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83298
83299         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83300         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83301         unicodeio.c, unicodeio.h, unlocked-io.h:
83302         Switch from LGPL to GPL.
83303
83304 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83305
83306         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83307         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83308         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83309         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83310         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83311         updated automatically by ../config/srclist-update.  This changes
83312         their license from LPGL to GPL.
83313
83314 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83315
83316         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83317         assumed to refer to the root of the most recent stable gettext version.
83318         * config/srclistvars.sh: Add defaults for eggert.
83319         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83320         Match "This program" as well as "The program".  This is needed
83321         for gettext.
83322
83323 2003-07-14  Jim Meyering  <jim@meyering.net>
83324
83325         Don't emit diagnostics.  Let callers do that.
83326         * lib/save-cwd.c: Don't include "error.h".
83327         (save_cwd): Don't call error.  Ensure that errno is valid
83328         when returning nonzero.
83329
83330         * lib/save-cwd.h (restore_cwd): Update prototype.
83331         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83332         Simplify.  Don't call error upon failure.  Let callers do that.
83333         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83334         when auditing is enabled.  But don't bother updating the #if.
83335
83336 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83337
83338         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83339         it breaks C++ compilation.
83340         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83341
83342 2003-07-10  Simon Josefsson  <jas@extundo.com>
83343
83344         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83345
83346 2003-07-10  Jim Meyering  <jim@meyering.net>
83347
83348         * m4/clock_time.m4: Remove trailing blank.
83349         * m4/intmax_t.m4: Likewise.
83350
83351 2003-07-10  Jim Meyering  <jim@meyering.net>
83352
83353         * lib/vasnprintf.c: Remove trailing blanks.
83354         Make cpp indentation consistent.
83355
83356 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83357
83358         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83359         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83360         Switch from LGPL to GPL.
83361
83362 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83363
83364         * config/srclist.txt: Sort sublists.  Add
83365         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83366         that differ from gnulib for one reason or another; we'd like this list
83367         to be smaller but for now let's document what we have.
83368
83369 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83370
83371         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83372         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83373         and sweeter "eval x=$x".
83374         * config/srclist.txt: Get lib/argp* from glibc.
83375
83376 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83377
83378         * lib/mktime.c: Fix some boundary cases and remove need for floating
83379         point.
83380
83381         Issue a compile-time diagnostic if time_t is floating point, or if
83382         two's complement arithmetic is not in effect, or if arithmetic
83383         right shift does not propagate the sign.  These assumptions were
83384         all in the original code but they weren't checked.
83385
83386         (TIME_T_MIDPOINT, verify): New macros.
83387         (__isleap): Remove; it has integer overflow problems.
83388         (leapyear): New function, without those problems.
83389         (ydhms_tm_diff): Remove; splitting into two parts.
83390         (ydhms_diff): New function, containing the arithmetic part of
83391         the old ydhms_tm_diff function.  Issue a compile-time
83392         diagnostic if we are not using C99 integer division.
83393         Avoid casts when possible.
83394         (guess_time_tm): New function, containing the checking part of
83395         the old ydhms_tm_diff function.  Return the new value, rather than
83396         the difference between it and the old.  Accept a new argument T
83397         so that *T specifies the old value.  Check for overflow in the result.
83398
83399         (__mktime_internal): Use a time_t offset, not a long int offset.
83400         This undoes the 2003-06-04 change, which is no longer needed now
83401         that we have better overflow checking.
83402         (localtime_offset): Likewise.
83403
83404         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83405         and long are 64-bit but int is only 32-bit.
83406         (ydhms_diff): Use long int to store year1 and yday1.
83407         Issue a compile-time diagnostic if long int is not wide enough.
83408
83409         (__mktime_internal): Use long int to store adjusted year and yday.
83410         Use plain C rather than preprocessor commands, if that doesn't
83411         affect efficiency.
83412         Check for overflow (and try to repair) after each probe
83413         rather than checking only at the very end.  This avoids some bugs
83414         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83415         does not equal GMT offset at maximum time).
83416         Use integer to check for overflow rather than floating point; this
83417         is more portable to non-IEEE hosts, and is a tad faster.
83418         When we detect that we are oscillating between two values,
83419         don't check whether tm_isdst has the requested value, since
83420         we already know the answer.  When tm_isdst has the wrong value,
83421         use a different heuristic to find the right one, based on the
83422         extreme values actually observed in practice in tz2003a,
83423         rather than the (overly optimistic) "previous 3 calendar quarters".
83424
83425         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83426         "T const" to accommodate glibc style.
83427         (check_result): Use less-confusing report format.  "long" -> "long int.
83428         (main): Likewise.
83429         Don't loop if the iteration overflows time_t.
83430         Allow a negative step in the iteration.
83431
83432 2003-07-06  Karl Berry  <karl@gnu.org>
83433
83434         * config/depcomp: update from automake.
83435         * config/config.sub: update from prep.
83436
83437 2003-07-03  Karl Berry  <karl@gnu.org>
83438
83439         * config/config.guess: update from prep.
83440
83441 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83442
83443         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83444         xreadlink.c now includes it unconditionally.
83445
83446 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83447
83448         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83449         having it depend on HAVE_SYS_TYPES_H.
83450
83451 2003-07-01  Bruno Haible  <bruno@clisp.org>
83452
83453         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83454         <sys/types.h> should be sufficient.
83455         Reported by Paul Eggert.
83456
83457 2003-06-26  Karl Berry  <karl@gnu.org>
83458
83459         * config/depcomp: update from automake.
83460
83461 2003-06-26  Bruno Haible  <bruno@clisp.org>
83462
83463         * modules/human: Depend on module stdbool.
83464
83465 2003-06-25  Bruno Haible  <bruno@clisp.org>
83466
83467         * modules/readlink: New file.
83468         * modules/xreadlink: Depend on it.
83469         * MODULES.html.sh (func_all_modules): Add readlink.
83470
83471 2003-06-25  Bruno Haible  <bruno@clisp.org>
83472
83473         * m4/readlink.m4: New file.
83474
83475 2003-06-25  Bruno Haible  <bruno@clisp.org>
83476
83477         * lib/readlink.c: New file.
83478
83479 2003-06-22  Karl Berry  <karl@gnu.org>
83480
83481         * config/srclist.txt: update mkinstalldirs from automake.
83482         * config/mkinstalldirs: update.
83483
83484 2003-06-22  Bruno Haible  <bruno@clisp.org>
83485
83486         Portability to mingw32.
83487         * m4/ssize_t.m4: New file, from GNU gettext.
83488         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83489         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83490
83491 2003-06-22  Bruno Haible  <bruno@clisp.org>
83492
83493         * modules/safe-read: Add m4/ssize_t.m4.
83494         * modules/xreadlink: Add m4/ssize_t.m4.
83495
83496 2003-06-20  Bruno Haible  <bruno@clisp.org>
83497
83498         Assume C89, so PARAMS isn't needed.
83499         * lib/unicodeio.h (PARAMS): Remove.
83500         * lib/unicodeio.c: Don't use PARAMS.
83501
83502 2003-06-18  Karl Berry  <karl@gnu.org>
83503
83504         * config/config.{guess,sub}: update from prep.
83505
83506 2003-06-18  Jim Meyering  <jim@meyering.net>
83507
83508         Merge changes from coreutils.
83509         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83510         Remove explicit declarations of xmalloc and realloc.
83511         Include xalloc.h.
83512         (read_utmp): Remove anachronistic cast of xmalloc.
83513
83514 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83515
83516         Assume C89, so PARAMS isn't needed.
83517         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83518         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83519         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83520         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83521         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83522         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83523         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83524         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83525         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83526         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83527         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83528         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83529         no longer needed. Anyway, config.h should always be included before any
83530         other file.
83531
83532 2003-06-11  Simon Josefsson  <jas@extundo.com>
83533
83534         * modules/sysexits: New file.
83535         * MODULES.html.sh (func_all_modules): Add sysexits.
83536
83537 2003-06-11  Simon Josefsson  <jas@extundo.com>
83538
83539         * lib/sysexit_.h: New file.
83540
83541 2003-06-11  Derek Price  <derek@ximbiot.com>
83542
83543         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83544         necessary.
83545
83546 2003-06-11  Bruno Haible  <bruno@clisp.org>
83547
83548         * m4/sysexits.m4: New file.
83549
83550 2003-06-10  Simon Josefsson  <jas@extundo.com>
83551
83552         * lib/argp.h: New file, from glibc.
83553         * lib/argp-ba.c: New file, from glibc.
83554         * lib/argp-eexst.c: New file, from glibc.
83555         * lib/argp-fmtstream.c: New file, from glibc.
83556         * lib/argp-fmtstream.h: New file, from glibc.
83557         * lib/argp-fs-xinl.c: New file, from glibc.
83558         * lib/argp-help.c: New file, from glibc.
83559         * lib/argp-namefrob.h: New file, from glibc.
83560         * lib/argp-parse.c: New file, from glibc.
83561         * lib/argp-pv.c: New file, from glibc.
83562         * lib/argp-pvh.c: New file, from glibc.
83563         * lib/argp-xinl.c: New file, from glibc.
83564
83565 2003-06-10  Simon Josefsson  <jas@extundo.com>
83566
83567         * modules/strchrnul: New file.
83568
83569 2003-06-10  Simon Josefsson  <jas@extundo.com>
83570
83571         * modules/argp: New file.
83572
83573 2003-06-10  Simon Josefsson  <jas@extundo.com>
83574
83575         * m4/strchrnul.m4: New file.
83576
83577 2003-06-10  Simon Josefsson  <jas@extundo.com>
83578
83579         * lib/strchrnul.h: New file.
83580         * lib/strchrnul.c: New file.
83581
83582 2003-06-10  Bruno Haible  <bruno@clisp.org>
83583
83584         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83585
83586 2003-06-07  Karl Berry  <karl@gnu.org>
83587
83588         * config/config.{guess,sub}: update from prep.
83589
83590 2003-06-07  Jim Meyering  <jim@meyering.net>
83591
83592         * modules/strtod: Use $(...) notation, not @...@ for
83593         AC_REPLACE'd variables.
83594         * modules/localcharset: Likewise.
83595
83596 2003-06-07  Jim Meyering  <jim@meyering.net>
83597
83598         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83599         in place of my name in the copyright comment.
83600         Remove definition and uses of __P.
83601
83602         From coreutils.
83603         * lib/stat.c: Don't declare xmalloc explicitly.
83604         Instead, include "xalloc.h".
83605         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83606         xrealloc, and xcalloc return values.
83607         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83608         Improve comment.
83609         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83610
83611 2003-06-07  Bruno Haible  <bruno@clisp.org>
83612
83613         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83614         avoid AC_CONFIG_LINKS.
83615         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83616         fnmatch.h, to avoid AC_CONFIG_LINKS.
83617         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83618
83619 2003-06-07  Bruno Haible  <bruno@clisp.org>
83620
83621         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83622         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83623         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83624         directory.
83625         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83626         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83627         directory.
83628
83629 2003-06-06  Jim Meyering  <jim@meyering.net>
83630
83631         Merge from coreutils.
83632         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83633         Consolidate declarations and initializations of *_base* locals.
83634
83635         Merge from coreutils.
83636         This avoids a core dump on systems without GNU putenv,
83637         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83638         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83639         (unsetenv): New static function, from GNU libc.
83640         (rpl_putenv): Use it.
83641
83642         * lib/modechange.c: Remove trailing blanks.
83643
83644         Merge from coreutils.
83645         * lib/fsusage.c: Remove declaration of statfs.
83646         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83647
83648         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83649
83650 2003-06-06  Jim Meyering  <jim@meyering.net>
83651
83652         * lib/stdbool_.h: Renamed from stdbool.h.in.
83653
83654 2003-06-06  Jim Meyering  <jim@meyering.net>
83655             Bruno Haible  <bruno@clisp.org>
83656
83657         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83658         Adjust Makefile.am snippet not to redirect directly to target.
83659         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83660
83661 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83662
83663         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83664         mismatch, look in future quarters as well as past.  This fixes a
83665         bug when processing fall-backwards gaps immediately after a long
83666         period of daylight-saving time.
83667
83668         * lib/mktime.c: Assume freestanding C89 or better.
83669         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83670         (__P): Remove; not used.
83671         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83672         (mktime, not_equal_tm, print_tm, check_result,
83673         main): Use prototypes.  Use const * where appropriate.
83674         (main): Fix typo in testing code that uncovered by above changes.
83675         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83676
83677 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83678
83679         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83680         locale.h, localeconv.  This merges changes from coreutils.
83681
83682         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83683         It can be removed after the next Autoconf is released.
83684         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83685         needed.
83686
83687 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83688
83689         * lib/mktime.c: Fix Debian bug 177940
83690         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83691         (localtime_offset): Now long int, not time_t, because we want it
83692         to be guaranteed to be signed.  All uses changed.
83693         (__mktime_internal): If overflow would occur when adding offset,
83694         don't add it.
83695
83696         Merge 'human' changes from coreutils.  Rewrite to support
83697         locale-specific notations like thousands separators.
83698         * lib/human.c: Simplify authorship notice.
83699         Include human.h immediately after config.h.
83700         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83701         <limits.h>: Do not include, since human.h does.
83702         (SIZE_MAX, UINTMAX_MAX): New macros.
83703         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83704         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83705         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83706         (power_letter): Renamed from suffixes.
83707         (generate_suffix_backwards): Remove.
83708         (adjust_value): Now takes int style (because of human.h changes)
83709         and long double value (for greater precision on some platforms).
83710         (group_number): New function.
83711         (human_readable): Use it.  Use integer options, not enum.
83712         Put the options before the sizes in the arg list.
83713         Support all the new options.
83714         The old human_readable function has been removed;
83715         use inttostr.h instead.
83716         (human_readable, default_block_size, humblock):
83717         Use uintmax_t, not int, for block sizes.
83718         (human_readable_inexact, block_size_types): Remove.
83719         (block_size_opts): New constant.
83720         (human_options): Renamed from human_block_size, with new signature
83721         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83722         * lib/human.h: Add copyright and authorship notice.
83723         Include <limits.h> and <stdbool.h> unconditionally.
83724         (PARAMS): Remove.  All uses removed.
83725         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83726         (enum human_inexact_style): Remove tag; now a nameless enum.
83727         (human_floor, human_ceiling, human_round_to_even): Now have
83728         values 2, 0, 1 rather than -1, 1, 0.
83729         (human_group_digits, human_suppress_point_zero, human_autoscale,
83730         human_base_1024, human_SI, human_B): New constants.
83731         (human_readable_inexact, human_block_size): Remove.
83732         (human_readable): Size args are now uintmax_t, not int.
83733         (human_options): New decl.
83734
83735         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83736         unnecessary now that we assume C89 or better.  This change
83737         imported from coreutils.
83738
83739         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83740         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83741         in the 2003-05-30 sync from glibc.
83742
83743         .h files should stand alone, but we shouldn't include <sys/types.h>
83744         if we can get away with just <stddef.h>.
83745
83746         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83747         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83748         rather than <sys/types.h>, as we merely need size_t.
83749         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83750         to get size_t.
83751         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83752         Include <stdio.h>, to get FILE.
83753         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83754         memcasecmp.h has included <stddef.h> and all we need is size_t.
83755         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83756         our interface, instead of including <sys/types.h>
83757
83758 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83759
83760         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83761         now, as glibc mktime is buggy on non-glibc systems.
83762
83763 2003-06-03  Karl Berry  <karl@gnu.org>
83764
83765         * config/config.sub: update from prep.
83766
83767 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83768
83769         [from coreutils]
83770         Fix some minor time-related bugs with POSIX time arguments.
83771         Some valid time stamps were being rejected (notably -1, and
83772         time stamps before 1900 on 64-bit hosts).  And some invalid
83773         time stamps were being accepted, e.g. September 31.
83774
83775         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83776         that we can return (time_t) -1 successfully.
83777         * lib/posixtm.c: Likewise.
83778         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83779         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83780         (t): Remove static var.
83781         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83782         of static var.  All uses changed.
83783         (year): Do not reject years before 1900; they can occur with
83784         64-bit time_t.
83785         (posix_time_parse): Do not check for out-of-range components;
83786         that is now the caller's responsibility, since our checks were
83787         only approximations.
83788         (posixtime): Use mktime to check for out-of-range components,
83789         since it knows them exactly.
83790         If mktime returns (time_t) -1, check whether an error actually occurred
83791         by invoking localtime on -1.
83792         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83793         posixtime failures better.
83794         Improve the test data (in comments only).
83795
83796 2003-06-02  Karl Berry  <karl@gnu.org>
83797
83798         * config/mkinstalldirs (version): new variable.
83799         (--version): new option.
83800         (usage): improve message.
83801
83802 2003-05-30  Karl Berry  <karl@gnu.org>
83803
83804         * lib/mktime.c: update from libc.
83805
83806 2003-05-30  Bruno Haible  <bruno@clisp.org>
83807
83808         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83809         * config/config.rpath: Upgrade to gettext-0.12.1.
83810
83811 2003-05-30  Bruno Haible  <bruno@clisp.org>
83812
83813         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83814         * m4/nls.m4: New file, from gettext-0.12.1.
83815         * m4/po.m4: New file, from gettext-0.12.1.
83816         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83817
83818 2003-05-30  Bruno Haible  <bruno@clisp.org>
83819
83820         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83821         * lib/localcharset.h: Likewise.
83822         * lib/localcharset.c: Likewise.
83823
83824 2003-05-29  Karl Berry  <karl@gnu.org>
83825
83826         * config/config.rpath: update from gettext.
83827
83828 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83829
83830         Assume the headers required for C89 freestanding compilers.
83831         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83832         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83833         * m4/human.m4 (gl_HUMAN): Likewise.
83834         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83835         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83836         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83837         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83838         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83839         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83840
83841 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83842
83843         Assume the headers required for C89 freestanding compilers.
83844         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83845         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83846         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83847         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83848         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83849         define, since <limits.h> is guaranteed to do that.
83850         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83851         * lib/exclude.c: Include <stdbool.h> unconditionally.
83852         * lib/tempname.c: Include <stddef.h> unconditionally.
83853         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83854         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83855         <stddef.h> does that.
83856         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83857         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83858         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83859         needed.
83860         * lib/xstrtol.c: Likewise.
83861         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83862         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83863
83864         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83865         warnings on some platforms.
83866
83867         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83868         arbitrarily.
83869
83870 2003-05-26  Jim Meyering  <jim@meyering.net>
83871
83872         Merge in a change from coreutils:
83873         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83874         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83875         that condition, rather than `-1' which is slightly misleading.
83876         Change the name of the cache variable to have the gl_ prefix.
83877         Prompted by a patch from Richard Dawe for DJGPP.
83878
83879 2003-05-24  Karl Berry  <karl@gnu.org>
83880
83881         * config/config.guess: update from prep.
83882
83883 2003-05-22  Karl Berry  <karl@gnu.org>
83884
83885         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83886
83887 2003-05-20  Karl Berry  <karl@gnu.org>
83888
83889         * config/config.guess: update from prep.
83890
83891 2003-05-18  Karl Berry  <karl@gnu.org>
83892
83893         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83894         might actually be set by the user.
83895
83896         * config/depcomp, install-sh, mdate-sh: update from automake.
83897
83898 2003-05-17  Bruno Haible  <bruno@clisp.org>
83899
83900         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83901         invalid expansion for AC_EGREP_CPP.
83902         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83903         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83904         Suggested by Akim Demaille <akim@epita.fr> in
83905         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83906
83907 2003-05-12  Jim Meyering  <jim@meyering.net>
83908
83909         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83910         the space-padded-by-default conversion specifiers, %e, %k, %l.
83911
83912 2003-05-12  Bruno Haible  <bruno@clisp.org>
83913
83914         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83915         the string is longer than 4 KB.
83916
83917 2003-05-11  Karl Berry  <karl@gnu.org>
83918
83919         * config/config.{guess,sub}: update from prep.
83920
83921 2003-05-09  Bruno Haible  <bruno@clisp.org>
83922
83923         * modules/error: Add m4/strerror_r.m4 to file list.
83924
83925 2003-05-03  Bruno Haible  <bruno@clisp.org>
83926
83927         Upgrade to Unicode-4.0.
83928         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83929         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83930         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83931         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83932         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83933         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83934         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83935         Change width of U+E0100..U+E01EF from 1 to 0.
83936
83937 2003-04-25  Jim Meyering  <jim@meyering.net>
83938
83939         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83940         of type size_t, not int.
83941
83942 2003-04-25  Bruno Haible  <bruno@clisp.org>
83943
83944         * lib/copy-file.c: Include <stddef.h>, for size_t.
83945
83946 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83947
83948         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83949         code which expansion is under static control.  Patch imported from
83950         Akim Demaille's patch to Bison; see
83951         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83952
83953 2003-04-14  Bruno Haible  <bruno@clisp.org>
83954
83955         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83956
83957 2003-04-11  Jim Meyering  <jim@meyering.net>
83958
83959         Merge changes from Coreutils.
83960
83961         2003-03-22  Jim Meyering  <jim@meyering.net>
83962
83963         * lib/strftime.c (widen): Cast alloca return value to proper type.
83964
83965         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83966
83967         From GNU libc.
83968         * lib/strftime.c (my_strftime): Handle very large width
83969         specifications for numeric values correctly.  Improve checks for
83970         overflow.
83971
83972         2003-01-19  Jim Meyering  <jim@meyering.net>
83973
83974         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83975         definitions.
83976         (nl_get_alt_digit) [! defined my_strftime]: Define.
83977         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83978         _nl_get_alt_digit and _nl_get_walt_digit.
83979
83980         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83981         libc. These changes have no effect outside of _LIBC.
83982
83983 2003-04-10  Bruno Haible  <bruno@clisp.org>
83984
83985         * modules/findprog: New file.
83986         * MODULES.html.sh (func_all_modules): Add it.
83987
83988 2003-04-10  Bruno Haible  <bruno@clisp.org>
83989
83990         * m4/findprog.m4: New file.
83991         * m4/eaccess.m4: New file.
83992
83993 2003-04-10  Bruno Haible  <bruno@clisp.org>
83994
83995         * lib/findprog.h: New file, from GNU gettext.
83996         * lib/findprog.c: New file, from GNU gettext.
83997
83998 2003-04-05  Jim Meyering  <jim@meyering.net>
83999
84000         Merge changes from Coreutils.
84001
84002         * lib/exclude.h (PARAMS): Remove definition and uses.
84003         * lib/exclude.c: Remove uses of `PARAMS'.
84004
84005         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84006         Add test-cases for DOS filenames. Declare program_name.
84007         (main): Set up program_name.  Patch by Rich Dawe.
84008
84009         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84010         error from mntctl.
84011         Use mntctl's return value to drive the entry-processing loop, since
84012         we can't rely on the value of the vmt_length member in the last
84013         entry.  On some systems doing so could result in exhausting
84014         virtual memory.  Based in part on a patch from Mike Jetzer.
84015
84016 2003-04-04  Bruno Haible  <bruno@clisp.org>
84017
84018         * modules/linebreak: New file.
84019         * MODULES.html.sh (func_all_modules): Add it.
84020
84021 2003-04-04  Bruno Haible  <bruno@clisp.org>
84022
84023         * m4/linebreak.m4: New file.
84024
84025 2003-04-04  Bruno Haible  <bruno@clisp.org>
84026
84027         * lib/linebreak.h: New file, from GNU gettext.
84028         * lib/linebreak.c: New file, from GNU gettext with slight
84029         modifications.
84030         * lib/lbrkprop.h: New file, from GNU gettext.
84031
84032 2003-04-03  Bruno Haible  <bruno@clisp.org>
84033
84034         * modules/utf8-ucs4: New file.
84035         * modules/utf16-ucs4: New file.
84036         * modules/ucs4-utf8: New file.
84037         * modules/ucs4-utf16: New file.
84038         * MODULES.html.sh (func_all_modules): Add them.
84039
84040 2003-04-03  Bruno Haible  <bruno@clisp.org>
84041
84042         * m4/utf-ucs4.m4: New file.
84043         * m4/ucs4-utf.m4: New file.
84044
84045 2003-04-03  Bruno Haible  <bruno@clisp.org>
84046
84047         * lib/utf8-ucs4.h: New file, from GNU gettext.
84048         * lib/utf16-ucs4.h: New file, from GNU gettext.
84049         * lib/ucs4-utf8.h: New file, from GNU gettext.
84050         * lib/ucs4-utf16.h: New file, from GNU gettext.
84051
84052 2003-04-02  Bruno Haible  <bruno@clisp.org>
84053
84054         * modules/binary-io: New file.
84055         * MODULES.html.sh (func_all_modules): Add it.
84056
84057 2003-04-02  Bruno Haible  <bruno@clisp.org>
84058
84059         * lib/binary-io.h: New file, from GNU gettext.
84060
84061 2003-04-01  Bruno Haible  <bruno@clisp.org>
84062
84063         * modules/pathname: New file.
84064         * MODULES.html.sh (func_all_modules): Add it.
84065
84066 2003-04-01  Bruno Haible  <bruno@clisp.org>
84067
84068         * lib/pathname.h: New file, from GNU gettext.
84069         * lib/concatpath.c: New file, from GNU gettext.
84070
84071 2003-03-30  Bruno Haible  <bruno@clisp.org>
84072
84073         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84074
84075 2003-03-30  Bruno Haible  <bruno@clisp.org>
84076
84077         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84078         function chown() doesn't exist.
84079
84080 2003-03-28  Bruno Haible  <bruno@clisp.org>
84081
84082         * modules/copy-file: New file.
84083         * MODULES.html.sh (func_all_modules): Add it.
84084
84085 2003-03-28  Bruno Haible  <bruno@clisp.org>
84086
84087         * m4/copy-file.m4: New file.
84088
84089 2003-03-28  Bruno Haible  <bruno@clisp.org>
84090
84091         * lib/copy-file.h: New file, from GNU gettext.
84092         * lib/copy-file.c: New file, from GNU gettext.
84093
84094 2003-03-18  Jim Meyering  <jim@meyering.net>
84095
84096         * lib/quote.c (quote_n): Fix typo in comment.
84097
84098 2003-03-18  Bruno Haible  <bruno@clisp.org>
84099
84100         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84101         checking.
84102         * m4/onceonly_2_57.m4: Likewise.
84103
84104 2003-03-17  Bruno Haible  <bruno@clisp.org>
84105
84106         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84107         (m4_quote): Remove macro.
84108         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84109
84110 2003-03-14  Jim Meyering  <jim@meyering.net>
84111
84112         Merge changes from Coreutils.
84113         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84114         to be const, in order to avoid warnings.
84115         (obstack_room): Likewise.
84116         (obstack_empty_p): Likewise.
84117
84118 2003-03-14  Bruno Haible  <bruno@clisp.org>
84119
84120         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84121         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84122
84123 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84124
84125         Merge changes from Bison.
84126         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84127         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84128         when compiling Bison 1.875's `bitset bset = obstack_alloc
84129         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84130         * lib/hash.c: Include <stdbool.h> unconditionally.
84131
84132 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84133
84134         * m4/onceonly.m4 (m4_quote): New macro.
84135         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84136         Quote AC_FOREACH variable-expansions properly.
84137
84138 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84139
84140         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84141
84142 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84143
84144         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84145         Reported by Bruce Becker; see:
84146         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84147
84148 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84149             Bruno Haible  <bruno@clisp.org>
84150
84151         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84152         Reported by John Hughes, see
84153         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84154
84155 2003-02-20  Bruno Haible  <bruno@clisp.org>
84156
84157         * MODULES.html.sh (func_all_modules): Add poll.
84158
84159 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84160
84161         * modules/poll: New file.
84162
84163 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84164
84165         * lib/poll_.h: New file.
84166         * lib/poll.c: New file.
84167
84168 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84169
84170         * m4/poll.m4: New file.
84171
84172 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84173
84174         * modules/mathl: New file.
84175
84176 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84177
84178         * lib/mathl.h: New file.
84179         * lib/acosl.c: New file.
84180         * lib/asinl.c: New file.
84181         * lib/atanl.c: New file.
84182         * lib/ceill.c: New file.
84183         * lib/cosl.c: New file.
84184         * lib/expl.c: New file.
84185         * lib/floorl.c: New file.
84186         * lib/frexpl.c: New file.
84187         * lib/ldexpl.c: New file.
84188         * lib/logl.c: New file.
84189         * lib/sincosl.c: New file.
84190         * lib/sinl.c: New file.
84191         * lib/sqrtl.c: New file.
84192         * lib/tanl.c: New file.
84193         * lib/trigl.c: New file.
84194         * lib/trigl.h: New file.
84195
84196 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84197
84198         * m4/mathl.m4: New file.
84199
84200 2003-02-18  Bruno Haible  <bruno@clisp.org>
84201
84202         * MODULES.html.sh (func_all_modules): Add mathl.
84203
84204 2003-02-17  Bruno Haible  <bruno@clisp.org>
84205
84206         * modules/mkdtemp: New module.
84207         * MODULES.html.sh (func_all_modules): Add it.
84208
84209 2003-02-17  Bruno Haible  <bruno@clisp.org>
84210
84211         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84212
84213 2003-02-17  Bruno Haible  <bruno@clisp.org>
84214
84215         * lib/mkdtemp.h: New file, from GNU gettext.
84216         * lib/mkdtemp.c: New file, from GNU gettext.
84217
84218 2003-02-02  Jim Meyering  <jim@meyering.net>
84219
84220         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84221         e.g. glibc-2.2.93.
84222
84223 2003-01-31  Bruno Haible  <bruno@clisp.org>
84224
84225         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84226         'rpl_rename'.
84227         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84228         'rpl_strnlen'.
84229         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84230         'rpl_strtod'.
84231         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84232         'rpl_utime'.
84233
84234 2003-01-31  Bruno Haible  <bruno@clisp.org>
84235
84236         * lib/rename.c: #undef rename before defining rpl_rename.
84237         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84238
84239 2003-01-30  Bruno Haible  <bruno@clisp.org>
84240
84241         * modules/vasnprintf, modules/vasprintf: New modules.
84242         * MODULES.html.sh (func_all_modules): Add them.
84243
84244 2003-01-30  Bruno Haible  <bruno@clisp.org>
84245
84246         * m4/signed.m4: New file, from GNU gettext.
84247         * m4/longdouble.m4: New file, from GNU gettext.
84248         * m4/wchar_t.m4: New file, from GNU gettext.
84249         * m4/wint_t.m4: New file, from GNU gettext.
84250         * m4/vasnprintf.m4: New file.
84251         * m4/vasprintf.m4: New file.
84252
84253 2003-01-30  Bruno Haible  <bruno@clisp.org>
84254
84255         * lib/printf-args.h: New file, from GNU gettext.
84256         * lib/printf-args.c: New file, from GNU gettext.
84257         * lib/printf-parse.h: New file, from GNU gettext.
84258         * lib/printf-parse.c: New file, from GNU gettext.
84259         * lib/vasnprintf.h: New file, from GNU gettext.
84260         * lib/vasnprintf.c: New file, from GNU gettext.
84261         * lib/asnprintf.c: New file, from GNU gettext.
84262         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84263         * lib/vasprintf.c: New file, from GNU gettext.
84264         * lib/asprintf.c: New file, from GNU gettext.
84265
84266 2003-01-29  Bruno Haible  <bruno@clisp.org>
84267
84268         * modules/stpncpy: New module.
84269         * MODULES.html.sh (func_all_modules): Add it.
84270
84271 2003-01-29  Bruno Haible  <bruno@clisp.org>
84272
84273         * m4/stpncpy.m4: New file.
84274
84275 2003-01-29  Bruno Haible  <bruno@clisp.org>
84276
84277         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84278         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84279
84280 2003-01-28  Bruno Haible  <bruno@clisp.org>
84281
84282         * modules/c-ctype: New module.
84283         * MODULES.html.sh (func_all_modules): Add it.
84284
84285 2003-01-28  Bruno Haible  <bruno@clisp.org>
84286
84287         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84288         Paul Eggert.
84289         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84290         Paul Eggert.
84291
84292 2003-01-27  Bruno Haible  <bruno@clisp.org>
84293
84294         * modules/xsetenv: New module.
84295         * MODULES.html.sh (func_all_modules): Add it.
84296
84297 2003-01-27  Bruno Haible  <bruno@clisp.org>
84298
84299         * lib/xsetenv.h: New file, from GNU gettext.
84300         * lib/xsetenv.c: New file, from GNU gettext.
84301
84302 2003-01-23  Jim Meyering  <jim@meyering.net>
84303
84304         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84305         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84306
84307 2003-01-23  Bruno Haible  <bruno@clisp.org>
84308
84309         * modules/minmax: New module.
84310         * MODULES.html.sh (func_all_modules): Add it.
84311
84312 2003-01-23  Bruno Haible  <bruno@clisp.org>
84313
84314         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84315         Eggert.
84316
84317 2003-01-22  Bruno Haible  <bruno@clisp.org>
84318
84319         * modules/exit: New module.
84320         * MODULES.html.sh (func_all_modules): Add it.
84321
84322 2003-01-22  Bruno Haible  <bruno@clisp.org>
84323
84324         * lib/exit.h: New file, from GNU gettext.
84325
84326 2003-01-19  Bruno Haible  <bruno@clisp.org>
84327
84328         * gnulib-tool: Recognize option --extract-maintainer.
84329         (func_get_maintainer): New function.
84330         * modules/*: Add Maintainer entry.
84331
84332 2003-01-16  Jim Meyering  <jim@meyering.net>
84333
84334         * m4/regex.m4: The `regex' struct is both input and output.
84335         Initialize it before each use.  Patch by Tim Waugh.
84336
84337 2003-01-16  Bruno Haible  <bruno@clisp.org>
84338
84339         * MODULES.html.sh: Add a table of contents. Add the module name as
84340         leftmost column. Add hyperlinks.
84341
84342 2003-01-15  Bruno Haible  <bruno@clisp.org>
84343
84344         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84345
84346 2003-01-15  Bruno Haible  <bruno@clisp.org>
84347
84348         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84349         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84350         suffix.
84351
84352 2003-01-15  Bruno Haible  <bruno@clisp.org>
84353
84354         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84355
84356 2003-01-15  Bruno Haible  <bruno@clisp.org>
84357
84358         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84359         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84360
84361 2003-01-14  Jim Meyering  <jim@meyering.net>
84362
84363         * lib/same.c (same_name): Tweak a comment.
84364
84365 2003-01-14  Bruno Haible  <bruno@clisp.org>
84366
84367         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84368         when a string comparison is sufficient.
84369
84370 2003-01-14  Bruno Haible  <bruno@clisp.org>
84371
84372         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84373         'unsigned int'.
84374
84375 2003-01-14  Bruno Haible  <bruno@clisp.org>
84376
84377         * lib/hash-pjw.c: Add comment about low quality of this function.
84378
84379 2003-01-13  Bruno Haible  <bruno@clisp.org>
84380
84381         * modules/stpcpy: Distribute lib/stpcpy.h.
84382         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84383
84384 2003-01-13  Bruno Haible  <bruno@clisp.org>
84385
84386         * modules/*: Add a description.
84387         * modules/strpbrk: Fix Makefile.am snippet.
84388         * modules/strtoimax: Fix dependencies.
84389         * modules/strtoumax: Likewise.
84390
84391 2003-01-13  Bruno Haible  <bruno@clisp.org>
84392
84393         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84394         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84395         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84396
84397 2003-01-13  Bruno Haible  <bruno@clisp.org>
84398
84399         * gnulib-tool (func_create_testdir): Store config/* files in the main
84400         directory.
84401         * config.rpath: Move to ...
84402         * config/config.rpath: ... here.
84403         * modules/gettext: Contains config/config.rpath, not config.rpath.
84404         * modules/iconv: Likewise.
84405
84406 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84407
84408         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84409         to avoid collisions with libcurses and libreadline.
84410
84411         * m4/getstr.m4: Remove.
84412         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84413
84414 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84415
84416         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84417         to avoid collisions with libcurses and libreadline.
84418
84419         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84420         * lib/getstr.h, getstr.c: Remove.
84421         * lib/getline.c: Include "getline.h", to check interface.
84422         Move body of old getstr.c here: this defines MIN_CHUNK and
84423         declares getdelim2, which is renamed from getstr.
84424         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84425
84426         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84427         All uses changed.
84428         * lib/linebuffer.h: Likewise.
84429         (readline): Remove backward-compatibility macro.
84430
84431 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84432
84433         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84434         to avoid collisions with libcurses and libreadline.
84435         * getstr: Remove.
84436         * MODULES.html.sh: Remove getstr.
84437         * modules/getline: Depend on unlocked-io, not getstr.
84438
84439 2003-01-12  Jim Meyering  <jim@meyering.net>
84440
84441         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84442
84443 2003-01-10  Bruno Haible  <bruno@clisp.org>
84444
84445         * modules/alloca: Change Makefile.am requirements. Simplify Include
84446         requirements. Add lib/alloca_.h to file list.
84447
84448 2003-01-10  Bruno Haible  <bruno@clisp.org>
84449
84450         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84451
84452 2003-01-10  Bruno Haible  <bruno@clisp.org>
84453
84454         * lib/alloca_.h: New file.
84455         * lib/getdate.y: Unconditionally include alloca.h.
84456         * lib/makepath.c: Likewise.
84457         * lib/setenv.c: Likewise.
84458         * lib/userspec.c: Likewise.
84459
84460 2003-01-09  Karl Berry  <karl@gnu.org>
84461
84462         * MODULES.html.sh: include `dirname $0` in PATH, to find
84463         gnulib-tool.
84464
84465 2003-01-09  Bruno Haible  <bruno@clisp.org>
84466
84467         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84468         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84469
84470 2003-01-09  Bruno Haible  <bruno@clisp.org>
84471
84472         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84473
84474 2003-01-09  Bruno Haible  <bruno@clisp.org>
84475
84476         * lib/stdbool.h.in: New file.
84477
84478 2003-01-09  Bruno Haible  <bruno@clisp.org>
84479
84480         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84481         * MODULES.html.sh: Likewise.
84482
84483 2003-01-08  Jim Meyering  <jim@meyering.net>
84484
84485         * lib/full-write.c: Undefine and define-away `const' after inclusion
84486         of errno.h, not before.  Suggestion from Bruno Haible.
84487
84488 2003-01-08  Bruno Haible  <bruno@clisp.org>
84489
84490         * modules/full-read: Depend on full-write.
84491
84492 2003-01-08  Bruno Haible  <bruno@clisp.org>
84493
84494         * lib/safe-read.c: Include specification header first, to ensure its
84495         selfcontainedness.
84496         * lib/full-write.c: Likewise.
84497
84498 2003-01-07  Jim Meyering  <jim@meyering.net>
84499
84500         * lib/full-write.c: Rework so that it may serve to define full_read,
84501         too.
84502         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84503
84504 2003-01-07  Bruno Haible  <bruno@clisp.org>
84505
84506         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84507         <inttypes.h>.
84508         * lib/xstrtol.h: Likewise.
84509         * lib/xstrtoimax.c: Likewise.
84510         * lib/xstrtoumax.c: Likewise.
84511         * lib/human.h: Likewise.
84512
84513         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84514         on systems that have <inttypes.h> but not <stdint.h>.
84515
84516 2003-01-07  Bruno Haible  <bruno@clisp.org>
84517
84518         * MODULES.html.sh: Add copyright notice.
84519         (missed_files): Omit CVS directory entries.
84520         (func_module): Make it work with sed-3.02.
84521         * MODULES.txt: Remove file.
84522
84523 2003-01-06  Jim Meyering  <jim@meyering.net>
84524
84525         * lib/version-etc.c: Update year in translatable copyright string.
84526
84527 2003-01-03  Karl Berry  <karl@gnu.org>
84528
84529         * config/config.{guess,sub}: update from prep.
84530
84531 2003-01-02  Karl Berry  <karl@gnu.org>
84532
84533         * doc/COPYING.DOC: belatedly updated to 1.2.
84534
84535 2003-01-01  Karl Berry  <karl@gnu.org>
84536
84537         * gnulib-tool (func_verify_module): report module name $module in
84538         error message, not $1.
84539         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84540         be created, only if it doesn't exist.
84541         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84542
84543 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84544
84545         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84546
84547 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84548
84549         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84550         memcmp if strcoll doesn't work.
84551
84552 2002-12-31  Bruno Haible  <bruno@clisp.org>
84553
84554         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84555         nonempty.
84556
84557 2002-12-31  Bruno Haible  <bruno@clisp.org>
84558
84559         * lib/memcoll.c (STRCOLL): New macro.
84560         (memcoll): Use it.
84561
84562 2002-12-31  Bruno Haible  <bruno@clisp.org>
84563
84564         * lib/localcharset.h: New file.
84565         * lib/localcharset.c: Include it.
84566         * lib/unicodeio.c: Likewise.
84567
84568 2002-12-31  Bruno Haible  <bruno@clisp.org>
84569
84570         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84571         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84572
84573 2002-12-31  Bruno Haible  <bruno@clisp.org>
84574
84575         * lib/getline.h: Include <stddef.h>, for size_t.
84576
84577         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84578         * lib/unicodeio.c: Don't include <stddef.h>.
84579
84580 2002-12-31  Bruno Haible  <bruno@clisp.org>
84581
84582         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84583         HAVE_TM_ZONE.
84584
84585 2002-12-24  Karl Berry  <karl@gnu.org>
84586
84587         * config/config.guess: update from prep.
84588
84589 2002-12-24  Bruno Haible  <bruno@clisp.org>
84590
84591         General infrasructure.
84592         * m4/README: Rewritten.
84593         * m4/onceonly.m4: New file.
84594         * m4/onceonly_2_57.m4: New file.
84595
84596         Module atexit.
84597         * m4/atexit.m4: New file.
84598
84599         Module strtod.
84600         * m4/strtod.m4: New file.
84601
84602         Module strtol.
84603         * m4/strtol.m4: New file.
84604
84605         Module strtoul.
84606         * m4/strtoul.m4: New file.
84607
84608         Module memchr.
84609         * m4/memchr.m4: New file.
84610
84611         Module memcmp.
84612         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84613         (jm_FUNC_MEMCMP): Invoke it.
84614
84615         Module memcpy.
84616         * m4/memcpy.m4: New file.
84617
84618         Module memmove.
84619         * m4/memmove.m4: New file.
84620
84621         Module memset.
84622         * m4/memset.m4: New file.
84623
84624         Module strcspn.
84625         * m4/strcspn.m4: New file.
84626
84627         Module strpbrk.
84628         * m4/strpbrk.m4: New file.
84629
84630         Module strstr.
84631         * m4/strstr.m4: New file.
84632
84633         Module strerror.
84634         * m4/strerror.m4: New file.
84635
84636         Module mktime.
84637         * m4/mktime.m4: Renamed from jm-mktime.m4.
84638         (gl_PREREQ_MKTIME): New macro.
84639         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84640
84641         Module malloc.
84642         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84643         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84644         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84645
84646         Module realloc.
84647         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84648         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84649         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84650
84651         Module strftime.
84652         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84653         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84654         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84655         gl_TM_GMTOFF.
84656         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84657
84658         Module xalloc.
84659         * m4/xalloc.m4: New file.
84660
84661         Module alloca.
84662         * m4/alloca.m4: New file.
84663
84664         Module putenv.
84665         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84666         (jm_FUNC_PUTENV): Invoke it.
84667
84668         Module setenv.
84669         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84670         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84671         when invoked twice.
84672         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84673         gt_FUNC_SETENV.
84674
84675         Module memrchr.
84676         * m4/memrchr.m4: New file.
84677
84678         Module stpcpy.
84679         * m4/stpcpy.m4: New file.
84680
84681         Module strcase.
84682         * m4/strcase.m4: New file.
84683
84684         Module strdup.
84685         * m4/strdup.m4: New file.
84686
84687         Module strnlen.
84688         * m4/strnlen.m4: New file.
84689
84690         Module strndup.
84691         * m4/strndup.m4: New file.
84692
84693         Module xstrtod.
84694         * m4/xstrtod.m4: New file.
84695
84696         Module xstrtol.
84697         * m4/xstrtol.m4: New file.
84698
84699         Module getdate.
84700         * m4/getdate.m4: New file.
84701
84702         Module unlocked-io.
84703         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84704         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84705         * m4/jm-glibc-io.m4n: Remove file.
84706
84707         Module long-options.
84708         * m4/long-options.m4: New file.
84709
84710         Module md5.
84711         * m4/md5.m4: New file.
84712
84713         Module sha.
84714         * m4/sha.m4: New file.
84715
84716         Module getstr.
84717         * m4/getstr.m4: New file.
84718
84719         Module getline.
84720         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84721         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84722         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84723         simply getline. Infoke gl_PREREQ_GETLINE.
84724
84725         Module obstack.
84726         * m4/obstack.m4: New file.
84727
84728         Module hash.
84729         * m4/hash.m4: New file.
84730
84731         Module readtokens.
84732         * m4/readtokens.m4: New file.
84733
84734         Module strverscmp.
84735         * m4/strverscmp.m4: New file.
84736
84737         Module stdbool.
84738         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84739         OSF/1.
84740
84741         Module strtoll.
84742         * m4/strtoll.m4: New file.
84743
84744         Module strtoull.
84745         * m4/strtoull.m4: New file.
84746
84747         Module strtoimax.
84748         * m4/strtoimax.m4: New file.
84749
84750         Module strtoumax.
84751         * m4/strtoumax.m4: New file.
84752
84753         Module xstrtoimax.
84754         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84755         jm_AC_PREREQ_XSTRTOIMAX.
84756         Moved the strtol prerequisites to strtol.m4.
84757         Moved the strtoll prerequisites to strtoll.m4.
84758         Moved the strtoimax prerequisites to strtoimax.m4.
84759
84760         Module xstrtoumax.
84761         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84762         jm_AC_PREREQ_XSTRTOUMAX.
84763         Moved the strtoul prerequisites to strtoul.m4.
84764         Moved the strtoull prerequisites to strtoull.m4.
84765         Moved the strtoumax prerequisites to strtoumax.m4.
84766
84767         Module chown.
84768         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84769         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84770
84771         Module dup2.
84772         * m4/dup2.m4: New file.
84773
84774         Module ftruncate.
84775         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84776         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84777
84778         Module getgroups.
84779         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84780         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84781
84782         Module gettimeofday.
84783         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84784         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84785         gl_PREREQ_GETTIMEOFDAY.
84786
84787         Module mkdir.
84788         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84789         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84790
84791         Module mkstemp.
84792         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84793         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84794         jm_AC_TYPE_UINTMAX_T.
84795         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84796
84797         Module stat.
84798         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84799         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84800
84801         Module lstat.
84802         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84803         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84804
84805         Module timespec.
84806         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84807         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84808         * m4/st_mtim.m4: Indentation.
84809
84810         Module nanosleep.
84811         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84812         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84813         gl_PREREQ_NANOSLEEP.
84814
84815         Module regex.
84816         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84817         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84818         (gl_REGEX): New macro.
84819
84820         Module rename.
84821         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84822         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84823
84824         Module rmdir.
84825         * m4/rmdir.m4: New file.
84826
84827         Module utime.
84828         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84829         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84830         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84831
84832         Module dirname.
84833         * m4/dirname.m4: New file.
84834
84835         Module getopt.
84836         * m4/getopt.m4: New file.
84837
84838         Module unistd-safer.
84839         * m4/unistd-safer.m4: New file.
84840
84841         Module fnmatch.
84842         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84843         declaration.
84844         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84845         (gl_FUNC_FNMATCH_POSIX): New macro.
84846         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84847         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84848         simply fnmatch.
84849
84850         Module exclude.
84851         * m4/exclude.m4: New file.
84852
84853         Module human.
84854         * m4/human.m4: New file.
84855
84856         Module acl.
84857         * m4/acl.m4: Nop.
84858
84859         Module backupfile.
84860         * m4/backupfile.m4: New file.
84861         * m4/d-ino.m4: Indentation.
84862
84863         Module fsusage.
84864         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84865         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84866         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84867
84868         Module dirfd.
84869         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84870         requirements.
84871
84872         Module euidaccess.
84873         * m4/euidaccess.m4: New file.
84874
84875         Module file-type.
84876         * m4/file-type.m4: New file.
84877
84878         Module fileblocks.
84879         * m4/fileblocks.m4: New file.
84880
84881         Module filemode.
84882         * m4/filemode.m4: New file.
84883
84884         Module isdir.
84885         * m4/isdir.m4: New file.
84886
84887         Module lchown.
84888         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84889         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84890
84891         Module makepath.
84892         * m4/makepath.m4: New file.
84893
84894         Module modechange.
84895         * m4/modechange.m4: New file.
84896
84897         Module mountlist.
84898         * m4/mountlist.m4: New file.
84899         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84900         Indentation.
84901
84902         Module path-concat.
84903         * m4/path-concat.m4: New file.
84904
84905         Module pathmax.
84906         * m4/pathmax.m4: New file.
84907
84908         Module same.
84909         * m4/same.m4: New file.
84910
84911         Module save-cwd.
84912         * m4/save-cwd.m4: New file.
84913
84914         Module savedir.
84915         * m4/savedir.m4: New file.
84916
84917         Module xgetcwd.
84918         * m4/xgetcwd.m4: New file.
84919         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84920
84921         Module xreadlink.
84922         * m4/xreadlink.m4: New file.
84923
84924         Module safe-read.
84925         * m4/safe-read.m4: New file.
84926
84927         Module safe-write.
84928         * m4/safe-write.m4: New file.
84929
84930         Module closeout.
84931         * m4/closeout.m4: New file.
84932
84933         Module stdio-safer.
84934         * m4/stdio-safer.m4: New file.
84935
84936         Module getpass.
84937         * m4/getpass.m4: New file.
84938
84939         Module getugroups.
84940         * m4/getugroups.m4: New file.
84941
84942         Module group-member.
84943         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84944         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84945
84946         Module idcache.
84947         * m4/idcache.m4: New file.
84948
84949         Module userspec.
84950         * m4/userspec.m4: New file.
84951
84952         Module gettime.
84953         * m4/clock_time.m4: New file.
84954         * m4/gettime.m4: New file.
84955
84956         Module settime.
84957         * m4/settime.m4: New file.
84958
84959         Module posixtm.
84960         * m4/posixtm.m4: New file.
84961
84962         Module gethostname.
84963         * m4/gethostname.m4: New file.
84964
84965         Module canon-host.
84966         * m4/canon-host.m4: New file.
84967
84968         Module gettext.
84969         * m4/codeset.m4: New file, from gettext-0.11.5.
84970         * m4/gettext.m4: New file, from gettext-0.11.5.
84971         * m4/glibc21.m4: New file, from gettext-0.11.5.
84972         * m4/iconv.m4: New file, from gettext-0.11.5.
84973         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84974         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84975         * m4/inttypes.m4: New file, from gettext-0.11.5.
84976         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84977         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84978         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84979         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84980         * m4/lib-link.m4: New file, from gettext-0.11.5.
84981         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84982         * m4/progtest.m4: New file, from gettext-0.11.5.
84983         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84984         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84985         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84986
84987         Module localcharset.
84988         * m4/localcharset.m4: New file.
84989
84990         Module hard-locale.
84991         * m4/hard-locale.m4: New file.
84992
84993         Module mbswidth.
84994         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84995         onceonly macros.
84996         * m4/mbrtowc.m4: Add comment.
84997
84998         Module memcasecmp.
84999         * m4/memcasecmp.m4: New file.
85000
85001         Module memcoll.
85002         * m4/memcoll.m4: New file.
85003
85004         Module unicodeio.
85005         * m4/unicodeio.m4: New file.
85006
85007         Module rpmatch.
85008         * m4/rpmatch.m4: New file.
85009
85010         Module yesno.
85011         * m4/yesno.m4: New file.
85012
85013         Module exitfail.
85014         * m4/exitfail.m4: New file.
85015
85016         Module c-stack.
85017         * m4/c-stack.m4 (gl_C_STACK): New macro.
85018         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85019
85020         Module error.
85021         * m4/error.m4 (gl_ERROR): New macro.
85022         (jm_PREREQ_ERROR): Use onceonly macros.
85023
85024         Module fatal.
85025         * m4/fatal.m4: New file.
85026
85027         Module getloadavg.
85028         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85029         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85030
85031         Module getpagesize.
85032         * m4/getpagesize.m4: New file.
85033
85034         Module getusershell.
85035         * m4/getusershell.m4: New file.
85036
85037         Module physmem.
85038         * m4/physmem.m4: New file.
85039
85040         Module posixver.
85041         * m4/posixver.m4: New file.
85042
85043         Module quotearg.
85044         * m4/quotearg.m4: New file.
85045
85046         Module quote.
85047         * m4/quote.m4: New file.
85048
85049         Module readutmp.
85050         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85051
85052         Module sig2str.
85053         * m4/sig2str.m4: New file.
85054
85055         Other.
85056         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85057         ulonglong.m4.
85058         * m4/intmax_t.m4: New file.
85059         * m4/d-type.m4: Indentation.
85060         * m4/jm-macros.m4: Update.
85061         * m4/prereq.m4 (jm_PREREQ): Update.
85062         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85063         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85064         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85065         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85066         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85067         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85068         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85069         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85070         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85071         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85072         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85073         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85074         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85075         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85076         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85077         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85078         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85079         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85080         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85081
85082 2002-12-24  Bruno Haible  <bruno@clisp.org>
85083
85084         * MODULES.txt: Update according to m4/ changes.
85085
85086         Module gettext.
85087         * config.rpath: New file, from gettext-0.11.5.
85088
85089         * modules/*: New module descriptions.
85090         * gnulib-tool: New file.
85091         * MODULES.html.sh: New file.
85092
85093 2002-12-21  Karl Berry  <karl@gnu.org>
85094
85095         * doc/fdl.texi: update to version 1.2.
85096
85097 2002-12-19  Karl Berry  <karl@gnu.org>
85098
85099         * config/config.guess: update from prep.
85100
85101 2002-12-18  Bruno Haible  <bruno@clisp.org>
85102
85103         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85104         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85105
85106 2002-12-17  Bruno Haible  <bruno@clisp.org>
85107
85108         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85109         stdlib.h, string.h.
85110
85111 2002-12-17  Bruno Haible  <bruno@clisp.org>
85112
85113         * lib/canon-host.c (strdup): Remove unused declaration.
85114
85115         * lib/fsusage.c: Include full_read.h.
85116         (get_fs_usage): Use full_read instead of safe_read.
85117
85118         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85119
85120 2002-12-12  Karl Berry  <karl@gnu.org>
85121
85122         * config/config.guess: update from prep.
85123
85124 2002-12-11  Bruno Haible  <bruno@clisp.org>
85125
85126         * m4/setenv.m4: New file, from gettext-0.11.5.
85127
85128 2002-12-11  Bruno Haible  <bruno@clisp.org>
85129
85130         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85131         not unsetenv().
85132         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85133         modifications:
85134
85135         2002-12-11  Bruno Haible  <bruno@clisp.org>
85136
85137                 * setenv.c (alloca): Fall back to malloc.
85138                 (freea): New macro.
85139                 (setenv): Use freea() to free memory allocated with alloca().
85140
85141         2002-11-13  Bruno Haible  <bruno@clisp.org>
85142
85143                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85144                 function declarations.
85145                 * unsetenv.c (unsetenv): Likewise.
85146
85147         2002-03-04  Bruno Haible  <bruno@clisp.org>
85148
85149                 Portability to AIX 4.3.3.
85150                 * unsetenv.c: New file, extracted from setenv.c.
85151                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85152
85153         2001-12-20  Bruno Haible  <bruno@clisp.org>
85154
85155                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85156                 use malloc instead. For SunOS 4.
85157
85158         2001-12-11  Bruno Haible  <bruno@clisp.org>
85159
85160                 * setenv.c: Declare alloca.
85161                 (compar_fn_t): New typedef.
85162                 (KNOWN_VALUE, STORE_VALUE): Use it.
85163
85164         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85165         setenv.h.
85166
85167 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85168
85169         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85170         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85171         Choose values that are less likely to collide with system fnmatch
85172         options.
85173         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85174         defined (e.g., a pure POSIX system).
85175         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85176         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85177
85178 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85179
85180         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85181         a pain in practice to deal with generated m4 files.  This change
85182         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85183
85184         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85185         and jm-glibc-io.m4, as they are no longer a special case.
85186         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85187         kludge and the auto-generation stuff.  Check only whether the
85188         functions are declared, not whether they exist, since older hosts
85189         that don't declare the functions can't use the optimization anyway.
85190
85191 2002-12-06  Jim Meyering  <jim@meyering.net>
85192
85193         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85194
85195         Merge in changes from libc's misc/error.c, in preparation
85196         for the merge of gnulib's changes back into libc.
85197
85198         * lib/error.c (_): Define only if not already defined.
85199         Move definition to follow all #include directives.
85200         Include unlocked-io.h only if !_LIBC.
85201         [_LIBC]: Include <libio/libioP.h>.
85202         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85203         (fflush): Tweak definition to use INTUSE.
85204         (putc): Define.
85205
85206 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85207
85208         * lib/alloca.c [defined emacs]: Include "lisp.h".
85209         (xalloc_die) [defined emacs]: New macro.
85210         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85211         [! defined emacs]: Include <xalloc.h>.
85212         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85213         (pointer): Typedef to POINTER_TYPE *.
85214         (malloc): Remove decl; we now always use xmalloc.
85215         (alloca): Use old-style definition, since Emacs needs this.
85216         Check for arithmetic overflow when computing combined size.
85217
85218 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85219
85220         Do not generate unlocked-io.h automatically, since it's easier to
85221         maintain it by hand.
85222
85223         * lib/unlocked-io.h: New file, from GNU diffutils,
85224         but with proper copyright notice and attribution.
85225         * lib/gen-uio: Remove.
85226         * lib/Makefile.am: Add copyright notice.
85227         (libfetish_a_SOURCES): Add unlocked-io.h.
85228         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85229         (DISTCLEANFILES, io_functions): Remove macros.
85230         (EXTRA_DIST): Remove gen_uio.
85231         (unlocked-io.h): Remove rule.
85232
85233 2002-12-04  Jim Meyering  <jim@meyering.net>
85234
85235         Reflect the fact that stat.c and lstat.c are no longer generated.
85236         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85237         (DISTCLEANFILES): Likewise.
85238         (EXTRA_DIST): Likewise.
85239         (all_local): Don't depend on stat.c or lstat.c.
85240         (stat.c, lstat.c): Remove rules.
85241         (EXTRA_DIST): Remove xstat.in.
85242
85243         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85244         * lib/stat.c: New file.  Contents mostly from xstat.in.
85245         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85246         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85247
85248         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85249         too.
85250         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85251
85252 2002-12-03  Jim Meyering  <jim@meyering.net>
85253
85254         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85255         but not semantics, to minimize the differences between these two files.
85256         (safe_read): Change comment to mention SAFE_READ_ERROR.
85257
85258         * lib/safe-read.c (IS_EINTR): Define.
85259         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85260
85261 2002-12-02  Jim Meyering  <jim@meyering.net>
85262
85263         * lib/safe-read.c (EINTR): Define.
85264         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85265         (INT_MAX): Provide fallback.
85266         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85267
85268         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85269
85270 2002-12-02  Bruno Haible  <bruno@clisp.org>
85271
85272         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85273         Define, taken from safe-read.c.
85274         (INT_MAX): Provide fallback.
85275         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85276         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85277
85278         * lib/safe-read.c (EINTR): Remove definition.
85279         (safe_read): Don't use EINTR if it is absent.
85280
85281 2002-12-01  Jim Meyering  <jim@meyering.net>
85282
85283         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85284         zero.
85285         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85286
85287 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85288
85289         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85290         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85291         with `if (! (value < limit)) abort ();', for readability.
85292
85293 2002-11-26  Karl Berry  <karl@gnu.org>
85294
85295         * lib/strdup.c: copy from libc again, with jim's ok.
85296         * lib/.cppi-disable: re-add strdup.c
85297
85298 2002-11-25  Karl Berry  <karl@gnu.org>
85299
85300         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85301         instead of "strtol.c".
85302
85303 2002-11-25  Karl Berry  <karl@gnu.org>
85304
85305         * config/install-sh: update from automake for variable quoting, $0 in
85306         error msgs, etc.
85307
85308         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85309         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85310         entry.
85311
85312 2002-11-25  Jim Meyering  <jim@meyering.net>
85313
85314         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85315
85316 2002-11-24  Karl Berry  <karl@gnu.org>
85317
85318         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85319         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85320
85321 2002-11-24  Jim Meyering  <jim@meyering.net>
85322
85323         Update from coreutils:
85324
85325         * lib/mktime.c: Merge in changes from libc.
85326
85327         Avoid a link-time failure on some Linux systems.
85328         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85329         (otherwise).
85330         (__mon_yday): Declare with the STATIC attribute.
85331         (__mktime_internal): Likewise.
85332         Based on a report from Greg Schafer.
85333
85334 2002-11-23  Jim Meyering  <jim@meyering.net>
85335
85336         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85337         Use `unsigned', not `int', as type of index.
85338
85339         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85340
85341         * lib/fsusage.c: Remove unneeded parentheses around operands of
85342         `defined'.
85343
85344 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85345
85346         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85347         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85348         so that we can be included first.
85349         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85350         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85351         No need to include stddef.h or sys/types.h any more.
85352         Surround local include files with "", not "<>".
85353         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85354         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85355         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85356         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85357         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85358         (ISPRINT): Remove; no longer needed now that we assume C89.
85359
85360         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85361         Preserve errno.
85362
85363         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85364         quotearg_char): Use SIZE_MAX rather than
85365         (size_t) -1 when we are talking about "infinity".
85366
85367         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85368
85369 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85370
85371         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85372         hint that one should use `if (! x) abort ();' rather than `assert
85373         (x);', and anyway it's one less thing to worry about configuring.
85374         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85375         hash_rehash, hash_insert): Use abort rather than assert.
85376
85377 2002-11-22  Bruno Haible  <bruno@clisp.org>
85378
85379         * lib/safe-read.h: Assume C89. Add comments.
85380         (safe_read): Change return type to size_t.
85381         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85382         byte counts > SSIZE_MAX correctly.
85383         * lib/safe-write.h: New file.
85384         * lib/safe-write.c: New file.
85385         * lib/full-read.h: New file.
85386         * lib/full-read.c: New file.
85387         * lib/full-write.h: Assume C89. Add comments.
85388         * lib/full-write.c: Include safe-write.h.
85389         (full_write): Rewritten to use safe_write.
85390         Suggested by Jim Meyering and Paul Eggert.
85391
85392 2002-11-21  Jim Meyering  <jim@meyering.net>
85393
85394         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85395
85396         Merge in changes from the coreutils.
85397
85398         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85399         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85400         <stdint.h>.
85401         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85402         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85403         int.  Work more efficiently if X is the same width as uintmax_t.
85404         Do not compare X to -1, to avoid bogus compiler warning.
85405         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85406         Don't assume that f_frsize and f_bsize are the same type.
85407
85408         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85409         warning on FreeBSD.
85410
85411         * lib/makepath.c (make_path): Restore umask *before* creating the final
85412         component.
85413         (make_path): Minor reformatting.
85414
85415         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85416         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85417         HAVE_MALLOC/HAVE_REALLOC.
85418
85419         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85420         dummy ones.  At least on GNU/Linux systems, `auto' means something
85421         else.
85422         From Michael Stone.
85423
85424 2002-11-21  Bruno Haible  <bruno@clisp.org>
85425
85426         Remove case insensitive option matching.
85427         * lib/argmatch.h (argcasematch): Remove declaration.
85428         (ARGCASEMATCH): Remove macro.
85429         (__xargmatch_internal): Remove case_sensitive argument.
85430         (XARGMATCH): Update.
85431         (XARGCASEMATCH): Remove macro.
85432         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85433         case_sensitive argument.
85434         (argcasematch): Remove function.
85435         (__xargmatch_internal): Remove case_sensitive argument.
85436         (main): Use XARGMATCH instead of XARGCASEMATCH.
85437
85438         * lib/xmalloc.c: Change compile-time error message. Add comment about
85439         required autoconf version.
85440
85441 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85442
85443         Merge argmatch cleanups from Bison.  Assume C89.
85444
85445         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85446         Include stdlib.h, for EXIT_FAILURE.
85447         Always include <string.h>, since we assume C89.
85448         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85449         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85450         Include <stddef.h> instead, since it's all we need for size_t.
85451         (PARAMS): Remove.  All uses removed.
85452         (ARRAY_CARDINALITY): Do not bother to #undef.
85453         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85454         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85455         Remove unnecessary parentheses.
85456         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85457         Insert necessary parentheses.
85458         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85459         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85460
85461 2002-11-19  Bruno Haible  <bruno@clisp.org>
85462
85463         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85464         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85465
85466         * lib/mbswidth.h (PARAMS): Remove macro.
85467         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85468         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85469
85470         * lib/gcd.h (PARAMS): Remove macro.
85471         (gcd): Use ANSI C function declarations.
85472         * lib/gcd.c (gcd): Likewise.
85473
85474 2002-11-15  Bruno Haible  <bruno@clisp.org>
85475
85476         * lib/strcspn.c: Include <stddef.h>.
85477         (strcspn): Use ANSI C function declaration. Change return type to
85478         size_t. Use NULL.
85479         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85480         (strpbrk): Use NULL.
85481         * lib/strpbrk.h (PARAMS): Remove macro.
85482         (strpbrk): Use ANSI C function declaration.
85483         * lib/strstr.c: Don't include <sys/types.h>.
85484         * lib/strstr.h (PARAMS): Remove macro.
85485         (strstr): Use ANSI C function declarations.
85486
85487 2002-11-14  Karl Berry  <karl@gnu.org>
85488
85489         * config/mkinstalldirs: `do' on separate line, instead of
85490         `for var; do'.
85491
85492 2002-11-06  Bruno Haible  <bruno@clisp.org>
85493
85494         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85495         * lib/gcd.c (gcd): Likewise.
85496
85497 2002-11-05  Bruno Haible  <bruno@clisp.org>
85498
85499         * lib/gcd.h: New file, from gettext-0.11.5.
85500         * lib/gcd.c: New file, from gettext-0.11.5.
85501
85502 2002-11-05  Bruno Haible  <bruno@clisp.org>
85503
85504         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85505         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85506         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85507         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85508
85509         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85510         <libintl.h>.
85511         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85512         <libintl.h>.
85513
85514         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85515         * lib/human.c: Include gettext.h instead of <libintl.h>.
85516         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85517         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85518         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85519         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85520         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85521         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85522         (textdomain): Remove definition.
85523         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85524
85525         * lib/long-options.c: Remove include of <libintl.h> and definition of
85526         _.
85527         * lib/same.c: Remove include of <libintl.h> and definition of _.
85528
85529 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85530
85531         * lib/config.charset: A few additions for Solaris.
85532
85533 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85534
85535         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85536         * lib/localcharset.c (locale_charset): Declare as extern "C".
85537
85538 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85539
85540         * lib/config.charset: msdos in uk_UA uses CP1125.
85541
85542 2002-11-04  Bruno Haible  <bruno@clisp.org>
85543
85544         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85545         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85546         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85547         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85548         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85549
85550 2002-11-04  Bruno Haible  <bruno@clisp.org>
85551
85552         * lib/localcharset.c (locale_charset): Don't return an empty string.
85553
85554 2002-11-04  Bruno Haible  <bruno@clisp.org>
85555
85556         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85557         aliases.
85558
85559 2002-11-04  Bruno Haible  <bruno@clisp.org>
85560
85561         * lib/config.charset: Update for newest glibc. Add canonical names
85562         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85563
85564 2002-11-04  Bruno Haible  <bruno@clisp.org>
85565
85566         * lib/config.charset: Add support for NetBSD.
85567
85568 2002-11-04  Bruno Haible  <bruno@clisp.org>
85569
85570         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85571
85572 2002-11-01  Bruno Haible  <bruno@clisp.org>
85573
85574         * configure.in: Add AC_CONFIG_AUX_DIR call.
85575         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85576         test/Makefile.
85577         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85578
85579 2002-09-28  Karl Berry  <karl@gnu.org>
85580
85581         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85582         installed automake until the next release, since changes have been
85583         made.
85584
85585 2002-09-25  Karl Berry  <karl@gnu.org>
85586
85587         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85588         * lib/getopt*: copy from libc/posix.
85589         * lib/gettext.h: copy from gettext.
85590         * lib/.cppi-disable: add strdup.c, gettext.h.
85591
85592 2002-09-25  Karl Berry  <karl@gnu.org>
85593
85594         * config/srclist.txt: enable gettext.h check.
85595         * config/config.{guess,sub}: update from prep.
85596         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85597                 from automake 1.6.3.
85598         See srclist*.
85599
85600 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85601
85602         * regex.c (PATFETCH): Remove the translating fetch.
85603         (PATFETCH_RAW): Rename to PATFETCH.
85604         (set_image_of_range): New fun.
85605         (SET_RANGE_TABLE_WORK_AREA): Use it.
85606         (regex_compile): Don't translate the pattern chars so eagerly.
85607         Only do it when inserting an `exactn' bytecode or when handling
85608         a char-range.
85609         (mutually_exclusive_p): Avoid empty statement.
85610
85611 2002-07-06  Jim Meyering  <meyering@lucent.com>
85612
85613         * m4/README: Don't mention Makefile.am.in.
85614         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85615
85616 2002-07-01  Jim Meyering  <meyering@lucent.com>
85617
85618         * lib/c-stack.c: Include sys/time.h.
85619         From Volker Borchert.
85620
85621 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85622
85623         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85624
85625 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85626
85627         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85628         New macro.  Use it uniformly instead of
85629         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85630         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85631         reported by Vin Shelton.
85632
85633 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85634
85635         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85636         Do not assume SA_SIGINFO behavior.
85637         Bug reported by Jim Meyering on NetBSD 1.5.2.
85638
85639 2002-06-22  Jim Meyering  <meyering@lucent.com>
85640
85641         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85642         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85643
85644         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85645         now that configure.ac uses AC_GNU_SOURCE.
85646         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85647         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85648
85649         Update to latest tools.  Suggestions from Paul Eggert.
85650         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85651         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85652         * m4/fnmatch.m4: Likewise.
85653         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85654         to AC_HEADER_STDBOOL
85655
85656 2002-06-22  Jim Meyering  <meyering@lucent.com>
85657
85658         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85659         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85660
85661 2002-06-22  Jim Meyering  <meyering@lucent.com>
85662
85663         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85664
85665         * lib/exitfail.c, exitfail.h: Likewise.
85666         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85667
85668         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85669         of fnmatch.h.
85670         (EXTRA_DIST): Add fnmatch_loop.c.
85671         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85672
85673         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85674         * lib/fnmatch.c: Update from diffutils-2.8.2.
85675         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85676         * lib/fnmatch.h: Remove file.
85677
85678 2002-06-21  Jim Meyering  <meyering@lucent.com>
85679
85680         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85681         * m4/mbrtowc.m4: Likewise.
85682
85683         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85684         * m4/mbswidth.m4: Reflect name change:
85685         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85686         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85687
85688         * m4/lib-link.m4: Update from gettext-0.11.2.
85689         * m4/gettext.m4: Likewise.
85690
85691         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85692         From Alfred M. Szmidt.
85693
85694 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85695
85696         * lib/file-type.h: Report an error if neither S_ISREG nor
85697         S_IFREG is defined, instead of using a test specific to glibc
85698         2.2.  This should be safe, since POSIX requires S_ISREG and
85699         Unix Version 7 had S_IFREG.  We don't need to check for
85700         <sys/types.h> since we don't use any symbols that it defines.
85701
85702 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85703
85704         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85705         $@-t, so that each temporary file name is unique and valid in the first
85706         8 characters, for operation under DOS.
85707
85708 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85709
85710         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85711
85712 2002-06-15  Jim Meyering  <meyering@lucent.com>
85713
85714         Work even with DJGPP 2.03, which lacks support for symlinks.
85715         From Richard Dawe.
85716         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85717         is defined.
85718         * lib/lchown.c (S_ISLNK): Likewise.
85719
85720 2002-06-15  Jim Meyering  <meyering@lucent.com>
85721
85722         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85723         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85724         have been included before this file.
85725
85726 2002-06-14  Jim Meyering  <meyering@lucent.com>
85727
85728         * lib/file-type.h: Use the version from diffutils-2.8.2.
85729         * lib/file-type.c: Likewise.
85730
85731 2002-06-07  Jim Meyering  <meyering@lucent.com>
85732
85733         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85734         They're needed at least for NetBSD 1.5.2.
85735         ($statxfs_includes): Include those same headers.
85736         ($statxfs_includes): Include sys/vfs.h if available.
85737         ($statxfs_includes): Likewise for sys/statvfs.h.
85738         Check for the following members in both structs statfs and statvfs:
85739         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85740
85741 2002-06-01  Jim Meyering  <meyering@lucent.com>
85742
85743         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85744         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85745
85746 2002-05-28  Jim Meyering  <meyering@lucent.com>
85747
85748         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85749         Reported by Volker Borchert.
85750
85751 2002-05-27  Jim Meyering  <meyering@lucent.com>
85752
85753         Fix a problem seen only on nonconforming systems whereby ls.c's
85754         use of localtime, and then of gettimeofday would cause trouble:
85755         the localtime call used to initialize rpl_gettimeofday's save
85756         mechanism would clobber ls's current local time information so
85757         that in any long listing the first file would always be listed
85758         with date 1970-01-01.  Analysis by Volker Borchert.
85759
85760         * lib/gettimeofday.c (localtime): Undefine.
85761         (rpl_localtime): New function.
85762
85763 2002-05-27  Jim Meyering  <meyering@lucent.com>
85764
85765         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85766         localtime.
85767
85768         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85769         use the replacement function; it wouldn't resolve at link time.
85770         Reported by Volker Borchert.
85771
85772 2002-05-22  Jim Meyering  <meyering@lucent.com>
85773
85774         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85775         file-type.h.
85776         * lib/file-type.h: New file.
85777         * lib/file-type.c (file_type): New file/function.  Extracted from
85778         diffutils.
85779
85780 2002-04-30  Jim Meyering  <meyering@lucent.com>
85781
85782         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85783
85784 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85785
85786         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85787
85788 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85789
85790         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85791         Do not check for alloca.h (no longer used) or stdbool.h (was never
85792         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85793
85794 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85795
85796         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85797
85798 2002-04-29  Jim Meyering  <meyering@lucent.com>
85799
85800         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85801         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85802         Use AC_FUNC_STRNLEN here instead.
85803
85804         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85805         With autoconf-2.53a, it's part of AC_PROG_CC.
85806
85807 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85808
85809         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85810         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85811
85812 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85813
85814         * lib/sig2str.h, lib/sig2str.c: New files.
85815         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85816
85817 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85818
85819         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85820         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85821         of 127, since 64 is the largest conceivable number for ancient
85822         nonstandard hosts.
85823         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85824
85825 2002-04-28  Jim Meyering  <meyering@lucent.com>
85826
85827         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85828
85829 2002-04-24  Jim Meyering  <meyering@lucent.com>
85830
85831         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85832         (jm_PREREQ): Use it.
85833
85834         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85835         mach/mach.h fcntl.h.
85836         Check for this function: setlocale.
85837
85838 2002-04-24  Jim Meyering  <meyering@lucent.com>
85839
85840         * lib/gettext.h: New file, from Gettext.
85841         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85842         (libfetish_a_SOURCES): Add gettext.h.
85843
85844 2002-04-16  Jim Meyering  <meyering@lucent.com>
85845
85846         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85847         ut_pid, ut_id, ut_exit.
85848
85849 2002-04-16  Jim Meyering  <meyering@lucent.com>
85850
85851         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85852         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85853         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85854
85855 2002-04-12  Jim Meyering  <meyering@lucent.com>
85856
85857         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85858         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85859         existence of the getmntinfo function.  Needed for Darwin 5.3.
85860
85861         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85862         This is necessary at least on Darwin 5.3.
85863
85864         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85865         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85866         strnlen.o in the library, and that makes some versions of ranlib
85867         object.
85868
85869 2002-04-12  Jim Meyering  <meyering@lucent.com>
85870
85871         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85872
85873 2002-04-09  Jim Meyering  <meyering@lucent.com>
85874
85875         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85876         to be more precise.  Rather than saying we're checking whether the
85877         function `works', say what we're testing.
85878         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85879         Reported by Bruno Haible.
85880
85881 2002-03-10  Jim Meyering  <meyering@lucent.com>
85882
85883         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85884         Suggestion from Santiago Vila.
85885
85886 2002-03-08  Jim Meyering  <meyering@lucent.com>
85887
85888         * lib/rename.c: Mention that this wrapper is needed also on
85889         mips-dec-ultrix4.4 systems.
85890
85891 2002-03-02  Jim Meyering  <meyering@lucent.com>
85892
85893         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85894         not HAVE_CLOCK_SETTIME.
85895
85896 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85897
85898         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85899         Check for clock_settime.
85900
85901 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85902
85903         * lib/nanosleep.h: Rename to....
85904         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85905
85906         * lib/gettime.c: New file.
85907         * lib/settime.c: New file.
85908         * lib/stime.c: Remove.
85909
85910         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85911         timespec.h.  Remove nanosleep.h.
85912
85913 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85914
85915         * m4/acl.m4: New file.
85916         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85917         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85918
85919 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85920
85921         * lib/acl.c, lib/acl.h: New files.
85922         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85923
85924 2002-02-24  Jim Meyering  <meyering@lucent.com>
85925
85926         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85927         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85928         cause trouble.  Reported by Nelson Beebe.
85929
85930 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85931
85932         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85933         compilers that don't know that xalloc_die never returns.
85934
85935 2002-02-20  Jim Meyering  <meyering@lucent.com>
85936
85937         * lib/getdate.c: Regenerate using bison-1.33.
85938
85939 2002-02-17  Jim Meyering  <meyering@lucent.com>
85940
85941         * config/config.guess (main): Don't use `head -1'; it's no longer
85942         portable. Use `sed 1q' instead.
85943
85944 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85945
85946         * m4/codeset.m4: Upgrade to gettext-0.11.
85947         * m4/gettext.m4: Upgrade to gettext-0.11.
85948         * m4/glibc21.m4: Upgrade to gettext-0.11.
85949         * m4/iconv.m4: Upgrade to gettext-0.11.
85950         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85951         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85952         * m4/lib-ld.m4: New file, from gettext-0.11.
85953         * m4/lib-link.m4: New file, from gettext-0.11.
85954         * m4/lib-prefix.m4: New file, from gettext-0.11.
85955         * m4/progtest.m4: Upgrade to gettext-0.11.
85956
85957 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85958
85959         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85960         (jm_PREREQ): Use it.
85961
85962 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85963
85964         * lib/posixver.c, lib/posixver.h: New files.
85965         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85966
85967 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85968             Bruno Haible  <bruno@clisp.org>
85969
85970         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85971         (fwrite_success_callback): New declaration.
85972         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85973         print_unicode_char. Call failure callback instead of error.
85974         (fwrite_success_callback): New function.
85975         (exit_failure_callback): New function.
85976         (fallback_failure_callback): New function.
85977         (print_unicode_char): Call unicode_to_mb.
85978
85979 2002-01-26  Jim Meyering  <meyering@lucent.com>
85980
85981         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85982         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85983
85984 2002-01-26  Jim Meyering  <meyering@lucent.com>
85985
85986         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85987
85988 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85989
85990         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85991
85992 2002-01-22  Jim Meyering  <meyering@lucent.com>
85993
85994         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85995         Otherwise, some versions of automake would omit the rule that makes
85996         Makefile from Makefile.in.
85997
85998 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85999
86000         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86001         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86002         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86003         (memcoll): Set errno to zero if there is no error.
86004
86005         * lib/quotearg.c (quotearg_buffer_restyled):
86006         Fix bug with quoting buffers containing NUL when backslashing escapes.
86007         This bug was exposed by the other changes in this patch.
86008         (quotearg_n_options): New arg ARGSIZE.
86009         All callers changed.
86010         (quoting_options_from_style): New function.
86011         (quotearg_n_style): Use it.
86012         (quotearg_n_style_mem): New function.
86013
86014         * lib/quotearg.h (quotearg_n_style_mem): New function.
86015
86016 2002-01-19  Jim Meyering  <meyering@lucent.com>
86017
86018         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86019         Remove useless quotes: DF_PROG="df".
86020         * m4/strnlen.m4: New file.
86021
86022 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86023
86024         * lib/backupfile.c (ISDIGIT): Comment fix.
86025         * lib/getdate.y (ISDIGIT): Likewise.
86026         * lib/posixtm.c (ISDIGIT, year): Likewise.
86027         * lib/strverscmp.c (ISDIGIT): Likewise.
86028         * lib/userspec.c (ISDIGIT): Likewise.
86029
86030 2002-01-16  Jim Meyering  <meyering@lucent.com>
86031
86032         * lib/getdate.y: Add three semicolons, each just before a closing
86033         brace. Bison (as of version 1.31) no longer papers over that mistake.
86034
86035 2002-01-05  Jim Meyering  <meyering@lucent.com>
86036
86037         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86038
86039 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86040
86041         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86042         not silently exit merely because the output buffer happens to
86043         have nothing pending.
86044
86045 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86046
86047         See the big note in ../ChangeLog.
86048         * lib/human.c (suffixes): Prefer K to k for 1024.
86049         (generate_suffix_backwards): New function.
86050         (human_readable_inexact): Use it.
86051         * lib/xstrtol.c (__xstrtol): If there is no number but there
86052         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86053         Accept 'K' as well as 'k'.
86054
86055 2001-12-15  Jim Meyering  <meyering@lucent.com>
86056
86057         * lib/regex.h (__restrict_arr): Update from libc.
86058
86059         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86060         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86061         (STREQ): Define.
86062
86063 2001-12-14  Jim Meyering  <meyering@lucent.com>
86064
86065         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86066         Suggestion from Bruno Haible.
86067
86068 2001-12-10  Jim Meyering  <meyering@lucent.com>
86069
86070         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86071         xrealloc, Instead, include "xalloc.h".
86072         (initbuffer): Don't cast xmalloc return value to char*.
86073         (readline): Reword comment.
86074         Don't cast xrealloc return value to char*
86075         Return NULL, not 0.
86076
86077 2001-12-09  Jim Meyering  <meyering@lucent.com>
86078
86079         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86080         about `signed and unsigned type in conditional expression'.
86081         * lib/posixtm.c (posix_time_parse): Likewise.
86082
86083         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86084
86085         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86086         to avoid a pedantic warning.
86087
86088         * lib/getstr.c: Don't include assert.h.
86089         (getstr): Remove warning-evoking assertions.
86090         Return -1 if offset parameter is out of bounds.
86091         Change the type of a local from int to size_t.
86092
86093         * lib/strftime.c (my_strftime_localtime_r): Include this function
86094         definition in the `#if ! HAVE_TM_GMTOFF' block.
86095
86096         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86097         Include xalloc.h instead.
86098
86099 2001-12-02  Jim Meyering  <meyering@lucent.com>
86100
86101         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86102         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86103         included.
86104
86105         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86106         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86107
86108 2001-11-30  Akim Demaille  <akim@epita.fr>
86109
86110         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86111         before being defined.
86112
86113 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86114
86115         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86116         First arg is int, not unsigned.
86117         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86118         (SIZE_MAX, UINT_MAX): New macros.
86119         (quotearg_n_options): Abort if N is negative.
86120         Avoid overflow check on hosts where size_t is 64 bits and int
86121         is 32 bits, as overflow is impossible there.
86122         Fix off-by-one typo that caused unnecessary reallocation.
86123
86124 2001-11-27  Jim Meyering  <meyering@lucent.com>
86125
86126         * lib/tempname.c: Merge with version from libc.
86127         * lib/regex.c: Likewise.
86128
86129         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86130         systems for which STDC_HEADERS is 0, it was not included, resulting in
86131         a warning about an integer-to-pointer conversion problem with getenv.
86132         Reported by Volker Borchert.
86133
86134 2001-11-26  Jim Meyering  <meyering@lucent.com>
86135
86136         * lib/gtod.h: Remove file.
86137         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86138         * lib/gettimeofday.c: Don't include gtod.h.
86139         (GTOD_init): Remove function.
86140         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86141         Suggestion from Volker Borchert.
86142
86143 2001-11-23  Jim Meyering  <meyering@lucent.com>
86144
86145         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86146         it.
86147         * lib/hash.c (struct hash_table): Define it here instead.
86148
86149 2001-11-22  Jim Meyering  <meyering@lucent.com>
86150
86151         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86152
86153 2001-11-20  Jim Meyering  <meyering@lucent.com>
86154
86155         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86156         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86157
86158 2001-11-19  Jim Meyering  <meyering@lucent.com>
86159
86160         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86161         directory.  Use "conftestXXXXXX" as the template.
86162         Suggestion from Paul Eggert.
86163
86164         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86165         immediately, so the test doesn't mistakenly hit the max-open-files
86166         limit.
86167
86168 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86169
86170         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86171         (TEMPORARIES): New macro.
86172         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86173         removes an artificial limitation (e.g. HP-UX 10.20, where
86174         TMP_MAX is 17576).
86175
86176 2001-11-18  Jim Meyering  <meyering@lucent.com>
86177
86178         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86179
86180 2001-11-18  Jim Meyering  <meyering@lucent.com>
86181
86182         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86183         on SunOS 4.
86184
86185         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86186         files will be created before anything else.
86187
86188 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86189
86190         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86191         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86192
86193 2001-11-17  Jim Meyering  <meyering@lucent.com>
86194
86195         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86196         Prompted by a report from Bob Proulx.
86197
86198         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86199         Instead, require UTILS_FUNC_MKSTEMP.
86200
86201 2001-11-17  Jim Meyering  <meyering@lucent.com>
86202
86203         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86204         Now, that's done as part of AC_FUNC_STRTOD.
86205
86206 2001-11-17  Jim Meyering  <meyering@lucent.com>
86207
86208         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86209         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86210         rather than group writable.  Patch by Juan F. Codagnone.
86211
86212         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86213         xrealloc, Instead, include "xalloc.h".
86214
86215         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86216         Remove explicit declarations of xmalloc, xrealloc,
86217         and xstrdup.  Instead, include "xalloc.h".
86218
86219         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86220         unlocked-io.h.
86221         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86222         Likewise.
86223         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86224
86225         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86226         Reported by Padraig Brady.
86227
86228         * lib/mkstemp.c: #undef mkstemp.
86229         Include config.h.
86230         (rpl_mkstemp): Rename from mkstemp.
86231         Protoize.
86232
86233 2001-11-16  Jim Meyering  <meyering@lucent.com>
86234
86235         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86236         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86237         determine the amount of total physical memory, use pstat_getstatic.
86238         HPUX-11 doesn't define _SC_PHYS_PAGES.
86239         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86240         If sysconf couldn't be used to determine the amount of available
86241         physical memory, use both pstat_getstatic and pstat_getdynamic.
86242         Based on a patch from Bob Proulx.
86243
86244 2001-11-10  Jim Meyering  <meyering@lucent.com>
86245
86246         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86247         (jm_PREREQ): Use it.
86248
86249 2001-11-09  Jim Meyering  <meyering@lucent.com>
86250
86251         * m4/jm-macros.m4: Require autoconf-2.52f.
86252         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86253         Use these AC_-prefixed names, not the AM_-prefixed ones.
86254
86255         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86256
86257 2001-11-05  Jim Meyering  <meyering@lucent.com>
86258
86259         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86260
86261 2001-11-04  Jim Meyering  <meyering@lucent.com>
86262
86263         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86264         $DEFS.
86265
86266 2001-11-03  Jim Meyering  <meyering@lucent.com>
86267
86268         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86269         of AC_DEFUN.
86270
86271         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86272         know the name of the variable in the macro definition.
86273
86274 2001-11-03  Jim Meyering  <meyering@lucent.com>
86275
86276         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86277         in argmatch_to_argument call.
86278
86279         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86280         argument.
86281
86282         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86283         e.g., a fault due to an attempt to free a NULL pointer.
86284
86285 2001-11-01  Jim Meyering  <meyering@lucent.com>
86286
86287         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86288         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86289
86290 2001-11-01  Jim Meyering  <meyering@lucent.com>
86291
86292         * lib/dirfd.c, lib/dirfd.h: New files.
86293         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86294
86295         * lib/hash.c (hash_print) [TESTING]: Clean up.
86296
86297 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86298
86299         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86300         to avoid a warning if -Wall.
86301
86302 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86303
86304         * README: New file
86305         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86306         (per RMS's instructions, this is now the canonical source)
86307         * lgpl/, gpl/: New directories.
86308
86309 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86310
86311         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86312
86313 2001-10-21  Jim Meyering  <meyering@lucent.com>
86314
86315         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86316         this code would end up calling gettext even in packages built
86317         with --disable-nls.
86318         * lib/getopt.c (_): Likewise.
86319         * lib/regex.c (_): Likewise.
86320
86321 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86322
86323         * m4/error.m4 (jm_PREREQ_ERROR):
86324         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86325         AC_FUNC_STRERROR_R does that.
86326         Check for strerror declaration.
86327
86328         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86329         are supposed to have them these days.
86330         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86331         Merge changes from latest Autoconf CVS.
86332         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86333         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86334         POSIX decided to standardize on the int flavor of strerror_r.
86335
86336 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86337
86338         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86339         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86340         Use strerror_r that is only a macro, even if it is not a function.
86341         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86342         (private_strerror): Use prototypes, not old-style function definition.
86343         (print_errno_message): New function.
86344         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86345         char*-flavored one.
86346         (error_tail, error, error_at_line): Use it.
86347
86348 2001-10-11  Jim Meyering  <meyering@lucent.com>
86349
86350         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86351         and quote_n (1, ... to avoid clobbering a buffer.
86352
86353 2001-10-05  Jim Meyering  <meyering@lucent.com>
86354
86355         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86356         hash-pjw.h.
86357         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86358         * lib/hash-pjw.h: New file.
86359
86360 2001-09-30  Jim Meyering  <meyering@lucent.com>
86361
86362         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86363         `struct fsstat' has the `f_fstypename' member.
86364         Use that to define FS_TYPE, which is now used to make
86365         the getfsstat link test tighter.
86366
86367 2001-09-30  Jim Meyering  <meyering@lucent.com>
86368
86369         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86370         Include <sys/ucred.h>, for Apple Darwin.
86371         Include sys/mount.h and sys/fs_types.h only if available.
86372         (FS_TYPE): Define.
86373         (read_filesystem_list): Use FS_TYPE.
86374
86375 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86376
86377         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86378         a boolean context.
86379
86380 2001-09-29  Jim Meyering  <meyering@lucent.com>
86381
86382         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86383         [one-argument getmntent function]): Include stdio.h before mntent.h.
86384         SunOS 4.1.x needs it for the declaration of `FILE'.
86385         Patch by Volker Borchert.
86386
86387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86388         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86389         sys/fs_types.h, and make the link-test for getfsstat guard #include
86390         directives with appropriate #if HAVE_*_H tests so that we can
86391         detect getfsstat on Apple Darwin1.3.7 systems.
86392         Reported by Nelson Beebe.
86393         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86394
86395 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86396
86397         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86398         #defines strtoimax.  Also treat the other strto* functions
86399         like strtoimax.
86400
86401         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86402         Check for strtoul and strtoumax,
86403         as those declarations are made even in the signed case.
86404         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86405         Likewise, for strtol and strtoimax.
86406
86407 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86408
86409         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86410         #defines strtoimax.  Also treat the other strto* functions
86411         like strtoimax.
86412
86413         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86414         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86415         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86416
86417 2001-09-26  Jim Meyering  <meyering@lucent.com>
86418
86419         Most macros in unlocked-io.h had the wrong number of arguments.
86420         * lib/gen-uio: New script.
86421         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86422         * lib/unlocked-io.hin: Remove file.
86423         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86424         rather than trying to embed it here.
86425         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86426         Reported by Padraig Brady.
86427
86428 2001-09-25  Volker Borchert  <bt@teknon.de>
86429
86430         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86431         `result'.
86432
86433 2001-09-24  Jim Meyering  <meyering@lucent.com>
86434
86435         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86436
86437 2001-09-23  Jim Meyering  <meyering@lucent.com>
86438
86439         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86440         instead of the mere test for existence of mntent.h.  The latter
86441         would get a false-positive on AIX 3.4 systems.
86442         In the outer getmntent if-block, don't die if neither of the getmntent
86443         tests succeeds.  Instead, just fall through and continue with the
86444         remaining tests.
86445
86446 2001-09-23  Jim Meyering  <meyering@lucent.com>
86447
86448         * lib/mountlist.c: Remove useless parentheses in #if directives.
86449         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86450         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86451
86452 2001-09-22  Jim Meyering  <meyering@lucent.com>
86453
86454         * m4/gettext.m4: New file.  From gettext.
86455         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86456         * m4/progtest.m4: Likewise
86457         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86458         * m4/glibc21.m4: Likewise.
86459
86460         * m4/libintl.m4: Remove.  No longer used.
86461
86462 2001-09-22  Jim Meyering  <meyering@lucent.com>
86463
86464         * lib/localcharset.c: Update from latest gettext.
86465         * lib/config.charset: Likewise.
86466
86467 2001-09-20  Jim Meyering  <meyering@lucent.com>
86468
86469         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86470         strtoimax.
86471         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86472         strtoumax.
86473
86474 2001-09-20  Jim Meyering  <meyering@lucent.com>
86475
86476         * lib/xstrtol.c (strtoimax): Guard declaration with
86477         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86478         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86479         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86480         (strtoumax): Likewise, for completeness (it wasn't necessary).
86481
86482 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86483
86484         * lib/strtoimax.c (HAVE_LONG_LONG):
86485         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86486         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86487         to work around bug in IBM C compiler.
86488
86489 2001-09-17  Jim Meyering  <meyering@lucent.com>
86490
86491         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86492         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86493         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86494         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86495         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86496         whenever the right hand side need not be expanded by the shell.
86497
86498 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86499
86500         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86501         library.  It's not correct, as some older glibcs are buggy.
86502         fnmatch wasn't fixed until glibc 2.2.
86503
86504         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86505         special shell magic here.
86506
86507 2001-09-16  Jim Meyering  <meyering@lucent.com>
86508
86509         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86510         * m4/jm-macros.m4: Require it.
86511
86512 2001-09-16  Jim Meyering  <meyering@lucent.com>
86513
86514         * lib/mkdir.c: New file.
86515
86516 2001-09-15  Jim Meyering  <meyering@lucent.com>
86517
86518         * m4/jm-macros.m4: Check for help2man.
86519
86520 2001-09-11  Jim Meyering  <meyering@lucent.com>
86521
86522         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86523         The body, by Paul Eggert, was moved here from configure.in.
86524         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86525
86526 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86527
86528         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86529         (jm_PREREQ): Use it.
86530
86531 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86532
86533         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86534         Use ssize_t, not int, to store result of readlink.
86535         Check for ssize_t overflow as well as size_t overflow,
86536         as POSIX says the result of readlink is implementation-defined
86537         when ssize_t overflows.
86538         Remove unnecessary cast to char*.
86539         Use free+malloc instead of realloc, as the storage doesn't need
86540         to be preserved and it's clearer and can be more efficient that way.
86541         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86542         * lib/xreadlink.h (xreadlink): Update prototype.
86543
86544 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86545
86546         * lib/xgetcwd.c: Revert some of the previous change; intead,
86547         fix the HAVE_GETCWD_NULL code to behave more like the
86548         !HAVE_GETCWD_NULL code used to.
86549
86550         Include "xalloc.h".
86551         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86552         invoke xalloc_die.
86553
86554 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86555
86556         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86557         sys/param.h, as pathmax.h includes them.
86558
86559 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86560
86561         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86562         (jm_PREREQ_XGETCWD): New macro.
86563
86564         * m4/getcwd.m4: New file.
86565
86566 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86567
86568         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86569         like the HAVE_GETCWD_NULL code.
86570         Include pathmax.h if not HAVE_GETCWD.
86571         Do not include xalloc.h.
86572         (INITIAL_BUFFER_SIZE): New symbol.
86573         Do not use xmalloc / xrealloc, since the caller is responsible for
86574         handling errors.  Preserve errno around `free' during failure.
86575         Do not overrun buffer when using getwd.
86576
86577 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86578
86579         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86580         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86581         getcwd (NULL, 0).
86582
86583 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86584
86585         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86586         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86587         spotted by Jim Meyering.
86588
86589 2001-09-03  Jim Meyering  <meyering@lucent.com>
86590
86591         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86592         failure.
86593
86594 2001-09-02  Jim Meyering  <meyering@lucent.com>
86595
86596         * lib/error.c: Update from GNU libc.
86597
86598 2001-09-01  Jim Meyering  <meyering@lucent.com>
86599
86600         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86601         Used by df.
86602
86603 2001-09-01  Jim Meyering  <meyering@lucent.com>
86604
86605         * lib/xreadlink.c: New file.
86606         * lib/xreadlink.h: New file.
86607         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86608         xreadlink.h.
86609
86610         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86611         doesn't conflict with sparc Solaris 7's definition in
86612         /usr/include/sys/int_types.h.
86613
86614         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86615         files.
86616         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86617         and strncasecmp as r-values.  Unixware didn't have declarations.
86618
86619 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86620
86621         * lib/xstrtol.h: Add copyright notice.
86622         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86623         LONGINT_INVALID_SUFFIX_CHAR.
86624
86625 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86626
86627         * lib/xstrtol.c (strtoimax): New decl.
86628
86629 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86630
86631         * lib/xgetcwd.c: Don't include pathmax.h.
86632         Include stdlib.h and unistd.h if available.
86633         Include xalloc.h.
86634         (xmalloc, xstrdup, free): Remove decls.
86635         (xgetcwd): Don't assume sizes fit in unsigned.
86636         Check for overflow when computing sizes.
86637         Simplify reallocation code.
86638
86639 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86640
86641         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86642         a directory's st_size can have an arbitrary value, so the old
86643         usage could waste an arbitrary amount of memory.  All uses
86644         changed.
86645         * lib/savedir.h: Update prototype.
86646
86647 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86648
86649         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86650
86651         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86652         old strtoimax.c.
86653
86654         Also, make the following further changes to make this file's
86655         configuration more similar to that of strtol.c:
86656         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86657         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86658         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86659         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86660         changed to signed values.
86661
86662         And make the following changes as well:
86663         Fix copyright notice, as 1999 was missing.
86664         (verify): New macro.
86665         (strtoimax): Check sizes at compile-time, not run-time.
86666         Prefer strtol to strtoll if both work.
86667         (main): Remove; it was not that useful and was a pain to maintain.
86668
86669         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86670
86671 2001-08-31  Jim Meyering  <meyering@lucent.com>
86672
86673         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86674         Use an initial, malloc'd, buffer of length 128 rather than
86675         a statically allocated one of length 1024.
86676
86677 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86678
86679         Simplify code, partly by assuming autoconf 2.52 semantics.
86680
86681         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86682
86683         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86684         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86685         All uses removed.
86686         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86687         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86688         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86689         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86690         jm_AC_HEADER_INTTYPES_H.
86691         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86692
86693         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86694
86695         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86696         Quote first arg of AC_DEFUN.
86697         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86698         since they are needed to parse the include file even if we need
86699         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86700         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86701         but with opposite signedness.
86702
86703 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86704
86705         Merge 'exclude' changes from tar 1.13.22.
86706         This fixes one or two unlikely storage allocation overflow bugs,
86707         but doesn't change user-visible behavior otherwise.
86708
86709 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86710
86711         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86712         (jm_PREREQ_EXCLUDE): New macro.
86713
86714 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86715
86716         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86717         tm to be declared.
86718
86719 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86720
86721         * lib/hash.c: Remove '2001' from copyright notice.
86722
86723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86724
86725         * lib/full-write.h: New file.
86726         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86727         * lib/full-write.c: Correct credits, as cccp.c no longer
86728         exists and anyway it was so heavily changed from the old cccp
86729         code as to be unrecognizable.  Include full-write.h.
86730         (full_write): Return size_t, with short writes meaning failure.
86731         All callers changed.  This fixes a bug with large buffers
86732         on 64-bit hosts.
86733         * lib/utime.c: Include full-write.h.
86734
86735 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86736
86737         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86738         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86739         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86740         Include if available.
86741         (<xalloc.h>): Include
86742         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86743         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86744         collide with FNM macros.
86745         (struct patopts): New struct.
86746         (struct exclude): Use it, as exclude patterns now come with options.
86747         (new_exclude): Support above changes.
86748         (new_exclude, add_exclude_file):
86749         Initial size must now be a power of two to simplify overflow checking.
86750         (free_exclude, fnmatch_no_wildcards): New function.
86751         (excluded_filename): No longer requires options arg, as the options
86752         are determined by add_exclude.  Now returns bool, not int.
86753         (excluded_filename, add_exclude):
86754         Add support for the fancy new exclusion options.
86755         (add_exclude, add_exclude_file): Now takes int options arg.
86756         Check for arithmetic overflow when computing sizes.
86757         (add_exclude_file): xrealloc might modify errno, so don't
86758         realloc until after errno might be used.
86759
86760         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86761         New macros.
86762         (free_exclude): New decl.
86763         (add_exclude, add_exclude_file): Now takes int options arg.
86764         (excluded_filename): No longer requires options arg, as the options
86765         are determined by add_exclude.  Now returns bool, not int.
86766
86767 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86768
86769         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86770
86771 2001-08-27  Jim Meyering  <meyering@lucent.com>
86772
86773         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86774
86775         * lib/version-etc.c (N_): Remove definition.
86776         Revert most of last change.
86777         Instead, simply don't mark the `Copyright...' string for translation.
86778         Based on advice from Paul Eggert.
86779
86780         * lib/strtoxmax.c: Tweak comment.
86781
86782 2001-08-26  Jim Meyering  <meyering@lucent.com>
86783
86784         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86785
86786         * m4/xstrtoimax.m4: New file.
86787         * m4/xstrtoumax.m4: Add comments explaining why we
86788         AC_REPLACE_FUNCS(strtol).
86789
86790 2001-08-26  Jim Meyering  <meyering@lucent.com>
86791
86792         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86793         of copyright with `%s' so translators don't get an untranslated
86794         message in 2002.
86795         (COPYRIGHT_YEAR): Define.
86796         (version_etc): Use fprintf rather than fputs.
86797         Suggestion from Ulrich Drepper.
86798
86799         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86800
86801         * lib/strtoll.c: New file, from GNU libc.
86802         * lib/xstrtoimax.c: New file.
86803
86804         * lib/xstrtol.h: Add xstrtoimax.
86805         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86806         * lib/strtoimax.c: New file.  Likewise, but first define
86807         STRTOUXMAX_SIGNED.
86808
86809         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86810         ...
86811         * lib/strtoxmax.c: ... then renamed to this.
86812
86813 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86814
86815         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86816         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86817         (jm_AC_TYPE_INTMAX_T): New macro.
86818         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86819
86820         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86821
86822         * m4/longlong.m4: Renamed from ulonglong.m4.
86823         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86824         * m4/uintmax_t.m4: Removed.
86825
86826 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86827
86828         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86829         Port to Solaris 8, where 'sed' requires a space after the 'r'
86830         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86831         Redirect output to $tmp just once.
86832
86833 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86834
86835         * lib/addext.c (<errno.h>): Include.
86836         (errno): Declare if not defined.
86837         (addext): Work correctly when pathconf returns -1 and leaves
86838         errno alone because there is no limit.  Also, work even if
86839         pathconf returns a value greater than SIZE_MAX.
86840
86841 2001-08-12  Jim Meyering  <meyering@lucent.com>
86842
86843         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86844         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86845         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86846         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86847         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86848         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86849         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86850         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86851         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86852         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86853         utime.m4, utimes.m4, xstrtoumax.m4:
86854         Quote the first argument in each use of AC_DEFUN.
86855
86856 2001-08-12  Jim Meyering  <meyering@lucent.com>
86857
86858         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86859         Simply `return getcwd (NULL, 0);'.
86860         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86861         Use 1300 as initial value for length, not PATH_MAX.
86862
86863         * lib/pathmax.h: Clean up cpp syntax.
86864
86865 2001-08-12  Jim Meyering  <meyering@lucent.com>
86866
86867         * lib/gettimeofday.c: New file.
86868         * lib/gtod.h: New file.
86869         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86870
86871 2001-08-05  Jim Meyering  <meyering@lucent.com>
86872
86873         * m4/jm-macros.m4: Require autoconf-2.52.
86874
86875 2001-08-04  Jim Meyering  <meyering@lucent.com>
86876
86877         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86878         stmt, to get in sync with glibc.
86879
86880 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86881
86882         The following changes are from gettext 0.10.39 as maintained by
86883         Bruno Haible.
86884
86885         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86886         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86887         with inverted sense.  All uses changed.
86888
86889         * lib/mbswidth.c: Don't include <limits.h>.
86890         Include <stdlib.h> and <string.h> unconditionally.
86891         (iswcntrl, mbsinit, ISCNTRL): New macros.
86892         (mbsnwidth): Use K&R style function declarations.
86893         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86894         can optimize it when MB_CUR_MAX == 1.
86895         The width of control characters is zero, not 1.
86896
86897 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86898
86899         The following changes are from gettext 0.10.39 as maintained by
86900         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86901
86902         * m4/codeset.m4: Upgrade to serial AM1.
86903         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86904         all uses changed.  Quote first arg of AC_DEFUN.
86905         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86906
86907         * m4/iconv.m4: Upgrade to serial AM2.
86908         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86909         Add --with-libconv-prefix.
86910         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86911         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86912         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86913         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86914         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86915
86916         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86917         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86918         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86919         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86920         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86921         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86922         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86923         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86924         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86925
86926         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86927         string.h any more.
86928
86929         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86930         not the default value.
86931
86932         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86933         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86934         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86935         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86936         Also check for iswcntrl, used for wcwidth fallback.
86937         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86938         to Autoconf 2.13.
86939
86940 2001-08-03  Jim Meyering  <meyering@lucent.com>
86941
86942         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86943         as it was in the original.  Reported by Paul Eggert.
86944
86945 2001-07-16  Jim Meyering  <meyering@lucent.com>
86946
86947         * m4/gettimeofday.m4: New file.
86948         Prompted by a report from Bernhard Baehr.
86949
86950 2001-07-15  Jim Meyering  <meyering@lucent.com>
86951
86952         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86953         stuff. Now it's in ../Makefile.cfg.
86954
86955 2001-07-15  Jim Meyering  <meyering@lucent.com>
86956
86957         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86958         (BUILT_SOURCES): Add unlocked-io.h.
86959         (io_functions): Define.
86960         (unlocked-io.h): New rule.
86961         (DISTCLEANFILES): Add unlocked-io.h.
86962         (all-local): Depend on unlocked-io.h, to ensure it is created.
86963
86964         * lib/unlocked-io.hin: New file
86965
86966         * lib/regex.c: Update from glibc.
86967
86968 2001-07-05  Jim Meyering  <meyering@lucent.com>
86969
86970         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86971         recommendation.
86972         (libfetish_a_SOURCES): Put all .h files here instead.
86973         Remove a thus-exposed (better checks in automake) duplicate and
86974         two unnecessary .h files.
86975
86976 2001-07-04  Jim Meyering  <meyering@lucent.com>
86977
86978         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86979         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86980         distcheck failure.
86981
86982 2001-07-02  Jim Meyering  <meyering@lucent.com>
86983
86984         The following changes were prompted by suggestions from Bruno Haible.
86985
86986         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86987         is now generated.
86988         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86989         definition of EXTRA_DIST.
86990         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86991         ensure that the generated file is created/updated whenever the list
86992         of $(unlocked_functions) is changed.
86993         (jm-glibc-io.m4): New rule.
86994         (unlocked-io.h): New rule -- currently unused.
86995
86996 2001-06-24  Jim Meyering  <meyering@lucent.com>
86997
86998         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86999         unmatched right bracket, rather than kludging it with an extra,
87000         falsely-matching quote in a comment.  Patch by Akim Demaille.
87001
87002 2001-06-11  Jim Meyering  <meyering@lucent.com>
87003
87004         * lib/regex.c: Update from GNU libc.
87005
87006 2001-05-27  Jim Meyering  <meyering@lucent.com>
87007
87008         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87009         Check for ut_type in struct utmp.
87010
87011 2001-05-27  Jim Meyering  <meyering@lucent.com>
87012
87013         * lib/readutmp.h (UT_TYPE): Define.
87014
87015 2001-05-24  Jim Meyering  <meyering@lucent.com>
87016
87017         * lib/argmatch.c: Include "quote.h".
87018         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87019         quote function.  Reported by Göran Uddeborg.
87020
87021 2001-05-22  Jim Meyering  <meyering@lucent.com>
87022
87023         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87024         now that we use the package-supplied version unconditionally.
87025         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87026
87027 2001-05-21  Jim Meyering  <meyering@lucent.com>
87028
87029         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87030         shell syntax errors.
87031
87032 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87033
87034         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87035
87036 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87037
87038         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87039         Don't bother to check library strftime, since
87040         we'll be using our own my_strftime function anyway.
87041         Define my_strftime instead of strftime.
87042
87043 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87044
87045         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87046         which is not yet declared.
87047
87048 2001-05-15  Jim Meyering  <meyering@lucent.com>
87049
87050         * m4/regex.m4: Use proper quoting so brackets appear in the test
87051         program.
87052         Reported by, and with help from, Bruno Haible.
87053
87054 2001-05-13  Jim Meyering  <meyering@lucent.com>
87055
87056         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87057         undefined.
87058
87059 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87060
87061         dirname code cleanup.  base_name now behaves more compatibly
87062         with POSIX basename when given file names that have trailing
87063         slashes, and similarly for dir_name.  Add new primitives
87064         base_len and dir_len.  Put the directory-name-related decls
87065         into dirname.h.
87066
87067         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87068         * lib/backupfile.c (base_name): Likewise.
87069         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87070         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87071         * lib/makepath.c (strip_trailing_slashes): Likewise.
87072         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87073         ISSLASH): Likewise.
87074         * lib/rename.c (strip_trailing_slashes): Likewise.
87075         * lib/same.c (base_name): Likewise.
87076         * lib/stripslash.c (ISSLASH): Likewise.
87077
87078         * lib/addext.c: Include <dirname.h> after size_t is defined.
87079         * lib/backupfile.c: Likewise.
87080
87081         * lib/addext.c (addext): Use base_len to trim redundant
87082         trailing slashes instead of doing it ourselves.
87083         But do not trim the last slash if it is not redundant.
87084
87085         * lib/backupfile.c (find_backup_file_name,
87086         max_backup_version): Use base_len instead of rolling it ourselves.
87087         Handle the case of "" and (on DOS) "C:" correctly.
87088
87089         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87090         needed. Include <string.h>, <dirname.h>.
87091         (base_name): Allow file names ending in slashes, other than names
87092         that are all slashes.  In this case, return the basename followed
87093         by the slashes.  This is more general, and can be used in places
87094         where the original base_name purposely had an assertion failure.
87095         (base_len): New function.
87096
87097         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87098         Do not include <assert.h>; no longer needed.
87099         Include xalloc.h.
87100         (memrchr): Remove decl.
87101         (dir_name_r): Remove.
87102         (dir_len): Renamed from dirlen.  All callers changed.
87103         Rewrite in terms of base_name, for simplicity and consistency.
87104         (dir_name): Never return NULL.  All callers changed.
87105         Do not include <stdlib.h> in test program; no longer needed.
87106         return 0; is fine for test program.
87107
87108         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87109         New macros.
87110         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87111
87112         * lib/path-concat.c (path_concat): Use base_len to compute
87113         base length, not strlen; this means we cannot rely on memcpy
87114         to null-terminate.
87115
87116         * lib/same.c (STREQ): Remove.
87117         (same_name): Handle the case where the basename ends in trailing '/'.
87118
87119         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87120         a slash was stripped.  Do not strip the last slash after a
87121         file system prefix.
87122
87123 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87124
87125         * lib/Makefile.am (libfetish_a_SOURCES):
87126         Add strftime.c, since we now compile it on all hosts.
87127
87128         * lib/strftime.c (my_strftime):
87129         Define to nstrftime if emacs, but only if my_strftime is not defined.
87130         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87131         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87132         Add one more extra argument: a nanoseconds value.
87133         All uses changed.
87134         (ns): New macro.
87135         (my_strftime function): Add %N format.
87136         (emacs_strftimeu): Renamed from emacs_strftime,
87137         with extra ut argument.
87138
87139 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87140
87141         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87142
87143 2001-04-21  Jim Meyering  <meyering@lucent.com>
87144
87145         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87146         doesn't interfere.
87147
87148 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87149
87150         * m4/ftruncate.m4: Check for chsize.
87151         Link with ftruncate.o unconditionally if ftruncate is missing.
87152         This was required when cross-compiling to i586-mingw32msvc.
87153
87154 2001-04-08  Jim Meyering  <meyering@lucent.com>
87155
87156         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87157         recomputed; that's necessary when the offset spans a DST transition.
87158         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87159
87160 2001-04-02  Jim Meyering  <meyering@lucent.com>
87161
87162         * lib/regex.h, regex.c: Update from GNU libc.
87163
87164 2001-03-24  Jim Meyering  <meyering@lucent.com>
87165
87166         * m4/jm-macros.m4: Require autoconf-2.49d.
87167
87168 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87169
87170         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87171
87172 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87173
87174         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87175
87176 2001-03-17  Jim Meyering  <meyering@lucent.com>
87177
87178         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87179         now that the version in autoconf is equivalent.
87180         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87181
87182         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87183         Suggestion from Akim Demaille.
87184
87185         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87186         (jm_PREREQ_TEMPNAME): New function.
87187
87188 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87189
87190         * lib/tempname.c (uint64_t): Define to uintmax_t if
87191         not defined, and if UINT64_MAX is not defined.
87192         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87193         Reported by John David Anglin.
87194
87195 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87196
87197         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87198         resolve alias if codeset is empty.
87199         * lib/config.charset (BeOS): Use wildcard syntax.
87200
87201 2001-03-13  Jim Meyering  <meyering@lucent.com>
87202
87203         * lib/path-concat.c (path_concat)
87204         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87205         concatenating e.g., `C:' and `foo'.
87206         From Bruno Haible.
87207
87208 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87209
87210         * lib/localcharset.c (locale_charset): Don't use
87211         setlocale(LC_CTYPE,NULL). Don't return NULL.
87212         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87213
87214 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87215
87216         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87217         support for DOS/DJGPP.
87218
87219 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87220
87221         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87222         lacks mkstemp.  Compile our own tempname.c if we compile our own
87223         mkstemp.c, as mkstemp relies on tempname.
87224
87225 2001-03-01  Jim Meyering  <meyering@lucent.com>
87226
87227         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87228         AH_VERBATIM really does output its argument verbatim.
87229
87230 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87231
87232         * lib/Makefile.am (libfetish_a_SOURCES):
87233         Add dup-safer.c, fopen-safer.c.
87234         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87235
87236         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87237         * lib/unistd-safer.h: New files.
87238
87239 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87240
87241         The mkstemp replacement is taken from glibc 2.2.2, with some
87242         portability fixes for use outside glibc, as follows:
87243
87244         * lib/tempname.c (struct_stat64): New macro.
87245         (direxists, __gen_tempname): Use it.
87246         This avoids a portability problem with Solaris 8.
87247
87248         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87249         (<stddef.h>, <stdint.h>, <string.h>):
87250         Include only if STDC_HEADERS || _LIBC.
87251         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87252         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87253         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87254         (__set_errno): Define this macro if <errno.h> doesn't.
87255         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87256         Define these macros if <stdio.h> doesn't.
87257         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87258         Define these macros if <sys/stat.h>
87259         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87260         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87261         __xstat64): Define if not _LIBC.
87262         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87263         (__gen_tempname): Invoke gettimeofday only if
87264         HAVE_GETTIMEOFDAY || _LIBC;
87265         otherwise, fall back on plain "time".
87266         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87267
87268         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87269
87270         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87271
87272 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87273
87274         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87275
87276 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87277
87278         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87279         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87280         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87281         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87282
87283 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87284
87285         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87286         Remove workaround macros for hosts that have mbrtowc but not
87287         mbstate_t, as we now insist on proper declarations for both
87288         before using mbrtowc.
87289
87290 2001-02-17  Jim Meyering  <meyering@lucent.com>
87291
87292         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87293         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87294         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87295         UnixWare 7.1.1.
87296
87297         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87298         rather than AC_CACHE_VAL.
87299
87300 2001-02-17  Jim Meyering  <meyering@lucent.com>
87301
87302         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87303         around included file name.
87304
87305         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87306
87307         * lib/strftime.c: Update from GNU libc (the only changes were to
87308         comments).
87309
87310 2001-02-17  Jim Meyering  <meyering@lucent.com>
87311
87312         * lib/regex.c: Update from libc.
87313
87314 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87315
87316         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87317         clash.
87318
87319 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87320
87321         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87322         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87323         Reported by Mark Hounschell via Paul Eggert.
87324
87325 2001-02-07  Jim Meyering  <meyering@lucent.com>
87326
87327         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87328
87329 2001-02-05  Jim Meyering  <meyering@lucent.com>
87330
87331         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87332         it includes the patch required for `large file' support with at least
87333         HP-UX's 10.20 /bin/cc.
87334
87335 2001-02-03  Jim Meyering  <meyering@lucent.com>
87336
87337         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87338         AS_IF, now that it works once again (mysteriously).
87339         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87340
87341 2001-01-30  Jim Meyering  <meyering@lucent.com>
87342
87343         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87344         * m4/chown.m4: Rename conftestchown to conftest.chown.
87345         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87346         s/conftestdir2/conftest.d2/.
87347         * m4/utimes.m4: s/conftestdata/conftest.data/
87348         Inspired by Pavel Roskin's change in autoconf.
87349
87350 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87351
87352         * lib/config.charset: Update for FreeBSD 4.2.
87353
87354 2001-01-27  Jim Meyering  <meyering@lucent.com>
87355
87356         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87357         a use of AS_IF.
87358         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87359
87360 2001-01-26  Jim Meyering  <meyering@lucent.com>
87361
87362         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87363         quotearg.c includes it.
87364
87365 2001-01-26  Jim Meyering  <meyering@lucent.com>
87366
87367         * lib/quotearg.c: Include stddef.h.
87368         * lib/quote.c: Include stddef.h.
87369         Reported by Axel Kittenberger.
87370
87371         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87372         line in double quotes so that it evokes a better diagnostic.
87373         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87374         Reported by Axel Kittenberger.
87375
87376 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87377
87378         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87379         as if it was a `charset'.
87380
87381 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87382
87383         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87384         has const.
87385
87386 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87387
87388         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87389         to avoid a warning.  Add back 'const' to inptr.
87390
87391 2001-01-20  Jim Meyering  <meyering@lucent.com>
87392
87393         Be sure that headers are checked before used in code compiled
87394         for the type checks.
87395         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87396         In place of that, invoke jm_CHECK_ALL_TYPES.
87397         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87398         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87399         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87400         The check for ssize_t was mistakenly run before the test for unistd.h.
87401
87402         The configure-time check for stdbool.h was missing.
87403         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87404         (jm_PREREQ_HASH): New function.
87405
87406 2001-01-17  Jim Meyering  <meyering@lucent.com>
87407
87408         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87409         for autoconf-2.49c.
87410         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87411
87412 2001-01-16  Jim Meyering  <meyering@lucent.com>
87413
87414         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87415         From Bruno Haible.
87416
87417 2001-01-14  Jim Meyering  <meyering@lucent.com>
87418
87419         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87420         foo and bar.  Create conftestdir/ in the script, not in the C code.
87421         Remove directories in the script, not in the C code.
87422         Remove conftestdir{,2} before trying to create the directory.
87423         Make the entire configure script fail if the mkdir fails.
87424
87425 2001-01-14  Jim Meyering  <meyering@lucent.com>
87426
87427         * lib/rename.c: New file.  From Volker Borchert.
87428         Include stdlib.h, string.h or strings.h, and xalloc.h.
87429         Use strip_trailing_slashes rather than open-coding it.
87430
87431 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87432
87433         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87434
87435 2001-01-03  Jim Meyering  <meyering@lucent.com>
87436
87437         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87438         of local `inptr' to avoid warning with some system declarations of
87439         iconv.
87440
87441 2001-01-02  Volker Borchert  <bt@teknon.de>
87442
87443         * m4/rename.m4: New file.
87444         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87445
87446 2001-01-01  Jim Meyering  <meyering@lucent.com>
87447
87448         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87449         even on systems with utmpx.h.  It's necessary for the declaration of
87450         utmp's ut_user member.  Reported by Andreas Jaeger.
87451
87452         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87453         available. They are required for the declarations of getgrgid and
87454         getpwuid resp.
87455         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87456         Reported by Andreas Jaeger.
87457
87458 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87459
87460         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87461         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87462         so `make install' also works in VPATH builds.
87463
87464 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87465
87466         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87467         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87468         can be used in subdirectories.
87469
87470 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87471
87472         * lib/modechange.c: Do not assume that mode_t uses the
87473         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87474         the other-execute bit of FOO even if S_IXOTH != 1.
87475
87476         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87477         WOTH, XOTH, ALLM): New macros.
87478         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87479          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87480         Use them.
87481         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87482         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87483         (mode_compile):
87484         No need to use uintmax_t; unsigned long is long enough.
87485         Don't bother to get suffix since we don't use it.
87486
87487 2000-12-26  Jim Meyering  <meyering@lucent.com>
87488
87489         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87490         better with autoheader.
87491
87492 2000-12-24  Jim Meyering  <meyering@lucent.com>
87493
87494         * lib/hash.c (is_prime): Return explicit boolean values.
87495         (hash_get_first): Return NULL to appease Irix5.6's 89.
87496         Reported by Nelson Beebe.
87497
87498 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87499
87500         * lib/localcharset.c (locale_charset): Add support for Win32.
87501
87502 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87503
87504         * lib/physmem.h, lib/physmem.c: New files.
87505
87506         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87507         (noinst_HEADERS): Add physmem.h.
87508
87509         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87510         't' for compatibility with Solaris 8 sort.
87511
87512 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87513
87514         * lib/config.charset: Add support for BeOS.
87515
87516 2000-12-17  Jim Meyering  <meyering@lucent.com>
87517
87518         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87519         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87520
87521 2000-12-16  Jim Meyering  <meyering@lucent.com>
87522
87523         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87524         N and M) would have treated it like `chown N:N FILE'.
87525
87526         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87527
87528 2000-12-16  Jim Meyering  <meyering@lucent.com>
87529
87530         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87531         SHELLS_FILE to a file name that's useful on djgpp systems.
87532         Include stdlib.h.
87533         (ADDITIONAL_DEFAULT_SHELLS): Define.
87534         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87535         Based mostly on a patch from Prashant TR.
87536
87537 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87538
87539         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87540         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87541         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87542
87543 2000-12-08  Andreas Schwab  <schwab@suse.de>
87544
87545         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87546         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87547
87548 2000-12-07  Jim Meyering  <meyering@lucent.com>
87549
87550         * lib/stripslash.c (ISSLASH): Define.
87551         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87552         `/'.
87553         From Prashant TR.
87554
87555         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87556         (dir_name_r): Declare this function as static.
87557         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87558         manifest itself on a name containing a mix of slashes and
87559         backslashes.
87560         Make this function work with names starting with a DOS-style
87561         drive letter and colon prefix.
87562         (dir_name): Append `.' if necessary.
87563         Based mostly on patches from Prashant TR and Eli Zaretskii.
87564
87565         * lib/dirname.h (dir_name_r): Remove prototype.
87566
87567 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87568
87569         * m4/off_t-format.m4: Remove this file.
87570         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87571
87572 2000-12-06  Jim Meyering  <meyering@lucent.com>
87573
87574         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87575         replacement strtoull, we may well need the replacement strtoul, too.
87576         Check for declarations of strtoul and strtoull.
87577         Check for strtol.  Mainly as a cue to cause automake to include
87578         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87579         Check for limits.h -- strtol.c needs it.
87580
87581 2000-12-05  Jim Meyering  <meyering@lucent.com>
87582
87583         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87584
87585 2000-12-04  Jim Meyering  <meyering@lucent.com>
87586
87587         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87588         Also include memory.h, stdlib.h, unistd.h if appropriate.
87589         Reported by Andreas Jaeger (conflicting declaration of malloc).
87590
87591 2000-12-02  Jim Meyering  <meyering@lucent.com>
87592
87593         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87594         * m4/jm-macros.m4 (jm_MACROS): require it.
87595
87596 2000-12-02  Jim Meyering  <meyering@lucent.com>
87597
87598         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87599
87600 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87601
87602         * lib/memrchr.c: Include <config.h> before any system include file.
87603
87604 2000-11-30  Jim Meyering  <meyering@lucent.com>
87605
87606         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87607
87608 2000-11-30  Jim Meyering  <meyering@lucent.com>
87609
87610         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87611
87612 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87613
87614         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87615
87616 2000-11-26  Jim Meyering  <meyering@lucent.com>
87617
87618         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87619
87620 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87621
87622         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87623         size of (size_t) -1; it's not portable.
87624
87625 2000-11-17  Jim Meyering  <meyering@lucent.com>
87626
87627         * lib/strstr.c: Update from GNU libc.
87628
87629 2000-11-17  Akim Demaille  <akim@epita.fr>
87630
87631         * lib/obstack.h: Formatting changes.
87632         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87633         prevent type checking.
87634         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87635         cast the value to (void *): assigning a `foo *' to a `void *'
87636         variable is valid.
87637         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87638
87639 2000-11-16  Jim Meyering  <meyering@lucent.com>
87640
87641         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87642
87643 2000-11-11  Jim Meyering  <meyering@lucent.com>
87644
87645         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87646
87647 2000-11-10  Jim Meyering  <meyering@lucent.com>
87648
87649         * lib/obstack.h: Update from GNU libc.
87650         * lib/obstack.c: Likewise.
87651
87652 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87653
87654         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87655
87656 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87657
87658         * lib/getusershell.c (setusershell): Use rewind rather than
87659         fseek/fseeko, to avoid configuration hassles with fseeko.
87660         Don't bother opening SHELLS_FILE if shellstream is NULL;
87661         it's not necessary.
87662
87663 2000-11-05  Jim Meyering  <meyering@lucent.com>
87664
87665         * lib/makepath.h (make_dir): Declare.
87666         * lib/makepath.c (make_dir): Remove `static' attribute.
87667         Tweak a comment.
87668
87669 2000-11-04  Jim Meyering  <meyering@lucent.com>
87670
87671         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87672
87673 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87674
87675         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87676         last one in a bucket, advance to the next bucket.
87677
87678 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87679
87680         * lib/fnmatch.c: Do not comment out all the code if we are using
87681         the GNU C library, because in some cases we are replacing buggy
87682         code in the GNU C library itself.
87683
87684 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87685
87686         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87687         (regex_compile): Catch bogus \(\1\).
87688
87689 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87690
87691         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87692         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87693         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87694
87695 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87696
87697         * lib/error.h, getline.h, modechange.h:
87698         Remove "2000" from Copyright line, as the file hasn't been
87699         changed this year other than in the copyright notice.
87700
87701         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87702         was changed this year.
87703
87704 2000-10-29  Jim Meyering  <meyering@lucent.com>
87705
87706         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87707         renaming.
87708         * m4/ls-mntd-fs.m4: Likewise
87709
87710 2000-10-29  Jim Meyering  <meyering@lucent.com>
87711
87712         * lib/xstat.in: Fix grammar in comment.
87713
87714 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87715
87716         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87717         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87718         doesn't define __restrict_arr.
87719
87720 2000-10-28  Jim Meyering  <meyering@lucent.com>
87721
87722         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87723         (jm_PREREQ_MEMCHR): New function.
87724
87725 2000-10-28  Jim Meyering  <meyering@lucent.com>
87726
87727         * lib/memchr.c: Update from libc.
87728         Adjust for portability:
87729         [HAVE_STDLIB_H]: Include stdlib.h.
87730         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87731         Undef __memchr, too.
87732         [!weak_alias]: Define __memchr to memchr.
87733
87734         * lib/regex.c: Update from libc.
87735         * lib/regex.h: Likewise.
87736         * lib/getopt1.c: Likewise.
87737         * lib/memcmp.c: Likewise.
87738
87739         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87740         Avoid using fseek, when possible -- it's broken by design.
87741         Patch by Ulrich Drepper.
87742
87743 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87744
87745         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87746         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87747         Giving in to popular pressure to shut up the compiler with casts.
87748
87749 2000-10-26  Jim Meyering  <meyering@lucent.com>
87750
87751         * lib/strftime.c: Update from libc.
87752
87753 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87754
87755         * regex.c: More `unsigned char' -> `re_char' changes.
87756         Also change several `int' into `re_wchar_t'.
87757         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87758         (PUSH_FAILURE_POINTER): Don't cast any more.
87759         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87760         We want GCC to complain, since this piece of code makes
87761         re_match non-reentrant, which *should* be fixed.
87762         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87763         (EXTEND_BUFFER): Use RETALLOC.
87764         (SET_LIST_BIT): Don't cast.
87765         (re_wchar_t): New type.
87766         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87767         that those two functions will always properly return.
87768         (IMMEDIATE_QUIT_CHECK): Cast to void.
87769         (analyse_first): Use recursion rather than an explicit stack.
87770         (re_compile_fastmap): Can't fail anymore.
87771         (re_search_2): Don't check re_compile_fastmap for failure.
87772         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87773         Now also sets the new value (passed in a new argument).
87774         (re_match_2_internal): Use it.
87775         Also, use a new var `reg' of type size_t when looping through regs
87776         rather than reuse the inappropriate `mcnt'.
87777
87778 2000-10-25  Jim Meyering  <meyering@lucent.com>
87779
87780         * lib/obstack.c: Update from libc.
87781
87782 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87783
87784         * regex.c (regex_compile): Change the way of handling a range from
87785         a char less than 256 to a char not less than 256.
87786
87787 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87788
87789         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87790         NT-Emacs only.
87791         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87792         so that re_search functions only quit when callers expect them to.
87793
87794 2000-10-23  Jim Meyering  <meyering@lucent.com>
87795
87796         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87797         wrong.  That set_locale call must not have any side effects.
87798         From Paul Eggert.
87799
87800 2000-10-22  Jim Meyering  <meyering@lucent.com>
87801
87802         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87803         [CYCLIC]: Remove now-unused definition.
87804
87805         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87806         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87807         Suggestion from Ulrich Drepper.
87808
87809 2000-10-21  Jim Meyering  <meyering@lucent.com>
87810
87811         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87812         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87813         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87814
87815 2000-10-21  Jim Meyering  <meyering@lucent.com>
87816
87817         * lib/dirname.c (memrchr): Declare if necessary.
87818         (dir_name): Remove the restriction that there be no
87819         trailing slashes.  Now, this code skips past them, effectively
87820         ignoring them.
87821         [TEST_DIRNAME] (main): New unit tests.
87822
87823         * lib/memrchr.c: New file from GNU libc.
87824         Undef __memrchr, too.
87825         [!weak_alias]: Define __memrchr to memrchr.
87826         Guard weak_alias use with `#ifdef weak_alias'.
87827
87828 2000-10-21  Jim Meyering  <meyering@lucent.com>
87829
87830         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87831         (dir_name): Use dir_name_r.
87832         * lib/dirname.h (dir_name_r): Declare it.
87833
87834 2000-10-17  Jim Meyering  <meyering@lucent.com>
87835
87836         * lib/quote.h (PARAMS): Define and use.
87837         Reported by Akim Demaille.
87838
87839         * lib/getopt.c: Update from libc.
87840
87841 2000-10-16  Jim Meyering  <meyering@lucent.com>
87842
87843         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87844         setlocale.
87845         From Jan Fedak.
87846
87847 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87848
87849         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87850
87851 2000-09-25  Jim Meyering  <meyering@lucent.com>
87852
87853         * lib/md5.h (rol): Define (from GnuPG).
87854
87855         * lib/sha.c: Give credit (GnuPG) where due.
87856         (M): Use rol rather than open-coding it.
87857         Add a FIXME comment.
87858
87859 2000-09-21  Jim Meyering  <meyering@lucent.com>
87860
87861         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87862         Reported by Michael Stone.
87863
87864 2000-09-20  Jim Meyering  <meyering@lucent.com>
87865
87866         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87867         (noinst_HEADERS): Add sha.h.
87868         Based on code from Scott G. Miller and from GnuPG.
87869
87870 2000-09-18  Jim Meyering  <meyering@lucent.com>
87871
87872         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87873         LIBS. Otherwise, everyone ends up linking with -lelf for some
87874         configurations.
87875         Reported by Mike Stone.
87876
87877 2000-09-15  Jim Meyering  <meyering@lucent.com>
87878
87879         * lib/regex.c: Update from libc.
87880
87881 2000-09-10  Jim Meyering  <meyering@lucent.com>
87882
87883         * lib/getopt.c (_getopt_internal): Update from glibc.
87884
87885 2000-09-09  Jim Meyering  <meyering@lucent.com>
87886
87887         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87888         think it should be used as a general replacement for isascii.
87889         * lib/fnmatch.c: Likewise.
87890         * lib/mbswidth.c: Likewise
87891         * lib/regex.c: Likewise.
87892
87893         Don't use atoi.
87894         * lib/userspec.c: Include sys/param.h and limits.h.
87895         Include xstrtol.h.
87896         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87897         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87898         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87899         UID, GID.  Check range.
87900
87901 2000-09-06  Jim Meyering  <meyering@lucent.com>
87902
87903         * lib/getopt.c (_getopt_internal): Update from glibc.
87904
87905 2000-08-30  Jim Meyering  <meyering@lucent.com>
87906
87907         * lib/strftime.c: Merge in changes from GNU libc.
87908
87909 2000-08-26  Jim Meyering  <meyering@lucent.com>
87910
87911         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87912         * m4/fpending.m4: New file.
87913
87914 2000-08-26  Jim Meyering  <meyering@lucent.com>
87915
87916         * lib/closeout.c: Include "__fpending.h".
87917         (close_stdout_status): Return right away if there's nothing to flush.
87918
87919         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87920         * lib/__fpending.c: New file.
87921         * lib/__fpending.h: New file.
87922
87923 2000-08-20  Jim Meyering  <meyering@lucent.com>
87924
87925         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87926         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87927         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87928
87929 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87930
87931         Improve fileutils installation on systems where running
87932         programs (like install) can't be unlinked.
87933         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87934         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87935
87936 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87937
87938         Standardize on "memory exhausted" instead of "Memory exhausted"
87939         or "virtual memory exhausted".
87940         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87941         "virtual memory exhausted".
87942         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87943         our own message.
87944         * lib/userspec.c (parse_user_spec): Likewise.
87945         * lib/bumpalloc.h: comment fix
87946         * lib/same.c, userspec.c: Include xalloc.h.
87947
87948         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87949         not char *const and pointing to a constant array.
87950         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87951         (xrealloc): Comment fix.
87952
87953         * lib/userspec.c (parse_user_spec):
87954         Don't translate a message until just before returning,
87955         to avoid unnecessary translation.
87956
87957 2000-08-07  Jim Meyering  <meyering@lucent.com>
87958
87959         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87960         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87961         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87962         getgroups.c, gethostname.c, getopt.h, group-member.c,
87963         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87964         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87965         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87966         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87967         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87968         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87969         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87970         yesno.c: Back out Copyright date changes for each file with no change
87971         this year.  This eases coordination with other programs using the same
87972         source code modules.  From Paul Eggert.
87973
87974 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87975
87976         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87977         not char, for compatibility with glibc 2.1.3 strftime.c.
87978
87979 2000-08-03  Greg McGary  <greg@mcgary.org>
87980
87981         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87982         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87983         (EXTEND_BUFFER): Use them.
87984
87985 2000-08-01  Jim Meyering  <meyering@lucent.com>
87986
87987         * lib/dirname.c (ISSLASH): Define.
87988         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87989         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87990         both `\' and `/' may be use as path separators.
87991         Based on a patch from Prashant TR.
87992
87993 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87994
87995         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87996         slot vector a constant, since it might get modified.
87997
87998 2000-07-31  Jim Meyering  <meyering@lucent.com>
87999
88000         * lib/xmalloc.c: Use `virtual memory exhausted', not
88001         `Memory exhausted'.
88002         * lib/obstack.c (print_and_abort): Likewise.
88003
88004 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88005
88006         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88007         buffer, so that the caller can always quote one small
88008         component of a "memory exhausted" message in slot 0.
88009         From a suggestion by Jim Meyering.
88010
88011 2000-07-30  Jim Meyering  <meyering@lucent.com>
88012
88013         * lib/makepath.c (make_path): Quote the other instance, too.
88014
88015         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88016         (STATIC_BUF_SIZE): Define.
88017         (quotearg_n_options): Use only statically allocated storage when
88018         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88019         than STATIC_BUF_SIZE.
88020
88021 2000-07-29  Jim Meyering  <meyering@lucent.com>
88022
88023         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88024         * lib/dirname.c (dir_name): Likewise.
88025
88026         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88027         `/'.
88028
88029         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88030         (dir_name): Assert that there are no trailing slashes.
88031
88032 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88033
88034         * lib/mbswidth.h (mbswidth): Add a flags argument.
88035         (mbswidth): New declaration.
88036         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88037         * lib/mbswidth.c (mbswidth): Add a flags argument.
88038         (mbsnwidth): New function.
88039
88040 2000-07-24  Jim Meyering  <meyering@lucent.com>
88041
88042         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88043
88044 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88045
88046         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88047
88048 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88049
88050         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88051         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88052         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88053         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88054         invoke multibyte primitives.
88055
88056 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88057
88058         * lib/quotearg.c:
88059         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88060         so that mbstate_t is always defined.
88061
88062         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88063         be 1 in at least one GCC installation, and this configuration
88064         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88065         performance on hosts that have mbrtowc but have only unibyte
88066         locales, but I assume these hosts are rare.
88067
88068 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88069
88070         * lib/mbswidth.c (_XOPEN_SOURCE):
88071         Don't define; this causes problems on Solaris 7.
88072         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88073
88074 2000-07-23  Jim Meyering  <meyering@lucent.com>
88075
88076         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88077         too: getgrgid, getpwuid, getuid.
88078
88079 2000-07-23  Jim Meyering  <meyering@lucent.com>
88080
88081         * lib/basename.c (base_name): Add an assertion.
88082
88083 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88084
88085         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88086         shadow its mbsinit function.
88087
88088 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88089
88090         * lib/mbswidth.h: New file.
88091         * lib/mbswidth.c: New file.
88092         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88093         (noinst_HEADERS): Add mbswidth.h.
88094
88095 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88096
88097         * lib/config.charset: Add support for FreeBSD. Improve support for
88098         HP-UX and IRIX 6.
88099
88100 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88101
88102         * m4/mbswidth.m4: New file.
88103         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88104
88105 2000-07-15  Jim Meyering  <meyering@lucent.com>
88106
88107         * lib/makepath.c: Include quote.h.
88108         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88109         corresponding argument in a `quote (...)' call.
88110         Give better diagnostics.
88111
88112         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88113         (noinst_HEADERS): Add quote.h.
88114
88115         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88116         from tar's src/misc.c.
88117         * lib/quote.h: New file.  Prototypes for same.
88118
88119 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88120
88121         From a suggestion by Bruno Haible.
88122         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88123         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88124         to decide whether to define the BeOS workaround macro;
88125         this adjusts to the change to AC_MBSTATE_T.
88126
88127 2000-07-14  Jim Meyering  <meyering@lucent.com>
88128
88129         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88130         jm_AC_TYPE_UINTMAX_T.
88131
88132 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88133
88134         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88135
88136         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88137         quotearg_buffer_restyled): Add support for
88138         clocale_quoting_style.  Undo previous change to
88139         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88140         and "{RIGHT QUOTATION MARK}" msgids.
88141
88142 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88143
88144         From a suggestion by Bruno Haible.
88145         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88146         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88147         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88148         and mbstate_t, to a single-part test that simply defines mbstate_t.
88149         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88150         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88151
88152 2000-07-10  Jim Meyering  <meyering@lucent.com>
88153
88154         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88155
88156         * m4/gnu-source.m4: Output to confdefs.h directly.
88157         Suggestion from Akim Demaille.
88158
88159 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88160
88161         The old behavior of quoting `like this' doesn't look good with
88162         newer, ISO-style fonts.  See:
88163         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88164
88165         Instead, quote "like this" by default.  Let the translator
88166         tailor the locale-specific quoting behavior by providing
88167         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88168
88169         * lib/quotearg.c (N_): New macro.
88170         (gettext_default): New function.
88171         (quotearg_buffer_restyled): Use
88172         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88173         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88174
88175 2000-07-09  Jim Meyering  <meyering@lucent.com>
88176
88177         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88178         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88179
88180         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88181         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88182
88183 2000-07-09  Jim Meyering  <meyering@lucent.com>
88184
88185         * lib/Most files: Update copyright dates to include 2000.
88186
88187 2000-07-08  Jim Meyering  <meyering@lucent.com>
88188
88189         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88190         if not defined.
88191         (xgethostname): Remove now-unnecessary #ifdef.
88192         Move declaration of `err' into loop where it's used.
88193
88194 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88195         and Bruno Haible  <haible@clisp.cons.org>
88196
88197         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88198         only if the test for an object-type mbstate_t fails.  This
88199         prevents us from mistakenly reporting that mbstate_t is a
88200         system object type after we "#define mbstate_t int" to work
88201         around its lack.
88202
88203 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88204         and Bruno Haible  <haible@clisp.cons.org>
88205
88206         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88207
88208 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88209
88210         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88211         to strerror_r.
88212         Include <ctype.h> for use of isalpha.
88213
88214 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88215
88216         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88217         by allocating a larger buffer. Test the gethostname return value for
88218         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88219         returns an error and ENAMETOOLONG isn't defined.
88220
88221 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88222
88223         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88224         dimension.
88225
88226 2000-07-04  Jim Meyering  <meyering@lucent.com>
88227
88228         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88229         of the deprecated AC_CHECKING.
88230
88231 2000-07-04  Jim Meyering  <meyering@lucent.com>
88232
88233         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88234         Reported by Bruno Haible.
88235
88236 2000-07-04  Jim Meyering  <meyering@lucent.com>
88237
88238         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88239         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88240         lacks mbrtowc.
88241
88242 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88243
88244         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88245         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88246
88247 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88248         and Bruno Haible  <haible@clisp.cons.org>
88249
88250         * lib/quotearg.c (mbrtowc):
88251         Assign to *pwc, and return 1 only if result is nonzero.
88252         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88253
88254 2000-07-03  Jim Meyering  <meyering@lucent.com>
88255
88256         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88257
88258 2000-07-03  Jim Meyering  <meyering@lucent.com>
88259
88260         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88261         This is necessary to get a definition of e.g., UTMP_FILE on
88262         HP-UX 10.20.
88263         From Bob Proulx.
88264
88265 2000-07-02  Jim Meyering  <meyering@lucent.com>
88266
88267         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88268
88269         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88270         AC_LIBOBJ(function_name).
88271         * m4/chown.m4: Likewise.
88272         * m4/fnmatch.m4: Likewise.
88273         * m4/ftruncate.m4: Likewise.
88274         * m4/getgroups.m4: Likewise.
88275         * m4/getline.m4: Likewise.
88276         * m4/group-member.m4: Likewise.
88277         * m4/jm-macros.m4: Likewise.
88278         * m4/lstat.m4: Likewise.
88279         * m4/malloc.m4: Likewise.
88280         * m4/memcmp.m4: Likewise.
88281         * m4/nanosleep.m4: Likewise.
88282         * m4/putenv.m4: Likewise.
88283         * m4/realloc.m4: Likewise.
88284         * m4/regex.m4: Likewise.
88285         * m4/stat.m4: Likewise.
88286         * m4/strftime.m4: Likewise.
88287
88288 2000-07-02  Jim Meyering  <meyering@lucent.com>
88289
88290         * lib/quotearg.c (mbstate_t): Don't define here.
88291
88292 2000-07-02  Jim Meyering  <meyering@lucent.com>
88293
88294         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88295
88296 2000-07-01  Jim Meyering  <meyering@lucent.com>
88297
88298         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88299
88300 2000-07-01  Jim Meyering  <meyering@lucent.com>
88301
88302         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88303         problem.
88304
88305 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88306
88307         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88308         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88309
88310 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88311
88312         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88313         per change in ../m4/ls-mntd-fs.m4.
88314         (read_filesystem_list): Ignore symbolic links.
88315
88316 2000-06-29  Jim Meyering  <meyering@lucent.com>
88317
88318         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88319         for declaration of strcmp.
88320
88321         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88322
88323         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88324         Avoid warning by casting result to `char *' to remove `const'.
88325
88326 2000-06-28  Jim Meyering  <meyering@lucent.com>
88327
88328         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88329         included by quotearg.c, for which we perform this test.  From
88330         Bruno Haible.
88331
88332 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88333
88334         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88335         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88336         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88337
88338 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88339
88340         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88341
88342 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88343
88344         savedir now sets errno on failure and invokes xmalloc to get memory.
88345         Fix a couple of other minor bugs while we're at it.
88346
88347         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88348         (NAMLEN): Remove macro.
88349         (malloc, realloc): Remove decls.
88350         (stpcpy): Likewise.
88351         ("xalloc.h"): Include.
88352         (NAME_SIZE_DEFAULT): New macro.
88353         (savedir): Use xmalloc / xrealloc to allocate memory.
88354         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88355         Skip "" directory entries.
88356         Use strlen to calculate directory entry length, since the old method
88357         is rarely used these days and isn't worth supporting.
88358         Don't use a pointer after freeing it.
88359         Check for integer overflow when calculating allocation size.
88360         Use memcpy to copy entries, instead of stpcpy.
88361         Set errno properly when returning NULL.
88362         Check for readdir error.
88363
88364 2000-06-26  Jim Meyering  <meyering@lucent.com>
88365
88366         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88367
88368 2000-06-25  Jim Meyering  <meyering@lucent.com>
88369
88370         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88371         Linux header bug when _XOPEN_SOURCE is defined to 500.
88372
88373 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88374
88375         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88376         deficiency.
88377
88378 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88379
88380         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88381         Include xalloc.h.
88382         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88383
88384 2000-06-24  Jim Meyering  <meyering@lucent.com>
88385
88386         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88387         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88388         for which strerror does return char*, but which lacks a conveniently
88389         accessible declaration of the function.  If the compile-test says
88390         strerror_r doesn't work, then resort to a `run'-test that works on
88391         BeOS and segfaults on DEC Unix.
88392
88393 2000-06-24  Jim Meyering  <meyering@lucent.com>
88394
88395         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88396
88397 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88398
88399         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88400         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88401
88402 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88403
88404         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88405         (mbrtowc, mbstate_t): Define substitutes if
88406         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88407         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88408         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88409
88410 2000-06-23  Jim Meyering  <meyering@lucent.com>
88411
88412         * m4/afs.m4: Add missing AC_MSG_RESULT.
88413         Reported by Bruno Haible.
88414
88415         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88416         Suggestion from Bruno Haible.
88417
88418 2000-06-23  Jim Meyering  <meyering@lucent.com>
88419
88420         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88421
88422 2000-06-21  Jim Meyering  <meyering@lucent.com>
88423
88424         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88425
88426 2000-06-21  Jim Meyering  <meyering@lucent.com>
88427
88428         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88429         (noinst_HEADERS): Add getstr.h.
88430
88431         * lib/getline.c (getstr): Move into a separate file.
88432         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88433         the following changes: new parameter, delim2; both delim[12]
88434         parameters have type `int', not `char'.  The latter would lose
88435         with 8-bit delimiters.
88436         * lib/getstr.h: New file.
88437
88438 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88439
88440         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88441         than 1024, return a memory chunk of least possible size, instead
88442         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88443         Use free/xmalloc instead of xrealloc to avoid copying for very long
88444         paths.
88445
88446 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88447
88448         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88449         the empty string.
88450
88451 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88452
88453         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88454         address, not strdup.  Include <stdlib.h> and don't declare free().
88455
88456 2000-06-19  Jim Meyering  <meyering@lucent.com>
88457
88458         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88459
88460 2000-06-18  Jim Meyering  <meyering@lucent.com>
88461
88462         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88463
88464         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88465         `checking whether...' message to be consistent with that of the
88466         lstat test.
88467
88468 2000-06-18  Jim Meyering  <meyering@lucent.com>
88469
88470         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88471         Besides, these days every porting target provides a mkdir function.
88472
88473         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88474         needed. (this snippet comes from src/system.h).
88475
88476 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88477
88478         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88479
88480 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88481
88482         * lib/human.c (adjust_value): New function.
88483         (human_readable_inexact): Apply rounding style even when
88484         printing approximate values.
88485
88486 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88487
88488         * lib/human.c (human_readable_inexact): Allow an input block
88489         size that is not a multiple of the output block size, and vice versa.
88490         Reported by Piergiorgio Sartor.
88491
88492 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88493
88494         * lib/getdate.y (get_date): Apply relative times after time
88495         zone indicator, not before.  Reported by Todd A. Jacobs.
88496
88497 2000-06-13  Jim Meyering  <meyering@lucent.com>
88498
88499         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88500
88501         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88502
88503 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88504
88505         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88506
88507 2000-06-12  Jim Meyering  <meyering@lucent.com>
88508
88509         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88510         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88511         optional argument.
88512         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88513         the optional argument, `lib'.
88514
88515 2000-06-08  Jim Meyering  <meyering@lucent.com>
88516
88517         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88518
88519 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88520
88521         Rewrite largefile configuration so that we don't need to run
88522         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88523         AC_CANONICAL_HOST in configure.in -- jmm]
88524
88525         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88526         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88527         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88528         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88529         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88530         All uses changed.
88531         Instead of inspecting the output of getconf, try to compile the
88532         test program without and with the macro definition.
88533         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88534         for getconf.  Instead, check for the needed flags by compiling
88535         test programs.
88536
88537 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88538
88539         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88540
88541 2000-06-04  Jim Meyering  <meyering@lucent.com>
88542
88543         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88544         SunOS 4.1.4 for which gid_t is an unsigned type.
88545
88546 2000-06-03  Jim Meyering  <meyering@lucent.com>
88547
88548         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88549         now that autoconf requires that.
88550
88551         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88552         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88553         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88554
88555 2000-06-03  Jim Meyering  <meyering@lucent.com>
88556
88557         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88558
88559 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88560
88561         * m4/glibc21.m4: New file.
88562         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88563
88564 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88565
88566         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88567         newer, don't install charset.alias.
88568         * lib/config.charset: Change the Linux/glibc rules so they become empty
88569         on glibc-2.1 or newer.
88570
88571 2000-06-02  Jim Meyering  <meyering@lucent.com>
88572
88573         * lib/mountlist.c: Back out last change.  Instead, do this...
88574         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88575         me_dummy member using the same `ignore'-testing code.
88576         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88577         fs_type strings.
88578         From Mark D. Roth.
88579
88580 2000-05-29  Jim Meyering  <meyering@lucent.com>
88581
88582         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88583         mounts with the `ignore' attribute.  Based on a patch from
88584         Mark D. Roth.
88585
88586 2000-05-28  Jim Meyering  <meyering@lucent.com>
88587
88588         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88589         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88590         * m4/stat.m4: Likewise.
88591         * m4/lstat.m4: Likewise.
88592         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88593
88594         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88595         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88596
88597 2000-05-26  Jim Meyering  <meyering@lucent.com>
88598
88599         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88600
88601 2000-05-24  Jim Meyering  <meyering@lucent.com>
88602
88603         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88604         autoconf requires that.
88605         * m4/lib-check.m4: Likewise.
88606         * m4/jm-macros.m4: Likewise.
88607         * m4/strftime.m4: Likewise.
88608
88609         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88610         AC_CHECK_DECLS, now that autoconf requires that.
88611
88612 2000-05-22  Jim Meyering  <meyering@lucent.com>
88613
88614         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88615         * m4/lstat.m4: Likewise.
88616
88617 2000-05-22  Jim Meyering  <meyering@lucent.com>
88618
88619         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88620
88621 2000-05-20  Jim Meyering  <meyering@lucent.com>
88622
88623         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88624         (jm_PREREQ): Use it.
88625
88626 2000-05-18  Jim Meyering  <meyering@lucent.com>
88627
88628         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88629         back, too, since it may have been modified by allocate_entry.
88630         (hash_delete): Rewrite to use neither the assignment operator
88631         nor the comma operator in an if-expression.
88632
88633 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88634
88635         * lib/closeout.c:
88636         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88637         Remove; no longer needed.
88638         "quotearg.h": Add include.
88639         (file_name): Do not bother to explicitly initialize to NULL; it's less
88640         efficient on some hosts.
88641         (close_stdout_status): Remove test as to whether stdout was already
88642         closed; it breaks for the case "echo x | sort >&-".
88643         Quote file name colons.
88644         Do not assume that _("write error") lacks format strings.
88645
88646 2000-05-15  Jim Meyering  <meyering@lucent.com>
88647
88648         * lib/version-etc.c (version_etc_copyright): Update the copyright
88649         string used in all --version output.
88650
88651 2000-05-14  Jim Meyering  <meyering@lucent.com>
88652
88653         * lib/closeout.c (close_stdout_set_file_name): New function.
88654         (close_stdout_status): Use new file-scoped global.
88655         Return right away if fstat says the stdout file descriptor is invalid.
88656         * lib/closeout.h (close_stdout_set_file_name): Declare.
88657
88658 2000-05-10  Jim Meyering  <meyering@lucent.com>
88659
88660         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88661         (close_stdout_set_status): New function.
88662         * lib/closeout.h (close_stdout_set_status): Declare.
88663
88664 2000-05-09  Jim Meyering  <meyering@lucent.com>
88665
88666         * m4/gettext.m4: Rename this...
88667         * m4/libintl.m4: ...to this.
88668
88669 2000-05-08  Jim Meyering  <meyering@lucent.com>
88670
88671         * lib/long-options.c: Don't include closeout.h.
88672         (parse_long_options): Don't call close_stdout for --version.
88673
88674 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88675
88676         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88677         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88678         2.1.3 bug.  This avoids a clash when files like regex.c define
88679         _GNU_SOURCE.
88680
88681 2000-05-06  Jim Meyering  <meyering@lucent.com>
88682
88683         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88684         (AC_REPLACE_FUNCS): Add strnlen.
88685
88686         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88687         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88688
88689         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88690         AC_SEARCH_LIBS call for nanosleep.
88691         (LIB_NANOSLEEP): Set and AC_SUBST.
88692
88693 2000-05-06  Jim Meyering  <meyering@lucent.com>
88694
88695         * lib/strnlen.c: Undefine __strnlen and strnlen.
88696         [!weak_alias]: Define __strnlen to strnlen.
88697
88698         * lib/atexit.c: New file, from libiberty.
88699
88700 2000-05-06  Jim Meyering  <meyering@lucent.com>
88701
88702         * lib/closeout.c (close_stdout_status): Also check for errors on the
88703         stderr stream.
88704
88705 2000-05-05  Jim Meyering  <meyering@lucent.com>
88706
88707         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88708         AC_SEARCH_LIBS call for clock_gettime.
88709         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88710
88711         * m4/search-libs.m4: Update from autoconf.
88712
88713         su doesn't work on Solaris 2.6.
88714         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88715         <shadow.h>.  Reported by Dragos Harabor.
88716
88717 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88718
88719         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88720         memcpy instead of xmalloc, xrealloc, path_concat.
88721         (locale_charset): Treat empty environment variables as absent.
88722         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88723
88724 2000-05-04  Jim Meyering  <meyering@lucent.com>
88725
88726         * lib/getopt.c: Update from glibc.
88727         * lib/obstack.c: Likewise.
88728         * lib/obstack.h: Likewise.
88729         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88730         file
88731
88732         * lib/regex.h: Likewise.
88733         * lib/strndup.c: Likewise.
88734         * lib/strnlen.c: New file, from glibc.
88735
88736 2000-05-03  Jim Meyering  <meyering@lucent.com>
88737
88738         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88739
88740 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88741
88742         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88743         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88744         compile-time test, rather than inspecting host and OS, to
88745         decide whether to define _LARGEFILE_SOURCE.
88746
88747 2000-05-01  Jim Meyering  <meyering@lucent.com>
88748
88749         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88750
88751         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88752         Based on a patch from Bruno Haible.
88753
88754 2000-05-01  Jim Meyering  <meyering@lucent.com>
88755
88756         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88757
88758 2000-04-29  Jim Meyering  <meyering@lucent.com>
88759
88760         * lib/path-concat.c: Declare strdup only if it's not defined.
88761         * lib/canon-host.c: Likewise.
88762
88763 2000-04-28  Jim Meyering  <meyering@lucent.com>
88764
88765         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88766         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88767         is included first, then limits.h is included by locale.h by libintl.h.
88768         From John David Anglin.
88769
88770 2000-04-25  Jim Meyering  <meyering@lucent.com>
88771
88772         * lib/makepath.c (S_IRWXUGO): Define.
88773         (make_path): Always perform explicit chmod if MODE specifies any
88774         of the `special' permission bits.  Prompted by a bug report against
88775         install from Mate Wierdl and Joost van Baal.
88776
88777 2000-04-18  Jim Meyering  <meyering@lucent.com>
88778
88779         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88780         (jm_PREREQ): Use it.
88781
88782 2000-04-18  Jim Meyering  <meyering@lucent.com>
88783
88784         * lib/README: New file.
88785
88786         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88787         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88788
88789 2000-04-17  Jim Meyering  <meyering@lucent.com>
88790
88791         Get it right :-)
88792         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88793         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88794         Suggestion from Akim Demaille.
88795
88796 2000-04-17  Jim Meyering  <meyering@lucent.com>
88797
88798         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88799         the definition of it to rpl_strftime also defined-away the system's
88800         declaration.
88801
88802 2000-04-15  Jim Meyering  <meyering@lucent.com>
88803
88804         Use `C' to denote so-called `contiguous' files, the same way
88805         that tar does.
88806         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88807         (ftypelet): Use S_ISCTG.
88808         From Michael Deutschmann.
88809
88810 2000-04-14  Jim Meyering  <meyering@lucent.com>
88811
88812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88813         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88814         clobbered.
88815
88816 2000-04-14  Jim Meyering  <meyering@lucent.com>
88817
88818         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88819
88820 2000-04-13  Jim Meyering  <meyering@lucent.com>
88821
88822         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88823         AH_VERBATIM to insert required #ifndef into config.h.in.
88824         Suggestion from Akim Demaille.
88825
88826 2000-04-12  Jim Meyering  <meyering@lucent.com>
88827
88828         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88829         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88830         Christian Krackowizer.
88831
88832         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88833         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88834         (AC_SYS_LARGEFILE): Require.
88835         (AM_C_PROTOTYPES): Require.
88836
88837 2000-04-08  Jim Meyering  <meyering@lucent.com>
88838
88839         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88840         names don't conflict.  Reported by Eli Zaretskii.
88841
88842 2000-04-07  Jim Meyering  <meyering@lucent.com>
88843
88844         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88845         sys/types.h, to work around system header problems on AIX 3.2.5.
88846         From Bruno Haible.
88847
88848 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88849
88850         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88851         bug.  Deal with the different error behavior of Irix iconv.
88852
88853 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88854
88855         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88856         IRIX if the installer said otherwise.
88857
88858 2000-04-05  Jim Meyering  <meyering@lucent.com>
88859
88860         Portability tweaks required for ultrix4.3.
88861         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88862         (jm_CHECK_DECLS): Add getutent to the list of functions.
88863         (_jm_DECL_HEADERS): Add utmpx.h.
88864         From John David Anglin.
88865
88866         * m4/strftime.m4: Back out the 2000-04-02 change.
88867         Instead of that change, simply undefine putenv in the test program.
88868
88869 2000-04-05  Jim Meyering  <meyering@lucent.com>
88870
88871         Portability tweaks required for ultrix4.3.
88872         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88873         getutent.
88874         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88875         * lib/canon-host.c: Declare strdup.
88876         * lib/path-concat.c: Likewise.
88877         From John David Anglin.
88878
88879 2000-04-04  Jim Meyering  <meyering@lucent.com>
88880
88881         Be more DOS 8.3-friendly.
88882         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88883         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88884         * lib/Makefile.am: Reflect renaming.
88885         Reported by Eli Zaretskii.
88886
88887         Use a temporary file name that won't clash with `charset.alias'
88888         in the DOS 8.3 name space.
88889         * lib/Makefile.am (charset_tmp): Define.
88890         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88891         (uninstall-local): Likewise.
88892         Reported by Eli Zaretskii.
88893
88894 2000-04-03  Jim Meyering  <meyering@lucent.com>
88895
88896         * m4/gettext.m4: Fix typo in comment.
88897
88898         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88899         textutils/configure.in).  Suggestion from Paul Eggert.
88900         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88901
88902 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88903
88904         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88905         variable in the shell rather than using putenv, which isn't
88906         portable.  This avoids the configure-time inter-test dependency
88907         on the potentially-renamed putenv function.
88908
88909 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88910
88911         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88912         before checking struct stat.st_blksize, so that
88913         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88914
88915 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88916
88917         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88918         since strftime.c uses HAVE_STRFTIME to decide whether to use
88919         the underlying strftime.
88920
88921 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88922
88923         * lib/time/strftime.c (my_strftime): Make sure we call the system
88924         strftime, not ourselves, when invoking the underlying strftime.
88925
88926 2000-03-24  Jim Meyering  <meyering@lucent.com>
88927
88928         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88929         (charset_alias): Define.
88930         (install-exec-local): Factor out common code.
88931         (uninstall-local): Split lines longer than 80.
88932         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88933         (SUFFIXES): Define.
88934         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88935         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88936
88937 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88938
88939         * lib/config.charset: Output a line containing "Packages using this
88940         file".
88941         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88942         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88943         ref-del.sed): New rules.
88944
88945 2000-03-17  Jim Meyering  <meyering@lucent.com>
88946
88947         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88948         Otherwise, include <strings.h>
88949
88950 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88951
88952         * lib/unicodeio.c (utf8_wctomb): New function.
88953         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88954         format instead of in UCS-4 with platform dependent endianness.
88955
88956 2000-03-10  Jim Meyering  <meyering@lucent.com>
88957
88958         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88959         From Marco Franzen.
88960
88961 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88962
88963         * lib/savedir.c (savedir): Work even if directory size is
88964         negative; this can happen with some screwy NFS configurations.
88965
88966 2000-03-06  Jim Meyering  <meyering@lucent.com>
88967
88968         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88969         if it's NULL (because we ran out of memory).  From Bruno Haible.
88970
88971 2000-03-05  Jim Meyering  <meyering@lucent.com>
88972
88973         * lib/localcharset.c ("path-concat.h"): Include.
88974         (get_charset_aliases): Use path_concat instead of ANSI string
88975         concatenation.
88976
88977         * lib/unicodeio.h (PARAMS): Define.
88978         Use it to guard prototype.
88979
88980 2000-03-04  Jim Meyering  <meyering@lucent.com>
88981
88982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88983         for lib/localcharset.c.
88984
88985 2000-03-04  Jim Meyering  <meyering@lucent.com>
88986
88987         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88988         installing into it.
88989         (uninstall-local): Uncomment this rule so `make distcheck' works
88990         once again.
88991
88992         * lib/unicodeio.c (<errno.h>): Include it.
88993         (errno): Declare if not defined.
88994
88995         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88996
88997         * lib/config.charset: New version, incorporating remarks from a linux
88998         i18n mailing list.  From Bruno Haible.
88999
89000 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89001
89002         * m4/codeset.m4: New file.
89003         * m4/iconv.m4: New file.
89004         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89005
89006 2000-03-03  Jim Meyering  <meyering@lucent.com>
89007
89008         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89009
89010 2000-03-02  Jim Meyering  <meyering@lucent.com>
89011
89012         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89013         the messages come out on separate lines.
89014
89015         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89016         rather than jm_CHECK_DECLARATIONS.
89017         * m4/decl.m4: Remove now-unused file.
89018
89019         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89020         geteuid.
89021
89022 2000-03-02  Jim Meyering  <meyering@lucent.com>
89023
89024         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89025
89026 2000-03-01  Jim Meyering  <meyering@lucent.com>
89027
89028         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89029         * lib/unicodeio.c: Likewise.
89030
89031 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89032
89033         * lib/config.charset: New file.
89034         * lib/localcharset.c: New file.
89035         * lib/unicodeio.h, lib/unicodeio.c: New files.
89036         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89037         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89038         (noinst_HEADERS): Add unicodeio.h.
89039         (all-local, install-exec-local, charset.alias): New targets.
89040
89041 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89042
89043         * lib/quotearg.c (ALERT_CHAR): New macro.
89044         (quotearg_buffer_restyled): Use it.
89045
89046 2000-02-27  Jim Meyering  <meyering@lucent.com>
89047
89048         * m4/check-decl.m4: Add getenv to the list.
89049
89050 2000-02-27  Jim Meyering  <meyering@lucent.com>
89051
89052         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89053         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89054
89055         * lib/backupfile.c: Guard inclusion of stdlib.h with
89056         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89057         Declare malloc if needed.
89058
89059         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89060         `#ifndef HAVE_DECL..'
89061         now that autoconf always defines the HAVE_DECL_ symbols.
89062         * lib/human.c: Likewise.
89063         * lib/same.c: Likewise.
89064         * lib/strtoumax.c: Likewise.
89065
89066         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89067         declaration check was not run.
89068         * lib/hash.c: Likewise.
89069         * lib/human.c: Likewise.
89070         * lib/same.c: Likewise.
89071         * lib/strtoumax.c: Likewise.
89072
89073         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89074         `.', then first look up the entire `.'-containing string as a login
89075         name.
89076
89077 2000-02-23  Jim Meyering  <meyering@lucent.com>
89078
89079         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89080         in place of my hack.
89081
89082 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89083
89084         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89085         (textint): New typedef.
89086         (parser_control): Member year changed from int to textint.
89087         All uses changed.
89088         (YYSTYPE): Removed; replaced by %union with int and textint members.
89089         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89090         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89091         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89092         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89093         (date, number, to_year): Use width of number in digits, not its value,
89094         to determine whether it's a 2-digit year, or a 2-digit time.
89095         (yylex): Store number of digits of numeric tokens.
89096         Reported by John Kendall.
89097
89098         (parser_control): Changed from struct parser_control to typedef (for
89099         consistency).  All uses changed.
89100
89101         (tID): Removed; not used.
89102         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89103
89104 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89105
89106         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89107         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89108
89109 2000-02-12  Jim Meyering  <meyering@lucent.com>
89110
89111         * lib/userspec.c (ISDIGIT): Define it.
89112         (isdigit): Remove definition.
89113         (is_number): Use ISDIGIT, not isdigit.
89114         <libintl.h>: Include.
89115         (_ and N_): Define.
89116         (parse_user_spec): Mark translatable strings.
89117
89118 2000-02-10  Jim Meyering  <meyering@lucent.com>
89119
89120         With these changes, nanosleep.[ch] are finally enough like the other
89121         lib/* replacement files to compile on a few more losing systems.
89122
89123         * lib/nanosleep.h: Don't include config.h.
89124         Remove prototype from declaration of nanosleep.
89125         (PARAMS): Remove now-unneeded definition.
89126         * lib/nanosleep.c: #undef nanosleep.
89127         (rpl_nanosleep): Rename from nanosleep.
89128
89129 2000-02-10  Jim Meyering  <meyering@lucent.com>
89130
89131         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89132         gnu_nanosleep to rpl_nanosleep.
89133
89134 2000-02-09  Jim Meyering  <meyering@lucent.com>
89135
89136         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89137         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89138
89139 2000-02-08  Akim Demaille  <akim@epita.fr>
89140
89141         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89142         `[' and `]' and remove uses of `changequote'.
89143         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89144         (AC_SYS_LARGEFILE): Likewise.
89145         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89146         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89147         of changequote.
89148         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89149         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89150         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89151         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89152
89153 2000-02-05  Jim Meyering  <meyering@lucent.com>
89154
89155         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89156         Remove explicit use of AC_HEADER_TIME.  It is required by
89157         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89158         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89159         in autoconf whereby the expansion of the latter ended up preceding
89160         the expansion of its prerequisite, AC_HEADER_TIME.
89161         Reported by Volker Borchert.
89162
89163 2000-02-03  Jim Meyering  <meyering@lucent.com>
89164
89165         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89166
89167 2000-02-03  Jim Meyering  <meyering@lucent.com>
89168
89169         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89170         rather than with `#if HAVE_UTMPNAME'.
89171
89172 2000-02-02  Jim Meyering  <meyering@lucent.com>
89173
89174         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89175         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89176         Reported by Eli Zaretskii.
89177
89178 2000-02-01  Jim Meyering  <meyering@lucent.com>
89179
89180         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89181
89182 2000-01-31  Jim Meyering  <meyering@lucent.com>
89183
89184         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89185         functions.  Add the time.h and sys/time.h headers along with the
89186         AC_REQUIRE'ment of AC_HEADER_TIME.
89187
89188 2000-01-31  Jim Meyering  <meyering@lucent.com>
89189
89190         * lib/nanosleep.h (nanosleep): Guard declaration with
89191         `#if ! HAVE_DECL_NANOSLEEP'.
89192         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89193         the declaration in that vendor's sys/timers.h.
89194         Reported by Christian Krackowizer.
89195
89196         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89197         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89198         (ISPRINT): Likewise.
89199         Reported by Tom Tromey.
89200
89201 2000-01-30  Jim Meyering  <meyering@lucent.com>
89202
89203         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89204
89205         * m4/prereq.m4 (utmp_includes): Define.
89206         Check for ut_user and ut_name members in both struct utmpx
89207         and struct utmp.
89208
89209 2000-01-30  Jim Meyering  <meyering@lucent.com>
89210
89211         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89212         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89213         header files where only utmpx.ut_user is declared.
89214
89215         * lib/readutmp.h (UT_USER): Define.
89216
89217 2000-01-29  Jim Meyering  <meyering@lucent.com>
89218
89219         * m4/lib-check.m4: New file containing library-related checks from
89220         fileutils and sh-utils (textutils had none).
89221
89222 2000-01-28  Jim Meyering  <meyering@lucent.com>
89223
89224         * m4/perl.m4: Change format of warning message to look more like that
89225         from the missing script.  Suggestion from François Pinard.
89226
89227 2000-01-25  Jim Meyering  <meyering@lucent.com>
89228
89229         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89230         well as time.h in the compile check.
89231         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89232         Fix typo in cross-compiling case: s/yes/no/.
89233
89234 2000-01-23  Jim Meyering  <meyering@lucent.com>
89235
89236         * m4/jm-macros.m4: Move df-related tests here from
89237         fileutils/configure.in
89238
89239         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89240         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89241
89242         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89243         s/space/ac_fsusage_space/.
89244         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89245
89246         * m4/ftruncate.m4: New file (derived from part of
89247         fileutils/configure.in).
89248         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89249         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89250
89251         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89252         AC_SUBST these here, rather than just in sh-util/configure.in, so
89253         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89254         all the same.
89255         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89256         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89257         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89258         (AC_SUBST(POW_LIBM)): Likewise.
89259         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89260
89261 2000-01-23  Jim Meyering  <meyering@lucent.com>
89262
89263         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89264         obstack.c.
89265
89266 2000-01-22  Jim Meyering  <meyering@lucent.com>
89267
89268         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89269
89270         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89271
89272         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89273         configure.in
89274         (AC_CHECK_HEADERS): Likewise for sh-utils.
89275         (AC_CHECK_HEADERS): Likewise for textutils.
89276         Merge the three lists of headers.
89277
89278         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89279         from fileutils' configure.in.
89280
89281         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89282         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89283         check-decl.m4.
89284
89285         * m4/check-decl.m4: Use #if rather than #ifdef.
89286         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89287         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89288         (_jm_DECL_HEADERS): Define new function.
89289         (jm_CHECK_DECLARATIONS): Require it.
89290
89291 2000-01-22  Jim Meyering  <meyering@lucent.com>
89292
89293         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89294         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89295         Required for some AIX systems.  Reported by Christian Krackowizer.
89296         [TESTING] (main): New function.
89297
89298         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89299         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89300         letters.
89301
89302         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89303         iswprint.
89304
89305         * lib/strverscmp.c (ISDIGIT): Define.
89306         (strverscmp): Use ISDIGIT, not isdigit.
89307
89308 2000-01-19  Jim Meyering  <meyering@lucent.com>
89309
89310         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89311         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89312         defines `struct timespec' in <sys/time.h>
89313
89314         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89315         Thanks to Akim for explaining.
89316
89317 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89318
89319         * lib/nanosleep.c (nanosleep):
89320         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89321         POSIX.1 doesn't require SA_INTERRUPT and some systems
89322         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89323         it's been part of POSIX.1 since day 1 (in 1988).
89324
89325 2000-01-17  Jim Meyering  <meyering@lucent.com>
89326
89327         * lib/interlock: Remove unused file.  Reported by François Pinard.
89328
89329 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89330
89331         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89332         alert, backslash, formfeed, and vertical tab unnecessarily in
89333         shell quoting style.
89334
89335 2000-01-16  Jim Meyering  <meyering@lucent.com>
89336
89337         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89338         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89339         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89340         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89341
89342 2000-01-16  Jim Meyering  <meyering@lucent.com>
89343
89344         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89345         because the latter didn't work.
89346
89347 2000-01-15  Jim Meyering  <meyering@lucent.com>
89348
89349         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89350         (AC_REPLACE_FUNCS): Add memcpy and memset.
89351         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89352         Add strpbrk.
89353         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89354
89355 2000-01-12  Jim Meyering  <meyering@lucent.com>
89356
89357         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89358         (jm_PREREQ): Use it.
89359         (jm_PREREQ_READUTMP): New macro.
89360         (jm_PREREQ): Use it.
89361
89362 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89363
89364         Quote multibyte characters correctly.
89365         * m4/c-bs-a.m4: New file.
89366         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89367         (jm_PREREQ): Use it.
89368
89369 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89370
89371         * m4/uintmax_t.m4: Port to autoconf 2.13.
89372
89373 2000-01-08  Jim Meyering  <meyering@ascend.com>
89374
89375         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89376         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89377
89378 2000-01-04  Jim Meyering  <meyering@ascend.com>
89379
89380         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89381         jm_STRUCT_DIRENT_D_TYPE.
89382         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89383         jm_STRUCT_DIRENT_D_INO.
89384         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89385         jm_STRUCT_UTIMBUF.
89386         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89387         renamings.
89388         * m4/utime.m4: Likewise.
89389
89390         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89391         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89392
89393 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89394
89395         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89396         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89397
89398 2000-01-02  Jim Meyering  <meyering@ascend.com>
89399
89400         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89401         remember if this is necessary.
89402
89403 1999-12-26  Jim Meyering  <meyering@ascend.com>
89404
89405         * m4/jm-macros.m4: Use it here.
89406         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89407
89408 1999-12-23  Jim Meyering  <meyering@ascend.com>
89409
89410         * m4/jm-macros.m4: Check for clock_gettime (moved from
89411         fileutils/configure.in)
89412         Check for gettimeofday.
89413
89414 1999-12-20  Jim Meyering  <meyering@ascend.com>
89415
89416         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89417         autoconf-2.14a-1999-12-20.
89418
89419 1999-12-19  Jim Meyering  <meyering@ascend.com>
89420
89421         * m4/lstat-slash.m4: New file.
89422         * m4/jm-macros.m4: Use the new macro:
89423         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89424
89425 1999-12-07  Jim Meyering  <meyering@ascend.com>
89426
89427         * m4/perl.m4: Require that File::Compare be available, too.
89428         Too many systems seem to lack it.
89429
89430         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89431         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89432
89433 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89434
89435         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89436         problem with the QNX 4.25 shell, which doesn't propagate exit
89437         status of failed commands inside shell assignments.
89438
89439 1999-11-17  Jim Meyering  <meyering@ascend.com>
89440
89441         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89442
89443 1999-11-07  Jim Meyering  <meyering@ascend.com>
89444
89445         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89446
89447 1999-11-06  Jim Meyering  <meyering@ascend.com>
89448
89449         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89450         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89451
89452 1999-11-05  Jim Meyering  <meyering@ascend.com>
89453
89454         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89455         configure.in of textutils, fileutils, and sh-utils into this one
89456         (shared between those packages) file.
89457         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89458         AC_STRUCT_ST_BLKSIZE.
89459
89460 1999-11-03  Jim Meyering  <meyering@ascend.com>
89461
89462         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89463         of AC_CHECK_TYPE checks includes unistd.h.
89464         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89465         Suggestion from Akim Demaille.
89466
89467 1999-10-30  Jim Meyering  <meyering@ascend.com>
89468
89469         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89470         m4-quoted string.
89471         * m4/ls-mntd-fs.m4: Likewise.
89472         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89473         * m4/jm-winsz1.m4: Likewise.
89474
89475         * m4/const.m4: Remove file, since the fix made it into the experimental
89476         version of autoconf.
89477         * m4/mktime.m4: Likewise.
89478
89479         * m4/check-type.m4: Remove file, now that the latest version of
89480         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89481
89482         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89483         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89484         AC_CHECK_TYPE.
89485
89486 1999-10-04  Jim Meyering  <meyering@ascend.com>
89487
89488         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89489
89490 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89491
89492         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89493         2.95.1 bug with HP-UX 10.20.
89494
89495 1999-09-17  Jim Meyering  <meyering@ascend.com>
89496
89497         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89498         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89499         due to missing strdup (against sh-utils-2.0).
89500
89501 1999-08-29  Jim Meyering  <meyering@ascend.com>
89502
89503         * m4/jm-macros.m4: Require jm_BISON.
89504         * m4/bison.m4: New file.
89505
89506 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89507
89508         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89509         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89510
89511 1999-08-05  Jim Meyering  <meyering@ascend.com>
89512
89513         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89514         to avoid conflicts with `conftest' on 8+3 filesystems.
89515         Suggestion from Eli Zaretskii.
89516
89517 1999-08-04  Jim Meyering  <meyering@ascend.com>
89518
89519         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89520         fileutils and sh-utils (textutils's getline test was inadequate).
89521         (AM_FUNC_GETLINE): Run this test.
89522         (AC_CHECK_FUNCS): Check for getdelim.
89523         Reported by Bob Proulx.
89524
89525 1999-08-02  Jim Meyering  <meyering@ascend.com>
89526
89527         * m4/jm-macros.m4: Add a comment.
89528
89529 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89530
89531         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89532         <inttypes.h> defines strtoumax as a macro (and not as a
89533         function).
89534
89535 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89536
89537         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89538         that we can shift, multiply and divide unsigned long long
89539         values; Ultrix cc can't do it.
89540
89541 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89542
89543         * m4/mktime.m4: New file, which is a preview of what should appear
89544         in the next public autoconf release.
89545
89546 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89547
89548         * m4/lfs.m4: Remove this file.
89549         * m4/largefile.m4: New file.  It contains the old contents of
89550         lfs.m4, except that all names with prefix AC_LFS have been
89551         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89552         compatible with future autoconf versions.  Also, some minor m4
89553         quoting problems have been fixed.
89554
89555 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89556
89557         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89558         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89559         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89560         and simplify the shell code.
89561
89562 1999-08-01  Jim Meyering  <meyering@ascend.com>
89563
89564         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89565         m4.
89566
89567 1999-07-20  Jim Meyering  <meyering@ascend.com>
89568
89569         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89570
89571 1999-07-15  Jim Meyering  <meyering@ascend.com>
89572
89573         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89574
89575 1999-05-22  Jim Meyering  <meyering@ascend.com>
89576
89577         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89578
89579 1999-05-20  Jim Meyering  <meyering@ascend.com>
89580
89581         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89582         Add a colon after each `then' in case $4 is empty.
89583
89584 1999-05-16  Jim Meyering  <meyering@ascend.com>
89585
89586         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89587
89588 1999-05-10  Jim Meyering  <meyering@ascend.com>
89589
89590         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89591
89592         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89593         AC_FUNC_MKTIME.
89594
89595 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89596
89597         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89598
89599 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89600
89601         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89602         not CPPFLAGS, so that linking works correctly in IRIX.
89603
89604 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89605
89606         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89607
89608 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89609
89610         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89611         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89612         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89613         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89614         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89615
89616         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89617
89618 1999-04-20  Jim Meyering  <meyering@ascend.com>
89619
89620         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89621         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89622         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89623
89624 1999-04-18  Jim Meyering  <meyering@ascend.com>
89625
89626         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89627         * m4/jm-macros.m4: Use it.
89628
89629 1999-04-06  Jim Meyering  <meyering@ascend.com>
89630
89631         * m4/strftime.m4: Remove test for %f.
89632
89633 1999-03-29  Jim Meyering  <meyering@ascend.com>
89634
89635         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89636         superset of the AC_TYPE_* checks in the textutils, fileutils,
89637         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89638         AC_TYPE_PID_T.
89639
89640 1999-03-28  Jim Meyering  <meyering@ascend.com>
89641
89642         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89643         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89644         replaced e.g., in the *.sh files of the sh-utils.
89645
89646 1999-03-20  Jim Meyering  <meyering@ascend.com>
89647
89648         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89649         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89650         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89651
89652 1999-03-19  Jim Meyering  <meyering@ascend.com>
89653
89654         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89655
89656 1999-03-12  Jim Meyering  <meyering@ascend.com>
89657
89658         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89659
89660 1999-03-07  Jim Meyering  <meyering@ascend.com>
89661
89662         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89663         declared.
89664
89665 1999-02-17  Jim Meyering  <meyering@ascend.com>
89666
89667         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89668         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89669
89670 1999-02-07  Jim Meyering  <meyering@ascend.com>
89671
89672         * m4/group-member.m4: New file -- extracted from sh-utils'
89673         configure.in.
89674
89675         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89676         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89677
89678 1999-02-06  Jim Meyering  <meyering@ascend.com>
89679
89680         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89681         * m4/fnmatch.m4: Likewise.
89682         * m4/getgroups.m4: Likewise.
89683         * m4/lstat.m4: Likewise.
89684         * m4/malloc.m4: Likewise.
89685         * m4/putenv.m4: Likewise.
89686         * m4/realloc.m4: Likewise.
89687         * m4/regex.m4: Likewise.
89688         * m4/stat.m4: Likewise.
89689         * m4/strftime.m4: Likewise.
89690         Suggestion from Alain Magloire.
89691
89692         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89693         * m4/fnmatch.m4: Likewise.
89694         * m4/getgroups.m4: Likewise.
89695         * m4/getline.m4: Likewise.
89696         * m4/lstat.m4: Likewise.
89697         * m4/malloc.m4: Likewise.
89698         * m4/memcmp.m4: Likewise.
89699         * m4/putenv.m4: Likewise.
89700         * m4/realloc.m4: Likewise.
89701         * m4/regex.m4: Likewise.
89702         * m4/stat.m4: Likewise.
89703         * m4/strftime.m4: Likewise.
89704         Suggestion from Alain Magloire.
89705
89706         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89707         an argument.
89708
89709         * m4/regex.m4: Add a run-time Test for proper operation of
89710         re_compile_pattern.
89711
89712 1999-01-31  Jim Meyering  <meyering@ascend.com>
89713
89714         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89715
89716 1999-01-30  Jim Meyering  <meyering@ascend.com>
89717
89718         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89719
89720         * m4/jm-mktime.m4: Make this a wrapper around the official
89721         AM_FUNC_MKTIME rather than my private copy, now that the official one
89722         is up to date.
89723         * m4/mktime.m4: Remove file.
89724
89725         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89726         * m4/uptime.m4: Likewise.
89727         * m4/uintmax_t.m4: Likewise.
89728
89729 1999-01-28  Jim Meyering  <meyering@ascend.com>
89730
89731         * m4/jm-macros.m4: Use jm_AFS.
89732         * m4/afs.m4: New file (from fileutils' configure.in).
89733
89734         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89735         * m4/chown.m4: Likewise.
89736         * m4/d-ino.m4: Likewise.
89737         * m4/d-type.m4: Likewise.
89738         * m4/fnmatch.m4: Likewise.
89739         * m4/getgroups.m4: Likewise.
89740         * m4/gettext.m4: Likewise.
89741         * m4/jm-mktime.m4: Likewise.
89742         * m4/jm-winsz2.m4: Likewise.
89743         * m4/lcmessage.m4: Likewise.
89744         * m4/ls-mntd-fs.m4: Likewise.
89745         * m4/malloc.m4: Likewise.
89746         * m4/memcmp.m4: Likewise.
89747         * m4/putenv.m4: Likewise.
89748         * m4/realloc.m4: Likewise.
89749         * m4/st_mtim.m4: Likewise.
89750         * m4/strftime.m4: Likewise.
89751
89752 1999-01-16  Jim Meyering  <meyering@ascend.com>
89753
89754         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89755         (ARGMATCH_DIE_DECL): Define.
89756
89757 1999-01-12  Jim Meyering  <meyering@ascend.com>
89758
89759         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89760         Reported by Lars Hecking.
89761
89762 1999-01-10  Jim Meyering  <meyering@ascend.com>
89763
89764         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89765         gross kludge.
89766         * m4/inttypes_h.m4: Likewise.
89767         * m4/lstat.m4: Likewise.
89768         * m4/malloc.m4: Likewise.
89769         * m4/readdir.m4: Likewise.
89770         * m4/realloc.m4: Likewise.
89771         * m4/st_dm_mode.m4: Likewise.
89772         * m4/stat.m4: Likewise.
89773         * m4/utimbuf.m4: Likewise.
89774         * m4/utimes.m4: Likewise.
89775
89776         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89777         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89778         comments in config.h.in are meaningful.
89779
89780         * m4/jm-macros.m4: Require autoconf-2.13 here.
89781
89782         * m4/regex.m4: By default, don't use the included regex.c on systems
89783         with glibc 2.  Suggestion from Uli Drepper.
89784
89785 1999-01-02  Jim Meyering  <meyering@ascend.com>
89786
89787         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89788
89789 1998-12-18  Jim Meyering  <meyering@ascend.com>
89790
89791         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89792         Based on a suggestion from Lars Hecking.
89793
89794 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89795
89796         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89797
89798 1998-11-16  Jim Meyering  <meyering@ascend.com>
89799
89800         * m4/lfs.m4: Double-quote the `uname...` expression.
89801
89802 1998-11-14  Jim Meyering  <meyering@ascend.com>
89803
89804         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89805         * m4/stat.m4: Likewise.
89806
89807 1998-11-03  Jim Meyering  <meyering@ascend.com>
89808
89809         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89810         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89811
89812 1998-10-18  Jim Meyering  <meyering@ascend.com>
89813
89814         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89815
89816 1998-10-17  Jim Meyering  <meyering@ascend.com>
89817
89818         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89819         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89820         calls for those previously hard-coded headers.  Instead, take a new
89821         parameter.
89822         (jm_CHECK_DECLARATIONS): Reflect interface change.
89823         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89824         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89825
89826         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89827
89828 1998-10-14  Jim Meyering  <meyering@ascend.com>
89829
89830         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89831         instead of "TZ=America/Vancouver".  From Paul Eggert.
89832
89833 1998-10-11  Jim Meyering  <meyering@ascend.com>
89834
89835         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89836         This adds a test for a recently added compatibility fix for mktime.c.
89837         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89838
89839 1998-09-27  Jim Meyering  <meyering@ascend.com>
89840
89841         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89842
89843         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89844         ../configure.in, including a change from Gordon Matzigkeit to allow
89845         cross-compiling for the Hurd.
89846
89847         * m4/glibc.m4: New file/macro to test for the GNU C Library
89848         versions 1 and 2.  From Gordon Matzigkeit.
89849         Indent.
89850
89851 1998-09-21  Jim Meyering  <meyering@ascend.com>
89852
89853         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89854
89855 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89856
89857         Port nanosecond-resolution times to UnixWare 2.1.2 and
89858         pedantic Solaris 2.6.
89859
89860         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89861         AC_STRUCT_ST_MTIM.
89862         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89863         Generate name of ns member, instead of just 1 or undef.
89864         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89865
89866 1998-08-15  Jim Meyering  <meyering@ascend.com>
89867
89868         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89869         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89870         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89871         instead of jm_TYPE_SSIZE_T.
89872
89873 1998-08-12  Jim Meyering  <meyering@ascend.com>
89874
89875         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89876
89877 1998-08-02  Jim Meyering  <meyering@ascend.com>
89878
89879         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89880         in acconfig.h manually.
89881
89882 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89883
89884         * m4/st_mtim.m4: New file.
89885
89886 1998-07-28  Jim Meyering  <meyering@ascend.com>
89887
89888         * m4/utimes.m4: Undef stat.
89889
89890 1998-07-25  Jim Meyering  <meyering@ascend.com>
89891
89892         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89893         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89894
89895 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89896
89897         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89898         uid and gid actually remain unchanged.
89899
89900 1998-07-07  Jim Meyering  <meyering@ascend.com>
89901
89902         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89903
89904 1998-07-04  Jim Meyering  <meyering@ascend.com>
89905
89906         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89907         to prove that this macro can be used in packages without regex.c.
89908
89909 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89910
89911         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89912         is to be used.
89913
89914 1998-07-03  Jim Meyering  <meyering@ascend.com>
89915
89916         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89917
89918         * m4/gettext.m4: New file -- from gettext-0.10.35.
89919         * m4/lcmessage.m4: Likewise.
89920         * m4/progtest.m4: Likewise.
89921
89922         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89923         * m4/jm-macros.m4: Require the new macro.
89924
89925 1998-06-29  Jim Meyering  <meyering@ascend.com>
89926
89927         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89928         for the definition of NGROUPS (used in a system header included
89929         by sys/mount.h).
89930
89931 1998-06-28  Jim Meyering  <meyering@ascend.com>
89932
89933         * m4/ls-mntd-fs.m4: New file.
89934         * m4/fstypename.m4: New file.
89935
89936         * m4/jm-macros.m4: Require the new macro.
89937         * m4/jm-glibc-io.m4: New file.
89938
89939 1998-05-19  Jim Meyering  <meyering@ascend.com>
89940
89941         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89942         * m4/lchown.m4: New file.
89943
89944         * m4/Makefile.am.in: New file.
89945         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89946
89947 1998-05-14  Jim Meyering  <meyering@ascend.com>
89948
89949         * m4/Makefile.am (EXTRA_DIST): Add them.
89950         * m4/jm-macros.m4: New file.
89951         * m4/utimbuf.m4: New file.
89952
89953 1998-05-12  Jim Meyering  <meyering@ascend.com>
89954
89955         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89956
89957 1998-05-11  Jim Meyering  <meyering@ascend.com>
89958
89959         * m4/isc-posix.m4: New file.
89960
89961 1998-05-10  Jim Meyering  <meyering@ascend.com>
89962
89963         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89964
89965 1998-05-09  Jim Meyering  <meyering@ascend.com>
89966
89967         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89968         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89969         with automake.
89970
89971         * m4/ssize_t.m4: New file.
89972         * m4/mktime.m4: Remove file -- the new automake has this now.
89973
89974 1998-04-26  Jim Meyering  <meyering@ascend.com>
89975
89976         * m4/assert.m4: New file.
89977         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89978
89979 1998-04-05  Jim Meyering  <meyering@ascend.com>
89980
89981         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89982         (jm_PREREQ): Use it here.
89983
89984 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89985
89986         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89987         in acconfig.h.
89988
89989 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89990
89991         * m4/prereq.m4: New file.
89992         * m4/error.m4: New file.
89993         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89994
89995 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89996
89997         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89998         cache-check for the same variable -- that defeated the purpose of
89999         the test; the test program was never run.  This was a problem only
90000         on systems with losing getline functions -- HP-UX 10.20 is one.
90001         Reported by Bjorn Helgaas.
90002
90003 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90004
90005         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90006
90007 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90008
90009         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90010
90011         * m4/const.m4: New file.  Use an initializer in this declaration
90012         typedef int charset[2]; const charset x;
90013         Reported by Bob Glickstein.
90014
90015 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90016
90017         * m4/chown.m4: Fix reversed types on -1 args to chown.
90018         From Kaveh Ghazi.
90019
90020 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90021
90022         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90023         Add lseek and memchr.
90024
90025         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90026         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90027         have a 20-character limit on names.
90028
90029 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90030
90031         * m4/inttypes_h.m4: New file.
90032         * m4/uintmax_t.m4: New file.
90033         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90034
90035
90036         -----
90037
90038         Local Variables:
90039         coding: utf-8
90040         End:
90041
90042         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90043
90044         Copying and distribution of this file, with or without
90045         modification, are permitted provided the copyright notice
90046         and this notice are preserved.